/* ===============================================
   US Live Music Venues — Directory
   Dark-first theme with neon accents (auto-switches to light)
   =============================================== */

:root {
    --bg:           #0b0b10;
    --bg-elev:      #14141c;
    --bg-elev-2:    #1d1d28;
    --text:         #f4f4f7;
    --text-muted:   #9696a8;
    --border:       #2a2a36;
    --accent:       #ff3d6b;       /* hot pink */
    --accent-2:     #00e0c7;       /* mint */
    --accent-warn:  #ffb547;
    --link:         #7cb5ff;
    --shadow:       0 12px 32px rgba(0, 0, 0, 0.45);
    --radius:       14px;
    --radius-sm:    8px;
    --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    --container:    1180px;
}

html[data-theme='light'] {
    --bg:           #f8f8fb;
    --bg-elev:      #ffffff;
    --bg-elev-2:    #f1f1f5;
    --text:         #15151b;
    --text-muted:   #5b5b6d;
    --border:       #e1e1e9;
    --accent:       #d61e54;
    --accent-2:     #008c79;
    --link:         #1a5dba;
    --shadow:       0 8px 24px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body { min-height: 100svh; }

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

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; top: -40px; left: 8px;
    background: var(--accent); color: #fff;
    padding: 8px 14px; border-radius: var(--radius-sm); z-index: 1000;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,11,16,0.85); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
html[data-theme='light'] .site-header { background: rgba(248,248,251,0.85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand-mark { font-size: 24px; filter: drop-shadow(0 0 12px rgba(255,61,107,0.6)); }
.primary-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link { background: transparent; border: 0; color: var(--text-muted); cursor: pointer; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.nav-link:hover, .nav-link:focus-visible { background: var(--bg-elev-2); color: var(--text); outline: none; }
.theme-toggle { font-size: 18px; padding: 6px 10px; }

/* ---- Hero ---- */
.hero {
    padding: 40px 0 96px;        /* +48px bottom — clear breathing room before next section */
    text-align: center;
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(255,61,107,0.18), transparent 70%),
        radial-gradient(60% 60% at 80% 30%, rgba(0,224,199,0.12), transparent 70%);
}
.hero-title { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero-sub { color: var(--text-muted); margin: 0 auto 28px; max-width: 720px; font-size: 17px; }
.venue-count { color: var(--accent-2); font-weight: 600; }

/* ---- Featured hero visual (marketing image) ---- */
.hero-visual {
    margin: 0 auto 64px;          /* +24px — extra breathing room below the image */
    max-width: 1100px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
    line-height: 0;
    animation: heroFadeIn 0.6s ease-out;
}
.hero-visual img {
    width: 100%; height: auto; display: block;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Hero stats strip (live numbers) ---- */
.hero-stats {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
    gap: 10px 18px; margin: 0 auto 36px; padding: 0 16px;  /* +14px bottom, slightly looser gap */
    font-size: 14px; color: var(--text-muted);
    max-width: 880px;
}
.hero-stat { display: inline-flex; align-items: baseline; gap: 6px; }
.hero-stat-num {
    font-size: 22px; font-weight: 700; color: var(--text);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat-label { color: var(--text-muted); }
.hero-stat-divider { color: var(--border); font-size: 18px; }

/* ---- Search bar (upsized for hero prominence) ---- */
.hero .search-bar {
    max-width: 760px;
    padding: 10px;
    box-shadow: 0 12px 40px rgba(255, 61, 107, 0.22), var(--shadow);
}
.hero .search-bar input[type='search'] { font-size: 17px; padding: 0 20px; }
.hero .search-btn {
    padding: 0 26px; font-size: 15px; letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(255,61,107,0.35);
}

/* ---- HERO TOUR CTA (the differentiated value prop, deliberately loud) ---- */
.hero-tour-cta {
    position: relative;
    display: block;
    max-width: 720px;
    margin: 36px auto 0;
    padding: 22px 28px 22px 26px;
    text-decoration: none;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(255,61,107,0.16) 0%, rgba(0,224,199,0.14) 100%),
        var(--bg-elev);
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow:
        0 0 0 1px rgba(255,61,107,0.45),
        0 16px 48px rgba(255,61,107,0.22),
        0 4px 16px rgba(0,224,199,0.18);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    animation: tourGlowPulse 3.4s ease-in-out infinite;
}
.hero-tour-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.hero-tour-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255,61,107,0.7),
        0 22px 64px rgba(255,61,107,0.35),
        0 6px 24px rgba(0,224,199,0.28);
    text-decoration: none;
    color: var(--text);
}
.hero-tour-cta:hover::before { transform: translateX(100%); }

@keyframes tourGlowPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255,61,107,0.45),
            0 16px 48px rgba(255,61,107,0.22),
            0 4px 16px rgba(0,224,199,0.18);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255,61,107,0.65),
            0 16px 56px rgba(255,61,107,0.35),
            0 4px 20px rgba(0,224,199,0.28);
    }
}

