/* ============================================================
   Ooruly — reuses the portfolio's design tokens so the two sites
   read as siblings. Same accent, type scale, radii and themes.
   ============================================================ */
:root {
    /* Travel-grade palette: a warm coral primary (Airbnb-like — warmth + trust) balanced by a calm
       teal secondary for wayfinding and hierarchy. Accent = primary actions/highlights only. */
    --accent: #ff5a5f;          /* coral */
    --accent-strong: #f0484d;   /* coral, for solid buttons */
    --accent-hover: #e13840;
    --accent-ink: #e5484d;      /* text/icon coral that reads on light too */
    --accent-2: #0f8a8a;        /* teal secondary */
    --accent-2-ink: #0d7d7d;
    --accent-soft: rgba(255, 90, 95, 0.12);
    --accent-ring: rgba(255, 90, 95, 0.38);
    --teal-soft: rgba(15, 138, 138, 0.12);

    --bg: #08080a;
    --bg-elev: #16161d;
    --bg-elev-2: #212129;
    --bg-alt: #0c0c10;
    --text: #f4f4f5;
    --text-muted: #a7a7b4;
    --text-dim: #8b8b9e;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --header-bg: rgba(8, 8, 10, 0.93);
    --shadow-sm: 0 6px 20px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
    --glow: 0 10px 30px -12px var(--accent-ring);
    --edge-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);

    --dur-fast: 0.18s;
    --dur-base: 0.28s;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --success: #34d399;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --step--1: clamp(0.8rem, 0.78rem + 0.12vw, 0.88rem);
    --step-0: clamp(0.92rem, 0.9rem + 0.15vw, 1rem);
    --step-1: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
    --step-2: clamp(1.2rem, 1.08rem + 0.55vw, 1.5rem);
    --step-3: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
    --step-4: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);

    --max-width: 1160px;
    --header-h: 72px;

    /* Type: Fraunces (warm display serif) for headings, Inter for body/UI. */
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

[data-theme="light"] {
    /* Warm, sunlit-neutral light theme (sandy cream rather than cold grey) — a common travel look. */
    --bg: #fcfbf9;
    --bg-elev: #ffffff;
    --bg-elev-2: #f3f1ec;
    --bg-alt: #f6f4f0;
    --text: #1b1a18;
    --text-muted: #5a564f;
    --text-dim: #726d64;
    --accent-ink: #d83a40;      /* coral that clears AA on cream */
    --accent-2-ink: #0c7373;    /* teal that clears AA on cream */
    --edge-highlight: inset 0 1px 0 rgba(255, 255, 255, 0);
    --border: rgba(20, 16, 10, 0.1);
    --border-strong: rgba(20, 16, 10, 0.18);
    --header-bg: rgba(252, 251, 249, 0.94);
    --shadow-lg: 0 24px 60px -24px rgba(40, 30, 20, 0.18);
    --shadow-sm: 0 6px 18px -8px rgba(40, 30, 20, 0.14);
    --accent-soft: rgba(255, 90, 95, 0.10);
    --teal-soft: rgba(15, 138, 138, 0.10);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--step-0);
    line-height: 1.62;
    overflow-x: hidden;
    transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* Headings use the warm display serif; slightly looser leading suits serif display type. */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.14; font-weight: 600; letter-spacing: -0.015em; }
/* Long-form paragraphs keep a comfortable reading measure. */
p { line-height: 1.68; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.accent { color: var(--accent-ink); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--accent-strong); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* An image that fails to load gets a themed gradient block instead of a broken icon. */
.img-fallback {
    background: linear-gradient(135deg, var(--bg-elev-2), var(--accent-soft));
    min-height: 180px;
}
img.img-fallback { visibility: hidden; }

/* ---------- header / nav (mirrors the portfolio) ---------- */
/* Sits above the header so the transparent track doesn't leave a gap at the very top. */
.scroll-progress {
    position: fixed; inset: 0 0 auto 0; z-index: 120;
    height: 3px; background: transparent; pointer-events: none;
}
.scroll-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Transparent at the top of the page, then blurs + gains a border once scrolled. */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 110;
    border-bottom: 1px solid transparent;
    transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.site-header.is-stuck {
    background: var(--header-bg);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: clamp(1rem, 3vw, 2rem); height: var(--header-h);
}

.brand { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 700; font-size: var(--step-1); }
.brand-mark { letter-spacing: -0.03em; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.brand:hover .brand-mark { color: var(--accent-ink); }

/* Primary nav links with the portfolio's animated underline. */
.nav-links { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.4rem); }
.nav-links a {
    position: relative; display: block; padding: 0.4rem 0.2rem;
    font-size: var(--step-0); color: var(--text-muted);
    transition: color var(--dur-fast) var(--ease);
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px; border-radius: 2px; background: var(--accent);
    transition: width var(--dur-base) var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }

/* The slide-in drawer (and its footer link) is hidden entirely until the mobile breakpoint. */
.nav-drawer { display: none; }
.nav-drawer-portfolio { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-portfolio { color: var(--text-muted); font-size: var(--step--1); transition: color var(--dur-fast); white-space: nowrap; }
.nav-portfolio:hover { color: var(--accent-ink); }

.icon-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; color: var(--text-muted);
    background: var(--bg-elev); border: 1px solid var(--border);
    transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* Hamburger + drawer close are hidden on desktop, shown on mobile. */
.nav-open, .nav-close { display: none; }

/* Backdrop sits ABOVE the fixed header (z 110) so opening the drawer dims the whole
   page — header included — instead of leaving the header lit on top of the overlay. */
.nav-backdrop {
    position: fixed; inset: 0; z-index: 130;
    background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px);
    opacity: 0; transition: opacity var(--dur-base) var(--ease);
}
.nav-backdrop.is-open { opacity: 1; }
/*
 * Theme toggle icon: sun in dark mode, moon in light mode.
 * Driven off the <html data-theme> attribute and matched on the Font Awesome classes so it works
 * whether FA leaves an <i> or swaps in an <svg>. The button is a grid cell, so both icons would
 * stack on top of each other — we must hard-hide the inactive one.
 */
#theme-toggle .theme-icon-sun,
#theme-toggle .theme-icon-moon { grid-area: 1 / 1; }

[data-theme="dark"] #theme-toggle .theme-icon-moon,
:root:not([data-theme="light"]) #theme-toggle .theme-icon-moon { display: none !important; }
[data-theme="dark"] #theme-toggle .theme-icon-sun,
:root:not([data-theme="light"]) #theme-toggle .theme-icon-sun { display: inline-block !important; }

[data-theme="light"] #theme-toggle .theme-icon-sun { display: none !important; }
[data-theme="light"] #theme-toggle .theme-icon-moon { display: inline-block !important; }

/* ---------- hero ---------- */
/* Top padding clears the now-fixed header so the eyebrow isn't tucked under it. */
.hero { position: relative; padding: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero-aura {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(60% 55% at 12% -10%, rgba(255, 90, 95, 0.18), transparent 60%),
        radial-gradient(52% 48% at 100% 0%, rgba(15, 138, 138, 0.16), transparent 58%);
}
/* Two columns on desktop: copy on the left, an image mosaic filling the right. */
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center; gap: clamp(2rem, 5vw, 4rem);
}
.hero-copy { min-width: 0; }
.eyebrow {
    text-transform: uppercase; letter-spacing: 0.14em; font-size: var(--step--1);
    color: var(--accent-ink); font-weight: 600; margin-bottom: 0.75rem;
}
.hero-title { font-size: var(--step-4); max-width: 16ch; margin-bottom: 1rem; }
.hero-lede { color: var(--text-muted); font-size: var(--step-1); max-width: 54ch; }

/* Primary + secondary CTA (portfolio button language). */
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.72rem 1.35rem; border-radius: var(--radius-pill);
    font-size: var(--step-0); font-weight: 600; border: 1px solid transparent;
    transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--border-strong); }
.btn-ghost i { color: var(--accent-ink); }
.btn-ghost:hover { border-color: var(--accent-ring); color: var(--accent-ink); }

