        /* ===================================
           CSS VARIABLES & THEME
           =================================== */
        :root {
            --bg-primary: #ffffff;
            --bg-secondary: #f0f0f0;
            --bg-hover: #e0e0e0;
            --text-primary: #000000;
            --border-color: #000000;
            --border-light: #ddd;
            --highlight-color: #FFD700;
        }
        
        body.dark-mode {
            --bg-primary: #1a1a1a;
            --bg-secondary: #2a2a2a;
            --bg-hover: #3a3a3a;
            --text-primary: #ffffff;
            --border-color: #ffffff;
            --border-light: #444;
            --highlight-color: #FFD700;
        }
        
        /* ===================================
           BASE LAYOUT
           =================================== */
        body { 
            margin: 0; 
            padding: 0; 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            transition: background-color 0.3s, color 0.3s;
        }

        /* Map Container */
        #map {
            touch-action: manipulation;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-primary);
            transition: left 0.3s, background-color 0.3s;
            cursor: default;
            z-index: 1;
        }

        /* MapLibre custom styling */
        div.maplibregl-map {
            font-family: Helvetica, Arial, sans-serif;
            font-weight: 700;
            font-style: normal;
            font-size: 12px;
            line-height: 30px;
            cursor: default;
            pointer-events: auto;
        }

        /* MapLibre canvas - ensure default cursor */
        .maplibregl-canvas {
            cursor: default !important;
            pointer-events: auto;
        }

        /* Ensure MapLibre controls don't block our buttons */
        .maplibregl-control-container {
            pointer-events: none;
        }

        .maplibregl-control-container > * {
            pointer-events: auto;
        }
        
        /* ===================================
           SIDEBAR
           =================================== */
        #sidebar {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 200px;
            background: var(--bg-primary);
            color: var(--text-primary);
            z-index: 100;
            pointer-events: auto;
            border-right: none;
            overflow-y: auto;
            padding: 20px;
            box-sizing: border-box;
            transition: transform 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
        }

        #sidebar.hidden {
            transform: translateX(-100%);
        }

        #sidebar h2 {
            margin: 0 0 20px 0;
            font-size: 20px;
            font-weight: bold;
            text-transform: uppercase;
            color: var(--text-primary);
        }

        /* Borough Sections */
        .borough-section {
            margin-bottom: 10px;
        }

        .borough-header {
            display: block;
            margin: 0;
            padding: 10px 15px;
            background: var(--bg-secondary);
            border: none;
            cursor: pointer;
            pointer-events: auto;
            font-weight: bold;
            font-size: 12px;
            line-height: 1.2;
            font-family: Helvetica, monospace;
            user-select: none;
            transition: background-color 0.3s, border-color 0.3s;
            color: var(--text-primary);
            width: 100%;
            text-align: left;
            text-transform: uppercase;
            -webkit-tap-highlight-color: transparent;
            box-sizing: border-box;
        }

        .borough-header:hover {
            background: var(--bg-hover);
        }

        .borough-header::before {
            content: '';
            display: inline-block;
            width: 5px;
            height: 5px;
            border-right: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: rotate(-45deg);
            transition: transform 0.2s;
            margin-right: 10px;
            vertical-align: middle;
            position: relative;
            top: -1px;
        }

        .borough-header.expanded::before {
            transform: rotate(45deg);
            top: 1px;
        }

        /* Borough Neighborhoods List */
        .borough-neighborhoods {
            display: none;
            background: var(--bg-primary);
            transition: background-color 0.3s, border-color 0.3s;
        }

        .borough-neighborhoods.expanded {
            display: block;
        }

        .neighborhood-item {
            display: block;
            width: 100%;
            box-sizing: border-box;
            text-align: left;
            background: transparent;
            border: none;
            font-family: inherit;
            pointer-events: auto;
            padding: 8px;
            padding-left: 20px;
            margin: 0;
            cursor: pointer;
            transition: all 0.2s, border-color 0.3s;
            font-size: 10px;
            text-transform: uppercase;
            color: var(--text-primary);
        }

        .neighborhood-item:hover {
            background: var(--highlight-color);
            color: #000;
        }

        /* Sidebar Buttons */
        #about-toggle,
        #random-neighborhood {
            width: 100%;
            background: var(--bg-secondary);
            border: none;
            color: var(--text-primary);
            padding: 12px 15px;
            cursor: pointer;
            font-size: 12px;
            font-family: Helvetica, monospace;
            text-transform: uppercase;
            margin-bottom: 10px;
            pointer-events: auto;
            transition: background-color 0.3s;
            font-weight: bold;
            text-align: left;
            box-sizing: border-box;
        }

        /* Search */
        #neighborhood-search {
            width: 100%;
            padding: 10px 15px;
            background: var(--bg-secondary);
            border: none;
            color: var(--text-primary);
            font-size: 12px;
            font-family: Helvetica, monospace;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            outline: none;
            box-sizing: border-box;
            margin-bottom: 10px;
            transition: background-color 0.3s, color 0.3s;
            pointer-events: auto;
        }

        #neighborhood-search::placeholder {
            color: var(--text-primary);
            opacity: 0.4;
        }

        #neighborhood-search:focus {
            background: var(--bg-hover);
        }

        #search-results {
            display: none;
        }

        .search-result-item {
            padding: 8px 8px 8px 20px;
            cursor: pointer;
            font-size: 10px;
            text-transform: uppercase;
            color: var(--text-primary);
            transition: background-color 0.2s;
        }

        .search-result-item:hover {
            background: var(--highlight-color);
            color: #000;
        }

        .search-result-snippet {
            font-size: 9px;
            font-weight: normal;
            text-transform: none;
            opacity: 0.6;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .search-result-item:hover .search-result-snippet {
            opacity: 0.75;
        }

        #search-no-results {
            padding: 10px 15px;
            font-size: 10px;
            opacity: 0.5;
            text-transform: uppercase;
            font-family: Helvetica, monospace;
        }

        #about-toggle:hover,
        #random-neighborhood:hover {
            background: var(--bg-hover);
        }

        #random-neighborhood:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        #random-neighborhood:disabled:hover {
            background: var(--bg-secondary);
        }

        #about-toggle {
            display: none; /* Show only on mobile */
        }

        /* Intro Text */
        #intro-text {
            position: relative;
            margin-bottom: 20px;
            font-size: 10px;
            line-height: 1.4;
            overflow: hidden;
            transition: max-height 0.3s ease, margin-bottom 0.3s ease;
            pointer-events: auto;
            color: var(--text-primary);
        }

        #intro-text-close:hover {
            opacity: 1;
        }

        #intro-text.collapsed {
            max-height: 0;
            margin-bottom: 0;
        }

        #intro-text p a {
            color: var(--text-primary);
            text-decoration: none;
            background-color: var(--highlight-color);
            padding: 2px 4px;
        }
        
        /* ===================================
           CONTROL BUTTONS
           =================================== */
        #toggle-sidebar {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 10001;
            background: transparent;
            border: none;
            color: var(--text-primary);
            padding: 0;
            cursor: pointer;
            font-size: 14px;
            text-transform: uppercase;
            transition: left 0.3s, opacity 0.3s;
            pointer-events: auto;
        }

        #toggle-sidebar.sidebar-visible {
            left: 220px;
        }

        #toggle-sidebar:hover {
            opacity: 0.7;
        }

        #toggle-dark-mode {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10001;
            background: transparent;
            border: none;
            color: var(--text-primary);
            padding: 10px 15px;
            cursor: pointer;
            font-size: 14px;
            text-align: left;
            text-transform: uppercase;
            transition: opacity 0.3s;
            pointer-events: auto;
        }

        #toggle-dark-mode:hover {
            opacity: 0.7;
        }


        #subscribe-btn {
            position: fixed;
            top: 20px;
            right: 90px;
            z-index: 10001;
            background: transparent;
            border: none;
            color: var(--text-primary);
            padding: 10px 15px;
            cursor: pointer;
            font-size: 14px;
            font-family: inherit;
            text-transform: uppercase;
            text-decoration: none;
            letter-spacing: inherit;
            transition: opacity 0.3s;
            pointer-events: auto;
        }

        #subscribe-btn:hover {
            opacity: 0.7;
        }
        
        /* ===================================
           AUDIO PLAYER
           =================================== */
        #audio-player {
            position: absolute;
            top: 70px;
            left: 170px;
            width: 260px;
            background: rgba(255, 255, 255, 0.75);
            padding: 15px;
            border-radius: 0;
            border: none;
            z-index: 1000;
            display: none;
            opacity: 1;
            transition: left 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.25s ease;
        }

        body.dark-mode #audio-player {
            background: rgba(26, 26, 26, 0.75);
            color: var(--text-primary);
        }

        #audio-player.sidebar-hidden {
            left: 20px;
        }

        #audio-player.hidden {
            opacity: 0;
            pointer-events: none;
        }

        #neighborhood-name {
            margin: 0 0 8px 0;
            font-size: 15px;
            font-weight: bold;
            font-family: Helvetica, Arial, sans-serif;
            line-height: 1.2;
            text-transform: uppercase;
            color: var(--text-primary);
        }

        #neighborhood-description {
            margin: 0 0 12px 0;
            font-size: 12px;
            line-height: 1.4;
            color: var(--text-primary);
            font-family: Helvetica, monospace;
        }

        body.dark-mode #neighborhood-description {
            color: #cccccc;
        }

        audio {
            width: 100%;
        }

        #substack-link {
            display: block;
            margin-top: 10px;
            font-size: 12px;
            color: inherit;
            text-decoration: underline;
        }

        #substack-link:hover {
            opacity: 0.7;
        }

        #subscribe-link {
            display: block;
            margin-top: 8px;
            font-size: 11px;
            color: inherit;
            text-decoration: none;
            opacity: 0.5;
            letter-spacing: 0.3px;
        }

        #subscribe-link:hover {
            opacity: 1;
            text-decoration: underline;
        }

        #audio-player-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
            pointer-events: auto;
            color: var(--text-primary);
            opacity: 0.65;
            transition: opacity 0.2s, transform 0.15s;
            z-index: 10001;
        }

        #audio-player-close:hover {
            opacity: 1;
            transform: scale(1.15);
        }

        /* ===================================
           MIXER MODE
           =================================== */
        #toggle-mixer {
            width: 100%;
            background: var(--bg-secondary);
            border: none;
            color: var(--text-primary);
            padding: 12px 15px;
            cursor: pointer;
            font-size: 12px;
            font-family: Helvetica, monospace;
            text-transform: uppercase;
            margin-bottom: 10px;
            pointer-events: auto;
            transition: background-color 0.3s;
            font-weight: bold;
            text-align: left;
            box-sizing: border-box;
        }

        #toggle-mixer:hover {
            background: var(--bg-hover);
        }

        #toggle-mixer.active {
            background: var(--highlight-color);
            color: #000;
        }

        /* Mixer Panel - Hidden Drawer */
        #mixer-panel {
            position: fixed;
            bottom: 0;
            right: -350px;
            width: 350px;
            height: 100vh;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-left: 1px solid var(--border-light);
            z-index: 2000;
            overflow-y: auto;
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
            box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        }

        #mixer-panel.open {
            right: 0;
        }

        body.dark-mode #mixer-panel {
            background: rgba(26, 26, 26, 0.95);
            color: var(--text-primary);
            border-left-color: var(--border-light);
        }

        /* Mixer Toggle Button */
        #mixer-toggle-tab {
            position: absolute;
            left: -50px;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 80px;
            padding: 0;
            margin: 0;
            font: inherit;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid var(--border-light);
            border-right: none;
            border-radius: 8px 0 0 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s, left 0.3s;
            z-index: 1;
        }

        body.dark-mode #mixer-toggle-tab {
            background: rgba(26, 26, 26, 0.95);
            border-color: var(--border-light);
        }

        #mixer-toggle-tab:hover {
            background: var(--bg-hover);
        }

        #mixer-toggle-tab svg {
            width: 24px;
            height: 24px;
            fill: var(--text-primary);
        }

        #mixer-panel h3 {
            margin: 0 0 15px 0;
            font-size: 16px;
            font-weight: bold;
            text-transform: uppercase;
            color: var(--text-primary);
        }

        .mixer-track {
            margin-bottom: 25px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.03);
            border-radius: 8px;
            position: relative;
        }

        body.dark-mode .mixer-track {
            background: rgba(255, 255, 255, 0.03);
        }

        .mixer-track:last-child {
            margin-bottom: 0;
        }

        .mixer-track-name {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 15px;
            text-transform: uppercase;
            display: flex;
            justify-content: space-between;
            color: var(--text-primary);
            align-items: center;
            letter-spacing: 0.5px;
        }

        .mixer-track-remove {
            background: transparent;
            border: none;
            color: var(--text-primary);
            cursor: pointer;
            font-size: 18px;
            padding: 4px;
            opacity: 0.5;
            transition: opacity 0.2s, transform 0.2s;
        }

        .mixer-track-remove:hover {
            opacity: 1;
            transform: scale(1.1);
        }

        /* Circular Knob Controls */
        .mixer-track-controls {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-top: 15px;
        }

        .mixer-knob-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .mixer-knob {
            position: relative;
            width: 60px;
            height: 60px;
            cursor: pointer;
        }

        .mixer-knob-label {
            font-size: 9px;
            text-transform: uppercase;
            opacity: 0.7;
            letter-spacing: 0.5px;
            text-align: center;
            color: var(--text-primary);
        }

        .mixer-knob-value {
            font-size: 11px;
            font-weight: bold;
            text-align: center;
            color: var(--text-primary);
        }

        /* Knob glow effect */
        .mixer-knob circle.knob-glow {
            filter: blur(3px);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .mixer-knob.active circle.knob-glow {
            opacity: 0.6;
        }

        /* Mixer Header */
        .mixer-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-light);
            position: sticky;
            top: 0;
            background: inherit;
            backdrop-filter: blur(10px);
            z-index: 10;
        }

        .mixer-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .mixer-tracks-container {
            padding: 20px;
        }

        /* Enhanced Visualizer */
        .mixer-visualizer {
            width: 100%;
            height: 50px;
            margin-top: 15px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 4px;
            display: flex;
            align-items: flex-end;
            gap: 1px;
            padding: 4px;
            box-sizing: border-box;
            overflow: hidden;
        }

        body.dark-mode .mixer-visualizer {
            background: rgba(255, 255, 255, 0.05);
        }

        .mixer-visualizer-bar {
            flex: 1;
            background: linear-gradient(to top, #4A90E2, var(--highlight-color), #FF6B6B);
            border-radius: 2px;
            transition: height 0.05s ease-out;
            min-height: 2px;
            box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
        }

        .mixer-clear-all {
            width: 100%;
            background: var(--bg-secondary);
            border: none;
            color: var(--text-primary);
            padding: 10px;
            cursor: pointer;
            font-size: 12px;
            font-family: Helvetica, monospace;
            text-transform: uppercase;
            margin-top: 10px;
            transition: background-color 0.3s;
        }

        .mixer-clear-all:hover {
            background: var(--bg-hover);
        }

        #mixer-close:hover {
            background: var(--bg-hover);
        }


          /* MOBILE RESPONSIVE =================================== */