.hero-tour-cta-badge {
    position: absolute;
    top: 10px; right: 14px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
    padding: 3px 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #0b0b10;
    border-radius: 999px;
    text-transform: uppercase;
}

.hero-tour-cta-main {
    display: flex; align-items: center; gap: 18px;
    text-align: left;
}
.hero-tour-cta-icon {
    flex: 0 0 auto;
    font-size: 38px; line-height: 1;
    filter: drop-shadow(0 0 12px rgba(255,61,107,0.5));
}
.hero-tour-cta-text {
    flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.hero-tour-cta-title {
    font-size: 19px; font-weight: 700; line-height: 1.25;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.005em;
}
.hero-tour-cta-sub {
    font-size: 13px; color: var(--text-muted); line-height: 1.4;
}
.hero-tour-cta-arrow {
    flex: 0 0 auto;
    font-size: 22px; color: var(--accent);
    transition: transform 0.22s ease;
}
.hero-tour-cta:hover .hero-tour-cta-arrow { transform: translateX(4px); }

/* Secondary text link (was a competing button — now properly subordinate) */
.hero-secondary-link {
    text-align: center;
    margin-top: 18px;
}
.hero-text-link {
    background: transparent; border: 0; cursor: pointer;
    color: var(--text-muted); font-size: 13px; font-weight: 500;
    text-decoration: underline; text-decoration-color: var(--border);
    text-underline-offset: 4px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.hero-text-link:hover {
    color: var(--text);
    text-decoration-color: var(--accent-2);
}

.search-bar { display: flex; gap: 8px; max-width: 720px; margin: 0 auto; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 8px; box-shadow: var(--shadow); }
.search-bar input[type='search'] {
    flex: 1; border: 0; background: transparent; color: var(--text); padding: 0 16px; font-size: 16px; outline: none;
}
.search-bar input[type='search']::placeholder { color: var(--text-muted); }
.voice-btn, .search-btn { border: 0; cursor: pointer; padding: 0 16px; height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.voice-btn { background: var(--bg-elev-2); color: var(--text); padding: 0 14px; }
.voice-btn:hover { background: var(--border); }
.voice-btn.is-listening { background: var(--accent); color: #fff; animation: pulse 1s ease-in-out infinite; }
.search-btn { background: var(--accent); color: #fff; padding: 0 22px; }
.search-btn:hover { filter: brightness(1.08); }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---- Filters ---- */
.filters {
    padding: 28px 0;              /* +12px each side — less cramped */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
}
.filter-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }   /* +4px gap */
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; flex: 1; }
.filter-label { font-size: 12px; color: var(--text-muted); }
.filter-field select, .sort-field select {
    background: var(--bg-elev-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 14px; cursor: pointer;
}
.filter-field select:focus, .sort-field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filter-toggle { flex-direction: row; align-items: center; gap: 8px; }
.filter-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.filter-reset { background: transparent; color: var(--text-muted); border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; align-self: end; }
.filter-reset:hover { background: var(--bg-elev-2); color: var(--text); }

/* ---- Results ---- */
.results-section { padding: 48px 0 80px; }                                      /* +20px top, +24px bottom */
.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }  /* +10px */
.results-title { margin: 0; font-size: 22px; letter-spacing: -0.01em; }         /* +2px */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }  /* +20px col min, +4px gap */
.venue-card {
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    display: flex; flex-direction: column; gap: 10px;
    overflow: hidden;
}
.venue-card-has-photo { padding-top: 0; }
.venue-card-photo {
    margin: -1px -21px 12px;             /* +6px space below photo */
    aspect-ratio: 16 / 9;
    background: var(--bg-elev-2);
    overflow: hidden;
}
.venue-card-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.venue-card-has-photo:hover .venue-card-photo img { transform: scale(1.04); }
.venue-card:hover, .venue-card:focus-visible {
    transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(255,61,107,0.18); outline: none;
}
.venue-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.venue-name { font-size: 17px; line-height: 1.3; margin: 0; }
.venue-loc { font-size: 14px; color: var(--text-muted); margin: 0; }
.venue-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.venue-cta { margin: 8px 0 0; font-size: 13px; color: var(--accent-2); font-weight: 600; }

.chip { font-size: 11px; padding: 3px 8px; background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); }
.chip-genre { color: var(--accent-2); border-color: rgba(0,224,199,0.35); }
/* Genre confidence. We have genre data for only ~4% of venues, so a filtered
   result is mostly "unknown" rather than "matched" — these two chips keep that
   distinction visible instead of implying every hit books the genre. */
.chip-genre-match { color: var(--accent-2); border-color: rgba(0,224,199,0.55); background: rgba(0,224,199,0.08); font-weight: 600; }
.chip-genre-unconfirmed { color: var(--text-muted); border-style: dashed; opacity: 0.85; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.badge-confirmed { background: rgba(0,224,199,0.15); color: var(--accent-2); border: 1px solid rgba(0,224,199,0.35); }

.skeleton-card { background: linear-gradient(90deg, var(--bg-elev) 0%, var(--bg-elev-2) 50%, var(--bg-elev) 100%); background-size: 200% 100%; border-radius: var(--radius); height: 140px; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.load-more { margin: 28px auto 0; display: block; background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--text); padding: 10px 24px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.load-more:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.empty, .error { padding: 40px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---- Featured cities ---- */
.featured-cities { padding: 88px 0 80px; background: var(--bg-elev); border-top: 1px solid var(--border); }   /* +32px / +32px */
.featured-title { font-size: 28px; margin: 0 0 10px; text-align: center; letter-spacing: -0.01em; }            /* +4px font */
.featured-sub { color: var(--text-muted); text-align: center; margin: 0 auto 48px; max-width: 680px; font-size: 16px; }   /* +12px bottom */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));   /* +20px column min */
    gap: 18px;                                                       /* +4px */
}
.featured-card {
    position: relative;
    display: flex; flex-direction: column; gap: 4px;
    padding: 22px 20px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none; color: var(--text);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.featured-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(80% 100% at 100% 0%, rgba(255,61,107,0.08), transparent 70%);
    pointer-events: none;
    opacity: 0; transition: opacity 0.2s ease;
}
.featured-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(255,61,107,0.18);
    text-decoration: none;
}
.featured-card:hover::after { opacity: 1; }
.featured-card-num {
    font-size: 32px; font-weight: 700; line-height: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}
