:root {
            --th-yellow: #ffcf1c;
            --th-blue: #55C3E5;
            --th-red: #FF3B30;
            --th-dark: #1C1C1E;
            --th-gray: #2C2C2E;
            --th-light-gray: #E5E5EA;
            --safe-bottom: env(safe-area-inset-bottom, 0px);
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        body,
        html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            background-color: #f1ebd8;
            font-family: 'Inter', sans-serif;
            overflow: hidden;
            -webkit-tap-highlight-color: transparent;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            touch-action: manipulation;
        }

        .mobile-app {
            width: 100%;
            height: 100%;
            background: #fff;
            position: relative;
            overflow: hidden;
        }

        /* ── HEADER ── */
        .top-header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px 20px 15px;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            transition: transform 0.3s ease;
        }

        .top-header.hidden {
            transform: translateY(-100%);
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .logo-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 20px;
            font-weight: 800;
            color: #000;
            letter-spacing: -1px;
            text-decoration: none;
            cursor: pointer;
        }
        
        .logo-title:visited {
            color: #000;
        }
        
        .logo-title:hover {
            opacity: 0.8;
        }

        .results-counter {
            font-size: 12px;
            color: #888;
            font-weight: 500;
        }

        .results-counter span {
            color: var(--th-dark);
            font-weight: 700;
        }

        .search-area {
            display: flex;
            gap: 10px;
            align-items: center;
            max-width: 600px;
            margin: 0 auto;
        }

        .search-input-wrapper {
            flex-grow: 1;
            background: #f4f4f6;
            border: 1px solid transparent;
            border-radius: 14px;
            display: flex;
            align-items: center;
            padding: 4px 4px 4px 12px;
            height: 48px;
            transition: background 0.2s, border-color 0.2s;
        }
        
        .search-input-wrapper:focus-within {
            background: #fff;
            border-color: #ddd;
            box-shadow: 0 0 0 2px rgba(255, 207, 28, 0.2);
        }

        .search-icon-left {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-right: 6px;
        }
        
        .search-icon-left svg {
            width: 16px;
            height: 16px;
        }

        .search-input-wrapper input {
            border: none;
            outline: none;
            width: 100%;
            font-size: 15px;
            background: transparent;
            font-family: inherit;
            color: #1C1C1E;
        }

        .search-input-wrapper input:focus-visible {
            outline: 2px solid var(--th-yellow);
            outline-offset: 2px;
            border-radius: 4px;
        }

        .search-clear-btn {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 50%;
            background: #E5E5EA;
            flex-shrink: 0;
            margin-right: 4px;
            display: none;
        }

        .search-clear-btn.show {
            display: flex;
        }

        .search-clear-btn svg {
            width: 12px;
            height: 12px;
            stroke: #666;
        }



        /* Reset browser default button styles */
        button, [type="button"], [type="reset"], [type="submit"] {
            -webkit-appearance: none;
            appearance: none;
            background: none;
            background-color: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
            color: inherit;
            font: inherit;
            margin: 0;
            padding: 0;
            text-align: inherit;
            cursor: pointer;
        }

        .icon-btn-outline {
            background: #fff;
            border: 1.5px solid var(--th-light-gray);
            border-radius: 12px;
            width: 48px;
            height: 48px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            flex-shrink: 0;
            position: relative;
            transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
        }

        .filter-active-dot {
            width: 8px;
            height: 8px;
            background: var(--th-red);
            border-radius: 50%;
            position: absolute;
            top: 6px;
            right: 6px;
            border: 2px solid #fff;
            display: none;
        }

        .filter-active-dot.show {
            display: block;
        }



        /* ── FILTER MODAL ── */
        .filter-modal-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            backdrop-filter: blur(2px);
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .filter-modal-bg.open {
            opacity: 1;
            pointer-events: auto;
        }

        .filter-modal {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            border-radius: 24px 24px 0 0;
            padding: 20px 20px calc(30px + var(--safe-bottom));
            z-index: 2001;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
            max-height: 85vh;
            overflow-y: auto;
        }

        .filter-modal.open {
            transform: translateY(0);
        }

        .filter-modal-handle {
            width: 36px;
            height: 4px;
            background: #ddd;
            border-radius: 2px;
            margin: 0 auto 16px;
        }

        .filter-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f0f0f0;
        }

        .filter-modal-header h3 {
            margin: 0;
            font-size: 17px;
            font-weight: 700;
        }

        .filter-reset-btn {
            font-size: 13px;
            color: var(--th-red);
            font-weight: 600;
            cursor: pointer;
            padding: 4px 8px;
        }

        .filter-section-title {
            font-size: 10px;
            font-weight: 700;
            color: #aaa;
            margin: 16px 0 8px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .radio-list {
            display: flex;
            flex-direction: column;
            margin-bottom: 4px;
        }

        .radio-list label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            color: #1C1C1E;
            padding: 8px 10px;
            margin: 0 -10px;
            border-radius: 8px;
            transition: background-color 0.2s;
        }
        .radio-list label:active {
            background-color: #f5f5f5;
        }

        .radio-list input[type="radio"] {
            width: 18px;
            height: 18px;
            accent-color: var(--th-dark);
            margin: 0;
            flex-shrink: 0;
        }

        /* ── MAP ── */
        #map {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
            background: #f1ebd8;
            touch-action: pan-x pan-y;
        }

        /* Offline fallback pattern for map */
        .map-offline #map {
            background-color: #f1ebd8;
            background-image: 
                linear-gradient(45deg, #e8e0cc 25%, transparent 25%),
                linear-gradient(-45deg, #e8e0cc 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #e8e0cc 75%),
                linear-gradient(-45deg, transparent 75%, #e8e0cc 75%);
            background-size: 40px 40px;
            background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
        }

        .user-dot {
            width: 16px;
            height: 16px;
            background: var(--th-red);
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
            position: relative;
        }

        .user-dot::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: rgba(255, 59, 48, 0.4);
            animation: pulse 2s ease-out infinite;
        }

        @keyframes pulse {
            0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
            100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
        }

        .th-pin-yellow {
            width: 28px;
            height: 38px;
            background: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 54"><path d="M20 54L38.4 28.5C40 26 40 23.2 40 20C40 9 31 0 20 0C9 0 0 9 0 20C0 23.2 0.3 26 1.6 28.5L20 54Z" fill="%23ffcf1c" stroke="%23fff" stroke-width="2.5"/><circle cx="20" cy="20" r="10" fill="none" stroke="%23fff" stroke-width="2.5"/><path d="M20 13C16.1 13 13 16.1 13 20" stroke="%23fff" stroke-width="2.5" stroke-linecap="round"/></svg>') no-repeat center center;
            background-size: contain;
            filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
        }

        .th-pin-blue {
            width: 28px;
            height: 38px;
            background: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 54"><path d="M20 54L38.4 28.5C40 26 40 23.2 40 20C40 9 31 0 20 0C9 0 0 9 0 20C0 23.2 0.3 26 1.6 28.5L20 54Z" fill="%2355C3E5" stroke="%23fff" stroke-width="2.5"/><circle cx="20" cy="20" r="10" fill="none" stroke="%23fff" stroke-width="2.5"/><path d="M20 13C16.1 13 13 16.1 13 20" stroke="%23fff" stroke-width="2.5" stroke-linecap="round"/></svg>') no-repeat center center;
            background-size: contain;
            filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
        }

        /* Cluster overrides */
        .marker-cluster-small,
        .marker-cluster-medium,
        .marker-cluster-large {
            background-clip: padding-box;
            border-radius: 20px;
        }

        .marker-cluster-small {
            background: rgba(255, 207, 28, 0.3);
        }

        .marker-cluster-small div {
            background: rgba(255, 207, 28, 0.85);
            color: #1C1C1E;
            font-weight: 700;
            font-size: 12px;
        }

        .marker-cluster-medium {
            background: rgba(85, 195, 229, 0.3);
        }

        .marker-cluster-medium div {
            background: rgba(85, 195, 229, 0.85);
            color: #fff;
            font-weight: 700;
            font-size: 13px;
        }

        .marker-cluster-large {
            background: rgba(28, 28, 30, 0.2);
        }

        .marker-cluster-large div {
            background: rgba(28, 28, 30, 0.8);
            color: #fff;
            font-weight: 700;
            font-size: 14px;
        }

        .marker-cluster div {
            width: 30px;
            height: 30px;
            margin-left: 5px;
            margin-top: 5px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            font-family: 'Inter', sans-serif;
        }

        /* ── BOTTOM TRAY ── */
        .bottom-tray {
            position: absolute;
            bottom: calc(76px + var(--safe-bottom));
            left: 16px;
            right: 16px;
            max-width: 320px;
            margin: 0 auto;
            max-height: 65vh;
            background: #fff;
            border-radius: 20px;
            padding: 0;
            color: #1C1C1E;
            z-index: 1000;
            box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
            transform: translateY(150%);
            visibility: hidden;
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.35s;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .bottom-tray.open {
            transform: translateY(0);
            visibility: visible;
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0s;
        }

        .tray-photo-area {
            width: 100%;
            height: 180px;
            background: #f5f5f5;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }

        .tray-photo-area img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .tray-photo-gradient {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.15));
            pointer-events: none;
            z-index: 2;
        }

        .tray-photo-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: linear-gradient(135deg, #f8f8f8, #efefef);
        }

        .tray-photo-placeholder svg {
            width: 32px;
            height: 32px;
            stroke: #bbb;
        }

        .tray-photo-placeholder span {
            font-size: 11px;
            color: #bbb;
            font-weight: 500;
        }

        .tray-photo-shimmer {
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.4) 50%, transparent 75%);
            transform: translateX(-100%);
            animation: shimmer 1.4s infinite;
            z-index: 1;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .tray-header-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }

        .tray-type-badge {
            display: inline-block;
            background: var(--th-yellow);
            color: var(--th-dark);
            font-size: 10px;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 20px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .tray-close-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            background: rgba(0, 0, 0, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 1002;
            padding: 0;
            transition: transform 0.15s, background 0.15s;
            box-shadow: 0 1px 4px rgba(0,0,0,0.3);
        }

        .tray-close-btn:active {
            transform: scale(0.9);
            background: rgba(0, 0, 0, 0.6);
        }

        .tray-close-btn svg {
            width: 14px;
            height: 14px;
            stroke: #fff;
        }

        .tray-body {
            padding: 16px 18px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 0;
            overflow-y: auto;
        }

        .tray-name {
            font-size: 18px;
            font-weight: 700;
            color: #1C1C1E;
            margin: 0 0 6px;
            line-height: 1.3;
            letter-spacing: -0.3px;
        }

        .tray-meta {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 10px;
        }

        .tray-hours {
            font-size: 12px;
            color: #888;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .tray-hours svg {
            flex-shrink: 0;
            stroke: #aaa;
        }

        .tray-address {
            font-size: 13px;
            color: #666;
            line-height: 1.4;
            margin-top: 2px;
            margin-bottom: 10px;
        }

        .tray-contact {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            margin-bottom: 10px;
        }

        .tray-contact-item {
            font-size: 12px;
            color: #55C3E5;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            text-decoration: none;
            width: auto;
            flex-shrink: 1;
        }

        .tray-contact-item span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 180px;
        }

        .tray-contact-item:active {
            opacity: 0.7;
        }

        .tray-contact-item svg {
            flex-shrink: 0;
            stroke: #aaa;
        }

        .tray-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        }

        .badge-free {
            background: #e0f7ee;
            color: #0b6e47;
        }

        .badge-paid {
            background: #fff8e1;
            color: #b8860b;
        }

        .badge-perrefill {
            background: #fff3e0;
            color: #c25e00;
        }

        .badge-bottle {
            background: #fff8d6;
            color: #7a5f00;
        }

        .tray-actions {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-top: 4px;
        }

        .btn-dir {
            flex: 1;
            background: var(--th-yellow);
            color: var(--th-dark);
            border: none;
            border-radius: 12px;
            padding: 12px 0;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            box-shadow: 0 2px 8px rgba(255, 207, 28, 0.3);
            transition: transform 0.15s, box-shadow 0.15s;
        }

        .btn-dir:active {
            transform: scale(0.98);
            box-shadow: none;
        }

        .btn-share {
            width: 46px;
            height: 46px;
            background: #f5f5f5;
            border: none;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
        }

        .btn-share svg {
            width: 18px;
            height: 18px;
            stroke: #555;
        }

        .btn-dir:active {
            opacity: 0.85;
            transform: scale(0.98);
        }

        .btn-share:active {
            background: #eee;
        }

        /* ── HOME SCREEN ── */
        .home-screen {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #fff;
            z-index: 400;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px 25px calc(72px + var(--safe-bottom));
            text-align: center;
            overflow-y: auto;
            transform: translateX(-100%);
            transition: transform 0.3s ease-in-out;
        }

        .home-screen.open {
            transform: translateX(0);
        }

        .home-logo {
            display: block;
            text-decoration: none;
            cursor: pointer;
        }
        
        .home-logo img {
            width: 72px;
            height: 72px;
            margin-bottom: 16px;
            object-fit: contain;
            filter: drop-shadow(0 4px 12px rgba(255, 207, 28, 0.35));
        }

        .home-title {
            font-size: 28px;
            font-weight: 800;
            color: #1C1C1E;
            margin: 0 0 6px;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .home-subtitle {
            font-size: 11px;
            font-weight: 700;
            color: #aaa;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 16px;
        }

        .home-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 28px;
            max-width: 300px;
            text-align: center;
        }

        .stats-grid {
            display: flex;
            gap: 8px;
            margin-bottom: 28px;
            width: 100%;
            max-width: 380px;
        }

        .stat-box {
            background: #f8f8f8;
            padding: 14px 8px 12px;
            border-radius: 12px;
            flex: 1;
        }

        .stat-num {
            font-size: 21px;
            font-weight: 800;
            color: var(--th-dark);
            margin-bottom: 5px;
            letter-spacing: -0.5px;
        }

        .stat-lbl {
            font-size: 9px;
            text-transform: uppercase;
            color: #aaa;
            font-weight: 700;
            line-height: 1.3;
            letter-spacing: 0.4px;
        }

        .stat-num.shimmer {
            background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
            background-size: 200% 100%;
            animation: shimmer-move 1.5s infinite;
            color: transparent;
            border-radius: 4px;
            display: inline-block;
            min-width: 40px;
            min-height: 21px;
        }

        @keyframes shimmer-move {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .home-btns {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            max-width: 300px;
        }

        .btn-primary {
            background: var(--th-yellow);
            color: var(--th-dark);
            border: none;
            font-weight: 800;
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            letter-spacing: 0.8px;
            transition: transform 0.15s, box-shadow 0.15s;
            font-family: inherit;
            box-shadow: 0 2px 8px rgba(255, 207, 28, 0.3);
            text-transform: uppercase;
        }

        .btn-primary:active {
            transform: scale(0.98);
            box-shadow: none;
        }

        .btn-secondary {
            background: transparent;
            color: var(--th-dark);
            border: 1.5px solid #ddd;
            font-weight: 700;
            width: 100%;
            padding: 13px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            text-decoration: none;
            display: block;
            font-family: inherit;
            transition: border-color 0.2s, transform 0.15s, background-color 0.2s;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .btn-secondary:active {
            transform: scale(0.98);
        }

        /* Add to Home Screen banner */
        .a2hs-banner {
            display: none;
            width: 100%;
            max-width: 380px;
            margin-top: 20px;
            background: #1C1C1E;
            color: #fff;
            border-radius: 16px;
            padding: 14px 16px;
            text-align: left;
            cursor: pointer;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        }

        .a2hs-banner.show {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .a2hs-icon {
            width: 40px;
            height: 40px;
            background: var(--th-yellow);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .a2hs-icon svg {
            width: 20px;
            height: 20px;
            stroke: #1C1C1E;
        }

        .a2hs-text {
            flex: 1;
        }

        .a2hs-title {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 2px;
        }

        .a2hs-sub {
            font-size: 11px;
            color: #aaa;
        }

        .a2hs-close {
            color: #666;
            font-size: 18px;
            line-height: 1;
            cursor: pointer;
            padding: 4px;
        }

        /* ── HELP SCREEN ── */
        .help-screen {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #f9f9f9;
            z-index: 500;
            padding: 0 20px calc(72px + var(--safe-bottom));
            overflow-y: auto;
            transform: translateX(100%);
            transition: transform 0.3s ease-in-out;
        }

        .help-screen.open {
            transform: translateX(0);
        }

        .help-content-wrapper {
            max-width: 600px;
            margin: 0 auto;
        }

        .help-card {
            background: #fff;
            padding: 20px;
            border-radius: 16px;
            margin-bottom: 14px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
        }

        .help-header {
            background: #fff;
            padding: 20px;
            margin: 0 -20px 16px;
            border-bottom: 1px solid #f0f0f0;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .help-header-title {
            font-size: 17px;
            font-weight: 700;
            color: #1C1C1E;
            text-align: center;
        }

        .help-title {
            font-size: 11px;
            font-weight: 700;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin: 0 0 16px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid #f5f5f5;
        }

        .legend-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .legend-marker {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 28px;
            height: 28px;
        }

        .legend-marker.legend-user .user-dot {
            transform: scale(0.75);
        }

        .legend-marker.legend-pin {
            align-items: flex-end;
        }

        .legend-marker.legend-pin > div {
            transform: scale(0.6);
            transform-origin: center bottom;
        }

        .legend-text-wrap {
            flex: 1;
        }

        .legend-label {
            font-size: 14px;
            font-weight: 600;
            color: #1C1C1E;
        }

        .legend-desc {
            font-size: 12px;
            color: #888;
            margin-top: 1px;
        }

        .how-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid #f5f5f5;
        }

        .how-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .how-num {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--th-dark);
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .how-text strong {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #1C1C1E;
            margin-bottom: 2px;
        }

        .how-text span {
            font-size: 12px;
            color: #888;
            line-height: 1.5;
        }

        .prices-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .price-item {
            background: #f8f8f8;
            border-radius: 10px;
            padding: 10px 12px;
        }

        .price-country {
            font-size: 11px;
            font-weight: 700;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .price-amount {
            font-size: 15px;
            font-weight: 800;
            color: #1C1C1E;
            margin-top: 2px;
        }

        .help-card-secondary {
            background: #f9f9f9;
        }

        .help-card-plain {
            background: #fff;
        }

        .help-text {
            font-size: 12px;
            color: #888;
            margin: 0;
            line-height: 1.6;
        }

        .help-link {
            color: #55C3E5;
            text-decoration: underline;
        }

        .join-card {
            background: var(--th-dark);
            color: #fff;
            padding: 20px;
            border-radius: 16px;
            text-align: center;
            margin-bottom: 14px;
        }

        .join-card h3 {
            margin: 0 0 8px;
            font-size: 17px;
            font-family: inherit;
            font-weight: 700;
            letter-spacing: -0.3px;
        }

        .join-card p {
            font-size: 13px;
            color: #aaa;
            margin-bottom: 16px;
            line-height: 1.5;
        }

        .btn-join {
            background: var(--th-yellow);
            color: var(--th-dark);
            border: none;
            font-weight: 800;
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            letter-spacing: 0.4px;
            font-family: inherit;
            transition: transform 0.15s, box-shadow 0.15s;
            box-shadow: 0 2px 8px rgba(255, 207, 28, 0.3);
        }

        .btn-join:active {
            transform: scale(0.98);
            box-shadow: none;
        }

        /* ── NAV ── */
        .nav-pill {
            position: absolute;
            bottom: calc(12px + var(--safe-bottom));
            left: 16px;
            right: 16px;
            max-width: 320px;
            margin: 0 auto;
            height: 52px;
            background: rgba(30, 30, 30, 0.92);
            border-radius: 26px;
            z-index: 1001;
            display: flex;
            justify-content: space-around;
            align-items: center;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: rgba(255,255,255,0.5);
            font-size: 10px;
            font-weight: 600;
            gap: 2px;
            cursor: pointer;
            width: 56px;
            height: 40px;
            transition: color 0.2s;
            font-family: inherit;
            letter-spacing: 0.1px;
            background: transparent;
            -webkit-appearance: none;
            appearance: none;
            border: none;
            border-radius: 12px;
        }

        .nav-item.active {
            color: #fff;
            background: rgba(255,255,255,0.12);
        }

        .nav-item svg {
            width: 22px;
            height: 22px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .nav-item.active svg {
            stroke: #fff;
            stroke-width: 2.5;
        }

        /* ── MAP CONTROLS ── */
        .map-controls-container {
            position: absolute;
            bottom: calc(72px + var(--safe-bottom));
            right: 20px;
            z-index: 1101;
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: flex-end;
            transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s;
        }

        .map-controls-container.hidden {
            opacity: 0;
            pointer-events: none;
            transform: translateX(10px);
        }

        .zoom-group {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(5px);
        }

        .ctrl-btn {
            width: 42px;
            height: 42px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            background: transparent;
            transition: background 0.15s;
        }

        .ctrl-btn:active {
            background: rgba(0, 0, 0, 0.05);
        }

        .ctrl-btn svg {
            width: 20px;
            height: 20px;
            stroke: #333;
            stroke-width: 2;
            fill: none;
            stroke-linecap: round;
        }

        .gps-float {
            width: 46px;
            height: 46px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            backdrop-filter: blur(5px);
            transition: transform 0.15s;
        }

        .gps-float:active {
            transform: scale(0.9);
        }

        .gps-float svg {
            width: 22px;
            height: 22px;
            fill: currentColor;
        }



        .cache-indicator.show {
            display: flex;
        }

        .cache-indicator svg {
            width: 12px;
            height: 12px;
            stroke: #999;
            flex-shrink: 0;
        }

        /* ── TOASTS & OVERLAYS ── */
        .toast {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2500;
            padding: 12px 20px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 500;
            white-space: normal;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            display: none;
            align-items: center;
            gap: 10px;
            width: auto;
            min-width: 280px;
            max-width: 90vw;
            cursor: default;
            user-select: none;
            -webkit-user-select: none;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-align: left;
            justify-content: flex-start;
        }

        .toast.show {
            display: flex;
            animation: toastSlideDown 0.3s ease;
        }

        @keyframes toastSlideDown {
            from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }

        .toast-dark {
            background: rgba(28, 28, 30, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .toast-error {
            background: rgba(220, 53, 69, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .toast-close {
            background: none;
            border: none;
            color: inherit;
            font-size: 18px;
            font-weight: 300;
            line-height: 1;
            padding: 0 0 0 8px;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.2s;
            flex-shrink: 0;
        }

        .toast-close:hover {
            opacity: 1;
        }

        .toast svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .toast[onclick] {
            cursor: pointer;
        }

        .toast[onclick]:active {
            opacity: 0.8;
        }

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

        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 3000;
            background: rgba(255, 255, 255, 0.93);
            backdrop-filter: blur(6px);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 14px;
        }

        .loading-overlay.show {
            display: flex;
        }

        .spinner {
            width: 36px;
            height: 36px;
            border: 3px solid #E5E5EA;
            border-top-color: #1C1C1E;
            border-radius: 50%;
            animation: spin 0.75s linear infinite;
        }

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

        .loading-text {
            font-size: 14px;
            font-weight: 600;
            color: #1C1C1E;
        }

        .loading-sub {
            font-size: 12px;
            color: #aaa;
        }

        .empty-state {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 500;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(10px);
            padding: 24px 28px;
            border-radius: 16px;
            text-align: center;
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
            display: none;
        }

        .empty-state.show {
            display: block;
        }

        .empty-state-icon {
            margin-bottom: 12px;
            display: flex;
            justify-content: center;
        }

        .empty-state-icon svg {
            width: 36px;
            height: 36px;
            stroke: #ccc;
            fill: none;
        }

        .empty-state-title {
            font-size: 15px;
            font-weight: 700;
            color: #1C1C1E;
            margin-bottom: 6px;
        }

        .empty-state-sub {
            font-size: 13px;
            color: #888;
            margin-bottom: 14px;
        }

        .btn-reset-filter {
            background: var(--th-dark);
            color: #fff;
            border: none;
            padding: 10px 20px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            letter-spacing: 0.2px;
        }

        /* PWA Update Toast */
        .pwa-update-toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            background: #333;
            color: #fff;
            padding: 12px 20px;
            border-radius: 12px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            animation: slideUp 0.3s ease;
        }
        
        @keyframes slideUp {
            from { transform: translateX(-50%) translateY(20px); opacity: 0; }
            to { transform: translateX(-50%) translateY(0); opacity: 1; }
        }
        
        .pwa-update-toast button {
            background: var(--th-yellow);
            color: var(--th-dark);
            border: none;
            padding: 6px 14px;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            font-size: 13px;
            font-family: inherit;
        }