        * {
            box-sizing: border-box;
        }

        html {
            height: 100%;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow: hidden;
            height: var(--app-height, 100dvh);
            min-height: 0;
            display: flex;
            flex-direction: column;
            background: #f7f5f1;
        }

        /* Android native WebView fallback:
           move inset into header so status bar area stays brand blue */
        body.native-android {
            padding-top: 0;
            --native-top-safe: max(env(safe-area-inset-top, 0px), 24px);
            --native-bottom-safe: max(env(safe-area-inset-bottom, 0px), 10px);
            --native-left-safe: max(env(safe-area-inset-left, 0px), 0px);
            --native-right-safe: max(env(safe-area-inset-right, 0px), 0px);
        }

        @media (orientation: landscape) and (max-height: 600px) {
            body.native-android {
                --landscape-notch-mask: 62px;
                --landscape-notch-shift-left: 0px;
                --landscape-notch-shift-right: 0px;
            }

            body.native-android.landscape-notch-right {
                --landscape-notch-shift-right: var(--landscape-notch-mask);
            }

            body.native-android.landscape-notch-left {
                --landscape-notch-shift-left: var(--landscape-notch-mask);
            }

            body.native-android.landscape-notch-right::after,
            body.native-android.landscape-notch-left::before {
                content: "";
                position: fixed;
                top: 0;
                bottom: 0;
                width: var(--landscape-notch-mask);
                background: #000000;
                pointer-events: none;
                z-index: 2001;
            }

            body.native-android.landscape-notch-right::after {
                right: 0;
            }

            body.native-android.landscape-notch-left::before {
                left: 0;
            }

            body.native-android :is(#app-header, #top-tools, #container) {
                margin-left: var(--landscape-notch-shift-left);
                margin-right: var(--landscape-notch-shift-right);
            }

            body.native-android :is(#menu-backdrop, #sheet-backdrop, .fullscreen-panel, #detail-modal, .intro-overlay, #bottom-tabs) {
                left: var(--landscape-notch-shift-left);
                right: var(--landscape-notch-shift-right);
            }

            body.native-android #menu-drawer {
                left: auto;
                right: var(--landscape-notch-shift-right);
            }
        }

        body.native-android #app-header {
            padding-top: calc(16px + var(--native-top-safe));
        }


        .intro-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1200;
            padding: 20px;
        }

        .intro-overlay.hidden {
            display: none;
        }

        .intro-card {
            background: #f5deff;
            border-radius: 22px;
            padding: 22px 20px 18px;
            width: min(360px, 92vw);
            box-shadow: 0 12px 40px rgba(0,0,0,0.2);
            text-align: center;
            position: relative;
        }

        .intro-close {
            position: absolute;
            right: 14px;
            top: 12px;
            border: none;
            background: #ffffff;
            color: #3b3834;
            border-radius: 999px;
            width: 30px;
            height: 30px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
        }

        .intro-icon {
            width: 54px;
            height: 54px;
            margin: 2px auto 12px;
            display: block;
        }

        .intro-wordmark {
            height: 29px;
            width: auto;
            display: block;
            margin: -6px auto 18px;
        }

        .intro-slide h2 {
            margin: 0 0 6px;
            font-size: 18px;
            font-weight: 700;
            color: #2d3588;
        }

        .intro-slide p {
            margin: 0 0 14px;
            font-size: 14px;
            color: #2d3588;
            line-height: 1.5;
        }

        .intro-slides {
            min-height: 158px;
        }

        .intro-slide {
            display: none;
        }

        .intro-slide.active {
            display: block;
        }

        .intro-dots {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 6px 0 10px;
        }

        .intro-dot {
            width: 9px;
            height: 9px;
            border: none;
            border-radius: 50%;
            background: rgba(45, 53, 136, 0.25);
            padding: 0;
            cursor: pointer;
        }

        .intro-dot.active {
            background: #2d3588;
        }

        .intro-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .intro-nav {
            border: 1px solid rgba(45, 53, 136, 0.28);
            border-radius: 999px;
            background: #ffffff;
            color: #2d3588;
            font-size: 13px;
            font-weight: 700;
            padding: 8px 14px;
            cursor: pointer;
            min-width: 92px;
        }

        .intro-nav.intro-nav-primary {
            border-color: #2d3588;
            background: #2d3588;
            color: #ffffff;
        }

        .intro-nav:disabled {
            opacity: 0.35;
            cursor: default;
        }

        .intro-checkbox {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 13px;
            color: #2d3588;
        }

        body.detail-open {
            background: #ffffff;
            overscroll-behavior: none;
        }

        #container {
            display: flex;
            flex: 1;
            min-height: 0;
        }

        #app-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            padding: 16px 20px;
            background: #1E52BA;
            position: relative;
        }

        #brand {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 0 auto;
        }

        #brand-logo-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            padding: 0;
        }

        #brand-logo {
            display: block;
            height: 24px;
            width: auto;
        }

        #app-title {
            margin: 0;
            font-size: 18px;
            font-weight: 700;
            color: white;
            display: none;
        }

        #menu-toggle {
            border: none;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 8px 10px;
            border-radius: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 16px;
            font-weight: 700;
            position: absolute;
            right: 16px;
        }

        body.native-ios #menu-toggle {
            right: calc(16px + env(safe-area-inset-right, 0px));
        }

        #menu-toggle svg {
            width: 20px;
            height: 20px;
        }

        #menu-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.3);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            z-index: 1004;
        }

        #menu-backdrop.visible {
            opacity: 1;
            pointer-events: auto;
        }

        #menu-drawer {
            position: fixed;
            top: 0;
            right: 0;
            width: min(300px, 84vw);
            height: 100%;
            background: #f5deff;
            box-shadow: -8px 0 24px rgba(0,0,0,0.15);
            transform: translateX(100%);
            transition: transform 0.25s ease;
            z-index: 1005;
            display: flex;
            flex-direction: column;
            padding: 18px;
            gap: 16px;
        }

        body.native-android #menu-drawer {
            padding-top: calc(26px + var(--native-top-safe));
            padding-bottom: calc(22px + var(--native-bottom-safe));
        }

        #menu-drawer.open {
            transform: translateX(0);
        }

        #menu-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            position: relative;
        }

        .menu-brand {
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: center;
        }

        .menu-logo {
            height: 72px;
            width: auto;
            display: block;
        }

        #menu-close {
            border: none;
            background: #ffffff;
            color: #2d3588;
            padding: 6px 10px;
            border-radius: 999px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 800;
            line-height: 1;
            position: absolute;
            right: 0;
        }

        .menu-button {
            width: 100%;
            border: none;
            background: #ffffff;
            border-radius: 999px;
            padding: 10px 14px;
            font-size: 14px;
            font-weight: 600;
            color: #2d3588;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .menu-section-title {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #2d3588;
            margin: 0;
        }

        .menu-footer {
            margin-top: auto;
            padding-top: 6px;
        }

        body.native-android .menu-footer {
            padding-bottom: 12px;
        }

        .menu-link {
            border: none;
            background: transparent;
            color: #2d3588;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: underline;
            padding: 6px 2px;
            text-align: left;
        }

        /* Keep the full menu reachable on short landscape phone heights */
        @media (orientation: landscape) and (max-height: 600px) {
            #menu-drawer {
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                padding-top: 12px;
                padding-bottom: 12px;
                padding-left: 12px;
                padding-right: 12px;
                gap: 10px;
            }

            #menu-header {
                min-height: 56px;
            }

            #menu-close {
                right: 0;
            }

            .menu-logo {
                height: 52px;
            }

            .menu-footer {
                margin-top: 8px;
                padding-top: 2px;
            }
        }

        .hidden {
            display: none;
        }

        #language-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px;
            border-radius: 999px;
            background: #ffffff;
            width: fit-content;
            align-self: flex-start;
        }

        #language-toggle button {
            border: none;
            background: transparent;
            padding: 7px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            color: #2d3588;
            cursor: pointer;
        }

        #language-toggle button.active {
            background: #1E52BA;
            color: #ffffff;
        }

        .fullscreen-panel {
            position: fixed;
            inset: 0;
            background: #ffffff;
            z-index: 1006;
            display: flex;
            flex-direction: column;
            transform: translateY(100%);
            transition: transform 0.25s ease;
        }

        /* Keep the Android status-bar region visually consistent (blue) on white panels. */
        body.native-android .fullscreen-panel {
            background:
                linear-gradient(
                    to bottom,
                    #1E52BA 0,
                    #1E52BA var(--native-top-safe),
                    #ffffff var(--native-top-safe),
                    #ffffff 100%
                );
        }

        .fullscreen-panel.open {
            transform: translateY(0);
        }

        .fullscreen-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 18px;
            border-bottom: 1px solid #eee;
            background: #ffffff;
        }

        body.native-android .fullscreen-header {
            padding-top: calc(16px + var(--native-top-safe));
        }

        .suggest-header {
            justify-content: center;
            position: relative;
            background: transparent;
            border-bottom: none;
        }

        .suggest-header-logo {
            height: 56px;
            width: auto;
            display: block;
        }

        .suggest-title {
            margin: 2px 0 6px;
            font-size: 18px;
            font-weight: 700;
            color: #1c1b19;
            text-align: center;
        }

        .fullscreen-title {
            margin: 0;
            font-size: 18px;
            font-weight: 700;
            color: #1c1b19;
            text-align: center;
        }

        .fullscreen-close {
            border: none;
            background: #f0ebe4;
            color: #3b3834;
            padding: 6px 12px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 700;
        }

        .suggest-header .fullscreen-close {
            position: absolute;
            right: 18px;
            top: 12px;
            border-radius: 999px;
            padding: 6px 10px;
            font-size: 16px;
            line-height: 1;
        }

        body.native-ios .suggest-header .fullscreen-close {
            right: calc(18px + env(safe-area-inset-right, 0px));
        }

        body.native-android .suggest-header .fullscreen-close {
            top: calc(12px + var(--native-top-safe));
        }

        .fullscreen-body {
            padding: 14px 18px 16px;
            overflow-y: auto;
            flex: 1;
            min-height: 0;
            font-size: 15px;
            line-height: 1.6;
        }

        body.native-ios .fullscreen-header {
            position: sticky;
            top: 0;
            z-index: 3;
            background: #ffffff;
        }

        body.native-ios .suggest-header {
            background: #ffffff;
        }

        body.native-ios .fullscreen-body {
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        .help-panel-block {
            border-radius: 14px;
            border: 1px solid #e7e4dd;
            background: #faf9f7;
            padding: 12px 14px;
            margin-bottom: 12px;
        }

        .help-panel-block h3 {
            margin: 0 0 6px;
            font-size: 15px;
            color: #2d3588;
            font-weight: 700;
        }

        .help-panel-block ol,
        .help-panel-block ul {
            margin: 0;
            padding-left: 18px;
            color: #3b3834;
            font-size: 14px;
            line-height: 1.45;
        }

        .suggest-tagline {
            margin: 0 0 12px;
            font-size: 13px;
            line-height: 1.5;
            color: #6f6b65;
            text-align: center;
        }

        .suggest-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .suggest-option {
            border: 2px solid rgba(59,56,52,0.12);
            background: #ffffff;
            border-radius: 18px;
            padding: 12px 14px;
            display: flex;
            align-items: center;
            gap: 14px;
            text-align: left;
            cursor: pointer;
            font-size: 14px;
            font-weight: 700;
            color: #1c1b19;
        }

        .suggest-option.active {
            border-color: #1E52BA;
            box-shadow: 0 0 0 2px rgba(30,82,186,0.12);
        }

        .suggest-illustration {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: #ffffff;
            border: 1px solid #e6e1da;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .suggest-emoji {
            font-size: 28px;
            line-height: 1;
        }

        .suggest-icon {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 12px;
        }

        .suggest-label {
            display: block;
        }

        .suggest-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 12px;
        }

        .suggest-form label {
            font-size: 12px;
            font-weight: 600;
            color: #4c4a45;
        }

        .suggest-form input,
        .suggest-form textarea {
            width: 100%;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid #e6e1da;
            font-size: 14px;
        }

        .suggest-form textarea {
            min-height: 80px;
            resize: vertical;
        }

        .suggest-checkbox {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: #3b3834;
            cursor: pointer;
            margin-right: auto;
            margin-bottom: 8px;
        }

        .suggest-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin: 0;
            flex-shrink: 0;
        }

        .suggest-checkbox span {
            white-space: nowrap;
        }

        .form-status {
            min-height: 48px;
            padding: 12px 14px;
            border-radius: 14px;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.4;
            text-align: center;
            color: #1E52BA;
            background: rgba(30, 82, 186, 0.08);
            border: 1px solid rgba(30, 82, 186, 0.16);
            opacity: 0;
            transform: translateY(4px);
            transition: opacity 0.2s ease, transform 0.2s ease;
            pointer-events: none;
        }

        .form-status.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .form-status.is-pending {
            color: #3b3834;
            background: #f5f0e8;
            border-color: #e6ddd1;
        }

        .form-status.is-success {
            color: #1E52BA;
            background: rgba(30, 82, 186, 0.08);
            border-color: rgba(30, 82, 186, 0.18);
        }

        .form-status.is-error {
            color: #a23b2a;
            background: rgba(162, 59, 42, 0.08);
            border-color: rgba(162, 59, 42, 0.18);
        }

        .suggest-submit {
            border: none;
            background: #1E52BA;
            color: #ffffff;
            border-radius: 14px;
            padding: 10px 14px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
        }

        .about-cta {
            margin-top: 10px;
            width: 100%;
        }

        .about-section-title {
            margin: 18px 0 6px;
            font-size: 18px;
            font-weight: 700;
            color: #1c1b19;
        }

        .about-section-spacer {
            margin-top: 28px;
        }

        .about-cta.suggest-submit {
            background: #f0ebe4;
            color: #3b3834;
        }

        .about-socials {
            display: flex;
            flex-wrap: nowrap;
            gap: 10px;
            margin: 10px 0 18px;
            overflow-x: auto;
            padding-bottom: 4px;
        }

        .about-socials .detail-icon-btn {
            flex: 1 1 0;
            justify-content: center;
            min-width: 0;
        }

        .about-logo {
            height: 28px;
            width: auto;
            display: block;
            margin: 4px auto 12px;
        }


        #sheet-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1005;
        }

        #sheet-backdrop.visible {
            display: block;
        }

        #drag-handle {
            display: none;
            width: 40px;
            height: 5px;
            background: #ccc;
            border-radius: 3px;
            margin: 8px auto 4px;
        }

        @media (max-width: 768px), (orientation: landscape) and (max-height: 600px) {
            #drag-handle {
                display: block;
            }
        }

        #sidebar {
            width: 350px;
            background: #1E52BA;
            box-shadow: 2px 0 8px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            z-index: 1001;
            transition: transform 0.3s ease;
            padding-bottom: 72px;
        }

        #sidebar.collapsed {
            transform: translateX(-350px);
        }

        #sidebar-header {
            padding: 20px;
            background: #1E52BA;
            color: white;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