.featured-card-name { font-size: 16px; font-weight: 600; margin-top: 8px; }
.featured-card-tag { color: var(--text-muted); font-size: 12px; }

/* Secondary featured section: cross-country tour stops */
.featured-title-secondary { margin-top: 72px; }
.featured-grid-corridor { margin-top: 8px; }
.featured-card-corridor {
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent-2); margin-bottom: 4px;
}

/* Suggested tours — one-click route cards */
.tour-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.tour-suggestion {
    position: relative;
    display: flex; flex-direction: column; gap: 6px;
    padding: 20px 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none; color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tour-suggestion::after {
    content: '🗺️';
    position: absolute; top: 14px; right: 16px;
    font-size: 20px; opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tour-suggestion:hover {
    transform: translateY(-2px);
    border-color: var(--accent-2);
    box-shadow: 0 12px 32px rgba(0, 224, 199, 0.18);
    text-decoration: none;
}
.tour-suggestion:hover::after { opacity: 1; transform: rotate(-8deg) scale(1.1); }
.tour-suggestion-name {
    font-size: 16px; font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.005em;
    padding-right: 30px; /* room for the corner emoji */
}
.tour-suggestion-route { font-size: 13px; color: var(--text); }
.tour-suggestion-stats { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* ---- Taxonomy clouds ---- */
.taxonomy-cloud { padding: 80px 0 96px; background: var(--bg-elev-2); border-top: 1px solid var(--border); }   /* +44/+24 */
.taxonomy-cloud h2 {
    font-size: 13px; margin: 36px 0 16px; color: var(--text-muted);              /* tighter heading, more space around */
    text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
}
.taxonomy-cloud h2:first-of-type { margin-top: 0; }
.cloud { display: flex; flex-wrap: wrap; gap: 10px; }                              /* +2px */
.cloud-link {
    padding: 8px 16px;                                                              /* +2/+2 — bigger tap target */
    border: 1px solid var(--border); border-radius: 999px; font-size: 13px;
    color: var(--text); background: var(--bg);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cloud-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--text-muted); font-size: 14px; }   /* +12px */
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }                          /* +6px */

/* ---- Modal ---- */
.modal { position: fixed; inset: 0; display: none; z-index: 10000; }   /* must beat Leaflet panes (max ~1000) */
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
    width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto;
    padding: 28px; box-shadow: var(--shadow); animation: fadeIn 0.18s ease;
}
.modal-close { position: absolute; top: 12px; right: 12px; background: transparent; border: 0; color: var(--text-muted); font-size: 26px; cursor: pointer; padding: 4px 10px; border-radius: 999px; line-height: 1; }
.modal-close:hover { background: var(--bg-elev-2); color: var(--text); }
.modal-hero {
    margin: -28px -28px 16px;
    aspect-ratio: 16 / 9;
    background: var(--bg-elev-2);
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}
.modal-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-heading { margin: 0 0 12px; font-size: 22px; }
.modal-address { color: var(--text-muted); margin: 0 0 16px; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.08); text-decoration: none; color: #fff; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.modal-map { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--bg-elev-2); }
.modal-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.settings-row:last-of-type { border: 0; }
.settings-label { color: var(--text); font-size: 14px; }
.settings-foot { margin-top: 16px; font-size: 12px; }
.settings-row select, .settings-row input[type='checkbox'] { accent-color: var(--accent); }

