/* Base Setup */
:root {
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: #0f172a;
    /* Slate 900 */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Glassmorphism Utilities */
.glass-effect {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.glass-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Tabs */
.view-btn {
    transition: all 0.3s ease;
}

.view-btn.active-tab {
    background: rgba(6, 182, 212, 0.15);
    /* cyan-500/15 */
    border-color: rgba(6, 182, 212, 0.5);
    color: #22d3ee;
    /* cyan-400 */
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.hidden {
    display: none;
}

/* Map specific override for Section 3 */
#view-map .leaflet-container {
    background: #0f172a;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Leaflet Dark Customization */
.leaflet-container {
    background: #0f172a !important;
}

/* Select Inputs */
select option {
    background-color: #1e293b;
    color: white;
}

/* Custom Leaflet Popup Styles */
.leaflet-popup-content-wrapper {
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content {
    margin: 12px 16px !important;
    color: white;
}

.leaflet-popup-tip {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.custom-popup .leaflet-popup-close-button {
    color: white !important;
    font-size: 20px !important;
    font-weight: bold !important;
}

.custom-popup .leaflet-popup-close-button:hover {
    color: #dc2626 !important;
}