#sidebar-header h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    text-align: center;
}

        .language-toggle {
            display: none;
        }

        #search-container {
            display: none;
        }

#sidebar-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 12px;
    justify-content: center;
}

        #search-input {
            width: 100%;
            padding: 12px 40px 12px 15px;
            border: none;
            border-radius: 25px;
            font-size: 14px;
            outline: none;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }

        #search-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #1E52BA;
        }

        #search-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            margin-top: 8px;
            max-height: 200px;
            overflow-y: auto;
            display: none;
            z-index: 1000;
        }

        #search-dropdown.show {
            display: block;
        }

        .search-dropdown-item {
            padding: 12px 15px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            font-size: 13px;
        }

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

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

        .search-dropdown-item strong {
            color: #1E52BA;
        }

        #favorites-tabs {
            display: flex;
            gap: 8px;
        }

        .tab-button {
            flex: 1;
            border: none;
            border-radius: 18px;
            padding: 8px 10px;
            font-size: 13px;
            cursor: pointer;
            background: rgba(255,255,255,0.2);
            color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: background 0.2s ease;
        }

        .tab-button.active {
            background: white;
            color: #1E52BA;
            font-weight: 600;
        }

        .tab-badge {
            background: #BA1E1E;
            color: white;
            border-radius: 12px;
            padding: 2px 6px;
            font-size: 11px;
            min-width: 18px;
            text-align: center;
        }

        #filters-container {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            color: #ffffff;
            text-align: center;
        }

        .filter-category {
            margin-bottom: 25px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.25);
            padding: 12px;
            background: rgba(255,255,255,0.08);
        }

        .filter-category h3 {
            margin: 0 0 12px 0;
            font-size: 14px;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
        }

        .filter-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
        }

        .filter-button {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 16px;
            background: rgba(255,255,255,0.18);
            border: 2px solid rgba(255,255,255,0.2);
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            color: #ffffff;
            transition: all 0.2s;
            user-select: none;
            min-width: 150px;
            justify-content: center;
        }

        .filter-button svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            flex-shrink: 0;
        }

        .filter-button.wide {
            min-width: 190px;
        }

        .filter-button:hover {
            background: rgba(255,255,255,0.28);
            border-color: rgba(255,255,255,0.35);
        }

        .filter-button.active {
            background: #ffffff;
            border-color: #ffffff;
            color: #1E52BA;
        }

        .filter-button .count {
            font-size: 11px;
            background: rgba(255,255,255,0.2);
            padding: 2px 6px;
            border-radius: 10px;
        }

        .filter-button.active .count {
            background: rgba(30, 82, 186, 0.1);
            color: #1E52BA;
        }

        #active-filters {
            padding: 15px 20px;
            border-top: 1px solid rgba(255,255,255,0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #ffffff;
            gap: 10px;
            position: sticky;
            bottom: 0;
            background: #1E52BA;
        }

        #reset-filters,
        #apply-filters {
            flex: 1;
            background: rgba(255,255,255,0.15);
            border: 1px solid rgba(255,255,255,0.4);
            color: #ffffff;
            padding: 10px 12px;
            border-radius: 18px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 700;
            transition: all 0.2s;
        }

        #apply-filters {
            background: #ffffff;
            color: #1E52BA;
            border-color: #ffffff;
        }

        #reset-filters:hover {
            background: rgba(255,255,255,0.25);
        }

        #apply-filters:hover {
            opacity: 0.9;
        }

        #map {
            flex: 1;
            width: 100%;
            min-height: 0;
        }

        #main-view {
            position: relative;
            flex: 1;
            min-height: 0;
            background: #f7f5f1;
            overflow: hidden;
        }

        .view-panel {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .view-panel.hidden {
            display: none;
        }

        #list-view {
            overflow-y: auto;
            padding: 16px 16px 270px;
        }

        .venue-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .venue-card {
            background: #ffffff;
            border-radius: 16px;
            border: 1px solid #ebe7e0;
            padding: 14px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
            display: flex;
            flex-direction: column;
            gap: 10px;
            cursor: pointer;
        }

        .venue-card-image {
            width: 100%;
            height: 150px;
            border-radius: 12px;
            object-fit: cover;
            background: #f0ebe4;
        }

        .venue-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .venue-card-title {
            margin: 0;
            font-size: 16px;
            font-weight: 700;
            color: #1c1b19;
        }

        .venue-card-meta {
            font-size: 12px;
            color: #6f6b65;
            font-weight: 600;
        }

        .venue-card-address {
            font-size: 12px;
            color: #7b7873;
        }

        .venue-card-description {
            font-size: 13px;
            color: #3b3834;
        }

        .venue-card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .venue-card-tag {
            padding: 4px 8px;
            border-radius: 999px;
            background: #f0ebe4;
            font-size: 11px;
            color: #4c4a45;
        }

        .venue-card-favorite {
            border: 1px solid #d8d4cd;
            background: #ffffff;
            border-radius: 999px;
            padding: 6px 10px;
            font-size: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .venue-card-favorite.active {
            background: #1E52BA;
            border-color: #1E52BA;
            color: #ffffff;
        }

        .favorite-icon {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            flex-shrink: 0;
        }

        .favorite-icon.filled {
            fill: currentColor;
        }

        .list-empty {
            padding: 40px 20px;
            text-align: center;
            color: #66625d;
        }

        #bottom-tabs {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: calc(64px + env(safe-area-inset-bottom, 0px));
            padding-bottom: env(safe-area-inset-bottom, 0px);
            background: #ffffff;
            border-top: 1px solid #e3ded6;
            display: flex;
            align-items: center;
            justify-content: space-around;
            z-index: 1002;
        }

        .bottom-tab-button {
            border: none;
            background: transparent;
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 600;
            color: #4c4a45;
            cursor: pointer;
        }

        .bottom-tab-icon {
            width: 20px;
            height: 20px;
            display: inline-block;
            flex-shrink: 0;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            visibility: visible;
            opacity: 1;
        }

        .bottom-tab-button.active {
            color: #1E52BA;
        }

        .bottom-tab-badge {
            background: #BA1E1E;
            color: #ffffff;
            border-radius: 999px;
            padding: 2px 6px;
            font-size: 10px;
            min-width: 18px;
            text-align: center;
        }

        /* Full-screen venue profile view */
        #detail-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.28);
            display: none;
            align-items: flex-end;
            justify-content: center;
            z-index: 1010;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        body.native-android #detail-modal {
            padding-top: var(--native-top-safe);
        }

        #detail-modal.active {
            display: flex;
            opacity: 1;
        }

        #detail-modal.entering {
            display: flex;
        }

        .detail-modal-card {
            position: relative;
            width: 100%;
            height: var(--app-height, 100dvh);
            background: #ffffff;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border-radius: 18px 18px 0 0;
            transform: translateY(var(--detail-sheet-offset, 38%));
            transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
            will-change: transform;
        }

        body.native-android .detail-modal-card {
            height: calc(var(--app-height, 100dvh) - var(--native-top-safe));
        }

        .detail-modal-card.closing {
            transform: translateY(100%) !important;
        }

        .detail-modal-card.snap-half {
            --detail-sheet-offset: 46%;
        }

        .detail-modal-card.snap-full {
            --detail-sheet-offset: 0%;
        }

        .detail-sheet-grabber {
            position: absolute;
            top: 8px;
            left: 0;
            right: 0;
            z-index: 30;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 10px 0 8px;
            background: transparent;
            pointer-events: auto;
        }

        .detail-sheet-handle {
            width: 38px;
            height: 4px;
            border-radius: 999px;
            background: #ffffff;
        }

        .detail-peek-title {
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            z-index: 31;
            margin: 0;
            padding: 0 72px;
            text-align: center;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.25;
            color: rgba(255, 255, 255, 0.96);
            text-shadow: 0 1px 2px rgba(0,0,0,0.45);
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-8px);
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        body.native-ios .detail-modal-card.snap-half .detail-peek-title {
            opacity: 1;
            transform: translateY(0);
        }

        #detail-modal-content {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }

        /* Detail close button */
        .detail-close-button {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.5);
            border: none;
            cursor: pointer;
            z-index: 40;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        body.native-ios .detail-close-button {
            top: 16px;
            right: calc(16px + env(safe-area-inset-right, 0px));
        }

        .detail-close-button:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        .detail-close-button svg {
            width: 20px;
            height: 20px;
            stroke: white;
            stroke-width: 2.5;
            fill: none;
        }

        /* Hero image section */
        .detail-hero {
            position: relative;
            width: 100%;
            height: 45vh;
            min-height: 280px;
            max-height: 420px;
            flex-shrink: 0;
            background: #f0ebe4;
            transition: height 0.24s ease, min-height 0.24s ease, max-height 0.24s ease;
        }

        .detail-modal-card.snap-half .detail-hero {
            height: 33vh;
            min-height: 210px;
            max-height: 290px;
        }

        .detail-modal-card.snap-full .detail-hero {
            height: 45vh;
            min-height: 280px;
            max-height: 420px;
        }

        .detail-hero .venue-slider {
            position: absolute;
            inset: 0;
            margin: 0;
            border-radius: 0;
            overflow: hidden;
        }

        .detail-hero .slider-container {
            height: 100%;
        }

        .detail-hero .venue-slider img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .detail-hero .slider-arrow {
            display: none;
        }

        .detail-hero .slider-dots {
            bottom: 96px;
            z-index: 10;
            pointer-events: none;
        }

        .detail-hero .slider-dot {
            width: 8px;
            height: 8px;
        }

        /* Gradient overlay for text */
        .detail-hero-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 60px 20px 40px;
            background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 12px;
            z-index: 2;
            pointer-events: none;
        }

        body.native-ios .detail-modal-card.snap-half .detail-hero-overlay {
            padding-top: 90px;
            padding-bottom: 30px;
        }

        .detail-hero-info {
            flex: 1;
            min-width: 0;
            transition: opacity 0.2s ease;
        }

        body.native-ios .detail-modal-card.snap-half .detail-hero-info {
            opacity: 0;
        }

        .detail-hero-name {
            margin: 0 0 4px;
            font-size: 24px;
            font-weight: 700;
            color: white;
            text-shadow: 0 1px 4px rgba(0,0,0,0.3);
            line-height: 1.2;
        }

        .detail-hero-address {
            margin: 0;
            font-size: 14px;
            color: rgba(255,255,255,0.9);
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }

        /* Favorite heart button on hero */
        .detail-favorite-btn {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255,255,255,0.95);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            color: #888;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            pointer-events: auto;
        }

        .detail-favorite-btn .favorite-icon {
            width: 20px;
            height: 20px;
        }

        .detail-favorite-btn:hover {
            transform: scale(1.1);
        }

        .detail-favorite-btn.active {
            color: #1E52BA;
        }

        /* Content section below image */
        .detail-content {
            flex: 1;
            overflow: visible;
            padding: 20px 20px 260px;
            background: #ffffff;
            border-radius: 24px 24px 0 0;
            position: relative;
            z-index: 1;
            margin-top: -24px;
            min-height: 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        }

        body.native-android .detail-content {
            z-index: 3;
        }

        body.native-ios .detail-content {
            z-index: 3;
        }

        body.native-ios .detail-modal-card.snap-half .detail-content {
            margin-top: -16px;
        }

        .detail-content::after {
            content: "";
            display: block;
            height: calc(44px + env(safe-area-inset-bottom));
            background: #ffffff;
        }

        .detail-modal-card.snap-full .detail-content {
            padding-bottom: 130px;
        }

        .detail-modal-card.snap-full .detail-content::after {
            height: calc(22px + env(safe-area-inset-bottom));
        }

        .detail-section {
            margin-bottom: 20px;
        }

        .detail-section:last-child {
            margin-bottom: 0;
        }

        /* Contact info links */
        .detail-contact-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .detail-contact-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            background: #f8f9fa;
            border-radius: 12px;
            text-decoration: none;
            color: #333;
            font-size: 14px;
            transition: background 0.2s;
        }

        .detail-contact-item:hover {
            background: #f0f1f3;
        }

        .detail-contact-icon {
            flex-shrink: 0;
            width: 20px;
            text-align: center;
            font-size: 16px;
        }

        .detail-contact-text {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .detail-contact-item.clickable {
            color: #1E52BA;
            cursor: pointer;
        }

        .detail-contact-item.clickable:hover {
            background: #e8f0fe;
        }

        .detail-contact-arrow {
            color: #999;
            font-size: 14px;
        }

        /* Description */
        .detail-description {
            font-size: 15px;
            line-height: 1.6;
            color: #333;
        }

        /* Info rows (hours, specialty) */
        .detail-info-row {
            display: flex;
            gap: 8px;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            font-size: 14px;
        }

        .detail-info-row:last-child {
            border-bottom: none;
        }

        .detail-info-label {
            flex-shrink: 0;
            font-weight: 600;
            color: #666;
            min-width: 80px;
        }

        .detail-info-value {
            color: #333;
        }

        .detail-info-hours {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .detail-hours-line {
            display: block;
        }

        .detail-info-value.seasonal {
            color: #BA1E1E;
            font-weight: 600;
        }

        /* Icon buttons row */
        .detail-icon-buttons {
            display: flex;
            justify-content: center;
            gap: 24px;
            padding: 20px 0 8px;
        }

        .detail-icon-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            -webkit-tap-highlight-color: transparent;
        }

        .detail-icon-btn .icon-circle {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .detail-icon-btn:hover .icon-circle,
        .detail-icon-btn:active .icon-circle {
            background: #e0e0e0;
        }

        .detail-icon-btn .icon-circle svg {
            width: 22px;
            height: 22px;
            stroke: #1E52BA;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .detail-icon-btn .icon-label {
            font-size: 13px;
            color: #666;
            font-weight: 500;
        }

        /* Filter tags */
        .detail-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .detail-tag {
            display: inline-flex;
            align-items: center;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            color: white;
            background: #1E52BA;
        }

        .detail-section-title {
            margin: 0 0 12px;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #888;
        }

        /* Safe area for notched devices */
        @supports (padding-top: env(safe-area-inset-top)) {
            .detail-content {
                padding-bottom: calc(100px + env(safe-area-inset-bottom));
            }

            .detail-modal-card.snap-full .detail-content {
                padding-bottom: calc(50px + env(safe-area-inset-bottom));
            }
        }

        /* Desktop styling for detail modal */
        @media (min-width: 769px) {
            #detail-modal {
                background: rgba(0, 0, 0, 0.5);
                display: none;
                align-items: center;
                justify-content: center;
                transform: none;
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            #detail-modal.active {
                display: flex;
                opacity: 1;
            }

            #detail-modal.entering {
                display: flex;
                opacity: 0;
            }

            .detail-modal-card {
                width: min(520px, 90vw);
                max-height: 90vh;
                border-radius: 16px;
                overflow: hidden;
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
                transform: scale(0.95);
                transition: transform 0.3s ease;
            }

            #detail-modal.active .detail-modal-card {
                transform: scale(1);
            }

            .detail-sheet-grabber {
                display: none;
            }

            .detail-hero {
                height: 35vh;
                min-height: 220px;
                max-height: 320px;
            }

            .detail-close-button {
                top: 12px;
                right: 12px;
            }

            body.native-ios .detail-modal-card {
                width: min(640px, calc(100vw - 48px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
                max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
            }

            body.native-ios .detail-hero {
                height: 38vh;
                min-height: 240px;
                max-height: 360px;
            }

            body.native-ios .detail-hero-overlay {
                padding: 72px 24px 30px;
            }

            body.native-ios .detail-hero-name {
                font-size: 22px;
                line-height: 1.14;
            }

            body.native-ios .detail-hero-address {
                font-size: 14px;
                line-height: 1.4;
            }

            body.native-ios .detail-content {
                padding: 22px 22px 120px;
            }

            body.native-ios .detail-icon-buttons {
                gap: 22px;
            }

            body.native-ios .detail-icon-btn .icon-label {
                font-size: 12px;
            }
        }

        #toggle-sidebar {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 1001;
            background: white;
            border: 2px solid rgba(0,0,0,0.2);
            border-radius: 4px;
            padding: 8px 12px;
            cursor: pointer;
            font-size: 18px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            display: none;
        }

        .leaflet-popup-content h3 {
            margin-top: 0;
            color: #1E52BA;
        }

        .venue-tags {
            margin-top: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }

        .venue-tag {
            background: #e9ecef;
            padding: 5px 12px;
            border-radius: 12px;
            font-size: 13px;
            color: #495057;
        }

        /* Mobile responsive */
        @media (max-width: 768px), (orientation: landscape) and (max-height: 600px) {
            body {
                overflow: hidden;
                height: 100dvh;
            }

            #container {
                flex-direction: column;
                height: 100%;
                overflow: hidden;
                padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
                flex: 1;
                min-height: 0;
            }

            #sidebar {
                position: fixed;
                left: 0;
                right: 0;
                top: 168px;
                bottom: 0;
                width: 100%;
                max-height: none;
                transform: translateY(100%);
                box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
                border-radius: 16px 16px 0 0;
                transition: transform 0.3s ease, top 0.3s ease, border-radius 0.3s ease;
                padding-top: 12px;
                padding-bottom: 20px;
                z-index: 1006;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
            }

            #sidebar.show {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }

            #sidebar.show.expanded {
                top: max(env(safe-area-inset-top, 0px), 8px);
                border-radius: 12px 12px 0 0;
            }

            #filters-container {
                max-height: none;
                padding-top: 10px;
            }

            #active-filters {
                position: sticky;
                bottom: 0;
                background: #1E52BA;
            }

            #map {
                height: 100%;
                min-height: 0;
            }

            #main-view {
                flex: 1;
                min-height: 0;
                overflow: hidden;
            }

            #toggle-sidebar {
                display: none !important;
            }

            #app-header {
                padding: 12px 16px;
                position: relative;
                justify-content: center;
            }

            body.native-android #app-header {
                padding-top: calc(12px + var(--native-top-safe));
            }

            #app-title {
                font-size: 17px;
            }

            #brand {
                gap: 10px;
                margin: 0 auto;
                max-width: calc(100% - 88px);
                justify-content: center;
            }

            #brand-logo-wrap {
                padding: 5px 8px;
                border-radius: 10px;
            }

            #brand-logo {
                height: 28px;
                max-width: 100%;
            }

            body {
                font-size: 16px;
            }

            #top-search-input,
            #search-input {
                font-size: 15px;
            }

            .filter-category h3 {
                font-size: 15px;
            }

            .filter-button {
                font-size: 15px;
                padding: 12px 18px;
            }

            .tab-button {
                font-size: 14px;
            }

            .venue-card-title {
                font-size: 17px;
            }

            .venue-card-meta,
            .venue-card-address {
                font-size: 14px;
            }

            .venue-card-description {
                font-size: 15px;
            }

            .venue-card-tag {
                font-size: 13px;
            }

            .venue-card-favorite {
                font-size: 14px;
            }

            .bottom-tab-button {
                font-size: 15px;
            }

            .menu-button {
                font-size: 15px;
            }

            .fullscreen-body,
            .fullscreen-body p {
                font-size: 16px;
            }

            .suggest-form label {
                font-size: 14px;
            }

            .suggest-form input,
            .suggest-form textarea {
                font-size: 15px;
            }

            .suggest-submit {
                font-size: 15px;
            }

        }

        /* Custom scrollbar */
        #filters-container::-webkit-scrollbar {
            width: 6px;
        }

        #filters-container::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        #filters-container::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }

        #filters-container::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        /* Marker cluster styling */
        .marker-cluster-small,
        .marker-cluster-medium,
        .marker-cluster-large {
            background: #1E52BA;
        }

        .marker-cluster-small div,
        .marker-cluster-medium div,
        .marker-cluster-large div {
            background: #1E52BA;
            color: white;
            font-weight: bold;
        }

        .marker-cluster {
            background-clip: padding-box;
        }

        /* Image slider styles */
        .venue-slider {
            position: relative;
            width: 100%;
            margin-bottom: 10px;
            overflow: hidden;
            border-radius: 8px;
        }

        .venue-slider img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            display: block;
            flex-shrink: 0;
            flex: 0 0 100%;
            scroll-snap-align: center;
            scroll-snap-stop: always;
            background: #f5f5f5;
        }

        .slider-container {
            display: flex;
            width: auto;
            min-width: 100%;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: auto;
            touch-action: pan-x;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
        }

        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            cursor: pointer;
            font-size: 16px;
            z-index: 10;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .slider-arrow:hover {
            background: white;
        }

        .slider-arrow.prev {
            left: 5px;
        }

        .slider-arrow.next {
            right: 5px;
        }

        .slider-dots {
            text-align: center;
            padding: 5px 0;
            position: absolute;
            bottom: 5px;
            width: 100%;
        }

        .slider-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            margin: 0 3px;
        }