/* Proof-of-content stat row: tells a first-time visitor how much is inside, above the fold. */
.hero-stats {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.6rem 1.4rem; margin-top: 1.75rem;
    color: var(--text-dim); font-size: var(--step--1);
}
.hero-stats li { position: relative; }
.hero-stats li:not(:last-child)::after {
    content: ''; position: absolute; right: -0.75rem; top: 50%;
    width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
    background: var(--border-strong);
}
.hero-stats strong { color: var(--accent-ink); font-weight: 700; }

/* ---------- hero image mosaic ---------- */
.hero-collage {
    display: grid; gap: 0.7rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    aspect-ratio: 1 / 1;
    max-height: 460px;
    margin-left: auto;
    /* soft mask so the mosaic melts into the dark hero rather than ending in a hard rectangle */
    -webkit-mask-image: radial-gradient(130% 120% at 60% 40%, #000 68%, transparent 100%);
    mask-image: radial-gradient(130% 120% at 60% 40%, #000 68%, transparent 100%);
}
.hero-tile {
    position: relative; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.hero-tile--tall { grid-row: span 2; }
.hero-tile--wide { grid-column: span 2; }
.hero-tile img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 6s var(--ease);
}
.hero-tile:hover img { transform: scale(1.06); }
.hero-tile figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 0.9rem 0.7rem 0.5rem; color: #fff;
    font-size: var(--step--1); font-weight: 600; letter-spacing: 0.01em;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

/* ---------- filters ---------- */
.section { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 7vw, 5rem); }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.75rem; }
.chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.95rem; border-radius: var(--radius-pill);
    border: 1px solid var(--border); color: var(--text-muted); font-size: var(--step--1);
    transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { color: #fff; background: var(--accent-strong); border-color: transparent; box-shadow: var(--glow); }
[data-theme="light"] .chip.is-active { color: #fff; }
.chip-count { font-size: 0.72em; opacity: 0.7; font-variant-numeric: tabular-nums; }
.chip.is-active .chip-count { opacity: 0.85; }

/* ---------- section heads ---------- */
.section-head { margin-bottom: 1.5rem; }
.section-title { font-size: var(--step-3); }
.section-sub { color: var(--text-muted); font-size: var(--step-0); max-width: 62ch; margin-top: 0.4rem; }

/* ---------- grid + cards ---------- */
.grid {
    display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
    display: flex; flex-direction: column;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--edge-highlight);
    transition: transform var(--dur-base) var(--ease), border-color var(--dur-base), box-shadow var(--dur-base);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-elev-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease); }