details { padding: 8px 0; border-bottom: 1px solid var(--border); }
details:last-of-type { border: 0; }
summary { cursor: pointer; padding: 6px 0; font-weight: 600; }
summary:hover { color: var(--accent); }

/* ---- Mobile ---- */
@media (max-width: 720px) {
    .hero { padding: 24px 0 56px; }                                                  /* +32px bottom on mobile too */
    .hero-visual { margin-bottom: 40px; border-radius: var(--radius-sm); }            /* +12px desktop, mobile gets +12px too */
    .hero-stats { font-size: 12px; gap: 6px 14px; margin-bottom: 24px; }              /* +8px bottom */
    .hero-stat-num { font-size: 18px; }
    .hero-stat-divider { display: none; }
    .hero .search-bar { padding: 6px; }
    .hero .search-bar input[type='search'] { font-size: 15px; padding: 0 12px; }
    .hero .search-btn { padding: 0 14px; font-size: 13px; }
    .hero-tour-cta { margin-top: 24px; padding: 18px 16px 18px 18px; }
    .hero-tour-cta-icon { font-size: 32px; }
    .hero-tour-cta-title { font-size: 16px; }
    .hero-tour-cta-sub { font-size: 12px; }
    .hero-tour-cta-arrow { font-size: 18px; }
    .hero-tour-cta-badge { font-size: 9px; padding: 2px 6px; top: 8px; right: 10px; }
    .hero-secondary-link { margin-top: 14px; }
    .filters { padding: 20px 0; }
    .filter-row { flex-direction: column; align-items: stretch; gap: 14px; }
    .filter-field { min-width: 0; }
    .filter-reset { align-self: stretch; }
    .results-section { padding: 32px 0 56px; }
    .results-grid { grid-template-columns: 1fr; gap: 14px; }
    .featured-cities { padding: 56px 0 56px; }
    .featured-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .featured-card { padding: 18px 16px 16px; }
    .featured-card-num { font-size: 26px; }
    .tour-suggestions { grid-template-columns: 1fr; gap: 10px; }
    .tour-suggestion { padding: 16px 18px; }
    .taxonomy-cloud { padding: 56px 0 72px; }
    .primary-nav .nav-link { padding: 6px 8px; font-size: 13px; }
    .brand-text { display: none; }
    .header-inner { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- Pro badge (waitlist-validation markers) ----
   Inline visual marker placed inside buttons / labels for features that
   become Pro at launch. The feature still works for everyone right now;
   the badge tells visitors what the future paywall scope is. The
   .pro-notice paragraph is the call-to-action that links to /pricing. */
.pro-badge {
    display: inline-block;
    padding: 2px 7px;
    margin-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: 1px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(255, 61, 107, 0.35);
    text-decoration: none;
    white-space: nowrap;
}
a.pro-badge { cursor: pointer; }
a.pro-badge:hover, a.pro-badge:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 61, 107, 0.5);
    outline: none;
}

.pro-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
}
.pro-notice a { color: var(--accent-2); font-weight: 600; }
.pro-notice a:hover { text-decoration: underline; }
.pro-notice .pro-badge { margin-left: 0; }

