/* Rainbow Models Page - Vibrant Rainbow Theme */

/* Main Layout with Vibrant Rainbow Background */
.models-main {
    background: linear-gradient(135deg, 
        #f26d72 0%, 
        #f59666 15%, 
        #ca957a 25%, 
        #7ee2dd 35%, 
        #fed6e3 45%, 
        #e0c3fc 55%, 
        #74b0ed 65%, 
        #dba7cd 75%, 
        #f0db8f 85%, 
        #134e75 100%);
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}

/* Add animated rainbow overlay */
.models-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 0, 150, 0.1) 0%,
        rgba(255, 154, 0, 0.1) 14%,
        rgba(208, 222, 33, 0.1) 28%,
        rgba(79, 220, 74, 0.1) 42%,
        rgba(63, 218, 216, 0.1) 56%,
        rgba(47, 201, 226, 0.1) 70%,
        rgba(28, 127, 238, 0.1) 84%,
        rgba(95, 39, 205, 0.1) 100%);
    background-size: 400% 400%;
    animation: rainbow-shift 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rainbow-shift {
    0%, 100% { 
        background-position: 0% 50%; 
        opacity: 0.3;
    }
    25% { 
        background-position: 100% 50%; 
        opacity: 0.5;
    }
    50% { 
        background-position: 50% 100%; 
        opacity: 0.4;
    }
    75% { 
        background-position: 50% 0%; 
        opacity: 0.6;
    }
}

/* Ensure content is above rainbow background */
.model-description,
.controls-section,
.data-display,
.disclaimer-section,
.interactive-section,
.subscribe-section {
    position: relative;
    z-index: 10;
}

/* Model Description Section */
.model-description {
    background: rgba(255, 255, 255, 0.15);
    padding: 3rem 0;
    text-align: center;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.description-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2d1b69;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* Controls Section */
.controls-section {
    background: rgba(255, 255, 255, 0.25);
    padding: 2rem 0;
    position: relative;
    z-index: 1100;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.controls-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Control button base styles */
.control-button {
    background: rgba(255, 255, 255, 0.95);
    color: #2d1b69;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Specific z-index for each button (top to bottom) */
#location-toggle {
    z-index: 99997; /* Location - topmost */
}

#time-toggle {
    z-index: 99992; /* Time - bottom dropdown */
}

#empty-button, #search-button {
    z-index: 99985; /* Action buttons - no dropdowns */
}

/* Specific dropdown z-index adjustments */
#location-toggle .dropdown-menu {
    z-index: 999997; /* Location dropdown */
}

#time-toggle .dropdown-menu {
    z-index: 999992; /* Time dropdown */
}

.control-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
}

.control-button.active {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7b8, #96ceb4, #feca57);
    color: #ffffff;
    background-size: 300% 300%;
    animation: rainbow-gradient 3s ease infinite;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@keyframes rainbow-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.button-text {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Special styling for action buttons */
#empty-button {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

#empty-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff7043);
    box-shadow: 0 15px 35px rgba(255, 82, 82, 0.5);
    transform: translateY(-5px);
}

#search-button {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background-size: 200% 200%;
    animation: search-gradient 4s ease infinite;
}

@keyframes search-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#search-button:hover {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
    transform: translateY(-5px);
    animation-duration: 2s;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
    z-index: 999999;  /* Even higher when visible */
}

.dropdown-search {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    z-index: 99999;
}

.dropdown-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
}

.dropdown-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    display: block;
}

.dropdown-item.hidden {
    display: none;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:active {
    background-color: #e9ecef;
}

.dropdown-menu.show {
    display: block;
}

/* Data Display Section */
.data-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 3rem 0;
    margin: 2rem 0;
    position: relative;
    z-index: 50;
    backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.data-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.data-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.data-title {
    font-size: 1.8rem;
    color: #2d1b69;
    margin-bottom: 0;
    font-weight: 600;
    flex: 1;
    text-align: left;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.7);
}

.sunset-time {
    margin-top: 0;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sunset-time h3 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

#sunset-display {
    color: #2d1b69;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.7);
}

.data-metrics {
    display: grid;
    gap: 1.5rem;
}