/* A subtle top+bottom scrim so the corner controls (heart, badges, tick) stay legible on any photo. */
.card-media::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 8, 10, 0.28) 0%, transparent 26%),
        linear-gradient(0deg, rgba(8, 8, 10, 0.28) 0%, transparent 24%);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-type {
    position: absolute; top: 0.7rem; left: 0.7rem;
    background: rgba(8, 8, 10, 0.72); color: #fff; backdrop-filter: blur(4px);
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.3rem 0.6rem; border-radius: var(--radius-pill);
    max-width: calc(100% - 1.4rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.card-head h3 { font-size: var(--step-2); }
.card-dist { color: var(--text-dim); font-size: var(--step--1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-tag { color: var(--text-muted); font-size: var(--step-0); }
.card-meta { color: var(--text-dim); font-size: var(--step--1); display: flex; align-items: center; gap: 0.5rem; }
.card-meta i { color: var(--accent-ink); }

/* Section anchors should clear the sticky header when jumped to. */
#city, #cafes, #eats, #do, #nearby { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* The "Inside Bengaluru" band sits above the getaways with a soft tinted background. */
/* Content bands (city sights, temples, cafes, eats, do, getaways) stay plain for a calm rhythm;
   only the "ways to explore" teaser interludes (itineraries, themes) carry a soft tint. */
.section--city { position: relative; }
/*
 * Cafe/eatery card media: a real photo on top of a themed monogram tile. If the image fails
 * (or is absent), JS hides the <img> and the monogram fallback shows through.
 */
.cafe-media {
    position: relative;
    background:
        radial-gradient(120% 120% at 30% 0%, var(--accent-soft), transparent 55%),
        linear-gradient(140deg, var(--bg-elev-2), var(--bg-elev));
}
.cafe-fallback {
    position: absolute; inset: 0; display: grid; place-items: center; z-index: 0;
}
.cafe-media img {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--dur-base) var(--ease);
}
.card:hover .cafe-media img { transform: scale(1.05); }
/* Keep the area / "Since YYYY" badge above the photo layer. */
.cafe-media .card-type { z-index: 2; }
.cafe-initial {
    font-size: clamp(3.2rem, 12vw, 4.6rem); font-weight: 700; line-height: 1;
    color: var(--text); opacity: 0.14; letter-spacing: -0.04em;
    font-family: var(--font-display);
}
.cafe-cup {
    position: absolute; font-size: 1.6rem; color: var(--accent-ink);
    opacity: 0.9; filter: drop-shadow(0 4px 12px var(--accent-ring));
}

/*
 * Cafe detail hero: same shape as a photo hero, but a gradient + monogram instead of an image.
 * The hero text is white (like over a photo), so we keep a consistently dark backdrop in both
 * themes for reliable contrast.
 */
.detail-hero--cafe { background: linear-gradient(140deg, #1b1b24, #0c0c12); }
.cafe-hero-art {
    position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
    background:
        radial-gradient(60% 80% at 80% 0%, rgba(255, 90, 95, 0.16), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(15, 138, 138, 0.18), transparent 60%);
}
.cafe-hero-initial {
    font-size: clamp(9rem, 40vw, 20rem); font-weight: 700; line-height: 1;
    color: #fff; opacity: 0.07; letter-spacing: -0.05em;
    font-family: var(--font-display);
}
.cafe-hero-art > i {
    position: absolute; font-size: clamp(3rem, 10vw, 5rem); color: var(--accent-ink);
    opacity: 0.85; filter: drop-shadow(0 8px 24px var(--accent-ring));
}

/* ---------- authentic eats ---------- */
/* Content band kept plain for a calm scroll rhythm (only the teaser interlude carries a tint). */
.section--eats { position: relative; }
/* "Since YYYY" heritage badge on the eatery card tile. */
.card-type--since {
    background: var(--accent-strong); color: #fff;
    font-variant-numeric: tabular-nums; letter-spacing: 0.05em;
}

/* ---------- things to do ---------- */
.section--do { position: relative; }

/* ---------- detail ---------- */
.detail-hero { position: relative; min-height: clamp(320px, 46vh, 460px); display: flex; align-items: flex-end; overflow: hidden; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-overlay {
    position: absolute; inset: 0;
    /* Grade both ends so the top-left back link and the bottom title block stay legible on any photo. */
    background:
        linear-gradient(180deg, rgba(8, 8, 10, 0.45) 0%, rgba(8, 8, 10, 0.1) 22%, rgba(8, 8, 10, 0.55) 60%, rgba(8, 8, 10, 0.94) 100%);
}
/* Top padding clears the fixed header so the "All places" back link never tucks under the navbar,
   even on a short hero where the bottom-aligned content block reaches the top. */
.detail-hero-inner { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 1rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); color: #fff; }
/* A self-contained pill so the back link is always legible over any hero — bright photo,
   dark gradient, or a washed-out sky — and consistent across every detail type. */
.back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    align-self: flex-start; margin-bottom: 1.1rem;
    padding: 0.5rem 0.95rem; border-radius: var(--radius-pill);
    font-size: var(--step--1); font-weight: 500; color: #fff;
    background: rgba(8, 8, 10, 0.55); border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.back i { font-size: 0.85em; }
.back:hover { background: rgba(8, 8, 10, 0.75); border-color: rgba(255, 255, 255, 0.45); transform: translateX(-2px); }
.detail-type {
    display: inline-block; background: var(--accent-strong); color: #fff;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.3rem 0.65rem; border-radius: var(--radius-pill); margin-bottom: 0.75rem;
}
.detail-hero-inner h1 { font-size: var(--step-4); }
.detail-hero-inner h1 small { font-size: 0.45em; color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.detail-tag { color: rgba(255, 255, 255, 0.88); font-size: var(--step-1); max-width: 55ch; margin-top: 0.5rem; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.1rem; }
.detail-facts li { display: flex; align-items: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.9); font-size: var(--step--1); }
.detail-facts i { color: var(--accent); }

/* padding-block only: keep the .container horizontal padding so text never touches the edge */
.detail-body { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }
.block h2 { font-size: var(--step-2); margin-bottom: 0.9rem; }
.block > p { color: var(--text-muted); max-width: 72ch; }

.reach { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.reach li {
    display: flex; gap: 0.9rem; align-items: flex-start;
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem 1.1rem;
}
.reach i { color: var(--accent-ink); font-size: 1.1rem; margin-top: 0.15rem; width: 1.3rem; text-align: center; }
.reach strong { display: block; margin-bottom: 0.2rem; }
.reach span { color: var(--text-muted); font-size: var(--step--1); }

.best-line { color: var(--text); font-weight: 500; margin-bottom: 0.9rem; }
.months { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.month {
    min-width: 3rem; text-align: center; padding: 0.4rem 0.2rem;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    color: var(--text-dim); font-size: var(--step--1); font-variant-numeric: tabular-nums;
}
.month.is-good { background: var(--accent-soft); border-color: var(--accent-ring); color: var(--accent-ink); font-weight: 600; }

.cautions { display: grid; gap: 0.7rem; max-width: 80ch; }
.cautions li {
    position: relative; padding-left: 1.6rem; color: var(--text-muted);
}
.cautions li::before {
    content: "\f071"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 0.15rem; color: var(--accent-ink); font-size: 0.85rem;
}
/* Plain list variant (e.g. "What to see") — a neutral marker instead of the warning triangle. */
.cautions--plain li::before {
    content: "\f00c"; /* check */ font-size: 0.8rem; top: 0.2rem;
}

/* ---------- booking ---------- */
.book-intro { color: var(--text-muted); max-width: 70ch; margin-bottom: 1.2rem; }
.book-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.book-btn {
    display: flex; flex-direction: column; gap: 0.35rem;
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem 1.1rem;
    transition: transform var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.book-btn:hover { transform: translateY(-2px); border-color: var(--accent-ring); box-shadow: var(--glow); }
.book-btn-top { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: var(--step-1); }
.book-btn-top > i:first-child { color: var(--accent-ink); }
.book-ext { margin-left: auto; font-size: 0.7em; color: var(--text-dim); }
.book-note { color: var(--text-muted); font-size: var(--step--1); }

/* ---------- footer + to-top ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 2rem; }
.footer-inner { display: flex; flex-direction: column; gap: 0.3rem; color: var(--text-muted); font-size: var(--step--1); }
.footer-note { color: var(--text-dim); }

.to-top {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-strong); color: #fff; box-shadow: var(--glow);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity var(--dur-base), visibility var(--dur-base), transform var(--dur-base), background var(--dur-fast);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-hover); }

/* ============================================================
   Responsive / mobile
   The base layout is fluid (clamps + auto-fill grids), so these
   breakpoints mostly tune spacing and stacking for small screens.
   ============================================================ */

/* Tablets and small laptops */
@media (max-width: 820px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .reach { grid-template-columns: 1fr; }
    .book-grid { grid-template-columns: 1fr; }

    /* Hero stacks: copy on top, the mosaic becomes a shorter banner below. */
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title, .hero-lede { max-width: none; }
    .hero-collage { width: 100%; max-height: 320px; aspect-ratio: 16 / 9; margin-left: 0; }

    /* Desktop links hide; the hamburger + slide-in drawer take over. */
    .nav-desktop { display: none; }
    .nav-open { display: grid; }
    .nav-portfolio { display: none; }

    /* Drawer is a top-level overlay (not a header descendant, so it never inherits the
       header's blur). Above the backdrop (130) and header (110), with its own close button. */
    .nav-drawer {
        position: fixed; top: 0; right: 0; z-index: 140;
        height: 100%; width: min(84vw, 320px);
        display: flex; flex-direction: column; gap: 0.4rem;
        padding: 1.25rem 1.4rem 2rem;
        background: var(--bg-elev); border-left: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform var(--dur-base) var(--ease);
        overflow-y: auto;
    }
    .nav-drawer.is-open { transform: translateX(0); }

    .nav-drawer .nav-links {
        flex-direction: column; align-items: stretch; gap: 0.2rem;
        margin-top: 3rem; /* clear the absolutely-positioned close button */
    }
    .nav-drawer .nav-links a {
        padding: 0.9rem 0.4rem; font-size: var(--step-1);
        color: var(--text); border-bottom: 1px solid var(--border);
    }
    .nav-drawer .nav-links a::after { display: none; }
    .nav-drawer .nav-links a:hover, .nav-drawer .nav-links a.is-active { color: var(--accent-ink); }

    .nav-close {
        display: grid; place-items: center;
        position: absolute; top: 0.9rem; right: 1.1rem;
        width: 42px; height: 42px; border-radius: 50%;
        color: var(--text-muted); background: var(--bg-elev-2); border: 1px solid var(--border);
    }
    .nav-close:hover { color: var(--accent); border-color: var(--accent); }

    /* "By Jagdish Sahoo" lands at the foot of the drawer (margin-top:auto pins it to the
       bottom), set apart from the nav links with a rule above it. */
    .nav-drawer-portfolio {
        margin-top: auto; display: inline-flex; align-items: center; gap: 0.55rem;
        padding-top: 1.1rem; border-top: 1px solid var(--border);
        color: var(--text-muted); font-size: var(--step--1);
        transition: color var(--dur-fast) var(--ease);
    }
    .nav-drawer-portfolio i { font-size: 0.8em; color: var(--accent-ink); }
    .nav-drawer-portfolio:hover { color: var(--accent-ink); }
}

/* Phones */
@media (max-width: 560px) {
    :root { --header-h: 62px; }

    /* One clean column of cards, comfortable gutters */
    .grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Custom grids (itineraries, themes, facts, words, nearby, quiz options) also collapse to a
       single column so their min-widths can't cause horizontal overflow on narrow phones. */
    .itin-grid,
    .fact-grid,
    .word-grid,
    .near-list,
    .quiz-opts { grid-template-columns: 1fr; }

    /* Hero: tighter, but still clears the fixed header */
    .hero { padding: calc(var(--header-h) + 1.5rem) 0 1.5rem; }
    .hero-title { max-width: 100%; }
    .hero-cta { gap: 0.6rem; }
    .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
    .hero-collage { max-height: 240px; }
    .hero-stats { gap: 0.5rem 1.2rem; margin-top: 1.4rem; }

    /* Section spacing */
    .section { padding: 1.5rem 0 2.5rem; }
    .section-head { margin-bottom: 1.1rem; }

    /* Filters scroll horizontally instead of wrapping into tall stacks */
    .filters {
        flex-wrap: nowrap; overflow-x: auto; margin-bottom: 1.25rem;
        padding-bottom: 0.35rem; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filters::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; }

    /* Detail hero: let it grow to fit its content so the bottom-aligned block never
       overflows upward under the fixed header. The header-clearing padding-top stays. */
    .detail-hero { min-height: 260px; }
    .detail-hero-inner { padding-bottom: 1.5rem; }
    .detail-facts { gap: 0.7rem 1rem; }
    .detail-facts li { font-size: var(--step--1); }
    .detail-body { gap: 1.5rem; padding-block: 1.75rem 2.5rem; }

    /* Bigger, easier back-to-top target away from the thumb zone edge */
    .to-top { right: 1rem; bottom: 1rem; width: 46px; height: 46px; }

    /* Footer breathes a little less */
    .site-footer { padding: 1.5rem 0; }
}

/* Very small phones */
@media (max-width: 380px) {
    .brand { font-size: var(--step-0); }
    .card-head { flex-wrap: wrap; }
    .card-dist { white-space: normal; }
}

/* Users who prefer reduced motion: drop the transforms and smooth scroll */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
    .card:hover, .btn:hover, .book-btn:hover, .hero-tile:hover img { transform: none; }
}

/* ============================================================
   Feature layer UI — search, favourites, plan, filters, badges,
   intents, map, phrasebook, share, toast. All theme-aware and
   responsive down to small phones.
   ============================================================ */

/* ---------- header icon badge (saved / plan counts) ---------- */
.icon-btn { position: relative; }
.icon-badge {
    position: absolute; top: -3px; right: -3px;
    min-width: 17px; height: 17px; padding: 0 4px;
    display: grid; place-items: center;
    font-size: 0.62rem; font-weight: 700; line-height: 1;
    color: #fff; background: var(--accent-strong); border-radius: var(--radius-pill);
    box-shadow: 0 0 0 2px var(--bg);
}
/* [hidden] alone can't beat display:grid above, so hide the zero-count badge explicitly. */
.icon-badge[hidden] { display: none; }

/* Keep the header actions calm on small screens: saved + plan live in the drawer on phones. */
@media (max-width: 720px) {
    #saved-link, #plan-link { display: none; }
}

/* ---------- favourite (heart) button on cards + details ---------- */
.fav-btn {
    position: absolute; top: 0.6rem; right: 0.6rem; z-index: 3;
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(8, 8, 10, 0.6); color: #fff;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), color var(--dur-fast);
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.is-on { color: var(--accent); background: rgba(8, 8, 10, 0.72); }
.fav-btn.is-on .fa-heart { animation: fav-pop 0.28s var(--ease); }
@keyframes fav-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Labelled variant used in the detail action row (not absolutely positioned). */
.detail-actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.2rem;
}
.fav-btn--label {
    position: static; width: auto; height: auto; border-radius: var(--radius-pill);
    padding: 0.55rem 1rem; gap: 0.5rem; font-weight: 600; font-size: var(--step--1);
}
.fav-btn--label::after { content: 'Save'; }
.fav-btn--label.is-on::after { content: 'Saved'; }

.plan-btn, .share-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1rem; border-radius: var(--radius-pill);
    font-size: var(--step--1); font-weight: 600;
    background: rgba(255, 255, 255, 0.1); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), border-color var(--dur-fast);
}
.plan-btn:hover, .share-btn:hover { transform: translateY(-2px); border-color: var(--accent-ring); }
.plan-btn.is-on { background: var(--accent-strong); border-color: transparent; }

/* ---------- season / open-today badges on cards ---------- */
.card-badges { position: absolute; left: 0.6rem; bottom: 0.6rem; z-index: 2; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em;
    padding: 0.28rem 0.55rem; border-radius: var(--radius-pill);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge--good { background: rgba(52, 211, 153, 0.9); color: #04231a; }
.badge--off { background: rgba(8, 8, 10, 0.72); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }

/* Veg / non-veg tag in the card head. */
.veg-tag { text-transform: capitalize; }
.veg-tag--veg { color: var(--success); }
.veg-tag--mixed { color: var(--accent-ink); }

/* ---------- intent tag pills ---------- */
.tag-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.detail-body > .tag-pills { margin: 0 0 0.4rem; }
.tag-pill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; color: var(--text-dim);
    background: var(--bg-elev-2); border: 1px solid var(--border);
    padding: 0.25rem 0.6rem; border-radius: var(--radius-pill);
}
.tag-pill i { color: var(--accent-ink); font-size: 0.85em; }

/* ---------- compact dropdown filter bar (area + vibe) ---------- */
.filters--select {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.filter-select { display: inline-flex; flex-direction: column; gap: 0.3rem; }
.filter-select-label {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: var(--step--1); color: var(--text-dim); font-weight: 600;
    letter-spacing: 0.01em; padding-left: 0.15rem;
}
.filter-select-label i { color: var(--accent-ink); font-size: 0.9em; }

/* Native <select> styled to match the pills/cards, with a custom chevron. Native picker
   means the OS handles the dropdown on every device (great on mobile) and it stays accessible. */
.select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    min-width: 12rem; max-width: 100%;
    font: inherit; font-size: var(--step-0); color: var(--text);
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: 0.55rem 2.4rem 0.55rem 1rem;
    cursor: pointer; line-height: 1.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a7a7b4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.select:hover { border-color: var(--border-strong); }
.select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
/* The option list is OS-rendered; make sure text is legible in dark mode where supported. */
.select option { color: var(--text); background: var(--bg-elev); }

.filter-clear {
    display: inline-flex; align-items: center; gap: 0.4rem; align-self: center;
    margin-bottom: 0.1rem;
    font-size: var(--step--1); font-weight: 600; color: var(--text-muted);
    padding: 0.5rem 0.9rem; border-radius: var(--radius-pill);
    border: 1px solid var(--border); transition: color var(--dur-fast), border-color var(--dur-fast);
}
.filter-clear:hover { color: var(--accent-ink); border-color: var(--accent-ring); }

.grid-empty { color: var(--text-muted); padding: 1.5rem 0; }

@media (max-width: 560px) {
    /* Two dropdowns side by side, each taking half the row; clear + count drop below full-width.
       Override the generic .filters nowrap/overflow (meant for the chip row) so these can wrap. */
    .filters--select { flex-wrap: wrap; overflow: visible; gap: 0.6rem 0.6rem; }
    .filter-select { flex: 1 1 45%; min-width: 0; }
    .select { min-width: 0; width: 100%; }
    .filter-clear { flex: 1 1 100%; justify-content: center; }
}

/* ---------- standalone pages (saved / plan / map / phrases) ---------- */
.section--page { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 2.5rem)); }
.page-head { margin-bottom: 1.75rem; }
/* Inline back link on standalone pages (Saved/Plan/Map/Phrases): plain text, not the dark
   over-photo pill that .back provides — so it reads correctly on a normal page background. */
.back--inline {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: var(--text-muted); font-size: var(--step--1);
    margin-bottom: 0.9rem; padding: 0.35rem 0.4rem; border-radius: var(--radius-sm);
    background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    font-weight: 600;
}
.back--inline:hover { color: var(--accent-ink); background: none; border-color: transparent; transform: translateX(-2px); }

.empty-state {
    text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 1rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.empty-state i { font-size: 2.6rem; color: var(--accent-ink); opacity: 0.7; }
.empty-state h2 { font-size: var(--step-2); }
.empty-state p { color: var(--text-muted); max-width: 46ch; }
.empty-state .btn { margin-top: 0.6rem; }

/* Generic cross-collection card (saved + plan lists). Behaves like .card but isn't a bare <a>. */
.card--entry { position: relative; }
.card--entry .card-link { display: block; }
.card--entry .card-head h3 a:hover { color: var(--accent-ink); }

/* ---------- weekend plan ---------- */
.plan-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.5rem; }
.plan-grid { counter-reset: plan; }
.plan-grid > li { position: relative; counter-increment: plan; }
.plan-grid > li::before {
    content: counter(plan); position: absolute; top: -8px; left: -8px; z-index: 4;
    width: 28px; height: 28px; display: grid; place-items: center;
    background: var(--accent-strong); color: #fff; font-weight: 700; font-size: 0.8rem;
    border-radius: 50%; box-shadow: var(--shadow-sm);
}
.plan-controls { display: flex; gap: 0.4rem; margin-top: 0.3rem; }
.plan-controls .icon-btn { width: 34px; height: 34px; }

/* ---------- map ---------- */
.map-canvas {
    width: 100%; height: clamp(420px, 68vh, 720px);
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); background: var(--bg-elev-2);
}
.map-canvas .leaflet-popup-content a { color: var(--accent-strong); font-weight: 600; }
.map-fail { padding: 2rem; text-align: center; color: var(--text-muted); }

/* ---------- Kannada phrasebook ---------- */
.phrase-wrap { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.phrase-group h2 { font-size: var(--step-2); margin-bottom: 0.9rem; }
.phrase-list { display: grid; gap: 0.6rem; }
.phrase-row {
    display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1rem; align-items: baseline;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.85rem 1.1rem;
}
.phrase-en { color: var(--text-muted); font-size: var(--step--1); }
.phrase-roman { font-weight: 600; }
.phrase-kn { color: var(--accent-ink); font-size: var(--step-1); text-align: right; }
@media (max-width: 560px) {
    .phrase-row { grid-template-columns: 1fr; gap: 0.2rem; }
    .phrase-kn { text-align: left; }
}

/* ---------- global search palette ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; }
.search-backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; transition: opacity var(--dur-base) var(--ease);
}
.search-overlay.is-open .search-backdrop { opacity: 1; }
.search-panel {
    position: relative; z-index: 1;
    width: min(640px, 92vw); margin: clamp(3.5rem, 12vh, 9rem) auto 0;
    background: var(--bg-elev); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    overflow: hidden; transform: translateY(-12px) scale(0.98); opacity: 0;
    transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.search-overlay.is-open .search-panel { transform: translateY(0) scale(1); opacity: 1; }
.search-input-wrap {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.9rem 1rem; border-bottom: 1px solid var(--border);
}
.search-input-wrap > .fa-magnifying-glass { color: var(--text-dim); }
.search-input {
    flex: 1; min-width: 0; background: none; border: 0; color: var(--text);
    font: inherit; font-size: var(--step-1); padding: 0.3rem 0;
}
.search-input:focus { outline: none; }
.search-close { width: 34px; height: 34px; }
.search-results { max-height: min(52vh, 440px); overflow-y: auto; padding: 0.4rem; }
.search-result {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.7rem 0.8rem; border-radius: var(--radius); cursor: pointer;
}
.search-result:hover, .search-result.is-active { background: var(--bg-elev-2); }
.search-result-icon {
    width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink);
}
.search-result-text { display: flex; flex-direction: column; min-width: 0; }
.search-result-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { font-size: var(--step--1); color: var(--text-dim); }
.search-result-go { margin-left: auto; color: var(--text-dim); opacity: 0; transition: opacity var(--dur-fast); }
.search-result:hover .search-result-go, .search-result.is-active .search-result-go { opacity: 1; }
.search-empty { padding: 1.2rem 1rem; color: var(--text-muted); }
.search-hint { padding: 0.7rem 1rem; border-top: 1px solid var(--border); font-size: var(--step--1); color: var(--text-dim); }
@media (max-width: 560px) {
    .search-panel { margin-top: 0; width: 100vw; height: 100dvh; border-radius: 0; display: flex; flex-direction: column; }
    .search-results { max-height: none; flex: 1; }
}

/* ---------- toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: clamp(1.2rem, 5vw, 2.5rem); transform: translate(-50%, 20px);
    z-index: 210; background: var(--bg-elev-2); color: var(--text);
    border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
    padding: 0.7rem 1.15rem; border-radius: var(--radius-pill); font-size: var(--step--1); font-weight: 600;
    opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
    max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- desktop "Explore" mega-menu ---------- */
.nav-drop { position: relative; }
.nav-drop-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: var(--step-0); color: var(--text-muted); padding: 0.4rem 0.2rem;
    transition: color var(--dur-fast) var(--ease);
}
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { color: var(--text); }
.nav-drop-btn i { font-size: 0.65em; transition: transform var(--dur-fast) var(--ease); }
.nav-drop-btn[aria-expanded="true"] i { transform: rotate(180deg); }

/* [hidden] can't beat display:grid below, so hide the closed menu explicitly. */
.nav-mega[hidden] { display: none; }
.nav-mega {
    position: absolute; left: 50%; transform: translateX(-50%);
    top: calc(100% + 0.7rem); z-index: 60;
    /* Columns size to their content (max-content) so long labels like "Ready-made itineraries"
       can't overflow their track and bleed over the next column. */
    display: grid; grid-template-columns: repeat(2, max-content); gap: 0.4rem 2rem;
    padding: 1.1rem 1.3rem;
    background: var(--bg-elev); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
/* A little pointer notch tying the panel to the button. */
.nav-mega::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px; background: var(--bg-elev);
    border-left: 1px solid var(--border-strong); border-top: 1px solid var(--border-strong);
}
.nav-mega-col { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-mega-head {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-dim); font-weight: 700; margin: 0 0 0.35rem 0.6rem;
}
.nav-mega-head--spaced { margin-top: 0.9rem; }
.nav-mega a {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.55rem 0.6rem; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: var(--step-0); white-space: nowrap;
    transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-mega a::after { content: none; }
.nav-mega a:hover { background: var(--bg-elev-2); color: var(--text); }
.nav-mega a i { color: var(--accent-ink); width: 1.2em; text-align: center; font-size: 0.95em; }

/* The mega-menu is a desktop affordance; the drawer covers mobile. */
@media (max-width: 860px) {
    .nav-drop { display: none; }
}

/* ---------- mobile drawer group headings ---------- */
.drawer-group-head {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-dim); font-weight: 700;
    margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--border);
}
.nav-links--drawer .drawer-group-head:first-of-type { border-top: 0; }

/* ---------- section head with an action button (Getaways "Near me") ---------- */
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.near-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; flex: 0 0 auto;
    padding: 0.55rem 1rem; border-radius: var(--radius-pill);
    font-size: var(--step--1); font-weight: 600; color: var(--text);
    background: var(--bg-elev); border: 1px solid var(--border-strong);
    transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast), color var(--dur-fast);
}
.near-btn i { color: var(--accent-ink); }
.near-btn:hover { transform: translateY(-2px); border-color: var(--accent-ring); color: var(--accent-ink); }
.near-btn.is-loading { opacity: 0.55; pointer-events: none; }

/* ============================================================
   Ready-made itineraries, filter result count, and detail-page
   "Nearby" cross-linking. Theme-aware and responsive.
   ============================================================ */

/* ---------- filter result count ---------- */
.filter-count { color: var(--text-dim); font-size: var(--step--1); align-self: center; margin-left: auto; }
.filter-count strong { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
    .filter-count { margin-left: 0; flex: 1 1 100%; }
}

/* ---------- itineraries section + cards ---------- */
/* The itineraries + themes teasers form one "ways to explore" interlude: a shared soft tint and a
   framing top border on the first band tie them together as a distinct band between content. */
.section--itin {
    background: radial-gradient(70% 60% at 50% 0%, var(--accent-soft), transparent 65%);
    border-top: 1px solid var(--border);
}
.itin-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.itin-card {
    display: flex; flex-direction: column; gap: 0.8rem;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.3rem 1.35rem;
    box-shadow: var(--edge-highlight);
    transition: transform var(--dur-base) var(--ease), border-color var(--dur-base), box-shadow var(--dur-base);
}
.itin-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.itin-head { display: flex; align-items: center; gap: 0.85rem; }
.itin-icon {
    width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink);
    font-size: 1.15rem;
}
.itin-head h3 { font-size: var(--step-2); }
.itin-meta { color: var(--text-dim); font-size: var(--step--1); }
.itin-summary { color: var(--text-muted); font-size: var(--step-0); }
.itin-stops { display: flex; flex-direction: column; gap: 0.35rem; }
.itin-stops li { display: flex; align-items: center; gap: 0.55rem; color: var(--text-muted); font-size: var(--step--1); }
.itin-stops li i { color: var(--accent-ink); width: 1.1em; text-align: center; font-size: 0.9em; }
.itin-more { color: var(--text-dim) !important; font-style: italic; }
.itin-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 0.4rem; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: var(--step--1); }