/* ---- Auth overlay + sign-in + account ---- */
/* CRITICAL: must default to `display: none` so the `hidden` attribute (set
   by closeOverlay) actually keeps it out of the rendering AND event tree.
   Earlier version had `display: flex` here, which overrode the browser's
   `[hidden] { display: none }` rule — the closed overlay stayed full-
   screen at z-index 10001 with opacity:0, silently swallowing every click
   on the page. */
.auth-overlay {
    position: fixed; inset: 0; z-index: 10001;
    display: none;
    align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.auth-overlay.auth-overlay-open {
    display: flex;
    opacity: 1;
}
.auth-overlay[hidden] { display: none !important; }
.auth-overlay-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}
.auth-overlay-panel {
    position: relative;
    width: 100%; max-width: 460px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    max-height: 90vh;
    overflow-y: auto;
}
.auth-overlay-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px;
    border: 0; border-radius: 50%;
    background: var(--bg-elev-2); color: var(--text-muted);
    font-size: 22px; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.auth-overlay-close:hover { background: var(--accent); color: #fff; }
.auth-h2 {
    margin: 0 0 8px;
    font-size: 22px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-sub { color: var(--text-muted); margin: 0 0 20px; font-size: 14px; line-height: 1.55; }
.auth-foot { color: var(--text-muted); font-size: 13px; margin: 20px 0 0; }

.signin-form { display: flex; flex-direction: column; gap: 10px; }
.signin-form input[type="email"] {
    width: 100%; padding: 14px 16px;
    background: var(--bg-elev-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 16px; min-height: 44px;
}
.signin-form input[type="email"]:focus {
    outline: 2px solid var(--accent-2); outline-offset: 0;
    border-color: var(--accent-2);
}
.btn-auth-primary {
    width: 100%; padding: 14px 22px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    /* #0b0b10 passes WCAG AA on both halves of the gradient. White fails on mint. */
    color: #0b0b10; font-weight: 700; font-size: 15px;
    border: 0; border-radius: var(--radius-sm);
    cursor: pointer; min-height: 44px;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-auth-primary:hover, .btn-auth-primary:focus-visible {
    transform: translateY(-1px); box-shadow: 0 10px 28px rgba(255, 61, 107, 0.4);
    text-decoration: none; outline: none;
}
.btn-auth-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-auth-ghost {
    width: 100%; padding: 12px 22px;
    background: transparent; color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer; min-height: 44px; font-size: 14px;
}
.btn-auth-ghost:hover { background: var(--bg-elev-2); border-color: var(--accent); }

.signin-msg { font-size: 13px; margin: 6px 0 0; line-height: 1.5; min-height: 18px; }
.signin-msg-error   { color: var(--accent); }
.signin-msg-success { color: var(--accent-2); }

.account-status {
    padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--bg-elev-2); border: 1px solid var(--border);
    font-size: 14px; margin: 0 0 16px;
}
.account-status-paid { border-color: var(--accent-2); color: var(--text); }
.account-status-free { color: var(--text-muted); }
.account-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---- Auth toast (?auth=... post-redirect) ---- */
.auth-toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10002;
    padding: 14px 22px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-size: 14px; font-weight: 600;
    color: var(--text);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.auth-toast.auth-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.auth-toast-success { border-color: var(--accent-2); }
.auth-toast-error   { border-color: var(--accent); }

/* ---- Tour planner lock states (Pro gating) ---- */
.tour-locked-overlay {
    display: flex; flex-direction: column; gap: 10px;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(255, 61, 107, 0.08) 0%, rgba(0, 224, 199, 0.05) 100%);
    border: 1px solid var(--border);
    margin: 12px 0 4px;
    text-align: center;
}
.tour-locked-icon  { font-size: 22px; }
.tour-locked-title { font-weight: 700; color: var(--text); margin: 0; font-size: 15px; }
.tour-locked-sub   { color: var(--text-muted); font-size: 13px; margin: 0 0 6px; line-height: 1.5; }
.tour-locked-cta {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px; min-height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff; font-weight: 700; font-size: 14px;
    border-radius: 999px; text-decoration: none;
    align-self: center;
}
.tour-locked-cta:hover { text-decoration: none; transform: translateY(-1px); }
.tour-action-btn[data-locked="1"], .day-copy[data-locked="1"] {
    opacity: 0.55; cursor: not-allowed; position: relative;
}
.tour-action-btn[data-locked="1"]::after, .day-copy[data-locked="1"]::after {
    content: "🔒"; margin-left: 8px; font-size: 14px;
}
