
        :root {
            /* Real World Data Science - Light Theme */
            --bg-primary: #ffffff;
            --bg-panel: #f8fafc;
            /* Slate 50 */
            --text-primary: #0f172a;
            /* Slate 900 */
            --text-secondary: #475569;
            /* Slate 600 */
            --accent-color: #009639;
            /* Gabon flag green */
            --accent-hover: #007a2f;
            /* darker Gabon green */
            --border-color: #e2e8f0;
            /* Slate 200 */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

            /* Feature Colors - Adjusted for Light Mode */
            --station-color: #db2777;
            /* Pink 600 */
            --powerline-color: #d97706;
            /* Amber 600 */
            --pylon-color: #ea580c;
            /* Orange 600 */
        }

        body,
        html {
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            overflow: hidden;
        }

        /* Layout Grid */
        body {
            display: grid;
            grid-template-rows: 64px 1fr;
            grid-template-columns: 1fr;
            grid-template-areas:
                "header"
                "main";
        }

        /* Full Width Header */
        .navbar {
            grid-area: header;
            position: relative;
            background-color: var(--bg-primary);
            border-bottom: 1px solid var(--border-color);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            box-shadow: var(--shadow-sm);
        }

        /* Docked Sidebar (Now Floating Overlay) */
        .sidebar {
            grid-area: main;
            position: relative;
            width: 320px;
            height: calc(100% - 32px);
            margin: 16px;
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 16px;
            padding: 24px;
            box-sizing: border-box;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
            justify-self: start;
            pointer-events: auto;
        }

        /* Map Container */
        #map {
            grid-area: main;
            height: 100%;
            width: 100%;
            margin-top: 0;
            z-index: 1;
            position: relative;
        }

        /* ... (Navbar styles unchanged) ... */

        /* Desktop Sidebar Toggle */
        .desktop-sidebar-toggle {
            position: absolute;
            top: 50%;
            left: 336px;
            /* 320px width + 16px margin */
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .desktop-sidebar-toggle:hover {
            background-color: var(--bg-panel);
            color: var(--text-primary);
            transform: translateY(-50%) scale(1.05);
        }

        /* Collapsed State (Desktop) */
        body.sidebar-collapsed .sidebar {
            transform: translateX(-150%);
            /* Move further left to clear margins */
            opacity: 0;
            pointer-events: none;
        }

        body.sidebar-collapsed .desktop-sidebar-toggle {
            left: 16px;
            /* Move button to edge when collapsed */
        }

        @media (max-width: 768px) {
            .desktop-sidebar-toggle {
                display: none;
            }

            body {
                grid-template-columns: 1fr;
            }

            .sidebar {
                width: 100%;
                height: calc(100% - 64px);
                margin: 0;
                border-radius: 0;
                top: 64px;
                transform: translateX(-100%);
            }

            .sidebar.active {
                transform: translateX(0);
            }
        }

        .navbar-left {
            display: flex;
            align-items: center;
            gap: 32px;
        }

        .logo-link {
            text-decoration: none;
            color: inherit;
            display: block;
            transition: opacity 0.2s;
        }

        .logo-link:hover {
            opacity: 0.8;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            width: 32px;
            height: 32px;
            background: none;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .app-name {
            font-size: 1.2rem;
            font-weight: 700;
            letter-spacing: -0.025em;
            color: var(--text-primary);
        }

        @media (max-width: 768px) {
            .app-name {
                font-size: 0.9rem;
            }
        }

        /* Force remove any unwanted effects on logo container */
        .navbar-left,
        .logo {
            box-shadow: none !important;
            text-shadow: none !important;
            backdrop-filter: none !important;
        }

        /* Navigation */
        .nav-menu {
            display: flex;
            gap: 8px;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.2s;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .nav-btn-subscribe {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.9) 0%, rgba(2, 132, 199, 0.9) 100%), url('login_bg_final.png');
            background-size: cover;
            background-position: center;
            /* Blue gradient to match Railway theme */
            color: white;
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.2s;
            box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
            margin-left: 0;
            /* Reset margin since About is gone */
            display: flex;
            align-items: center;
        }

        .nav-btn-subscribe:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(14, 165, 233, 0.4);
            filter: brightness(1.1);
            color: white;
        }

        .nav-link:hover,
        .nav-link.active {
            color: var(--text-primary);
            background-color: var(--border-color);
        }

        /* Dropdowns */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 8px;
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            box-shadow: var(--shadow-md);
            min-width: 220px;
            padding: 4px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-4px);
            transition: all 0.2s;
            z-index: 2000;
        }

        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-item {
            padding: 8px 12px;
            color: var(--text-secondary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.85rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.15s;
        }

        .dropdown-item:hover {
            color: var(--text-primary);
            background-color: var(--bg-panel);
        }

        .dropdown-indicator {
            width: 8px;
            height: 8px;
            border-radius: 2px;
        }

        /* Stats Bar in Header */
        .navbar-stats {
            display: flex;
            gap: 24px;
            align-items: center;
        }

        .navbar-stat {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .navbar-stat-label {
            font-size: 0.65rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
        }

        .navbar-stat-value {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
            font-feature-settings: "tnum";
            font-variant-numeric: tabular-nums;
        }

        /* Sidebar Content */
        .sidebar h2 {
            margin-top: 0;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 16px;
            margin-bottom: 16px;
        }

        /* Layer Search Box */
        .layer-search-wrap {
            position: relative;
            margin-bottom: 16px;
        }
        .layer-search-wrap i {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 0.85rem;
            pointer-events: none;
        }
        .layer-search {
            width: 100%;
            padding: 8px 10px 8px 30px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 0.85rem;
            color: var(--text-primary);
            background: var(--bg-primary);
            box-sizing: border-box;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .layer-search:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
        }

        /* Layer count badge */
        .layer-count {
            font-size: 0.7rem;
            font-weight: 600;
            background: var(--bg-panel);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 1px 6px;
            margin-right: 6px;
            min-width: 22px;
            text-align: center;
            display: inline-block;
        }

        /* ── Geocoder search bar ── */
        .geocoder-wrap {
            position: absolute;
            top: 16px;
            left: 50%;
            transform: translateX(-50%);
            width: min(420px, calc(100vw - 80px));
            z-index: 1100;
        }
        .geocoder-inner {
            position: relative;
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.97);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.12);
            transition: box-shadow 0.2s, border-color 0.2s;
            overflow: visible;
        }
        .geocoder-inner:focus-within {
            border-color: var(--accent-color);
            box-shadow: 0 4px 20px rgba(14,165,233,0.18);
        }
        .geocoder-icon {
            padding: 0 10px 0 14px;
            color: var(--text-secondary);
            font-size: 0.85rem;
            flex-shrink: 0;
            pointer-events: none;
        }
        .geocoder-input {
            flex: 1;
            border: none;
            outline: none;
            background: transparent;
            font-size: 0.9rem;
            color: var(--text-primary);
            padding: 10px 0;
            font-family: 'Inter', sans-serif;
            min-width: 0;
        }
        .geocoder-input::placeholder { color: var(--text-secondary); }
        .geocoder-spinner {
            width: 16px; height: 16px;
            border: 2px solid var(--border-color);
            border-top-color: var(--accent-color);
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            margin-right: 12px;
            flex-shrink: 0;
            display: none;
        }
        .geocoder-clear {
            background: none; border: none; cursor: pointer;
            color: var(--text-secondary); padding: 0 14px 0 4px;
            font-size: 1rem; line-height: 1; display: none;
            flex-shrink: 0;
        }
        .geocoder-clear:hover { color: var(--text-primary); }
        .geocoder-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            left: 0; right: 0;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            overflow: hidden;
            display: none;
            z-index: 1200;
        }
        .geocoder-dropdown.open { display: block; }
        .geocoder-result {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 14px;
            cursor: pointer;
            border-bottom: 1px solid var(--border-color);
            transition: background 0.15s;
        }
        .geocoder-result:last-child { border-bottom: none; }
        .geocoder-result:hover, .geocoder-result.active {
            background: var(--bg-panel);
        }
        .geocoder-result-icon {
            color: var(--accent-color);
            font-size: 0.8rem;
            margin-top: 3px;
            flex-shrink: 0;
        }
        .geocoder-result-name {
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.3;
        }
        .geocoder-result-detail {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 2px;
            line-height: 1.3;
        }
        .geocoder-no-result {
            padding: 12px 14px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            text-align: center;
        }
        @media (max-width: 768px) {
            .geocoder-wrap {
                top: 10px;
                width: calc(100vw - 32px);
            }
        }

        /* Pulsing location marker */
        @keyframes pulse-ring {
            0%   { transform: scale(0.5); opacity: 0.8; }
            100% { transform: scale(2.5); opacity: 0; }
        }
        .pulse-marker {
            width: 14px; height: 14px;
            background: var(--accent-color);
            border: 2px solid #fff;
            border-radius: 50%;
            box-shadow: 0 0 0 0 rgba(14,165,233,0.5);
        }

        /* Map action buttons (floating) */
        .map-actions {
            position: absolute;
            bottom: 120px;
            right: 16px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: center;
        }
        .map-actions-sep {
            width: 22px;
            height: 1px;
            background: var(--border-color);
            margin: 1px 0;
        }
        .map-action-btn {
            width: 36px;
            height: 36px;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--text-secondary);
            box-shadow: var(--shadow-md);
            transition: all 0.2s;
        }
        .map-action-btn:hover {
            background: var(--bg-panel);
            color: var(--accent-color);
            transform: scale(1.05);
        }
        .map-action-btn.active {
            background: var(--accent-color);
            color: #fff;
            border-color: var(--accent-color);
        }
        .map-action-btn.active:hover {
            background: #0284c7;
            color: #fff;
        }

        /* ── Split-screen compare panel ── */
        #compare-panel {
            position: absolute;
            top: 14px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1100;
            display: none;
            align-items: center;
            gap: 10px;
            background: rgba(255,255,255,0.97);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 8px 14px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.18);
            backdrop-filter: blur(6px);
            font-family: 'Inter', sans-serif;
        }
        .compare-side {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .compare-side-label {
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--text-secondary);
            white-space: nowrap;
        }
        .compare-sel {
            appearance: none;
            background: var(--bg-panel);
            border: 1px solid var(--border-color);
            border-radius: 7px;
            padding: 5px 28px 5px 10px;
            font-size: 0.8rem;
            font-family: 'Inter', sans-serif;
            color: var(--text-primary);
            cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 8px center;
            min-width: 110px;
        }
        .compare-sel:focus { outline: none; border-color: var(--accent-color); }
        .compare-divider-icon {
            font-size: 1rem;
            color: var(--accent-color);
            padding: 0 2px;
        }
        .compare-close-btn {
            width: 26px; height: 26px;
            background: #f1f5f9;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.85rem;
            color: var(--text-secondary);
            transition: background 0.15s;
            margin-left: 2px;
        }
        .compare-close-btn:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }

        /* Custom side-by-side divider */
        .sbs-divider {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 4px;
            margin-left: -2px;
            background: var(--accent-color);
            cursor: ew-resize;
            z-index: 800;
            box-shadow: 0 0 0 1px rgba(255,255,255,0.5);
            touch-action: none;
        }
        .sbs-thumb {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid var(--accent-color);
            color: var(--accent-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            cursor: ew-resize;
            user-select: none;
        }
        .map-action-btn[title]:hover::after {
            content: attr(title);
            position: absolute;
            right: 44px;
            background: rgba(15,23,42,0.85);
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.75rem;
            white-space: nowrap;
            pointer-events: none;
        }

        /* Layer loading spinner */
        .layer-loading {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid var(--border-color);
            border-top-color: var(--accent-color);
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            margin-right: 6px;
            vertical-align: middle;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        .legend-item {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            font-size: 0.9rem;
            color: var(--text-secondary);
            padding: 8px;
            border-radius: 6px;
            transition: background 0.2s;
            cursor: pointer;
            border: 1px solid transparent;
        }

        .legend-item:hover {
            background-color: #ffffff;
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        .legend-color {
            width: 12px;
            height: 12px;
            border-radius: 3px;
            margin-right: 12px;
        }

        .legend-line {
            width: 20px;
            height: 3px;
            margin-right: 12px;
        }

        /* Sidebar Layer Control */
        .layer-group {
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 12px;
        }

        .layer-group:last-child {
            border-bottom: none;
        }

        .group-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .group-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .group-actions {
            display: flex;
            gap: 8px;
        }

        .group-action-btn {
            font-size: 0.7rem;
            color: var(--accent-color);
            background: none;
            border: none;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            transition: background 0.2s;
        }

        .group-action-btn:hover {
            background-color: var(--bg-panel);
        }

        .layer-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 8px;
            border-radius: 6px;
            margin-bottom: 4px;
            transition: background 0.2s;
        }

        .layer-item:hover {
            background-color: #f1f5f9;
        }

        .layer-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .layer-color {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .layer-line {
            width: 16px;
            height: 3px;
            border-radius: 1px;
            flex-shrink: 0;
        }

        .layer-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        /* Toggle Switch */
        .toggle-switch {
            position: relative;
            width: 36px;
            height: 20px;
            flex-shrink: 0;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #cbd5e1;
            transition: .4s;
            border-radius: 20px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        input:checked+.slider {
            background-color: var(--accent-color);
        }

        input:checked+.slider:before {
            transform: translateX(16px);
        }

        /* Map Controls - Zoom */
        .leaflet-left {
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* When sidebar is visible, push zoom controls to the right of it */
        /* When sidebar is visible, push zoom controls to the right of it */
        body:not(.sidebar-collapsed) .leaflet-left {
            left: 320px;
            /* 320px sidebar width - margin handled by control itself */
        }

        /* When sidebar is collapsed, move zoom controls to left edge */
        body.sidebar-collapsed .leaflet-left {
            left: 0;
        }

        /* Custom Zoom Control Styling */
        .leaflet-control-zoom {
            border: none !important;
            box-shadow: var(--shadow-md) !important;
            border-radius: 20px !important;
            /* Match sidebar toggle */
            overflow: hidden;
            margin-top: 16px !important;
            margin-left: 24px !important;
            /* Match sidebar toggle margin */
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .leaflet-control-zoom-in,
        .leaflet-control-zoom-out {
            background-color: white !important;
            color: var(--text-secondary) !important;
            width: 36px !important;
            height: 36px !important;
            line-height: 36px !important;
            font-size: 18px !important;
            border-bottom: 1px solid var(--border-color) !important;
            transition: all 0.2s;
        }

        .leaflet-control-zoom-out {
            border-bottom: none !important;
        }

        .leaflet-control-zoom-in:hover,
        .leaflet-control-zoom-out:hover {
            background-color: var(--bg-panel) !important;
            color: var(--text-primary) !important;
        }

        .leaflet-bar a {
            background-color: #ffffff !important;
            color: var(--text-primary) !important;
            border-bottom: 1px solid var(--border-color) !important;
            width: 32px !important;
            height: 32px !important;
            line-height: 32px !important;
            font-weight: 600 !important;
        }

        .leaflet-bar a:hover {
            background-color: var(--bg-panel) !important;
        }

        .leaflet-bar a:first-child {
            border-top-left-radius: 8px !important;
            border-top-right-radius: 8px !important;
        }

        .leaflet-bar a:last-child {
            border-bottom-left-radius: 8px !important;
            border-bottom-right-radius: 8px !important;
            border-bottom: none !important;
        }

        /* Popups */
        .leaflet-popup-content-wrapper {
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            box-shadow: var(--shadow-md);
        }

        .leaflet-popup-tip {
            background-color: #ffffff;
            border: 1px solid var(--border-color);
        }

        .leaflet-container a.leaflet-popup-close-button {
            color: var(--text-secondary);
        }

        .station-marker {
            background-color: var(--station-color);
            width: 6px;
            height: 6px;
            border-radius: 50%;
            border: 1px solid #fff;
        }

        /* Basemap Switcher */
        .basemap-switcher {
            position: absolute;
            top: auto;
            bottom: calc(100% + 12px);
            /* Stack above toggle button */
            left: 0;
            right: auto;
            margin-bottom: 0;
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            box-shadow: var(--shadow-md);
            padding: 8px;
            z-index: 1000;
            display: flex;
            gap: 4px;
        }

        .basemap-option {
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.8rem;
            color: var(--text-secondary);
            font-weight: 500;
            border: 1px solid transparent;
            margin-bottom: 0;
        }

        .basemap-option:hover {
            color: var(--text-primary);
            background-color: var(--bg-panel);
        }

        .basemap-option.active {
            background-color: var(--bg-panel);
            border-color: var(--border-color);
            color: var(--accent-color);
            font-weight: 600;
        }

        .basemap-label {
            display: none;
        }

        /* Footer Statistics - Floating Glassmorphic Bar */
        .footer-stats {
            position: fixed;
            bottom: 24px;
            left: 344px;
            /* 320px Sidebar + 24px Gap */
            right: 24px;
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 16px;
            z-index: 1000;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        /* Expand footer when sidebar is collapsed */
        body.sidebar-collapsed .footer-stats {
            left: 24px;
        }

        .footer-stats.collapsed {
            transform: translateY(calc(100% + 30px));
        }

        .footer-toggle {
            position: absolute;
            top: -36px;
            right: 24px;
            /* Move to right for better ergonomics */
            left: auto;
            transform: none;
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            padding: 6px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: var(--shadow-md);
            transition: all 0.2s;
        }

        .footer-toggle:hover {
            background-color: var(--bg-panel);
            transform: translateY(-2px);
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 16px 24px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-row {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
            gap: 16px;
        }

        .footer-stat {
            text-align: center;
            min-width: 80px;
        }

        .footer-stat-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-secondary);
            margin-bottom: 2px;
        }

        .footer-stat-value {
            font-size: 1.0rem;
            font-weight: 700;
            color: var(--accent-color);
        }

        /* Mobile Sidebar Toggle */
        .sidebar-toggle {
            display: none;
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 56px;
            height: 56px;
            background-color: var(--accent-color);
            color: white;
            border-radius: 50%;
            border: none;
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
            z-index: 3000;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            transition: transform 0.2s;
        }

        .sidebar-toggle:active {
            transform: scale(0.95);
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            body {
                grid-template-columns: 1fr;
                grid-template-rows: 64px 1fr;
                grid-template-areas:
                    "header"
                    "main";
            }

            .sidebar {
                position: fixed;
                top: 64px;
                left: 0;
                width: 100%;
                height: calc(100% - 64px);
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                z-index: 2500;
                border-right: none;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .sidebar-toggle {
                display: flex;
            }

            .navbar {
                padding: 0 16px;
            }

            .navbar-stats {
                display: none;
                /* Hide stats in header on mobile to save space */
            }
        }

        /* Desktop Sidebar Toggle */
        .desktop-sidebar-toggle {
            position: absolute;
            top: 50%;
            left: 320px;
            margin-left: 24px;
            /* Augmented margin to match/exceed footer spacing */
            transform: translateY(-50%);
            /* Only center vertically */
            width: 32px;
            height: auto;
            min-height: 120px;
            padding: 16px 0;
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            /* Match footer-toggle radius */
            box-shadow: var(--shadow-md);
            /* Match footer-toggle shadow */
            z-index: 1000;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            color: var(--text-secondary);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .toggle-label {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            font-size: 0.8rem;
            /* Match footer-toggle */
            font-weight: 600;
            /* Match footer-toggle */
            color: var(--text-primary);
            /* Match footer-toggle */
            text-transform: capitalize;
            /* Match "Statistics" capitalization */
            letter-spacing: normal;
            /* Reset letter-spacing */
        }

        .desktop-sidebar-toggle:hover {
            background-color: var(--bg-panel);
            color: var(--text-primary);
            transform: translate(50%, -50%) scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* Subscribe Modal Styles - Redesigned */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content.split-modal {
            display: flex;
            width: 800px;
            max-width: 90vw;
            height: 520px;
            max-height: 85vh;
            background: #1e293b;
            /* Dark background for form side */
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(0.95);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0;
            /* Reset padding */
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin: auto;
        }

        .modal-overlay.active .modal-content.split-modal {
            transform: scale(1);
        }

        /* Left Side: Branding */
        .modal-left {
            flex: 1;
            background-image: url('login_bg_final.png');
            background-size: cover;
            background-position: center;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
            color: white;
        }

        /* Dark overlay for text readability */
        .modal-left::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
            z-index: 0;
        }

        .modal-brand {
            text-align: center;
            z-index: 1;
            position: relative;
        }

        /* Decorative elements for left side */
        .modal-left::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image:
                radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 10%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 10%);
            background-size: 100% 100%;
            pointer-events: none;
            z-index: 1;
        }

        .modal-brand h1 {
            font-size: 2.5rem;
            font-weight: 800;
            margin: 0 0 16px 0;
            letter-spacing: -0.02em;
            line-height: 1.1;
            color: white;
            text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }

        .modal-brand p {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.9);
            margin: 0;
            line-height: 1.5;
            max-width: 80%;
            margin-left: auto;
            margin-right: auto;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        /* Right Side: Form */
        .modal-right {
            flex: 1;
            padding: 40px;
            display: flex;
            flex-direction: column;
            position: relative;
            background: #ffffff;
            /* White background */
            overflow-y: auto;
            color: var(--text-primary);
        }

        .modal-close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 1.5rem;
            cursor: pointer;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            z-index: 10;
        }

        .modal-close-btn:hover {
            background: var(--bg-panel);
            color: var(--text-primary);
        }

        .social-login-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 12px;
            font-weight: 500;
        }

        .terms-text {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin: 16px 0 24px;
            line-height: 1.4;
        }

        .terms-text a {
            color: var(--primary-blue);
            /* Blue link */
            text-decoration: none;
        }

        .form-row {
            display: flex;
            gap: 12px;
        }

        .form-group.half {
            flex: 1;
        }

        /* Tabs */
        .modal-tabs {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
            /* Reduced from 32px */
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 8px;
            /* Reduced from 16px */
        }

        .tab-btn {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .tab-btn.active {
            color: var(--primary-blue);
            background: rgba(14, 165, 233, 0.1);
        }

        .tab-btn:hover:not(.active) {
            color: var(--text-primary);
            background: var(--bg-panel);
        }

        /* Social Login */
        .social-login {
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
            /* Reduced from 24px */
        }

        .social-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: #ffffff;
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
        }

        .social-btn:hover {
            background: var(--bg-panel);
            border-color: var(--border-color);
        }

        .social-btn.google {
            color: #ea4335;
        }

        .social-btn.twitch {
            color: #9146ff;
        }

        .divider {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            /* Reduced from 24px */
            color: var(--text-secondary);
            font-size: 0.8rem;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border-color);
        }

        .divider span {
            padding: 0 12px;
        }

        /* Form Styles */
        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 4px;
            /* Reduced from 8px */
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0px;
            /* Reduced from 2px */
        }

        .form-group label {
            font-size: 0.85rem;
            color: var(--text-primary);
            font-weight: 500;
        }

        .form-group input {
            width: 100%;
            padding: 8px 12px;
            /* Reduced from 10px */
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background: #ffffff;
            color: var(--text-primary);
            font-size: 0.95rem;
            transition: all 0.2s;
            box-sizing: border-box;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }

        .password-input {
            position: relative;
        }

        .toggle-password {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            cursor: pointer;
        }



        .submit-btn {
            background: var(--primary-blue);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 8px;
        }

        .submit-btn:hover {
            background: var(--primary-blue-dark);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
        }

        .submit-btn.full-width:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
        }

        @media (max-width: 768px) {
            .modal-content.split-modal {
                flex-direction: column;
                height: auto;
                max-height: 95vh;
                width: 95%;
            }

            .modal-left {
                display: none;
                /* Hide branding on mobile to save space */
            }

            .modal-right {
                padding: 24px;
            }
        }

        /* User Menu Styles */
        .user-menu {
            position: relative;
            display: inline-block;
            margin-left: 8px;
        }

        .user-menu.hidden {
            display: none;
        }

        .auth-message.success {
            background-color: rgba(22, 101, 52, 0.1);
            color: #166534;
            border: 1px solid rgba(22, 101, 52, 0.2);
        }



        .user-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--text-primary);
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            transition: all 0.2s;
            font-size: 0.9rem;
        }

        .user-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .user-dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            top: 120%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            min-width: 160px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            padding: 8px 0;
            z-index: 1001;
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        .user-dropdown-content.show {
            display: block;
            animation: fadeIn 0.2s ease;
        }

        .user-dropdown-content a {
            color: var(--text-primary);
            padding: 10px 16px;
            text-decoration: none;
            display: block;
            font-size: 0.9rem;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .user-dropdown-content a:hover {
            background-color: rgba(14, 165, 233, 0.1);
            color: #0ea5e9;
        }

        .user-dropdown-content i {
            width: 16px;
            text-align: center;
        }

        /* Navbar Redesign Styles */
        :root {
            --primary-blue: #0ea5e9;
            --primary-blue-dark: #0284c7;
        }

        .mobile-title {
            display: none;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .nav-btn-search {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 1rem;
        }

        .nav-btn-search:hover {
            background: var(--bg-panel);
            color: var(--text-primary);
            border-color: var(--accent-color);
        }

        .nav-btn-login {
            background: transparent;
            border: 1px solid var(--primary-blue);
            color: var(--primary-blue);
            padding: 8px 20px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
        }

        .nav-btn-login:hover {
            background: rgba(14, 165, 233, 0.1);
            border-color: var(--primary-blue-dark);
        }

        .nav-btn-signup {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
            border: none;
            color: white;
            padding: 8px 20px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
        }

        .nav-btn-signup:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
        }

        .forgot-password {
            color: var(--primary-blue);
            font-size: 0.85rem;
            text-decoration: none;
            margin-top: 15px;
            /* Increased from 2px */
            display: inline-block;
            font-weight: 500;
        }

        .forgot-password:hover {
            text-decoration: underline;
            color: var(--primary-blue-dark);
        }

        /* Betify Mode (White/Blue Theme, Single Column) */
        .modal-content.betify-mode {
            background-color: #ffffff;
            max-width: 450px;
            color: #1f2937;
            border: 1px solid #e5e7eb;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        .modal-content.betify-mode .modal-left {
            display: none;
        }

        .modal-content.betify-mode .modal-right {
            width: 100%;
            padding: 40px;
            background-color: transparent;
        }

        .modal-content.betify-mode h2 {
            color: #111827;
            font-size: 24px;
            margin-bottom: 12px;
            text-align: left;
        }

        .modal-content.betify-mode p {
            color: #6b7280;
            font-size: 14px;
            text-align: left;
            margin-bottom: 24px;
        }

        .modal-content.betify-mode .auth-form label {
            color: #374151;
            font-size: 13px;
        }

        .modal-content.betify-mode input {
            background-color: #ffffff;
            border: 1px solid #d1d5db;
            color: #111827;
            border-radius: 8px;
        }

        .modal-content.betify-mode input:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
            outline: none;
        }

        .modal-content.betify-mode .submit-btn {
            background-color: var(--primary-blue);
            color: #ffffff;
            font-weight: 600;
            border: none;
            margin-top: 16px;
        }

        .modal-content.betify-mode .submit-btn:hover {
            background-color: var(--primary-blue-dark);
        }

        .modal-content.betify-mode .back-to-login {
            color: var(--primary-blue);
            margin-top: 20px;
            display: inline-block;
            font-size: 14px;
            font-weight: 500;
        }

        /* Logo in Betify Mode */
        .betify-logo {
            display: none;
            width: 120px;
            margin-bottom: 24px;
        }

        .modal-content.betify-mode .betify-logo {
            display: block;
        }

        .modal-content.betify-mode #forgot-password-form {
            text-align: left;
        }

        /* End Betify Mode */

        /* Forgot Password Form */
        #forgot-password-form {
            text-align: center;
        }

        .submit-btn {
            margin-top: 0px;
            /* Reduced from 4px */
        }

        /* Auth Message Styles */
        .auth-message {
            margin-bottom: 15px;
            font-size: 0.9rem;
            text-align: center;
            /* min-height: 20px; Removed to collapse space */
            font-weight: 500;
        }

        .auth-message:empty {
            display: none;
            margin: 0;
        }

        .auth-message.error {
            color: #ef4444;
        }

        .auth-message.success {
            color: #22c55e;
        }

        /* Collapsed State (Desktop) */
        /* body.sidebar-collapsed no longer needs grid changes as map is full width overlay */

        body.sidebar-collapsed .sidebar {
            transform: translateX(-150%);
            opacity: 0;
            pointer-events: none;
        }

        body.sidebar-collapsed .desktop-sidebar-toggle {
            left: 0;
            /* Position at edge (margin handles spacing) */
            transform: translate(0, -50%);
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateY(100%);
                width: 100%;
                height: 80vh;
                bottom: 0;
                top: auto;
                border-right: none;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }

            .sidebar.mobile-visible {
                transform: translateY(0);
            }

            .nav-menu {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .desktop-title {
                display: none;
            }

            .mobile-title {
                display: block;
            }

            .btn-text {
                display: none;
            }

            .nav-btn-modelling {
                padding: 8px !important;
                /* Reduce padding when icon-only */
            }

            .desktop-sidebar-toggle {
                display: none;
            }
        }

        /* Page Loader */
        .loader-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #ffffff;
            z-index: 9999;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .loader-overlay.visible {
            opacity: 1;
        }

        .loader-spinner {
            position: relative;
            width: 48px;
            height: 48px;
            background: #0ea5e9;
            transform: rotateX(65deg) rotate(45deg);
            color: #0ea5e9;
            /* Changed from #fff to make shadow visible on white bg */
            animation: layers1 1s linear infinite alternate;
            margin-bottom: 40px;
            /* Increased margin for the new loader size/perspective */
            border: none;
            /* Remove previous border */
            border-radius: 0;
            /* Remove previous radius */
        }

        .loader-spinner:after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(14, 165, 233, 0.5);
            /* Changed to semi-transparent #0ea5e9 */
            animation: layerTr 1s linear infinite alternate;
        }

        @keyframes layers1 {
            0% {
                box-shadow: 0px 0px 0 0px
            }

            90%,
            100% {
                box-shadow: 20px 20px 0 -4px
            }
        }

        @keyframes layerTr {
            0% {
                transform: translate(0, 0) scale(1)
            }

            100% {
                transform: translate(-25px, -25px) scale(1)
            }
        }

        .loader-text {
            font-size: 1.2rem;
            color: #000000;
            font-weight: 600;
            transition: all 0.5s ease;
            text-align: center;
            padding: 0 20px;
            max-width: 90%;
        }

        .loader-text.welcome {
            font-size: 1.5rem;
            color: #000000;
            transform: scale(1.1);
        }

        /* Fix for contact modal darkness */
        #contact-modal .modal-left::after {
            background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
        }

        /* Mobile Optimization Overrides */
        @media (max-width: 768px) {

            /* Fix Footer Stats Layout */
            /* Fix Footer Stats Layout */
            .footer-stats {
                left: 16px !important;
                right: 16px !important;
                bottom: 24px !important;
                width: auto !important;
                padding: 12px;
                display: flex;
                flex-direction: column;
                gap: 12px;
                height: auto;
                overflow: visible !important;
                /* Allow toggle/basemap to stick out */
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }

            .footer-stats.collapsed {
                transform: translateY(calc(100% + 40px)) !important;
            }

            .footer-content {
                display: flex;
                flex-direction: column;
                gap: 12px;
                max-height: 40vh;
                /* Scroll content, not container */
                overflow-y: auto;
            }

            .footer-row {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
                width: 100%;
                margin-bottom: 0;
            }

            .footer-stat {
                margin: 0;
                text-align: center;
                padding: 4px;
                background: rgba(255, 255, 255, 0.5);
                border-radius: 8px;
            }

            .footer-stat-label {
                font-size: 0.65rem;
                margin-bottom: 2px;
            }

            .footer-stat-value {
                font-size: 0.85rem;
            }

            /* Fix Basemap Switcher */
            .basemap-switcher {
                position: absolute;
                /* bottom inherited from default */
                /* Stack above the toggle button */
                left: 0;
                right: 0;
                width: 100%;
                margin-bottom: 0;
                overflow-x: auto;
                white-space: nowrap;
                justify-content: flex-start;
                padding: 8px;
                gap: 8px;
                box-sizing: border-box;
                -webkit-overflow-scrolling: touch;
                /* Hide scrollbar */
                scrollbar-width: none;
                -ms-overflow-style: none;
            }

            .basemap-switcher::-webkit-scrollbar {
                display: none;
            }

            .basemap-option {
                flex: 0 0 auto;
                font-size: 0.75rem;
                padding: 6px 10px;
                background: white;
                border: 1px solid var(--border-color);
            }

            /* Adjust Toggle Button */
            .footer-toggle {
                right: 0;
                top: -40px;
                z-index: 2000;
                /* Ensure it's above basemap switcher */
                background: white;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            }

            /* Ensure Map Height */
            #map {
                height: calc(100vh - 64px);
            }

            /* Show Login on Mobile */
            .nav-menu {
                display: flex !important;
                align-items: center;
            }

            .nav-btn-signup {
                display: none !important;
                /* Hide Subscribe to save space */
            }

            .nav-btn-login {
                padding: 6px 12px;
                font-size: 0.85rem;
            }
        }
    