@media (max-width: 768px) {

    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    #map {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 1000;
    }

    /* ── Header: unified 44px masthead strip ───────── */
    #toggle-sidebar,
    #toggle-dark-mode {
        position: fixed;
        top: 0;
        height: 44px;
        display: flex;
        align-items: center;
        padding: 0 18px;
        font-size: 10px;
        font-weight: 400;
        letter-spacing: 1.8px;
        text-transform: uppercase;
        font-family: Helvetica, monospace;
        background: transparent;
        color: var(--text-primary);
        border: none;
        border-radius: 0;
        z-index: 3000;
        cursor: pointer;
        text-decoration: none;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }

    #toggle-sidebar {
        left: 0;
        font-size: 18px;
        letter-spacing: 0;
    }

    #toggle-dark-mode {
        right: 0;
        font-size: 18px;
        letter-spacing: 0;
        padding: 0 16px;
    }

    #subscribe-btn { display: none; }

    /* ── Sidebar: catalog drawer ────────────────────── */
    #sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100dvh;
        padding: 0;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.65);
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
        z-index: 2500;
        box-shadow: none;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
    }

    body.dark-mode #sidebar {
        background: rgba(12, 12, 12, 0.65);
    }

    #sidebar.mobile-open {
        transform: translateX(0);
    }

    #sidebar h2               { order: 1; }
    #neighborhood-list        { order: 2; }
    #about-toggle             { order: 3; }
    #intro-text               { order: 4; }
    #neighborhood-search      { order: 5; }
    #search-results           { order: 6; }
    #random-neighborhood      { order: 7; }
    #toggle-mixer             { order: 8; }


    /* Masthead — sits below the 44px header strip */
    #sidebar h2 {
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 4px;
        text-transform: uppercase;
        font-family: Helvetica, monospace;
        margin: 0;
        padding: 54px 20px 20px 20px;
        color: var(--text-primary);
        line-height: 1;
    }

    /* ── Search ─────────────────────────────────────── */
    #neighborhood-search {
        display: block;
        width: 100%;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-family: Helvetica, monospace;
        padding: 16px 20px;
        margin: 0;
        background: transparent;
        border: none;
        color: var(--text-primary);
        box-sizing: border-box;
        outline: none;
        -webkit-appearance: none;
    }

    #neighborhood-search::placeholder {
        color: var(--text-primary);
        opacity: 0.25;
    }

    /* ── Action buttons: About / Shuffle / Remixer ─── */
    #about-toggle,
    #random-neighborhood,
    #toggle-mixer {
        display: block;
        width: 100%;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-family: Helvetica, monospace;
        padding: 16px 20px;
        margin: 0;
        background: transparent;
        border: none;
        color: var(--text-primary);
        text-align: left;
        cursor: pointer;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    #about-toggle:active,
    #random-neighborhood:active,
    #toggle-mixer:active {
        background: var(--highlight-color);
        color: #000;
    }

    #toggle-mixer.active {
        color: var(--highlight-color);
        background: transparent;
    }

    /* ── About / intro text ─────────────────────────── */
    #intro-text {
        max-height: 0;
        overflow: hidden;
        margin: 0;
        transition: max-height 0.3s ease;
    }

    #intro-text:not(.collapsed) {
        max-height: 600px;
        border-bottom: 1px solid var(--border-light);
    }

    #intro-text p {
        font-size: 11px;
        line-height: 1.65;
        color: var(--text-primary);
        margin: 0;
        padding: 14px 20px;
        border-bottom: 1px solid var(--border-light);
    }

    #intro-text p:last-child {
        border-bottom: none;
    }

    /* ── Borough sections ───────────────────────────── */
    .borough-section {
        margin: 0;
    }

    .borough-header {
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 16px 20px;
        background: transparent !important;
        border: none;
        border-radius: 0;
        color: var(--text-primary);
        width: 100%;
        text-align: left;
        cursor: pointer;
        font-family: Helvetica, monospace;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }

    .borough-header:active {
        background: var(--highlight-color) !important;
        color: #000 !important;
    }

    .borough-header::before {
        background: transparent;
        top: -1px;
    }

    .borough-neighborhoods {
        margin: 0;
        overflow: hidden;
        border: none;
        background: transparent !important;
    }

    body.dark-mode .borough-neighborhoods {
        background: transparent !important;
    }

    /* Neighborhood names — indented, same type system */
    .neighborhood-item {
        font-size: 11px;
        font-weight: 300;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        padding: 13px 20px 13px 40px;
        background: transparent;
        border-bottom: none;
        color: var(--text-primary);
        font-family: Helvetica, monospace;
        -webkit-tap-highlight-color: transparent;
    }

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

    .neighborhood-item:active {
        background: var(--highlight-color);
        color: #000;
    }

    /* ── Search results ─────────────────────────────── */
    .search-result-item {
        padding: 13px 20px;
        font-size: 10px;
        letter-spacing: 1px;
        border-bottom: 1px solid var(--border-light);
    }

    .search-result-snippet {
        font-size: 9px;
        margin-top: 4px;
        letter-spacing: 0;
        text-transform: none;
        font-weight: normal;
        opacity: 0.5;
    }

    /* ── Audio player ───────────────────────────────── */
    #audio-player {
        position: fixed;
        top: auto;
        bottom: 0; left: 0;
        width: 100%;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.72);
        padding: 16px 20px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
        border-top: 3px solid var(--highlight-color);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
        z-index: 4000;
        box-sizing: border-box;
        border-radius: 0;
    }

    body.dark-mode #audio-player {
        background: rgba(12, 12, 12, 0.78);
    }

    #neighborhood-name {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-family: Helvetica, monospace;
        margin-bottom: 6px;
        padding-right: 44px;
        line-height: 1.3;
        color: var(--text-primary);
    }

    #neighborhood-description {
        font-size: 11px;
        line-height: 1.55;
        margin-bottom: 10px;
        color: var(--text-primary);
        opacity: 0.6;
        font-family: Helvetica, monospace;
    }

    audio {
        border-radius: 0;
    }

    #substack-link {
        font-size: 10px;
        font-weight: 400;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-family: Helvetica, monospace;
        margin-top: 10px;
        color: var(--text-primary);
        text-decoration: none;
        display: block;
    }

    #audio-player-close {
        position: absolute;
        top: 14px;
        right: 16px;
        width: 30px;
        height: 30px;
        font-size: 14px;
        cursor: pointer;
        background: transparent;
        border: 1px solid var(--border-light);
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        opacity: 0.45;
        -webkit-tap-highlight-color: transparent;
    }

    #audio-player-close:active {
        opacity: 1;
        background: var(--highlight-color);
        border-color: var(--highlight-color);
        color: #000;
    }

    /* ── Map controls: Labels + Borders ────────────── */
    #map-controls {
        display: flex;
        order: 9;
    }

    #toggle-labels,
    #toggle-borders {
        flex: 1;
        font-size: 10px;
        font-weight: 400;
        letter-spacing: 1.8px;
        text-transform: uppercase;
        font-family: Helvetica, monospace;
        padding: 14px 20px;
        margin: 0;
        background: transparent;
        border: none;
        color: var(--text-primary);
        opacity: 0.35;
        cursor: pointer;
        text-align: left;
        box-sizing: border-box;
        transition: opacity 0.2s, color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    #toggle-labels.active,
    #toggle-borders.active {
        opacity: 1;
        color: var(--highlight-color);
    }

    #toggle-labels:active,
    #toggle-borders:active {
        opacity: 1;
    }

    /* ── Mobile intro overlay ───────────────────────── */
    #mobile-intro {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100dvh;
        background: #000;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px 32px 56px;
        box-sizing: border-box;
        opacity: 1;
        transition: opacity 0.5s ease;
        cursor: pointer;
    }

    #mobile-intro.dismissed {
        opacity: 0;
        pointer-events: none;
    }

    #mobile-intro-title {
        font-family: Helvetica, monospace;
        font-size: 11px;
        font-weight: 400;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: #FFD700;
        margin: 0 0 32px;
    }

    #mobile-intro-text {
        font-family: Helvetica, monospace;
        font-size: 16px;
        font-weight: 300;
        line-height: 1.65;
        color: #fff;
        margin: 0 0 56px;
        letter-spacing: 0.1px;
    }

    #mobile-intro-cta {
        font-family: Helvetica, monospace;
        font-size: 9px;
        font-weight: 400;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.3);
    }
}

        /* ===================================
           ACCESSIBILITY: FOCUS STYLES
           =================================== */
        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        [tabindex]:focus-visible {
            outline: 2px solid var(--highlight-color);
            outline-offset: 2px;
        }

        #neighborhood-search:focus-visible {
            outline: 2px solid var(--highlight-color);
            outline-offset: -2px;
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* ===================================
           MAP LOADING / ERROR STATES
           =================================== */
        #map-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 5;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            font-family: Helvetica, monospace;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-primary);
            pointer-events: none;
        }

        #map-loading-spinner {
            width: 28px;
            height: 28px;
            border: 3px solid var(--border-light);
            border-top-color: var(--highlight-color);
            border-radius: 50%;
            animation: map-spin 0.8s linear infinite;
        }

        @keyframes map-spin {
            to { transform: rotate(360deg); }
        }

        #map-loading.hidden {
            display: none;
        }

        #map-error {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 5;
            max-width: 320px;
            text-align: center;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            padding: 20px;
            font-family: Helvetica, monospace;
            font-size: 13px;
            color: var(--text-primary);
        }

        #map-error-retry {
            margin-top: 12px;
            background: var(--bg-secondary);
            border: none;
            color: var(--text-primary);
            padding: 8px 16px;
            cursor: pointer;
            font-size: 12px;
            font-family: Helvetica, monospace;
            text-transform: uppercase;
            font-weight: bold;
        }

        #map-error-retry:hover {
            background: var(--bg-hover);
        }

        /* ===================================
           ANALYTICS CONSENT BANNER
           =================================== */
        #analytics-consent {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10001;
            background: var(--bg-primary);
            color: var(--text-primary);
            border-top: 1px solid var(--border-color);
            padding: 14px 16px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-family: Helvetica, monospace;
            font-size: 12px;
        }

        #analytics-consent.hidden {
            display: none;
        }

        #analytics-consent button {
            background: var(--bg-secondary);
            border: none;
            color: var(--text-primary);
            padding: 8px 16px;
            cursor: pointer;
            font-size: 12px;
            font-family: Helvetica, monospace;
            text-transform: uppercase;
            font-weight: bold;
        }

        #analytics-consent button:hover {
            background: var(--bg-hover);
        }

        #analytics-consent-accept {
            background: var(--highlight-color) !important;
            color: #000 !important;
        }