/* ---------- detail-page "Nearby" cross-links ---------- */
.near-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.7rem; }
.near-card {
    display: flex; align-items: center; gap: 0.8rem;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.8rem 0.9rem;
    transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease), background var(--dur-fast);
}
.near-card:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--bg-elev-2); }
.near-card-icon {
    width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink);
}
.near-card-text { display: flex; flex-direction: column; min-width: 0; }
.near-card-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near-card-meta { font-size: var(--step--1); color: var(--text-dim); }
.near-card-go { margin-left: auto; color: var(--text-dim); opacity: 0; transition: opacity var(--dur-fast); }
.near-card:hover .near-card-go { opacity: 1; }

/* ============================================================
   Accessibility helpers: screen-reader-only text, and stronger
   focus rings for keyboard users on interactive controls.
   ============================================================ */
.sr-only {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* Make keyboard focus obvious on the newer interactive elements too. */
.select:focus-visible,
.filter-clear:focus-visible,
.near-btn:focus-visible,
.nav-drop-btn:focus-visible,
.nav-mega a:focus-visible,
.itin-card a:focus-visible,
.near-card:focus-visible,
.search-result:focus-visible,
.fav-btn:focus-visible,
.plan-btn:focus-visible,
.share-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Slightly stronger dim text in light theme so small metadata clears WCAG AA contrast. */
[data-theme="light"] { --text-dim: #5f5f6b; }

/* ============================================================
   First-visit onboarding nudge
   ============================================================ */
.onboard-overlay { position: fixed; inset: 0; z-index: 220; }
.onboard-backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; transition: opacity var(--dur-base) var(--ease);
}
.onboard-overlay.is-open .onboard-backdrop { opacity: 1; }
.onboard-panel {
    position: relative; z-index: 1;
    width: min(560px, 92vw); margin: clamp(4rem, 14vh, 10rem) auto 0;
    background: var(--bg-elev); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: clamp(1.5rem, 4vw, 2.4rem);
    transform: translateY(-12px) scale(0.98); opacity: 0;
    transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.onboard-overlay.is-open .onboard-panel { transform: translateY(0) scale(1); opacity: 1; }
.onboard-close { position: absolute; top: 0.9rem; right: 0.9rem; width: 36px; height: 36px; }
.onboard-eyebrow {
    text-transform: uppercase; letter-spacing: 0.14em; font-size: var(--step--1);
    color: var(--accent-ink); font-weight: 600; margin-bottom: 0.4rem;
}
.onboard-title { font-size: var(--step-3); }
.onboard-sub { color: var(--text-muted); margin: 0.4rem 0 1.4rem; }
.onboard-choices { display: flex; flex-direction: column; gap: 0.7rem; }
.onboard-choice {
    display: flex; align-items: center; gap: 1rem; text-align: left;
    padding: 0.9rem 1rem; border-radius: var(--radius);
    background: var(--bg-elev-2); border: 1px solid var(--border);
    transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast), background var(--dur-fast);
}
.onboard-choice:hover { transform: translateY(-2px); border-color: var(--accent-ring); }
.onboard-choice-icon {
    width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink);
    font-size: 1.2rem;
}
.onboard-choice-text { display: flex; flex-direction: column; gap: 0.1rem; }
.onboard-choice-text strong { font-size: var(--step-1); font-weight: 600; }
.onboard-choice-text span { color: var(--text-muted); font-size: var(--step--1); }
.onboard-skip {
    display: block; margin: 1.2rem auto 0; color: var(--text-dim);
    font-size: var(--step--1); text-decoration: underline; text-underline-offset: 3px;
}
.onboard-skip:hover { color: var(--text); }
@media (max-width: 560px) {
    .onboard-panel { margin-top: auto; margin-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        position: fixed; left: 0; right: 0; bottom: 0; width: 100%;
        max-height: 88dvh; overflow-y: auto; }
    .onboard-overlay:not([hidden]) { display: flex; align-items: flex-end; }
}

