/* Multi-State Map Styles */

.state-selector {
    background: white;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    min-width: 120px;
}

.state-selector-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.state-option {
    display: flex;
    align-items: center;
    margin: 6px 0;
}

.state-option input[type="checkbox"] {
    margin-right: 8px;
    margin: 0;
    margin-right: 8px;
}

.state-option label {
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.state-focus-btn {
    display: block;
    width: 100%;
    padding: 4px 8px;
    margin: 2px 0;
    border: none;
    border-radius: 3px;
    color: white;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.state-focus-btn:hover {
    opacity: 0.8;
}

.state-focus-btn.all-states {
    background-color: #666;
    margin-top: 6px;
}

/* Hunting unit popup styles */
.hunting-unit-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 300px;
}

.hunting-unit-popup h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.hunting-unit-popup p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
}

.hunting-unit-popup .btn {
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #0057ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.hunting-unit-popup .btn:hover {
    background-color: #0041cc;
}

/* Responsive State Selector */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }
    
    .state-selector {
        font-size: 14px;
        min-width: 140px;
    }
    
    .hunting-unit-popup {
        max-width: 250px;
    }
    
    .hunting-unit-popup h4 {
        font-size: 14px;
    }
    
    .hunting-unit-popup p {
        font-size: 12px;
    }
}

/* Mobile State Picker Modal */
.mobile-state-picker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
}

.state-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.state-picker-content {
    position: relative;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    width: 100%;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.state-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.state-picker-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #f0f0f0;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.state-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #fafafa;
}

.state-item:hover {
    border-color: #007bff;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.state-item.selected {
    border-color: #007bff;
    background: #e3f2fd;
}

.state-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.state-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.state-type {
    font-size: 12px;
    color: #666;
}