        /* ===== RESET & BASE ===== */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --primary: #4A5D23;
            --primary-light: #6B8C3E;
            --primary-dark: #3A4A1C;
            --primary-bg: #F0F4E8;
            --bg: #F9FAFB;
            --white: #FFFFFF;
            --text: #111827;
            --text-secondary: #4B5563;
            --text-light: #6B7280;
            --border: #E5E7EB;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
            --radius: 12px;
            --radius-sm: 8px;
            --star-color: #F59E0B;
            --sponsored-bg: #FFFBEB;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }

        /* ===== HOMEPAGE ===== */
        .homepage {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: linear-gradient(160deg, var(--white) 0%, var(--primary-bg) 100%);
        }

        .homepage-logo {
            font-size: 48px;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 8px;
            letter-spacing: -1px;
        }
        .homepage-logo span {
            color: #C9A227;
        }

        .homepage-tagline {
            font-size: 18px;
            color: var(--text-secondary);
            margin-bottom: 40px;
        }

        .homepage-search {
            width: 100%;
            max-width: 600px;
            position: relative;
        }

        .homepage-search input {
            width: 100%;
            padding: 18px 56px 18px 20px;
            font-size: 17px;
            border: 2px solid var(--border);
            border-radius: 16px;
            outline: none;
            background: var(--white);
            box-shadow: var(--shadow-md);
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .homepage-search input:focus {
            border-color: var(--primary);
            box-shadow: var(--shadow-lg), 0 0 0 3px rgba(74, 93, 35, 0.1);
        }

        .homepage-search input::placeholder { color: var(--text-light); }

        .homepage-search-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            width: 42px;
            height: 42px;
            border: none;
            border-radius: 12px;
            background: var(--primary);
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .homepage-search-btn:hover { background: var(--primary-dark); }

        .homepage-search-btn svg { width: 20px; height: 20px; }

        .homepage-location {
            margin-top: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .homepage-location button {
            background: none;
            border: none;
            color: var(--primary);
            font-weight: 600;
            cursor: pointer;
            font-size: 14px;
            text-decoration: underline;
        }

        .homepage-location button:hover { color: var(--primary-dark); }

        .homepage-location svg { width: 16px; height: 16px; color: var(--primary); }

        /* Category shortcuts */
        .category-shortcuts {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 32px;
            justify-content: center;
            max-width: 600px;
        }

        .category-chip {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 10px 16px;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 100px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text);
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .category-chip:hover {
            border-color: var(--primary);
            background: var(--primary-bg);
            color: var(--primary-dark);
        }

        .category-chip span.emoji { font-size: 18px; line-height: 1; }
        .category-chip .trade-icon { width: 22px; height: 22px; flex-shrink: 0; }
        .trade-icon-sm { width: 18px; height: 18px; }
        .trade-icon-lg { width: 28px; height: 28px; }
        .trade-icon-xl { width: 48px; height: 48px; }

        /* ===== RESULTS PAGE ===== */
        .results-page { display: none; min-height: 100vh; }

        /* Sticky header */
        .results-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: var(--white);
            border-bottom: 1px solid var(--border);
            padding: 12px 16px;
            box-shadow: var(--shadow-sm);
            overflow: visible;
        }
        /* Hide any Google Maps API warning/attribution elements injected into header */
        .results-header .gm-err-container,
        .results-header .gm-style,
        .results-header .gmnoprint,
        .results-header iframe[src*="google"] { display: none !important; }

        .results-header-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .results-logo {
            font-size: 22px;
            font-weight: 800;
            color: var(--primary);
            cursor: pointer;
            white-space: nowrap;
            letter-spacing: -0.5px;
        }
        .results-logo span {
            color: #C9A227;
        }

        .results-search {
            flex: 1;
            position: relative;
        }

        .results-search input {
            width: 100%;
            padding: 12px 44px 12px 16px;
            font-size: 15px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius);
            outline: none;
            background: var(--bg);
            transition: border-color 0.2s;
        }

        .results-search input:focus {
            border-color: var(--primary);
            background: var(--white);
        }

        .results-search-btn {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            width: 34px;
            height: 34px;
            border: none;
            border-radius: var(--radius-sm);
            background: var(--primary);
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .results-search-btn svg { width: 16px; height: 16px; }

        .location-search {
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--bg);
            border: 1.5px solid var(--border);
            border-radius: var(--radius);
            padding: 0 4px 0 10px;
            min-width: 180px;
            max-width: 260px;
            transition: border-color 0.2s;
        }
        .location-search:focus-within {
            border-color: var(--primary);
            background: var(--white);
        }
        .location-search input {
            flex: 1;
            border: none;
            background: transparent;
            font-size: 13px;
            padding: 9px 0;
            outline: none;
            min-width: 0;
        }
        .location-search-btn {
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 6px;
            background: var(--primary);
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .location-search-btn svg { width: 14px; height: 14px; }
        .location-search-btn:hover { background: var(--primary-dark); }

        /* Floating location autocomplete dropdown (appended to body, avoids stacking issues) */
        .location-floating-dropdown {
            display: none;
            position: fixed;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 0 0 10px 10px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.18);
            z-index: 99999;
            max-height: 260px;
            overflow-y: auto;
        }
        .location-autocomplete-item {
            padding: 12px 16px;
            cursor: pointer;
            font-size: 14px;
            color: var(--text);
            border-bottom: 1px solid var(--bg);
            display: flex;
            align-items: center;
            gap: 10px;
            transition: background 0.1s;
        }
        .location-autocomplete-item:last-child { border-bottom: none; }
        .location-autocomplete-item:hover,
        .location-autocomplete-item.active {
            background: var(--primary-bg);
            color: var(--primary);
        }
        .location-autocomplete-item svg { flex-shrink: 0; opacity: 0.5; }

        /* Filter bar */
        .filter-bar {
            position: sticky;
            top: 65px;
            z-index: 999;
            background: var(--white);
            border-bottom: 1px solid var(--border);
            padding: 10px 16px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .filter-bar::-webkit-scrollbar { display: none; }

        .filter-bar-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .filter-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .filter-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 7px 14px;
            background: var(--bg);
            border: 1.5px solid var(--border);
            border-radius: 100px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text);
            cursor: pointer;
            transition: all 0.15s;
            white-space: nowrap;
        }
        .filter-icon { display: inline-flex; align-items: center; }

        .filter-chip:hover, .filter-chip.active {
            background: var(--primary-bg);
            border-color: var(--primary);
            color: var(--primary-dark);
        }

        .filter-divider {
            width: 1px;
            height: 24px;
            background: var(--border);
            flex-shrink: 0;
        }

        /* Distance slider */
        .distance-control {
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
        }

        .distance-slider {
            -webkit-appearance: none;
            width: 120px;
            height: 6px;
            background: var(--border);
            border-radius: 3px;
            outline: none;
        }

        .distance-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            background: var(--primary);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 1px 4px rgba(0,0,0,0.2);
        }

        .distance-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: var(--primary);
            border-radius: 50%;
            cursor: pointer;
            border: none;
        }

        .distance-value {
            font-size: 13px;
            font-weight: 600;
            color: var(--primary);
            min-width: 48px;
        }

        /* Rating filter */
        .rating-filter {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .rating-star-btn {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 20px;
            padding: 2px;
            opacity: 0.3;
            transition: opacity 0.15s;
        }

        .rating-star-btn.active { opacity: 1; }
        .rating-star-btn:hover { opacity: 0.7; }

        .rating-min-label {
            font-size: 12px;
            color: var(--text-secondary);
            margin-left: 4px;
        }

        /* Main content layout */
        .results-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            gap: 0;
            min-height: calc(100vh - 130px);
        }

        /* Map section */
        .map-section {
            width: 50%;
            position: sticky;
            top: 130px;
            height: calc(100vh - 130px);
        }

        #map {
            width: 100%;
            height: 100%;
        }

        .map-toggle {
            display: none;
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1001;
            padding: 12px 24px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 100px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: var(--shadow-lg);
        }

        /* Card feed */
        .card-feed {
            width: 50%;
            padding: 16px;
        }

        .results-count {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 12px;
            padding: 0 4px;
        }

        /* Listing card */
        .listing-card {
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            margin-bottom: 14px;
            cursor: pointer;
            transition: box-shadow 0.2s, transform 0.15s;
            border: 1px solid var(--border);
        }

        .listing-card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-1px);
        }

        .listing-card.sponsored {
            border-color: #F59E0B;
            background: var(--sponsored-bg);
        }

        .card-image {
            width: 100%;
            height: 160px;
            background: var(--primary-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            position: relative;
        }

        .card-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-sponsored {
            background: #FEF3C7;
            color: #92400E;
        }

        .badge-top {
            background: var(--primary-bg);
            color: var(--primary-dark);
        }

        .card-body { padding: 14px 16px; }

        .card-category {
            display: inline-block;
            padding: 3px 8px;
            background: var(--primary-bg);
            color: var(--primary);
            font-size: 11px;
            font-weight: 600;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            margin-bottom: 6px;
        }

        .card-title {
            font-size: 17px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 6px;
            line-height: 1.3;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* ===== PRO BADGE SYSTEM ===== */
        .badge-pro {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 2px 7px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.3px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .badge-pro svg { width: 12px; height: 12px; }

        .badge-pro-yes {
            background: #F0F4E8;
            color: var(--primary-dark);
            border: 1px solid rgba(74, 93, 35, 0.2);
        }

        /* Pro card enhancement */
        .listing-card.tier-pro {
            border: 2.5px solid var(--primary);
            box-shadow: 0 2px 12px rgba(74, 93, 35, 0.15);
        }
        .listing-card.tier-pro:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 16px rgba(74, 93, 35, 0.22);
        }

        /* Pro extras in card */
        .card-pro-perks {
            display: flex;
            gap: 8px;
            margin-top: 6px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }

        .perk-tag {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
            background: var(--bg);
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }

        /* Modal pro section */
        .modal-pro-section {
            background: var(--primary-bg);
            border-radius: 10px;
            padding: 16px;
            margin-bottom: 16px;
        }

        .modal-pro-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .modal-pro-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .modal-pro-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text);
        }

        .modal-pro-item span:first-child { font-size: 16px; }

        /* ===== PHOTO CAROUSEL ===== */
        .photo-carousel {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
            border-radius: inherit;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.45);
            color: #fff;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }
        .carousel-btn:hover { background: rgba(0, 0, 0, 0.7); }
        .carousel-prev { left: 8px; }
        .carousel-next { right: 8px; }

        .carousel-dots {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
            z-index: 2;
        }

        .carousel-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background 0.2s;
        }
        .carousel-dot.active { background: #fff; }
        .carousel-dot:hover { background: rgba(255, 255, 255, 0.8); }

        .carousel-counter {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
        }

        .card-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }

        .card-rating {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .card-stars { color: var(--star-color); font-size: 14px; letter-spacing: -1px; }

        .card-rating-text {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
        }

        .card-review-count {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .card-distance {
            font-size: 13px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .card-distance svg { width: 14px; height: 14px; }

        .card-snippet {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.4;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

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

        .btn-primary {
            flex: 1;
            padding: 10px 16px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            text-align: center;
        }

        .btn-primary:hover { background: var(--primary-dark); }

        .btn-secondary {
            padding: 10px 16px;
            background: var(--bg);
            color: var(--text);
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-secondary:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        /* Skeleton loader */
        .skeleton-card {
            background: var(--white);
            border-radius: var(--radius);
            overflow: hidden;
            margin-bottom: 14px;
            border: 1px solid var(--border);
        }

        .skeleton-image {
            width: 100%;
            height: 160px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }

        .skeleton-body { padding: 14px 16px; }

        .skeleton-line {
            height: 14px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
            margin-bottom: 10px;
        }

        .skeleton-line.short { width: 40%; }
        .skeleton-line.medium { width: 70%; }

        @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* Detail modal */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: flex-end;
            justify-content: center;
        }

        .modal-overlay.open { display: flex; }

        .modal {
            background: var(--white);
            border-radius: 20px 20px 0 0;
            width: 100%;
            max-width: 640px;
            max-height: 85vh;
            overflow-y: auto;
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }

        .modal-handle {
            width: 40px;
            height: 4px;
            background: var(--border);
            border-radius: 2px;
            margin: 12px auto;
        }

        .modal-hero {
            width: 100%;
            height: 200px;
            background: var(--primary-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 64px;
        }

        .modal-content { padding: 20px; }

        .modal-title {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 4px;
        }

        .modal-category-tag {
            display: inline-block;
            padding: 4px 10px;
            background: var(--primary-bg);
            color: var(--primary);
            font-size: 12px;
            font-weight: 600;
            border-radius: 6px;
            margin-bottom: 12px;
        }

        .modal-info {
            display: flex;
            gap: 20px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .modal-info-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .modal-info-item svg { width: 16px; height: 16px; }

        .modal-cta {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .modal-cta .btn-primary, .modal-cta .btn-secondary {
            flex: 1;
            padding: 14px;
            font-size: 15px;
        }

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

        .modal-section-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .review-item {
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
        }

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

        .review-author {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .review-stars { color: var(--star-color); font-size: 13px; margin-bottom: 4px; }

        .review-text {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            background: rgba(255,255,255,0.9);
            border: none;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        /* Location input modal */
        .location-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .location-modal.open { display: flex; }

        .location-modal-content {
            background: var(--white);
            border-radius: 16px;
            padding: 28px;
            width: 100%;
            max-width: 440px;
            box-shadow: var(--shadow-lg);
        }

        .location-modal-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .location-modal-subtitle {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        .location-input-group {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }

        .location-input-group input {
            flex: 1;
            padding: 12px 16px;
            font-size: 15px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            outline: none;
        }

        .location-input-group input:focus { border-color: var(--primary); }

        .location-or {
            text-align: center;
            font-size: 13px;
            color: var(--text-light);
            margin: 12px 0;
        }

        .location-detect-btn {
            width: 100%;
            padding: 14px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .location-detect-btn:hover { background: var(--primary-dark); }

        .location-detect-btn svg { width: 18px; height: 18px; }

        /* Footer */
        .footer {
            background: var(--white);
            border-top: 1px solid var(--border);
            padding: 32px 16px 80px;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .footer-links a {
            font-size: 13px;
            color: var(--text-secondary);
            text-decoration: none;
        }

        .footer-links a:hover { color: var(--primary); }

        .footer-copy {
            font-size: 12px;
            color: var(--text-light);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .homepage-logo { font-size: 36px; }
            .homepage-tagline { font-size: 16px; }

            .map-section {
                display: none;
                position: fixed;
                inset: 0;
                width: 100%;
                height: 100%;
                top: 0;
                z-index: 1500;
            }

            .map-section.mobile-visible { display: block; }

            .map-toggle { display: block; }

            .card-feed { width: 100%; }

            .results-content { flex-direction: column; }

            .filter-bar { top: 61px; }

            .modal {
                max-width: 100%;
                max-height: 90vh;
            }

            .category-shortcuts { gap: 8px; }
            .category-chip { padding: 8px 12px; font-size: 13px; }

            .results-header-inner { flex-wrap: wrap; }
            .location-search { min-width: 140px; max-width: 100%; flex: 1; order: 5; }
        }

        @media (min-width: 769px) {
            .map-toggle { display: none !important; }
        }

        /* Map popup styling */
        .leaflet-popup-content-wrapper {
            border-radius: 10px !important;
            box-shadow: var(--shadow-md) !important;
        }

        .popup-content {
            font-family: inherit;
            min-width: 200px;
        }

        .popup-title {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .popup-category {
            font-size: 11px;
            color: var(--primary);
            font-weight: 600;
            text-transform: uppercase;
            margin-bottom: 4px;
        }

        .popup-rating {
            font-size: 13px;
            margin-bottom: 6px;
        }

        .popup-btn {
            display: inline-block;
            padding: 6px 14px;
            background: var(--primary);
            color: white;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
        }

        /* Radius circle */
        .leaflet-interactive.radius-circle {
            fill: var(--primary);
            fill-opacity: 0.06;
            stroke: var(--primary);
            stroke-opacity: 0.3;
        }

        /* Back to top on mobile map */
        .map-close-btn {
            position: fixed;
            top: 16px;
            right: 16px;
            z-index: 1600;
            width: 40px;
            height: 40px;
            background: var(--white);
            border: none;
            border-radius: 50%;
            box-shadow: var(--shadow-md);
            font-size: 20px;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .map-section.mobile-visible ~ .map-close-btn { display: flex; }

        /* ===== DEMO ANIMATION ===== */
        .demo-section {
            margin-top: 48px;
            text-align: center;
            width: 100%;
            max-width: 800px;
        }

        .demo-heading {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 8px;
        }

        .demo-subheading {
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 28px;
        }

        .demo-device {
            position: relative;
            width: 320px;
            height: 560px;
            margin: 0 auto;
            background: var(--white);
            border-radius: 32px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 2px rgba(0,0,0,0.06);
            overflow: hidden;
        }

        .demo-notch {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 28px;
            background: #111;
            border-radius: 0 0 16px 16px;
            z-index: 10;
        }

        .demo-screen {
            width: 100%;
            height: 100%;
            padding: 36px 16px 16px;
            overflow: hidden;
            position: relative;
        }

        /* Demo step animations */
        .demo-step {
            position: absolute;
            inset: 0;
            padding: 40px 16px 16px;
            opacity: 0;
            transition: opacity 0.6s ease;
        }
        .demo-step.active { opacity: 1; }

        /* Step 1: Search */
        .demo-search-bar {
            margin-top: 40px;
            background: var(--bg);
            border: 1.5px solid var(--border);
            border-radius: 12px;
            padding: 12px 14px;
            font-size: 14px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .demo-search-bar .cursor {
            display: inline-block;
            width: 2px;
            height: 16px;
            background: var(--primary);
            animation: blink 1s step-end infinite;
        }

        @keyframes blink { 50% { opacity: 0; } }

        .demo-typed-text {
            overflow: hidden;
            white-space: nowrap;
            border-right: 2px solid var(--primary);
            animation: typing 2s steps(12) forwards, blinkCaret 0.7s step-end infinite;
            width: 0;
            font-weight: 500;
        }

        .demo-step.active .demo-typed-text {
            animation: typing 2s steps(12) 0.5s forwards, blinkCaret 0.7s step-end infinite;
        }

        @keyframes typing { to { width: 100%; } }
        @keyframes blinkCaret { 50% { border-color: transparent; } }

        .demo-location-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-top: 10px;
            padding: 6px 12px;
            background: var(--primary-bg);
            border-radius: 100px;
            font-size: 11px;
            color: var(--primary);
            font-weight: 600;
        }

        /* Step 2: Results with map */
        .demo-mini-header {
            background: var(--primary);
            color: white;
            padding: 8px 12px;
            border-radius: 8px 8px 0 0;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 0;
        }

        .demo-mini-map {
            width: 100%;
            height: 120px;
            background: linear-gradient(135deg, #d4e8d0 0%, #e8f0e4 40%, #c8dcc4 100%);
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid var(--border);
        }

        .demo-pin {
            position: absolute;
            font-size: 20px;
            animation: dropPin 0.4s ease-out forwards;
            opacity: 0;
            transform: translateY(-30px);
        }

        .demo-step.active .demo-pin { opacity: 1; transform: translateY(0); }
        .demo-step.active .pin1 { animation-delay: 0.3s; }
        .demo-step.active .pin2 { animation-delay: 0.5s; }
        .demo-step.active .pin3 { animation-delay: 0.7s; }
        .demo-step.active .pin4 { animation-delay: 0.9s; }
        .demo-step.active .pin5 { animation-delay: 1.1s; }

        @keyframes dropPin {
            0% { opacity: 0; transform: translateY(-30px) scale(0.5); }
            70% { opacity: 1; transform: translateY(2px) scale(1.1); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        .demo-mini-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px;
            margin: 8px 0;
            display: flex;
            gap: 10px;
            align-items: center;
            animation: slideInCard 0.4s ease-out forwards;
            opacity: 0;
            transform: translateX(20px);
        }

        .demo-step.active .demo-mini-card:nth-child(1) { animation-delay: 0.2s; }
        .demo-step.active .demo-mini-card:nth-child(2) { animation-delay: 0.5s; }
        .demo-step.active .demo-mini-card:nth-child(3) { animation-delay: 0.8s; }

        @keyframes slideInCard {
            to { opacity: 1; transform: translateX(0); }
        }

        .demo-card-icon { font-size: 24px; }
        .demo-card-info { flex: 1; }
        .demo-card-name { font-size: 12px; font-weight: 700; color: var(--text); }
        .demo-card-meta { font-size: 10px; color: var(--text-secondary); }
        .demo-card-stars { font-size: 10px; color: var(--star-color); }

        /* Step 3: Filtering */
        .demo-filter-row {
            display: flex;
            gap: 6px;
            margin: 8px 0;
            flex-wrap: wrap;
        }

        .demo-filter-pill {
            padding: 5px 10px;
            border: 1px solid var(--border);
            border-radius: 100px;
            font-size: 10px;
            font-weight: 500;
            background: var(--bg);
            transition: all 0.3s;
        }

        .demo-filter-pill.highlight {
            background: var(--primary-bg);
            border-color: var(--primary);
            color: var(--primary-dark);
            font-weight: 700;
        }

        .demo-slider-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 12px 0;
            font-size: 11px;
            color: var(--text-secondary);
        }

        .demo-slider-track {
            flex: 1;
            height: 4px;
            background: var(--border);
            border-radius: 2px;
            position: relative;
        }

        .demo-slider-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 2px;
            width: 40%;
            transition: width 1.5s ease;
        }

        .demo-step.active .demo-slider-fill { width: 40%; }

        .demo-slider-thumb {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 14px;
            height: 14px;
            background: var(--primary);
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
            left: 40%;
            transition: left 1.5s ease;
        }

        .demo-step.active .demo-slider-thumb { left: 40%; }

        /* Step 4: Contact */
        .demo-detail-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px;
            text-align: center;
            margin-top: 20px;
        }

        .demo-detail-icon { font-size: 40px; margin-bottom: 8px; }
        .demo-detail-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
        .demo-detail-cat { font-size: 11px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
        .demo-detail-stars { color: var(--star-color); font-size: 14px; margin-bottom: 12px; }

        .demo-cta-row {
            display: flex;
            gap: 8px;
        }

        .demo-cta-btn {
            flex: 1;
            padding: 10px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            text-align: center;
        }

        .demo-cta-call {
            background: var(--primary);
            color: white;
        }

        .demo-cta-msg {
            background: var(--bg);
            border: 1px solid var(--border);
            color: var(--text);
        }

        .demo-pulse {
            animation: pulse 1.5s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.04); }
        }

        /* Demo step indicators */
        .demo-indicators {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }

        .demo-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--border);
            transition: all 0.3s;
            cursor: pointer;
        }

        .demo-dot.active {
            background: var(--primary);
            width: 24px;
            border-radius: 4px;
        }

        .demo-step-label {
            font-size: 13px;
            color: var(--text-secondary);
            margin-top: 10px;
            font-weight: 500;
            min-height: 20px;
        }

        /* ===== AD ZONES (Revenue-Optimized, Non-Intrusive) ===== */
        /*
         * AD STRATEGY — 5 high-impact placements, zero clutter:
         *
         * 1. NATIVE SPONSORED CARDS — Blend with listings, highest CTR (~2-4%)
         * 2. STICKY FOOTER ANCHOR — Always visible, high impressions, low annoyance
         * 3. INLINE FEED AD — 1 ad after every 8 cards (not 6), feels natural
         * 4. DETAIL MODAL AD — High-intent placement, shown after CTA buttons
         * 5. MAP SIDEBAR AD — Desktop only, 300x250 rectangle (premium CPM)
         *
         * REMOVED: Header leaderboard (banner blindness, hurts UX),
         *          Mobile top banner (kills first impression),
         *          Footer leaderboard (low viewability)
         *
         * AdSense Auto Ads can be enabled as a supplement — it will
         * intelligently fill remaining gaps without manual placement.
         */

        .ad-zone {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            font-size: 12px;
            font-weight: 500;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .ad-zone.loaded {
            border: none;
            background: transparent;
        }

        .ad-zone .ad-placeholder {
            padding: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .ad-zone .ad-label {
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: var(--text-light);
            opacity: 0.7;
        }

        /* Native sponsored card — blends with listing cards (HIGHEST CTR) */
        .ad-native-card {
            background: var(--white);
            border: 1px solid #E8D5A0;
            border-radius: var(--radius);
            padding: 16px;
            margin: 14px 0;
            position: relative;
        }

        .ad-native-card::before {
            content: 'Ad';
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 9px;
            font-weight: 600;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: var(--bg);
            padding: 2px 6px;
            border-radius: 4px;
        }

        .ad-native-card .ad-placeholder { padding: 20px; }

        /* Sidebar ad - 300x250 (desktop only, premium CPM) */
        .ad-sidebar {
            width: 300px;
            height: 250px;
            margin: 16px auto;
        }

        /* Inline ad between cards — responsive, blends with feed */
        .ad-inline {
            width: 100%;
            min-height: 250px;
            margin: 14px 0;
        }

        /* Detail modal ad — high intent, shown after CTA */
        .ad-detail {
            width: 100%;
            min-height: 100px;
            margin: 16px 0;
            border-radius: var(--radius-sm);
        }

        /* Sticky footer anchor ad — always visible, high impressions */
        .ad-anchor-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 990;
            background: var(--white);
            border-top: 1px solid var(--border);
            box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
            padding: 6px 0;
            text-align: center;
            display: none; /* Only shown on results page */
        }

        .ad-anchor-footer.visible { display: block; }

        .ad-anchor-inner {
            max-width: 728px;
            height: 50px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ad-anchor-close {
            position: absolute;
            top: -10px;
            right: 12px;
            width: 22px;
            height: 22px;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 50%;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            box-shadow: var(--shadow-sm);
        }

        .ad-anchor-close:hover { color: var(--text); }

        /* Padding for sticky anchor ad */
        .results-page.has-anchor-ad .card-feed { padding-bottom: 70px; }
        .results-page.has-anchor-ad .map-toggle { bottom: 80px; }

        @media (max-width: 768px) {
            .ad-sidebar { display: none; }
            .ad-anchor-inner { max-width: 320px; height: 50px; }
            .demo-device { width: 260px; height: 460px; }
            .demo-section { margin-top: 36px; }
            .demo-subheading { font-size: 18px; }
        }
        /* Google Places Autocomplete dropdown styling */
        .pac-container {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 8px 30px rgba(0,0,0,0.12);
            margin-top: 4px;
            z-index: 10000 !important;
            overflow: hidden;
        }
        .pac-item {
            padding: 10px 16px;
            font-size: 14px;
            color: #334155;
            border-top: 1px solid #f1f5f9;
            cursor: pointer;
            transition: background 0.15s;
        }
        .pac-item:first-child { border-top: none; }
        .pac-item:hover, .pac-item-selected {
            background: #f0f9ff;
        }
        .pac-item-query {
            font-weight: 600;
            color: #1e293b;
        }
        .pac-icon { display: none; }
        .pac-matched { font-weight: 700; color: #2563eb; }

        /* ===== QUOTE REQUEST MODAL ===== */
        .quote-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 60000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            opacity: 0;
            transition: opacity 0.2s;
        }
        .quote-modal-overlay.open { opacity: 1; }

        .quote-modal {
            background: var(--white);
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
            width: 100%;
            max-width: 480px;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideUp 0.25s ease-out;
        }
        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .quote-modal-header {
            padding: 20px 24px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .quote-modal-header h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
        }
        .quote-modal-close {
            width: 32px;
            height: 32px;
            border: none;
            background: var(--bg);
            border-radius: 50%;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            transition: background 0.15s;
        }
        .quote-modal-close:hover { background: var(--border); color: var(--text); }

        .quote-modal-biz {
            padding: 12px 24px;
            font-size: 13px;
            color: var(--text-light);
        }
        .quote-modal-biz strong {
            color: var(--text);
            font-weight: 600;
        }

        .quote-modal-form {
            padding: 0 24px 24px;
        }
        .quote-form-group {
            margin-bottom: 16px;
        }
        .quote-form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 5px;
        }
        .quote-form-group input,
        .quote-form-group textarea {
            width: 100%;
            padding: 11px 14px;
            font-size: 14px;
            font-family: inherit;
            border: 1.5px solid var(--border);
            border-radius: 8px;
            outline: none;
            background: var(--white);
            color: var(--text);
            transition: border-color 0.2s;
        }
        .quote-form-group input:focus,
        .quote-form-group textarea:focus {
            border-color: var(--primary);
        }
        .quote-form-group textarea {
            min-height: 100px;
            resize: vertical;
        }
        .quote-form-group .form-hint {
            font-size: 11px;
            color: var(--text-light);
            margin-top: 4px;
        }

        .quote-submit-btn {
            width: 100%;
            padding: 13px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            margin-top: 4px;
        }
        .quote-submit-btn:hover { background: var(--primary-dark); }

        /* Restricted quote state (no email) */
        .quote-restricted {
            text-align: center;
            padding: 20px 24px 24px;
        }
        .quote-restricted-icon {
            font-size: 36px;
            margin-bottom: 10px;
            opacity: 0.5;
        }
        .quote-restricted p {
            font-size: 13px;
            color: var(--text-light);
            margin-bottom: 12px;
            line-height: 1.5;
        }
        .quote-restricted .quote-claim-link {
            display: inline-block;
            font-size: 13px;
            font-weight: 600;
            color: var(--primary);
            text-decoration: none;
            padding: 8px 16px;
            border: 1.5px solid var(--primary);
            border-radius: 8px;
            transition: background 0.15s;
        }
        .quote-restricted .quote-claim-link:hover {
            background: var(--primary-bg);
        }

        /* Quote button on cards */
        .btn-quote {
            padding: 8px 12px;
            font-size: 13px;
            font-weight: 600;
            border: 1.5px solid var(--primary);
            background: var(--white);
            color: var(--primary);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s;
            white-space: nowrap;
        }
        .btn-quote:hover {
            background: var(--primary);
            color: white;
        }
        .btn-quote.disabled {
            border-color: var(--border);
            color: var(--text-light);
            cursor: default;
            opacity: 0.6;
        }
        .btn-quote.disabled:hover {
            background: var(--white);
            color: var(--text-light);
        }

        /* Quote section in detail modal */
        .modal-quote-section {
            margin: 16px 0;
            padding: 18px;
            background: var(--primary-bg);
            border: 1.5px solid var(--primary);
            border-radius: 12px;
        }
        .modal-quote-section h4 {
            font-size: 15px;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 4px;
        }
        .modal-quote-section p {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 12px;
        }
        .modal-quote-btn {
            width: 100%;
            padding: 12px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.15s;
        }
        .modal-quote-btn:hover { background: var(--primary-dark); }

        /* ===== SPOTLIGHT CAROUSEL ===== */
        .spotlight-carousel-wrap {
            position: relative;
            margin-bottom: 16px;
        }
        .spotlight-header {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 0 0 8px;
            font-size: 13px;
            font-weight: 700;
            color: #92400E;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .spotlight-header-icon { font-size: 14px; }
        .spotlight-slides { position: relative; }
        .spotlight-slide {
            display: none;
            animation: spotlightFadeIn 0.4s ease;
        }
        .spotlight-slide.active { display: block; }
        @keyframes spotlightFadeIn {
            from { opacity: 0; transform: translateX(8px); }
            to { opacity: 1; transform: translateX(0); }
        }
        .spotlight-slide .listing-card {
            border: 2.5px solid #F59E0B;
            box-shadow: 0 2px 12px rgba(245, 158, 11, 0.18);
            cursor: default;
        }
        .spotlight-slide .listing-card:hover {
            border-color: #C9A227;
            box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
        }

        .spotlight-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(0,0,0,0.35);
            color: #fff;
            border: none;
            cursor: pointer;
            font-size: 20px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s;
            z-index: 2;
        }
        .spotlight-nav:hover { background: rgba(0,0,0,0.6); }
        .spotlight-nav-prev { left: 8px; }
        .spotlight-nav-next { right: 8px; }

        .spotlight-dots {
            display: flex;
            justify-content: center;
            gap: 6px;
            padding: 10px 0 0;
        }
        .spotlight-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #D4A017;
            opacity: 0.4;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .spotlight-dot.active { opacity: 1; }
        .spotlight-dot:hover { opacity: 0.8; }

        .modal-quote-restricted {
            margin: 16px 0;
            padding: 18px;
            background: #F9FAFB;
            border: 1.5px dashed var(--border);
            border-radius: 12px;
            text-align: center;
        }
        .modal-quote-restricted h4 {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-light);
            margin-bottom: 4px;
        }
        .modal-quote-restricted p {
            font-size: 12px;
            color: var(--text-light);
            margin-bottom: 10px;
        }