.slider-dot.active {
    background: white;
}

.custom-popup .slider-dots {
    bottom: 6px;
}

        /* Popup sizing */
        .custom-popup .leaflet-popup-content-wrapper {
            max-width: 340px;
            width: clamp(260px, 70vw, 340px);
            padding: 0;
            overflow: hidden;
        }

        .custom-popup .leaflet-popup-content {
            margin: 0;
            max-height: 360px;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .custom-popup .leaflet-popup-close-button {
            font-size: 22px;
            width: 32px;
            height: 32px;
            line-height: 32px;
        }

        /* Hide Leaflet attribution on map (shown in About page instead) */
        .leaflet-control-attribution {
            display: none !important;
        }

        .map-attribution {
            margin-top: 80px;
            font-size: 11px;
            color: #9aa0ad;
            text-align: center;
            opacity: 0.9;
        }

        .fullscreen-body .map-attribution {
            font-size: 11px !important;
            line-height: 1.35;
        }

        .map-attribution a {
            color: #1E52BA;
        }

        /* Leaflet zoom and location controls */
        .leaflet-control-zoom {
            margin-bottom: 10px !important;
            margin-right: 10px !important;
        }

        .leaflet-control-zoom a {
            width: 36px !important;
            height: 36px !important;
            line-height: 36px !important;
            font-size: 20px !important;
        }

        .locate-control {
            margin-bottom: 10px;
        }

        .locate-button {
            width: 36px;
            height: 36px;
            border: none;
            background: #ffffff;
            border-radius: 8px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .locate-button svg {
            width: 20px;
            height: 20px;
            stroke: #1E52BA;
            stroke-width: 2;
            fill: none;
        }

        .favorite-toggle {
            border: none;
            background: #f2f4fb;
            color: #1E52BA;
            border-radius: 18px;
            padding: 8px 12px;
            font-size: 14px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .favorite-toggle.active {
            background: #1E52BA;
            color: white;
        }

        .favorite-toggle .favorite-icon {
            width: 16px;
            height: 16px;
        }

        .popup-card {
            min-width: 240px;
            max-width: 300px;
            overflow: hidden;
            padding: 0 10px 10px;
        }

        .popup-card .venue-slider {
            margin: 0 -10px 10px;
            border-radius: 0;
        }

        .popup-slider-handle {
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 34px;
            height: 4px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.95);
            z-index: 12;
            pointer-events: none;
        }

        .popup-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin: 0 0 8px 0;
        }

        .popup-title {
            margin: 0;
            font-size: 16px;
            cursor: pointer;
        }

.popup-address {
    margin: 4px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

        .popup-address a {
            color: #1E52BA;
            text-decoration: none;
        }

        .popup-desc {
            margin: 6px 0 8px;
            font-size: 14px;
            color: #3b3834;
        }

.popup-hours {
    margin: 4px 0 2px;
    font-size: 14px;
    color: #5a5752;
}

.popup-seasonal {
    margin: 2px 0 6px;
    font-size: 14px;
    color: #BA1E1E;
    font-weight: 600;
}

.popup-icon svg {
    width: 16px;
    height: 16px;
    stroke: #1E52BA;
    stroke-width: 2;
}

        .popup-cta {
            width: 100%;
            margin-top: 12px;
            padding: 10px 16px;
            background: #1E52BA;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

        .location-permission-toast {
            position: fixed;
            left: 16px;
            right: 16px;
            bottom: 20px;
            z-index: 1100;
            display: flex;
            justify-content: center;
            pointer-events: none;
        }

        .location-permission-toast.hidden {
            display: none;
        }

        .location-permission-toast-card {
            width: min(460px, 100%);
            background: #ffffff;
            border: 1px solid #e6e1da;
            border-radius: 18px;
            box-shadow: 0 14px 34px rgba(0,0,0,0.16);
            padding: 14px;
            pointer-events: auto;
        }

        .location-permission-toast-title {
            display: block;
            margin-bottom: 6px;
            font-size: 15px;
            font-weight: 700;
            color: #1c1b19;
        }

        .location-permission-toast-body {
            margin: 0;
            font-size: 14px;
            line-height: 1.5;
            color: #5a5752;
        }

        .location-permission-toast-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 12px;
        }

        .location-permission-toast-btn {
            border: none;
            border-radius: 999px;
            padding: 9px 14px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }

        .location-permission-toast-btn.secondary {
            background: #eef1f8;
            color: #2d3588;
        }

        .location-permission-toast-btn.primary {
            background: #1E52BA;
            color: #ffffff;
        }

        /* Top Search Bar - Always visible */
        #top-tools {
            display: block;
        }

        #top-search-bar {
            background: white;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        #top-search-container {
            flex: 1;
            max-width: 600px;
            position: relative;
        }

        #top-search-input {
            width: 100%;
            padding: 14px 48px 14px 20px;
            border: 1px solid #e0e0e0;
            border-radius: 28px;
            font-size: 15px;
            background: #f8f9fa;
            color: #333;
            outline: none;
            transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
        }