/* ============================================================
   Educational modules: Did you know?, history timeline,
   etiquette, and local words. Theme-aware and responsive.
   ============================================================ */

/* ---------- "Did you know?" fact cards ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.8rem; }
.fact-card {
    display: flex; gap: 0.75rem; align-items: flex-start;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-left: 3px solid var(--accent); border-radius: var(--radius);
    padding: 0.9rem 1rem; color: var(--text-muted); font-size: var(--step-0);
}
.fact-card i { color: var(--accent-ink); margin-top: 0.15rem; flex: 0 0 auto; }

/* ---------- history timeline ---------- */
.timeline { position: relative; margin-left: 0.4rem; padding-left: 1.4rem; }
.timeline::before {
    content: ''; position: absolute; left: 5px; top: 0.4rem; bottom: 0.4rem;
    width: 2px; background: var(--border-strong);
}
.timeline-item { position: relative; padding: 0.35rem 0 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -1.4rem; top: 0.6rem;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 3px var(--bg);
    transform: translateX(1px);
}
.timeline-year { font-weight: 700; color: var(--accent-ink); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.timeline-year--dot { display: none; }
.timeline-event { color: var(--text-muted); }

/* ---------- etiquette block ---------- */
.block--etiquette h2 { display: flex; align-items: center; gap: 0.55rem; }
.block--etiquette h2 i { color: var(--accent-ink); font-size: 0.9em; }
/* Reuse the base .cautions positioning but swap the warning icon for a green check. */
.cautions--etiquette li::before {
    content: '\f00c'; /* check */
    color: var(--success);
}

/* ---------- local words ---------- */
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.7rem; }
.word-card {
    display: flex; flex-direction: column; gap: 0.15rem;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.75rem 0.9rem;
}
.word-term { font-weight: 700; color: var(--accent-ink); font-size: var(--step-1); }
.word-meaning { color: var(--text-muted); font-size: var(--step--1); }