.metric-row {
    background: rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid;
    border-image: linear-gradient(45deg, #667eea, #764ba2) 1;
    display: grid;
    grid-template-columns: 200px 100px 1fr;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.metric-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2, #4ecdc4, #45b7b8);
    background-size: 400% 400%;
    animation: rainbow-border 4s ease infinite;
}

@keyframes rainbow-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.metric-label {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1.2rem;
}

.metric-value {
    color: #2d1b69;
    font-weight: 700;
    font-size: 1.6rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.metric-description {
    color: #444;
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Quality rating colors for Rainbow */
.quality-excellent {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quality-good {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quality-fair {
    background: linear-gradient(45deg, #feca57, #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quality-poor {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Disclaimer Section */
.disclaimer-section {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem 0;
    margin: 2rem 0;
    border-radius: 15px;
    position: relative;
    z-index: 20;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.disclaimer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.disclaimer-title {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.disclaimer-text {
    color: #2d1b69;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Interactive Section */
.interactive-section {
    background: rgba(255, 255, 255, 0.15);
    padding: 3rem 0;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.interactive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Info Buttons Styling - Vibrant Rainbow Style */
.info-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.info-btn {
    background: linear-gradient(135deg, #f58787 0%, #efc98f 25%, #a6cff0 50%, #d5b1db 75%, #bdebc0 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.info-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
    background: linear-gradient(1135deg, #f58787 0%, #efc98f 25%, #a6cff0 50%, #d5b1db 75%, #bdebc0 100%);
}

.info-btn.active {
    background: linear-gradient(135deg, #f58787 0%, #efc98f 25%, #a6cff0 50%, #d5b1db 75%, #bdebc0 100%);
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.info-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: rainbowShine 1s ease-in-out;
}

@keyframes rainbowShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-subtitle {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Content Display - Traditional Panel Style */
.content-display {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 400px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.content-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-title {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.content-text {
    color: #2d1b69;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Enhanced button active state */
.info-btn.btn-active {
    background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

/* Map Card Special Styling */
.map-card {
    grid-column: 1 / -1; /* Take full width */
    background: #f1f5f9;
    border-left-color: #10b981;
}

.map-preview {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Subscribe Section */
.subscribe-section {
    background: rgba(255, 255, 255, 0.2);
    padding: 4rem 0;
    text-align: center;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.subscribe-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.subscribe-title {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background-size: 200% 200%;
    animation: gradient-text 3s ease infinite;
}

@keyframes gradient-text {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subscribe-description {
    color: #2d1b69;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-email {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.3);
    color: #2d1b69;
    backdrop-filter: blur(10px);
}

.subscribe-email::placeholder {
    color: #666;
}

.subscribe-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.privacy-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-link {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls-container {
        flex-direction: column;
        align-items: center;
    }
    
    .control-button {
        min-width: 280px;
    }
    
    .data-header {
        flex-direction: column;
        text-align: center;
    }
    
    .metric-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .info-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .info-btn {
        min-width: 250px;
        width: 100%;
        max-width: 350px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .data-title {
        font-size: 1.4rem;
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .subscribe-title {
        font-size: 2rem;
    }
    
    .content-display {
        padding: 1.5rem;
    }
    
    .info-btn {
        padding: 1rem 1.5rem;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.8rem;
    }
} 

/* Map Section Styles */
.map-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.map-container {
    width: 100%;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-title {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.map-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.time-slider-container label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

#current-time-display {
    font-weight: 600;
    color: #667eea;
}

#time-slider {
    width: 200px;
    height: 6px;
    background: linear-gradient(to right, #ffd89b, #19547b);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

#time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.map-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4a5568;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-color.high-probability {
    background-color: #22C55E;
}

.legend-color.medium-probability {
    background-color: #F59E0B;
}

.legend-color.low-probability {
    background-color: #EF4444;
}

.legend-color.no-data {
    background-color: #9CA3AF;
}

.interactive-map {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.map-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-location-details h3 {
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.map-location-details p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: 'Inter', sans-serif;
}

.popup-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.popup-time {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.popup-coordinates {
    font-size: 0.8rem;
    color: #4a5568;
    margin-bottom: 0.4rem;
    font-family: monospace;
}

.popup-probability {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.popup-probability.high { color: #22C55E; }
.popup-probability.medium { color: #F59E0B; }
.popup-probability.low { color: #EF4444; }

.popup-aod {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.popup-details {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.popup-details div {
    margin-bottom: 0.2rem;
}

.popup-description {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.popup-grid-info {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Location Label Styling */
.location-label {
    background: rgba(102, 126, 234, 0.9) !important;
    border: none !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .map-section {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .map-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .map-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .interactive-map {
        height: 400px;
    }
    
    #time-slider {
        width: 100%;
    }
    
    .map-legend {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
} 

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-content {
    padding: 2rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Modal Map Styles */
.modal-map-container {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.modal-map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.modal-time-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-time-slider-container label {
    font-weight: 500;
    color: #374151;
}

.modal-map-legend {
    display: flex;
    gap: 1rem;
}

/* Viewing Tips Styles */
.viewing-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tip-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
}

.tip-card h4 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.tip-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-map-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .viewing-tips-grid {
        grid-template-columns: 1fr;
    }
} 

/* Mobile Responsive */
@media (max-width: 768px) {
    .info-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .info-btn {
        max-width: none;
        padding: 1rem 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-display {
        padding: 1.5rem;
    }
    
    .map-preview {
        height: 150px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .info-btn {
        padding: 0.8rem 1rem;
    }
    
    .btn-title {
        font-size: 0.8rem;
    }
    
    .btn-subtitle {
        font-size: 0.65rem;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .content-card h3 {
        font-size: 1rem;
    }
    
    .content-card p {
        font-size: 0.85rem;
    }
} 