#top-search-input:focus {
    background: #f8f9fa;
    border-color: #2d3588;
    box-shadow: 0 0 0 2px rgba(45, 53, 136, 0.25);
}

        #top-search-input:focus-visible {
            outline: none;
        }

        #top-search-input::placeholder {
            color: #888;
        }


        #top-search-icon {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #1E52BA;
            pointer-events: none;
        }

        #top-search-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: white;
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
            max-height: 280px;
            overflow-y: auto;
            display: none;
            z-index: 1010;
        }

        #top-search-dropdown.show {
            display: block;
        }

        .top-search-dropdown-item {
            padding: 14px 18px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            font-size: 14px;
            color: #333;
        }

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

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

        .top-search-dropdown-item strong {
            color: #1E52BA;
        }

        .top-search-dropdown-item .city-label {
            color: #888;
            font-size: 13px;
        }

        /* Quick filter pills row */
        #quick-filters-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: white;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        #quick-filters-row::-webkit-scrollbar {
            display: none;
        }

        .quick-filter-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: #f0f0f0;
            border: none;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            color: #444;
            cursor: pointer;
            white-space: nowrap;
            flex-shrink: 0;
            transition: background 0.2s, color 0.2s;
        }

        .quick-filter-pill:hover {
            background: #e5e5e5;
        }

        .quick-filter-pill.active {
            background: #1E52BA;
            color: white;
        }

        .quick-filter-pill svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

        .quick-filter-heart {
            width: 18px;
            height: 18px;
            stroke: currentColor;
        }

        .quick-filter-pill.active svg {
            stroke: white;
        }

        /* Hide sidebar search on mobile since top bar is primary */
        @media (max-width: 768px) {
            #search-container {
                display: none;
            }

            #top-search-bar {
                padding: 10px 16px;
            }

            #top-search-input {
                padding: 12px 44px 12px 16px;
                font-size: 15px;
            }

            #quick-filters-row {
                padding: 8px 16px;
            }

            .quick-filter-pill {
                padding: 10px 16px;
                font-size: 15px;
            }

            .location-permission-toast {
                left: 12px;
                right: 12px;
                bottom: calc(78px + env(safe-area-inset-bottom, 0px));
            }

            .location-permission-toast-card {
                border-radius: 16px;
                padding: 13px;
            }

            .location-permission-toast-actions {
                justify-content: stretch;
            }

            .location-permission-toast-btn {
                flex: 1;
                font-size: 14px;
            }
        }

        @media (max-width: 768px) {
            body.native-ios .detail-modal-card.snap-half .detail-hero .slider-dots {
                display: none;
            }

            body.native-ios .detail-modal-card.snap-full .detail-hero .slider-dots {
                bottom: 124px;
            }

            body.native-ios .detail-modal-card.snap-full .detail-hero-overlay {
                padding: 74px 18px 28px;
                gap: 10px;
            }

            body.native-ios .detail-modal-card.snap-full .detail-hero-name {
                font-size: 20px;
                line-height: 1.12;
            }

            body.native-ios .detail-modal-card.snap-full .detail-hero-address {
                font-size: 13px;
                line-height: 1.35;
            }

            body.native-ios .detail-content {
                padding: 18px 18px 260px;
            }

            body.native-ios .detail-description {
                font-size: 13.5px;
                line-height: 1.58;
            }

            body.native-ios .detail-info-row,
            body.native-ios .detail-info-label,
            body.native-ios .detail-info-value {
                font-size: 13px;
                line-height: 1.4;
            }

            body.native-ios .detail-icon-buttons {
                gap: 20px;
                padding-top: 18px;
            }

            body.native-ios .detail-icon-btn .icon-circle {
                width: 50px;
                height: 50px;
            }

            body.native-ios .detail-icon-btn .icon-label {
                font-size: 11.5px;
            }
        }

        /* Phone landscape: put search + filters on one row to free vertical map space */
        @media (orientation: landscape) and (max-height: 600px) {
            #top-tools {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 8px 12px;
                background: #ffffff;
                box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            }

            #menu-toggle {
                right: 12px;
            }

            body.native-ios #menu-toggle {
                right: calc(16px + env(safe-area-inset-right, 0px));
            }

            #top-search-bar {
                flex: 0 0 42%;
                min-width: 220px;
                max-width: 360px;
                padding: 0;
                box-shadow: none;
                background: transparent;
            }

            #top-search-container {
                max-width: none;
            }

            #top-search-input {
                padding: 10px 40px 10px 14px;
                font-size: 14px;
                border-radius: 18px;
            }

            #quick-filters-row {
                flex: 1;
                min-width: 0;
                padding: 0;
                background: transparent;
                overflow-x: auto;
            }

            .quick-filter-pill {
                padding: 7px 12px;
                font-size: 13px;
                border-radius: 16px;
            }

            .leaflet-right .leaflet-control {
                margin-right: 10px !important;
            }

            .leaflet-left .leaflet-control {
                margin-left: 10px !important;
            }

            #list-view {
                padding: 12px 14px 110px;
            }

            .venue-list {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
                max-width: 980px;
                margin: 0 auto;
            }

            .venue-card-image {
                height: 132px;
            }
        }