/* ============================================================
   Responsible tips, "Best for" row, themes, and glossary.
   ============================================================ */

/* ---------- responsible / sustainable tips ---------- */
.block--responsible h2 { display: flex; align-items: center; gap: 0.55rem; }
.block--responsible h2 i { color: var(--success); font-size: 0.9em; }
.cautions--responsible li::before {
    content: '\f06c'; /* leaf */
    color: var(--success);
}

/* ---------- "Best for" + effort chip row ---------- */
.block--bestfor { padding: 0; }
.bestfor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.bestfor-label { font-size: var(--step--1); color: var(--text-dim); font-weight: 600; margin-right: 0.2rem; }
.tag-pill--effort { border-color: var(--accent-ring); color: var(--accent-ink); }
.tag-pill--effort i { color: var(--accent-ink); }

/* ---------- themes ---------- */
.section--themes {
    background: radial-gradient(70% 60% at 50% 100%, var(--accent-soft), transparent 65%);
    border-bottom: 1px solid var(--border);
}
.theme-card { text-decoration: none; }
.theme-link {
    display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto;
    color: var(--accent-ink); font-size: var(--step--1); font-weight: 600;
}
.theme-card:hover .theme-link { gap: 0.65rem; }
.theme-hero { display: flex; align-items: center; gap: 0.9rem; margin: 0.4rem 0 0.2rem; }
.theme-hero-icon { width: 52px; height: 52px; font-size: 1.35rem; }
.theme-intro { color: var(--text-muted); font-size: var(--step-1); max-width: 72ch; margin-top: 0.6rem; }
.theme-places-head { font-size: var(--step-2); margin: 1.5rem 0 1rem; }

/* ---------- glossary ---------- */
.glossary { display: grid; gap: 0.6rem; max-width: 800px; }
.glossary-row {
    display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 1rem; align-items: baseline;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.85rem 1.1rem;
}
.glossary-term { font-weight: 700; color: var(--accent-ink); }
.glossary-meaning { color: var(--text-muted); }
@media (max-width: 560px) {
    .glossary-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ============================================================
   Audio narration, "Fun for kids", sources, and theme quiz.
   ============================================================ */

/* ---------- "Listen to this place" button ---------- */
.listen-btn {
    display: inline-flex; align-items: center; gap: 0.55rem;
    margin-bottom: 1.4rem;
    padding: 0.6rem 1.1rem; border-radius: var(--radius-pill);
    font-size: var(--step--1); font-weight: 600; color: var(--text);
    background: var(--bg-elev); border: 1px solid var(--border-strong);
    transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast), color var(--dur-fast);
}
.listen-btn i { color: var(--accent-ink); }
.listen-btn:hover { transform: translateY(-2px); border-color: var(--accent-ring); color: var(--accent-ink); }
.listen-btn.is-playing { background: var(--accent-strong); color: #fff; border-color: transparent; }
.listen-btn.is-playing i { color: #fff; }

/* ---------- "Fun for kids" block ---------- */
.block--kids h2 { display: flex; align-items: center; gap: 0.55rem; }
.block--kids h2 i { color: var(--accent-2); font-size: 0.9em; }
.cautions--kids li::before {
    content: '\f4d6'; /* star-of-life-ish; use a face/star */
    content: '\f005'; /* star */
    color: var(--accent-2);
}

/* ---------- further reading / sources ---------- */
.sources-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sources-list a {
    display: inline-flex; align-items: center; gap: 0.55rem;
    color: var(--text-muted); font-size: var(--step-0);
    transition: color var(--dur-fast);
}
.sources-list a i { color: var(--accent-ink); font-size: 0.85em; }
.sources-list a:hover { color: var(--accent-ink); }

/* ---------- theme quiz ---------- */
.quiz { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.quiz .theme-places-head { display: flex; align-items: center; gap: 0.55rem; margin-top: 0; }
.quiz .theme-places-head i { color: var(--accent-ink); }
.quiz-list { display: grid; gap: 1.4rem; counter-reset: quiz; }
.quiz-item { counter-increment: quiz; }
.quiz-q { font-weight: 600; font-size: var(--step-1); margin-bottom: 0.8rem; }
.quiz-q::before { content: counter(quiz) '. '; color: var(--accent-ink); font-weight: 700; }
.quiz-opts { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.quiz-opt {
    text-align: left; padding: 0.7rem 0.95rem; border-radius: var(--radius);
    background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
    font-size: var(--step-0); transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.quiz-opt:not(:disabled):hover { border-color: var(--border-strong); transform: translateY(-2px); }
.quiz-opt.is-correct { background: rgba(52, 211, 153, 0.16); border-color: var(--success); color: var(--text); }
.quiz-opt.is-wrong { background: var(--accent-soft); border-color: var(--accent); }
.quiz-opt:disabled { cursor: default; }
.quiz-feedback { margin-top: 0.6rem; font-size: var(--step--1); font-weight: 600; min-height: 1.2em; }
.quiz-feedback.is-right { color: var(--success); }
.quiz-feedback.is-wrong { color: var(--accent-ink); }

/* ============================================================
   Compare, scrollytelling story mode, and micro-interactions.
   ============================================================ */

/* ---------- card footer row (tags + compare) ---------- */
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.15rem; }
.card-foot .tag-pills { margin-top: 0; }
.card-cat { color: var(--accent-2-ink); font-weight: 600; }
.card-meta-sep { color: var(--text-dim); margin: 0 0.15rem; }

/* Compare toggle now lives in the card body (decluttered off the image), styled in the calm teal. */
.compare-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem; flex: 0 0 auto;
    padding: 0.4rem 0.75rem; border-radius: var(--radius-pill);
    font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
    background: var(--bg-elev-2); border: 1px solid var(--border);
    transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.compare-toggle:hover { color: var(--accent-2-ink); border-color: var(--accent-2-ink); }
.compare-toggle.is-on { background: var(--accent-2); color: #fff; border-color: transparent; }
.compare-toggle i { font-size: 0.9em; }
/* Clicks always land on the button, never the icon/label or a FontAwesome-swapped SVG. */
.compare-toggle * { pointer-events: none; }
/* Season/open badge sits alone at the bottom-left of the image now. */
.card-media .card-badges { bottom: 0.6rem; }

/* ---------- floating compare bar ---------- */
.compare-bar {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: clamp(1rem, 4vw, 2rem); z-index: 150;
    display: flex; align-items: center; gap: 1rem;
    padding: 0.6rem 0.7rem 0.6rem 1.1rem; border-radius: var(--radius-pill);
    background: var(--bg-elev); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
    animation: cmp-rise var(--dur-base) var(--ease);
}
@keyframes cmp-rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.compare-bar-count { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: var(--step--1); }
.compare-bar-count i { color: var(--accent-ink); }
.compare-bar-actions { display: inline-flex; align-items: center; gap: 0.6rem; }
.compare-bar-clear { color: var(--text-dim); font-size: var(--step--1); font-weight: 600; }
.compare-bar-clear:hover { color: var(--accent-ink); }

/* ---------- compare table ---------- */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 520px; }
.cmp-table th, .cmp-table td {
    padding: 0.85rem 1rem; text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--border); font-size: var(--step-0);
}
.cmp-table thead td, .cmp-table thead th { border-bottom: 2px solid var(--border-strong); vertical-align: bottom; }
.cmp-table tbody th { color: var(--text-dim); font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
.cmp-table td { color: var(--text-muted); }
.cmp-corner { width: 8rem; }
.cmp-place { display: flex; flex-direction: column; gap: 0.5rem; font-weight: 600; color: var(--text); }
.cmp-place img { width: 100%; max-width: 160px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }
.cmp-place:hover { color: var(--accent-ink); }
.cmp-remove {
    margin-top: 0.4rem; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; color: var(--text-muted);
    background: var(--bg-elev-2); border: 1px solid var(--border);
}
.cmp-remove:hover { color: var(--accent); border-color: var(--accent); }
.cmp-clear { margin-top: 1.2rem; }

/* ---------- scrollytelling story mode ---------- */
.story { display: grid; gap: clamp(1.5rem, 4vw, 3rem); margin: 1.5rem 0 2.5rem; }
.story-panel {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 4vw, 2.5rem);
    align-items: center;
}
.story-panel--alt { direction: rtl; }
.story-panel--alt > * { direction: ltr; }
.story-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.story-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.story-copy h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.story-copy p { color: var(--text-muted); font-size: var(--step-1); max-width: 52ch; }
@media (max-width: 700px) {
    .story-panel, .story-panel--alt { grid-template-columns: 1fr; direction: ltr; }
}

/* ---------- reveal-on-scroll micro-interaction ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- hero ambient motion (subtle Ken Burns) ---------- */
.hero-tile img { animation: kenburns 22s ease-in-out infinite alternate; }
.hero-tile:nth-child(2) img { animation-duration: 26s; }
.hero-tile:nth-child(3) img { animation-duration: 30s; }
.hero-tile:nth-child(4) img { animation-duration: 24s; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-tile:hover img { animation-play-state: paused; }

/* Respect reduced motion for all of the above (belt-and-suspenders over the global rule). */
@media (prefers-reduced-motion: reduce) {
    .hero-tile img { animation: none; }
    .reveal { opacity: 1; transform: none; }
    .compare-bar { animation: none; }
}

/* ============================================================
   Gamified learning: daily fact, journey/progress, badges,
   quiz scoring, confetti, explored tick.
   ============================================================ */

/* ---------- daily "learn something new" banner ---------- */
.daily-fact {
    display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
    margin: 1.25rem 0 0; padding: 0.9rem 1.1rem;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.daily-icon { color: var(--accent-ink); font-size: 1.1rem; flex: 0 0 auto; }
.daily-text { color: var(--text-muted); font-size: var(--step-0); flex: 1 1 240px; margin: 0; }
.daily-text strong { color: var(--text); }
.daily-streak {
    display: inline-flex; align-items: center; gap: 0.4rem; flex: 0 0 auto;
    font-size: var(--step--1); font-weight: 700; color: #fff;
    background: linear-gradient(90deg, #ff7a18, var(--accent-strong));
    padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
}

/* ---------- explored tick on cards ---------- */
/* Sits bottom-right — a clear corner on every card type, so it never collides with the top-left
   category label, the top-right heart, or the bottom-left season/compare badges. */
.explored-tick {
    position: absolute; bottom: 0.6rem; right: 0.6rem; z-index: 4;
    width: 26px; height: 26px; display: grid; place-items: center;
    border-radius: 50%; color: #fff; background: rgba(52, 211, 153, 0.92);
    box-shadow: 0 0 0 2px rgba(8,8,10,0.35); font-size: 0.8rem;
}

/* ---------- journey / progress page ---------- */
.journey-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.8rem;
    margin-bottom: 2rem;
}
.jstat {
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; text-align: center;
}
.jstat strong { display: block; font-size: var(--step-3); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.jstat span { color: var(--text-muted); font-size: var(--step--1); }

.prog-list { display: grid; gap: 0.7rem; margin-bottom: 1rem; }
.prog-row { display: grid; grid-template-columns: 9rem 1fr 3rem; gap: 0.9rem; align-items: center; }
.prog-label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); font-weight: 600; }
.prog-label i { color: var(--accent-ink); width: 1.1em; text-align: center; }
.prog-track { height: 9px; background: var(--bg-elev-2); border-radius: var(--radius-pill); overflow: hidden; }
.prog-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: var(--radius-pill); transition: width 0.6s var(--ease); }
.prog-count { text-align: right; color: var(--text-dim); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
    .prog-row { grid-template-columns: 7rem 1fr 2.6rem; gap: 0.5rem; }
    .prog-label span { display: none; }
}

/* ---------- badges ---------- */
.badge-tally { font-size: var(--step-0); color: var(--text-dim); font-weight: 500; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
.badge-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem;
    padding: 1.1rem 0.9rem; border-radius: var(--radius-lg);
    background: var(--bg-elev); border: 1px solid var(--border);
}
.badge-card.is-locked { opacity: 0.55; }
.badge-medal {
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
    font-size: 1.3rem; margin-bottom: 0.2rem;
}
.badge-card.is-earned .badge-medal {
    color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: var(--glow);
}
.badge-card.is-locked .badge-medal { color: var(--text-dim); background: var(--bg-elev-2); }
.badge-card strong { font-size: var(--step-0); }
.badge-desc { color: var(--text-muted); font-size: var(--step--1); }
.journey-reset { margin-top: 1.5rem; }

/* ---------- quiz score summary ---------- */
.quiz-prev { color: var(--text-dim); font-size: var(--step--1); margin-bottom: 1rem; }
.quiz-prev strong { color: var(--accent-ink); }
.quiz-result { margin-top: 1.2rem; }
.quiz-score {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 1rem 1.2rem; border-radius: var(--radius);
    background: var(--bg-elev-2); border: 1px solid var(--border-strong);
}
.quiz-score i { font-size: 1.6rem; color: var(--accent-ink); }
.quiz-score.is-perfect i { color: var(--success); }
.quiz-score strong { display: block; font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.quiz-score span { color: var(--text-muted); font-size: var(--step--1); }

/* ---------- confetti ---------- */
.confetti-layer { position: fixed; inset: 0; z-index: 260; pointer-events: none; overflow: hidden; }
.confetti-bit {
    position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px;
    animation: confetti-fall 2.4s linear forwards;
}
@keyframes confetti-fall {
    to { transform: translateY(105vh) rotate(720deg); opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
    .confetti-layer { display: none; }
    .prog-fill { transition: none; }
}

/* ============================================================
   Plan a trip wizard
   ============================================================ */
.container--narrow { max-width: 760px; }

/* Step dots */
.wiz-steps { display: flex; justify-content: center; gap: 0.5rem; margin: 0 0 1.75rem; }
.wiz-dot { width: 34px; height: 5px; border-radius: var(--radius-pill); background: var(--bg-elev-2); transition: background var(--dur-base); }
.wiz-dot.is-on { background: var(--accent); }

.wiz-panel { animation: wiz-in var(--dur-base) var(--ease); }
@keyframes wiz-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wiz-q { font-size: var(--step-3); text-align: center; margin-bottom: 0.4rem; }
.wiz-hint { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Time choices (big buttons) */
.wiz-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem; margin-top: 1.5rem; }
.wiz-choice {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
    padding: 1.6rem 1rem; border-radius: var(--radius-lg);
    background: var(--bg-elev); border: 1px solid var(--border);
    transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast), background var(--dur-fast);
}
.wiz-choice:hover { transform: translateY(-3px); border-color: var(--accent-ring); }
.wiz-choice.is-sel { border-color: var(--accent); background: var(--accent-soft); }
.wiz-choice-icon {
    width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-ink); font-size: 1.4rem; margin-bottom: 0.3rem;
}
.wiz-choice strong { font-size: var(--step-1); }
.wiz-choice span { color: var(--text-muted); font-size: var(--step--1); }

/* Interest tags */
.wiz-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.wiz-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.1rem; border-radius: var(--radius-pill);
    background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
    font-size: var(--step-0); transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.wiz-tag i { color: var(--accent-ink); }
.wiz-tag:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.wiz-tag.is-sel { background: var(--accent-strong); color: #fff; border-color: transparent; }
.wiz-tag.is-sel i { color: #fff; }

.wiz-actions { display: flex; justify-content: center; gap: 0.7rem; margin-top: 2rem; }

/* Results */
.wiz-summary {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
    padding: 1rem 1.2rem; margin-bottom: 1.5rem;
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
}
.wiz-summary p { color: var(--text-muted); }
.wiz-summary p i { color: var(--accent-ink); margin-right: 0.4rem; }
.wiz-summary strong { color: var(--text); }

/* ============================================================
   Refinements: hero search, display-serif tuning, teal accents.
   ============================================================ */

/* ---------- in-hero search entry ---------- */
.hero-search {
    display: inline-flex; align-items: center; gap: 0.7rem; width: min(100%, 460px);
    margin-top: 1.6rem; padding: 0.85rem 1.1rem; text-align: left;
    background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
    color: var(--text-dim); font-size: var(--step-0);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
}
.hero-search:hover { border-color: var(--accent-ring); transform: translateY(-2px); }
.hero-search > i { color: var(--accent-ink); }
.hero-search > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-search-kbd {
    flex: 0 0 auto; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
    color: var(--text-muted); background: var(--bg-elev-2); border: 1px solid var(--border);
    border-radius: 6px; padding: 0.05rem 0.5rem; line-height: 1.4;
}
@media (max-width: 560px) {
    .hero-search { width: 100%; }
    .hero-search-kbd { display: none; }
}

/* ---------- display-serif tuning ---------- */
/* Fraunces has a tall x-height; nudge optical size + weight so big headlines feel editorial. */
.hero-title { font-weight: 600; letter-spacing: -0.02em; }
.section-title { font-weight: 600; }
/* The lowercase wordmark stays in the sans for a clean, modern mark. */
.brand-mark { font-family: var(--font-body); }
/* Card titles: keep them tight and confident. */
.card-head h3 { line-height: 1.2; }

/* ---------- teal secondary accents (wayfinding + calm balance) ---------- */
/* Intent (vibe) chips lean teal so the coral accent stays reserved for primary actions/highlights;
   "good to go"/open badges keep their green semantic (positive = go). */
.chip--intent.is-active { background: var(--accent-2); border-color: transparent; color: #fff; }
.chip--intent.is-active i { color: #fff; }

/* ============================================================
   Section pages, home previews & card refinement (spec)
   ============================================================ */

/* Card tagline: clamp to 2 lines and meta to 1, so heights stay consistent within a row. */
.card-tag {
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta { flex-wrap: wrap; }
.card-body { gap: 0.45rem; }

/* Section title as a link (home previews): inherits heading style, accent on hover. */
.section-title-link { color: inherit; }
.section-title-link:hover { color: var(--accent-ink); }

/* Getaways section: type-chip row + Near me on one line, count below. */
.section-head--row-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.section-head--row-controls .filters { margin-bottom: 0; }

/* "View all" preview link uses the calm near-btn style already defined; keep it aligned. */
.section-head--row .near-btn { align-self: flex-end; }

/* Consistent vertical rhythm: section pages reuse the standard section spacing. */
.section--page .section-head { margin-bottom: 1.25rem; }

@media (max-width: 560px) {
    /* Preview headers stack: title/desc then the View-all link on its own line. */
    .section-head--row { gap: 0.6rem; }
    .section-head--row .near-btn { align-self: flex-start; }
}
