/* ============================================================
   styles.css — County Explorer · shared design system
   Extracted from index.html (v21). Link from EVERY page:
     <link rel="stylesheet" href="styles.css">
   Page-specific CSS stays inline on each page below its own marker.
   ============================================================ */

  /* ─── TOKENS ────────────────────────────────────── */
  :root {
    --rust:      #B8431A;
    --rust-deep: #8B2E10;
    --amber:     #D4841A;
    --sand:      #E8D5A3;
    --canyon:    #7C3D1F;
    --sky:       #2E6B8C;
    --sage:      #5C7A4A;
    --dark:      #1A120A;
    --cream:     #FAF5EC;
    --cream-dk:  #EBE0C4;
    --cream-lt:  #FBF7EF;
    --white:     #FFFFFF;
    --mid:       #6B5A48;
    --light:     #F0E8D8;
    --overlay:   rgba(26,18,10,0.72);
    --obsidian:  #12100E;
    --olive:     #2F3A28;
    --olive-lt:  #445538;
    --nav-h:     68px;
    --bdr:       #E0D0BC;
    /* recurring literals promoted to tokens — single source of truth */
    --ink:       #2E2A24;
    --stone:     #5A4A3A;
    --gold:      #FFD97A;
  }

  /* ─── RESET ─────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'DM Sans', 'Libre Baskerville', Georgia, serif;
    background: var(--cream-lt);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
  }
  img { display: block; max-width: 100%; }
  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }

  /* ─── BUTTONS ────────────────────────────────────── */
  .btn-primary {
    background: var(--rust); color: var(--white);
    padding: 0.9rem 2rem; border-radius: 4px;
    font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem;
    font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    border: none; cursor: pointer; transition: background .2s, transform .2s;
    display: inline-flex; align-items: center; gap: 0.6rem;
  }
  .btn-primary:hover { background: var(--canyon); transform: translateY(-1px); }

  /* ─── NAV (v21 locked) ───────────────────────────── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 68px;
    background: var(--cream);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124,61,31,0.15);
  }
  .nav-logo { display: flex; align-items: center; gap: 0.75rem; }
  .nav-logo .logo-icon { width: 38px; height: 38px; background: var(--rust); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
  .nav-logo span { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: 0.02em; }
  .nav-logo small { font-family: 'Space Mono', monospace; font-size: 0.62rem; color: var(--stone); letter-spacing: 0.12em; text-transform: uppercase; display: block; line-height: 1; }
  .nav-links { display: flex; gap: 1rem; align-items: center; }
  .nav-links a {
    font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); opacity: 1;
    transition: color .2s, border-color .2s; cursor: pointer;
    border-bottom: 2px solid transparent; padding-bottom: 2px;
  }
  .nav-links a:hover { color: var(--rust); border-bottom-color: var(--rust); }
  .nav-home { cursor: pointer; }
  .nav-home:hover { color: var(--rust) !important; }
  .nav-active { color: var(--rust) !important; border-bottom: 2px solid var(--rust) !important; }
  .nav-active:hover { color: var(--rust) !important; }
  .nav-cta {
    background: var(--rust); color: var(--cream) !important;
    padding: 0.45rem 1rem !important; padding-bottom: 0.45rem !important;
    border-radius: 4px; border-bottom: none !important; opacity: 1 !important;
    font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem;
    font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
    transition: background .2s !important; text-align: center;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
  }
  .nav-cta:hover { background: var(--rust-deep) !important; color: var(--cream) !important; }

  .nav-logo-img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
  .hamburger span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

  /* ── Nav utility buttons (login + language) ── */
  .nav-utils {
    display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
  }
  .nav-util-btn {
    display: flex; align-items: center; gap: 0.35rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink);
    background: none; border: 1.5px solid rgba(46,42,36,0.22);
    border-radius: 20px; padding: 0.3rem 0.85rem;
    cursor: pointer; transition: border-color .2s, color .2s;
    white-space: nowrap;
  }
  .nav-util-btn:hover { border-color: var(--rust); color: var(--rust); }
  .nav-util-btn svg { flex-shrink: 0; }

  /* Language dropdown */
  .nav-lang-wrap { position: relative; }
  .nav-lang-dropdown {
    display: none;
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--cream); border: 1.5px solid rgba(46,42,36,0.15);
    border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    overflow: hidden; z-index: 300; min-width: 160px;
  }
  .nav-lang-wrap.open .nav-lang-dropdown { display: block; }
  .nav-lang-option {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.65rem 1rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem; font-weight: 600; letter-spacing: 0.05em;
    color: var(--ink); cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid rgba(46,42,36,0.07);
  }
  .nav-lang-option:last-child { border-bottom: none; }
  .nav-lang-option:hover { background: rgba(183,90,60,0.08); color: var(--rust); }
  .nav-lang-option.active { color: var(--rust); font-weight: 700; }
  .nav-lang-flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.10); flex-shrink: 0; display: block; }



  /* ─── SECTION HEADERS ────────────────────────────── */
  .section-header { text-align: center; margin-bottom: 1.5rem; }
  .section-title { font-family: 'Playfair Display', 'Libre Baskerville', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--dark); line-height: 1.15; }
  .section-title em { color: var(--rust); font-style: italic; }
  .section-sub { font-size: 1rem; color: var(--mid); max-width: 560px; margin: 1rem auto 0; line-height: 1.7; }
  .divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--rust), var(--amber)); margin: 1.25rem auto 0; border-radius: 2px; }

  /* ─── HERO (shell — content added per page) ──────── */
  .ev-hero {
    margin-top: 68px;
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #1A2A1A 0%, #2E1A0A 40%, #4A2510 100%);
    min-height: 220px;
    display: flex; align-items: center;
  }
  .ev-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(175deg, var(--rust) 0%, #C44820 25%, #5BAA8A 55%, var(--sage) 75%, var(--olive) 100%);
  }
  .ev-hero-stripes {
    position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(0deg, transparent 0px, transparent 14px, rgba(245,237,216,.07) 14px, rgba(245,237,216,.07) 16px);
  }
  .ev-hero-content {
    position: relative; z-index: 3;
    padding: 1.75rem 5vw 2rem;
  }
  .ev-hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--cream); opacity: 0.7;
    margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 0.75rem;
  }
  .ev-hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--cream); opacity: 0.6; }
  .ev-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900; line-height: 1.05;
    color: var(--cream); margin-bottom: 0.75rem;
    max-width: 640px; white-space: nowrap;
  }
  .ev-hero h1 em { font-style: italic; color: var(--gold); text-shadow: 0 2px 12px rgba(212,132,26,0.5); }
  .ev-hero-sub {
    font-size: 1.05rem; color: rgba(250,245,236,0.92);
    line-height: 1.65; max-width: 560px; font-weight: 500;
  }
  .ev-hero-sub strong { color: var(--amber); font-weight: 600; }

  /* ─── FOOTER ─────────────────────────────────────── */
  footer { background: var(--cream); padding: 0.75rem 5vw 0.5rem; border-top: 1px solid rgba(124,61,31,0.15); }
  .footer-top { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
  .footer-social { display: flex; gap: 0.75rem; align-items: center; }
  .social-btn { width: 42px; height: 42px; border: 1.5px solid rgba(46,42,36,0.22); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--stone); cursor: pointer; transition: border-color .2s, color .2s, background .2s; text-decoration: none; }
  .social-btn:hover { border-color: var(--rust); color: var(--rust); background: rgba(184,67,26,0.06); }
  .footer-col h5 { font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.4rem; }
  .footer-col ul { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0.2rem 1.5rem; }
  .footer-col ul li a { font-size: 0.9rem; color: var(--stone); transition: color .2s; }
  .footer-col ul li a:hover { color: var(--rust); }
  .footer-bottom { border-top: 1px solid rgba(46,42,36,0.12); padding-top: 0.35rem; display: flex; justify-content: flex-start; align-items: center; }
  .footer-bottom p { font-family: 'Barlow Condensed', sans-serif; font-size: 0.9rem; font-weight: 500; color: #7A6A5A; letter-spacing: 0.05em; }

  /* ─── RESPONSIVE ──────────────────────────────────── */
  /* Global mobile text scale: shrink all rem-based text by 10%. */
  @media (max-width: 768px) {
    html { font-size: 90%; }
    /* Larger, more tappable nav text on mobile — menu links + visible pills
       (Language, Log In, Get the App). */
    .nav-links.open a { font-size: 1.2rem; }
    .nav-util-btn { font-size: 1.05rem; padding: 0.34rem 0.75rem; }
    .nav-util-btn svg { width: 16px; height: 16px; }
    .nav-cta { font-size: 1.05rem; padding: 0.5rem 0.9rem !important; }
    .nav-lang-option { font-size: 1.1rem; }
    .nav-lang-flag { width: 26px; height: 18px; }
    /* Mobile brand: hide the logo image and show the wordmark instead, at a
       smaller size so it fits the bar next to the hamburger. */
    nav { padding: 0 1rem; }
    .nav-logo-img { display: none; }                 /* hide logo image on mobile */
    .nav-logo > div:last-child { display: block; }   /* restore wordmark */
    .nav-logo span  { font-size: 0.95rem; }          /* smaller brand wordmark */
    .nav-logo small { font-size: 0.56rem; }          /* smaller subtitle */
    .nav-utils { gap: 0.4rem; }
    .hamburger { flex-shrink: 0; }
  }
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #FFFFFF; box-shadow: 0 8px 24px rgba(46,42,36,0.18); padding: 1.5rem 2.5rem; gap: 1.25rem; }
    .nav-links.open a { color: var(--ink) !important; opacity: 1 !important; border-bottom-color: transparent; }
    .nav-links.open a:hover { color: var(--rust) !important; border-bottom-color: var(--rust); }
    .nav-links.open .nav-home { color: var(--rust) !important; }
    .nav-links.open .nav-active { color: var(--rust) !important; border-bottom-color: var(--rust) !important; }
    .nav-links.open .nav-cta { background: var(--rust); color: var(--cream) !important; }

    .hamburger { display: flex; }
  }
  @media (max-width: 600px) { nav { padding: 0 1.5rem; } }

  /* Mobile: shorter nav bar (only the wordmark + hamburger show). Placed after
     the 900px block so the dropdown-top override below wins source order. */
  @media (max-width: 768px) {
    nav { height: 52px; }
    .ev-hero { margin-top: 52px; }          /* keep hero flush under the shorter bar */
    .nav-links.open { top: 52px; }          /* dropdown opens right below the bar */
  }

  /* ─── HERO SOCIAL PILLS ─────────────────────────── */
  .hero-social {
    position: absolute;
    top: 84px;
    right: 5vw;
    z-index: 4;
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .hero-social-btn {
    width: 42px; height: 42px;
    border: 2px solid rgba(250,245,236,0.75);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(250,245,236,1);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    text-decoration: none;
  }
  .hero-social-btn:hover {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(212,132,26,0.12);
  }
  .hero-cta-pills {
    position: absolute;
    top: 136px;
    right: 5vw;
    z-index: 4;
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .hero-cta-pill {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250,245,236,1);
    border: 2px solid rgba(250,245,236,0.75);
    border-radius: 40px;
    padding: 0.4rem 1rem;
    background: transparent;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
  }
  .hero-cta-pill:hover {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(212,132,26,0.12);
  }

  /* ─── HERO MOBILE LAYOUT ───────────────────────── */
  /* Stack hero children so the social icons + CTA pills flow BELOW the
     content instead of overlapping it. Hides sub-text and stats;
     shows social (centered) and Subscribe + Visitor Guide side by side. */
  @media (max-width: 768px) {
    .ev-hero { flex-direction: column; align-items: stretch; }
    .ev-hero-content { padding-bottom: 0.75rem; }
    .ev-hero h1 { font-size: clamp(1.805rem, 3.8vw, 2.85rem); white-space: normal; }  /* wrap to fit screen */

    .ev-hero-sub { display: none; }                 /* keep descriptive text hidden */

    /* Remove the 3 number stats but KEEP the weather pill */
    .hero-stats > div:not(#wx-widget) { display: none; }
    .hero-stats { justify-content: center; margin-top: 0.85rem; }

    /* Weather pill — match the Subscribe pill design (transparent + cream outline,
       no shadow). Letters, icons and temperature number are left unchanged. */
    .hero-stats #wx-pill {
      background: transparent !important;
      border: 2px solid rgba(250,245,236,0.75) !important;
      box-shadow: none !important;
    }

    /* Social icons — hidden on mobile (the same four live in the footer) */
    .hero-social { display: none; }

    /* Subscribe + Get your Visitor Guide — side by side, centered */
    .hero-cta-pills {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.6rem;
      margin: 0.9rem 0 1.75rem;
      padding: 0 5vw;
    }
  }



  /* ─── WEATHER WIDGET ────────────────────────────── */
  @media (max-width: 600px) {
    .wx-close-mobile { display: flex !important; align-items: center; justify-content: center; }
  }

  /* ── SUBSCRIBE OVERLAY ── */
  .sub-overlay {
    position: fixed; inset: 0; z-index: 950;
    background: rgba(10,5,2,0.62);
    display: none; align-items: center; justify-content: center;
    padding: 16px;
  }
  .sub-overlay.open { display: flex; }
  .sub-page {
    background: linear-gradient(160deg,#F5EFE4 0%,#EDE4D4 100%);
    border-radius: 20px;
    width: 100%; max-width: 480px;
    max-height: 96vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(0,0,0,0.32);
  }
  .sub-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px 6px; flex-shrink: 0;
  }
  .sub-logo {
    width: 42px; height: 42px; border-radius: 8px;
    object-fit: cover; display: block;
  }
  .sub-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(80,50,20,.12); border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer; color: #4A2A0A;
  }
  .sub-scroll { flex: 1; overflow-y: auto; padding: 0 28px 32px; }
  .sub-scroll::-webkit-scrollbar { display: none; }
  .sub-headline {
    font-family: 'Playfair Display', serif;
    font-size: 28px; font-weight: 900;
    color: #2A1A08; text-align: center;
    line-height: 1.2; margin-bottom: 8px;
  }
  .sub-headline em { color: var(--rust); font-style: italic; }
  .sub-tagline {
    font-size: 17px; color: #5A3820;
    text-align: center; line-height: 1.5; margin-bottom: 22px;
  }
  .sub-field { margin-bottom: 14px; }
  .sub-label {
    display: block; font-size: 14px; font-weight: 700;
    color: #4A2A0A; margin-bottom: 5px; letter-spacing: .3px;
    text-transform: uppercase;
  }
  .sub-input {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid #D4C4B0; border-radius: 12px;
    font-size: 16px; font-family: 'DM Sans', sans-serif;
    color: #2A1A08; background: #fff;
    outline: none; transition: border-color .2s;
  }
  .sub-input:focus { border-color: var(--rust); }
  .sub-input::placeholder { color: #C0A888; }
  .sub-check {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 18px; cursor: pointer;
  }
  .sub-check input[type=checkbox] {
    width: 18px; height: 18px; flex-shrink: 0;
    accent-color: var(--rust); cursor: pointer; margin-top: 2px;
  }
  .sub-check-label { font-size: 14px; color: #5A3820; line-height: 1.5; }
  .sub-btn {
    width: 100%; padding: 15px;
    background: var(--rust); color: #fff;
    border: none; border-radius: 14px;
    font-size: 18px; font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer; letter-spacing: .2px;
    box-shadow: 0 4px 16px rgba(184,67,26,.35);
    transition: transform .15s, box-shadow .15s;
  }
  .sub-btn:active { transform: scale(.97); }
  .sub-btn:disabled { background: #B0C0D8; box-shadow: none; cursor: not-allowed; }
  .sub-success {
    display: none; text-align: center; padding: 16px;
    background: #E8F5EC; border-radius: 12px;
    border: 1px solid #A8D8B4; margin-top: 14px;
  }
  .sub-success-icon { font-size: 40px; margin-bottom: 8px; }
  .sub-success h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: #2A6A3A; margin-bottom: 6px; }
  .sub-success p { font-size: 15px; color: #4A8A5A; line-height: 1.5; }

  /* ─── PAGE-SPECIFIC CSS GOES HERE ───────────────── */

  /* ─── History Section ───────────────────────────── */
  .history-section {
    padding: 4rem 5vw 2rem;
    background-color: var(--cream);
    border-top: 1px solid rgba(124,61,31,0.13);
    position: relative;
    min-height: 460px;
  }
  .history-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
  }
  .history-fish-icon {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--cream);
    box-shadow: 0 4px 14px rgba(124,61,31,0.25);
    display: block;
    margin-left: auto;
  }
  .history-cowboy {
    width: 100%;
    height: auto;
    display: block;
    border: 5px solid var(--cream);
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(124,61,31,0.22);
  }
  .history-left { text-align: left; }
  .history-tag {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rust);
    font-weight: 700;
    margin-bottom: 0.75rem;
  }
  .history-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 1.1rem;
  }
  .history-title em { color: var(--rust); font-style: italic; }
  .history-divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--rust), var(--amber));
    margin: 0 0 1.75rem;
    border-radius: 2px;
  }
  .history-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    color: var(--stone);
    line-height: 1.8;
    margin-bottom: 0.2rem;
  }
  .history-more-link {
    color: var(--rust);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0;
    transition: color .2s;
  }
  .history-more-link:hover { color: var(--rust-deep); }
  /* ── Right: icon placeholders ── */
  .history-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .history-icon-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .history-icon-glyph {
    font-size: 2.4rem;
    line-height: 1;
    opacity: 0.45;
  }
  .history-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(124,61,31,0.18);
    display: block;
  }
  /* path label hidden — paths preserved in HTML comments */
  .history-icon-caption { display: none; }
  /* mirror of the history layout: photo left, text right */
  .discover-inner { grid-template-columns: 432px 1fr; }
  @media (max-width: 720px) {
    .history-inner { grid-template-columns: 1fr; gap: 2rem; }
    .discover-inner { grid-template-columns: 1fr; gap: 2rem; }
    .discover-inner .history-left  { order: 1; }  /* text first on mobile */
    .discover-inner .history-right { order: 2; }  /* fisherman after */
  }

  /* ─── Visitor Guide Modal ───────────────────────── */
  .vg-overlay {
    position: fixed; inset: 0; z-index: 950;
    background: rgba(10,5,2,0.62);
    display: none; align-items: center; justify-content: center;
    padding: 16px;
  }
  .vg-overlay.open { display: flex; }
  .vg-page {
    background: linear-gradient(160deg,#F5EFE4 0%,#EDE4D4 100%);
    border-radius: 20px;
    width: 100%; max-width: 480px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(0,0,0,0.32);
  }
  .vg-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px 6px; flex-shrink: 0;
  }
  .vg-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(80,50,20,.12); border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer; color: #4A2A0A;
  }
  .vg-scroll { flex: 1; overflow-y: auto; padding: 0 28px 32px; }
  .vg-scroll::-webkit-scrollbar { display: none; }
  .vg-logo-row {
    display: flex; align-items: center; gap: 8px;
    justify-content: center; margin-bottom: 6px;
  }
  .vg-logo-link {
    display: flex; align-items: center; gap: 6px;
    text-decoration: none;
  }
  .vg-logo-icon { font-size: 20px; }
  .vg-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 15px; font-weight: 700; color: var(--rust);
    letter-spacing: .2px;
  }
  .vg-location {
    font-size: 13px; color: #7A5530; text-align: center;
    margin-bottom: 14px; letter-spacing: .3px;
  }
  .vg-headline {
    font-family: 'Playfair Display', serif;
    font-size: 27px; font-weight: 900;
    color: #2A1A08; text-align: center;
    line-height: 1.2; margin-bottom: 8px;
  }
  .vg-tagline {
    font-size: 15px; color: #5A3820;
    text-align: center; line-height: 1.55; margin-bottom: 20px;
  }
  .vg-features {
    list-style: none; margin: 0 0 20px; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
  }
  .vg-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 600; color: #3A2210;
    background: rgba(184,67,26,.07);
    border-radius: 10px; padding: 10px 14px;
  }
  .vg-features li span.vg-fi { font-size: 20px; flex-shrink: 0; }
  .vg-cta-label {
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 700; color: #2A1A08;
    text-align: center; margin-bottom: 6px;
  }
  .vg-meta {
    font-size: 13px; color: #7A5530;
    text-align: center; margin-bottom: 18px; line-height: 1.5;
  }
  .vg-dl-btn {
    display: block; width: 100%;
    padding: 15px;
    background: var(--rust); color: #fff;
    border: none; border-radius: 14px;
    font-size: 17px; font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer; letter-spacing: .2px;
    text-align: center; text-decoration: none;
    box-shadow: 0 4px 16px rgba(184,67,26,.35);
    transition: transform .15s, box-shadow .15s;
  }
  .vg-dl-btn:hover {
    background: var(--rust-deep);
    box-shadow: 0 6px 22px rgba(139,46,16,.45);
    transform: translateY(-1px);
  }
  .vg-dl-btn:active { transform: scale(.97); }


  /* --- SHOW MY SELECTIONS MODAL ---------------------------------- */
  .sel-overlay{display:none;position:fixed;inset:0;background:rgba(26,18,10,0.65);z-index:1400;align-items:center;justify-content:center;padding:16px;}
  .sel-overlay.open{display:flex;}
  .sel-modal{background:var(--cream,#FAF5EC);border-radius:20px;width:100%;max-width:480px;max-height:88vh;display:flex;flex-direction:column;box-shadow:0 24px 72px rgba(0,0,0,0.4);overflow:hidden;}
  .sel-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 10px;flex-shrink:0;border-bottom:1px solid var(--bdr,#E0D0BC);}
  .sel-title{font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:900;color:#2A1A08;}
  .sel-close{width:34px;height:34px;border-radius:50%;background:rgba(80,50,20,.1);border:none;font-size:1.1rem;cursor:pointer;color:#4A2A0A;display:flex;align-items:center;justify-content:center;transition:background .2s;}
  .sel-close:hover{background:rgba(184,67,26,.12);}
  .sel-body{flex:1;overflow-y:auto;padding:14px 20px;}
  .sel-body::-webkit-scrollbar{width:4px;}
  .sel-body::-webkit-scrollbar-thumb{background:var(--bdr,#E0D0BC);border-radius:2px;}
  .sel-empty{text-align:center;padding:2rem 0;font-family:'DM Sans',sans-serif;font-size:0.95rem;color:#7A6A5A;font-style:italic;}
  .sel-section-title{font-family:'Barlow Condensed',sans-serif;font-size:0.72rem;font-weight:800;letter-spacing:0.14em;text-transform:uppercase;color:var(--rust,#B8431A);margin:10px 0 6px;}
  .sel-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:#fff;border:1px solid var(--bdr,#E0D0BC);margin-bottom:6px;}
  .sel-item-emoji{font-size:1.3rem;flex-shrink:0;line-height:1;}
  .sel-item-name{flex:1;font-family:'DM Sans',sans-serif;font-size:0.92rem;font-weight:600;color:#2A1A08;line-height:1.3;}
  .sel-item-remove{width:26px;height:26px;border-radius:50%;flex-shrink:0;background:rgba(184,67,26,.08);border:none;font-size:0.85rem;cursor:pointer;color:#B8431A;display:flex;align-items:center;justify-content:center;transition:background .2s;}
  .sel-item-remove:hover{background:rgba(184,67,26,.18);}
  .sel-footer{display:flex;gap:10px;padding:12px 20px;flex-shrink:0;border-top:1px solid var(--bdr,#E0D0BC);background:var(--cream,#FAF5EC);}
  .sel-pill{flex:1;font-family:'Barlow Condensed',sans-serif;font-size:1rem;font-weight:700;letter-spacing:0.07em;text-transform:uppercase;border:none;border-radius:30px;padding:10px 0;cursor:pointer;transition:opacity .2s;}
  .sel-pill.print{background:var(--rust,#B8431A);color:#fff;}
  .sel-pill.print:hover{opacity:0.88;}
  .sel-pill.clear{background:var(--light,#F0E8D8);color:#2A1A08;}
  .sel-pill.clear:hover{opacity:0.82;}

  /* ─── TRIP CHOICE MODAL ─────────────────────────────────── */
  .trip-overlay { display:none;position:fixed;inset:0;background:rgba(26,18,10,0.7);z-index:1300; }
  .trip-overlay.open { display:block; }
  .trip-modal { display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1301;background:#fff;border-radius:20px;padding:32px 28px;box-shadow:0 8px 48px rgba(0,0,0,.3);width:90%;max-width:420px;text-align:center; }
  .trip-modal.open { display:block; }
  .trip-modal-title { font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:900;color:#2A1A08;margin-bottom:0.4rem; }
  .trip-modal-sub { font-size:0.92rem;color:#7A6A5A;margin-bottom:1.75rem;line-height:1.5; }
  .trip-btn-row { display:flex;flex-direction:column;gap:0.75rem; }
  .trip-btn { border:none;border-radius:14px;padding:15px 20px;font-size:1rem;font-weight:700;font-family:'Barlow Condensed',sans-serif;letter-spacing:0.08em;text-transform:uppercase;cursor:pointer;transition:opacity .2s; }
  .trip-btn.primary { background:var(--rust);color:#fff;box-shadow:0 3px 12px rgba(184,67,26,.35); }
  .trip-btn.secondary { background:#F0E8D8;color:#2A1A08; }
  .trip-btn:hover { opacity:0.88; }

  /* ─── FEEDBACK MODAL ───────────────────────────────────── */
  .fb-overlay { display:none;position:fixed;inset:0;background:rgba(26,18,10,0.6);z-index:1200; }
  .fb-overlay.open { display:block; }
  .fb-modal { display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1201;background:#fff;border-radius:20px;padding:28px 28px 36px;box-shadow:0 8px 48px rgba(0,0,0,.25);max-height:90vh;overflow-y:auto;width:90%;max-width:480px; }
  .fb-modal.open { display:block; }
  .fb-header { display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5rem; }
  .fb-title { font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:900;color:#2A1A08; }
  .fb-close { width:40px;height:40px;border-radius:50%;background:var(--light);display:flex;align-items:center;justify-content:center;font-size:1.2rem;cursor:pointer;color:var(--rust);border:none; }
  .fb-item-name { font-size:0.95rem;color:var(--rust);font-weight:700;margin-bottom:1.25rem; }
  .fb-label { font-size:0.78rem;font-weight:800;color:#5A3820;margin-bottom:0.5rem;text-transform:uppercase;letter-spacing:0.05em; }
  .fb-stars { display:flex;gap:10px;margin-bottom:1.25rem; }
  .fb-star { font-size:2.8rem;cursor:pointer;opacity:0.35;transition:opacity .15s;color:#C8902A; }
  .fb-star.active { opacity:1;color:#E8A020; }
  .fb-input { width:100%;border:1.5px solid var(--bdr);border-radius:10px;padding:10px 12px;font-size:0.95rem;font-family:'DM Sans',sans-serif;color:#2A1A08;background:#FDFAF6;outline:none;box-sizing:border-box;margin-bottom:1rem; }
  .fb-textarea { width:100%;min-height:100px;border:1.5px solid var(--bdr);border-radius:10px;padding:10px 12px;font-size:0.95rem;font-family:'DM Sans',sans-serif;color:#2A1A08;background:#FDFAF6;resize:none;outline:none;box-sizing:border-box;line-height:1.5; }
  .fb-submit { margin-top:1rem;width:100%;background:var(--rust);color:#fff;border:none;border-radius:14px;padding:16px;font-size:1rem;font-weight:700;font-family:'Barlow Condensed',sans-serif;letter-spacing:0.08em;text-transform:uppercase;cursor:pointer;box-shadow:0 3px 12px rgba(184,67,26,.4); }
  .fb-submit:disabled { background:#B0C0D8;box-shadow:none;cursor:not-allowed; }
  .fb-success { display:none;text-align:center;padding:1.25rem 0 0.5rem; }
  .fb-success-icon { font-size:2.5rem;margin-bottom:0.5rem; }
  .fb-success-title { font-size:1.2rem;font-weight:700;color:#2A6A3A;margin-bottom:0.25rem; }
  .fb-success-msg { font-size:0.9rem;color:#5A8A6A; }
  .fb-login-note { font-size:0.85rem;color:var(--mid);text-align:center;padding:0.75rem 0;background:#FDF8F0;border-radius:10px;margin-bottom:0.5rem; }
  .fb-login-note a { color:var(--rust);cursor:pointer;font-weight:700;text-decoration:underline; }
  .fb-comments-title { font-size:0.78rem;font-weight:800;color:#5A3820;text-transform:uppercase;letter-spacing:0.05em;margin:1.5rem 0 0.75rem;border-top:1px solid var(--bdr);padding-top:1rem; }
  .fb-comment-item { background:#FDFAF6;border:1px solid var(--bdr);border-radius:10px;padding:0.75rem 1rem;margin-bottom:0.6rem; }
  .fb-comment-meta { display:flex;justify-content:space-between;align-items:center;margin-bottom:0.3rem; }
  .fb-comment-name { font-size:0.82rem;font-weight:700;color:#2A1A08; }
  .fb-comment-date { font-size:0.72rem;color:var(--mid); }
  .fb-comment-stars { color:#E8A020;font-size:0.85rem;margin-bottom:0.25rem; }
  .fb-comment-text { font-size:0.88rem;color:#3D2A18;line-height:1.55; }
  .fb-no-comments { font-size:0.85rem;color:var(--mid);font-style:italic;padding:0.5rem 0; }

  /* ─── INLINE CHAT CARD (mirrors att-dialog layout) ──── */
  .cm-icard {
    background: var(--cream,#FAF5EC);
    border-radius: 16px;
    border: 1px solid var(--bdr,#E0D0BC);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(26,16,10,0.12);
    margin: 0.5rem 0;
    max-width: 340px;
    font-family: 'DM Sans', sans-serif;
  }
  .cm-icard-header {
    height: 110px; flex-shrink: 0;
    background: linear-gradient(135deg, #B8431A 0%, #7A2C0E 100%);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    overflow: hidden;
  }
  .cm-icard-header img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    position: absolute; inset: 0;
  }
  .cm-icard-body { padding: 12px 14px 8px; }
  .cm-icard-cat {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--rust,#B8431A); margin-bottom: 2px;
  }
  .cm-icard-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-weight: 900;
    color: #3D1F0A; line-height: 1.2; margin-bottom: 2px;
  }
  .cm-icard-loc { font-size: 0.82rem; color: #5A3820; margin-bottom: 8px; }
  .cm-icard-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
  .cm-icard-tag {
    background: var(--light,#F0E8D8); border-radius: 5px;
    padding: 2px 7px; font-size: 0.72rem; font-weight: 600; color: #5A3820;
  }
  .cm-icard-desc {
    font-size: 0.85rem; color: #3D1F0A;
    line-height: 1.55; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .cm-icard-info {
    background: var(--light,#F0E8D8); border-radius: 8px;
    padding: 8px 10px; margin-bottom: 8px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .cm-icard-row {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; border-bottom: 0.5px solid var(--bdr,#E0D0BC);
    padding-bottom: 4px;
  }
  .cm-icard-row:last-child { border-bottom: none; padding-bottom: 0; }
  .cm-icard-lbl { color: #5A3820; }
  .cm-icard-val { font-weight: 700; color: #3D1F0A; }
  .cm-icard-itins { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
  .cm-icard-itin-pill {
    display: inline-flex; align-items: center; gap: 4px;
    background: #FFF8EE; border: 1px solid #E0C898;
    border-radius: 20px; padding: 3px 9px;
    font-size: 0.72rem; font-weight: 700; color: #7A4A00;
    cursor: pointer; text-decoration: none;
  }
  .cm-icard-itin-pill:hover { background: #FFEEDD; }
  .cm-icard-itin-id {
    font-size: 0.6rem; background: #C8902A; color: #fff;
    border-radius: 10px; padding: 1px 5px; font-weight: 800;
  }
  .cm-icard-actions {
    display: flex; gap: 6px; padding: 8px 14px 12px;
    border-top: 1px solid var(--bdr,#E0D0BC);
    background: #fff;
  }
  .cm-icard-btn {
    flex: 1; font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    border: none; border-radius: 8px;
    padding: 0.55rem 0.1rem; cursor: pointer;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; transition: opacity .2s;
    text-decoration: none; line-height: 1;
  }
  .cm-icard-btn .btn-icon { font-size: 1.1rem; line-height: 1; }
  .cm-icard-btn.dirs { background: #EAF2EA; color: #2E5E2E; }
  .cm-icard-btn.dirs:hover { background: #D4E8D4; }
  .cm-icard-btn.web  { background: #E6EEF5; color: #1A3A5C; }
  .cm-icard-btn.web:hover  { background: #D0E0EE; }
  .cm-icard-btn.fav  { background: #FFF0E6; color: #7A3510; }
  .cm-icard-btn.fav:hover  { background: #FFE0CC; }
  .cm-icard-btn.detail { background: #F0E8D8; color: #5A3820; }
  .cm-icard-btn.detail:hover { background: #E0D0BC; }
  .cm-icard-suggest {
    font-size: 0.82rem; color: #5A3820; padding: 0 14px 10px;
    line-height: 1.5;
  }
  .cm-icard-suggest a { color: var(--rust,#B8431A); font-weight: 600; }

  /* ─── AI ASSISTANT ────────────────────────────────── */
  /* ══════════════════════════════════════════
     INLINE CHAT SECTION
  ══════════════════════════════════════════ */
  /* guide hidden until opened via the teaser / nav link / deep link */
  .guide-collapsed { display: none !important; }
  /* compact "reminder" teaser, left-aligned */
  .guide-teaser {
    width: fit-content; max-width: calc(100% - 10vw);
    margin: 1.5rem 0 1.5rem 5vw; padding: 12px 18px;
    background: var(--cream); border: 1px solid rgba(183,67,26,0.22);
    border-radius: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform .18s, box-shadow .18s, border-color .18s;
  }
  .guide-teaser:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(0,0,0,0.10); border-color: var(--rust); }
  .guide-teaser .gt-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
  .guide-teaser .gt-title { font-family:'Playfair Display',serif; font-size: 1.05rem; font-weight: 900; color: var(--dark); line-height: 1.15; }
  .guide-teaser .gt-sub { font-family:'Barlow Condensed',sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rust); margin-top: 2px; }
  @media (max-width: 768px) {
    .guide-teaser { width: auto; max-width: none; margin: 1rem 5vw; padding: 10px 14px; gap: 10px; border-radius: 10px; }
    .guide-teaser .gt-icon { font-size: 1.35rem; }
    .guide-teaser .gt-title { font-size: 0.95rem; }
    .guide-teaser .gt-sub { font-size: 0.78rem; }
  }
  /* floating guide bubble — avatar pokes out the top, larger label below */
  .guide-bubble {
    position: fixed; right: 20px; bottom: 40px; z-index: 200;
    width: 116px; height: 116px; border-radius: 50%;
    background: rgba(196,106,67,0.9); border: none; cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 8px; overflow: visible;
    transition: transform .18s, box-shadow .18s;
  }
  .guide-bubble:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(0,0,0,0.28); }
  .guide-bubble .gb-avatar {
    position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    font-size: 1.9rem; line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
  }
  .guide-bubble .gb-label {
    margin-top: 9px; white-space: nowrap;
    color: #fff; font-family:'Barlow', sans-serif;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0;
    text-transform: uppercase; line-height: 1.08;
  }
  @media (max-width: 768px) {
    .guide-bubble { right: 18px; bottom: 18px; transform: scale(0.9); transform-origin: bottom right; }
    .guide-bubble:hover { transform: scale(0.9) translateY(-2px); }
  }
  /* index only: hide the floating bubble while the guide is open */
  body.guide-is-open .guide-bubble { display: none !important; }
  .chat-section {
    padding: 3rem 5vw 4rem;
    background: #F5F0E8;
    position: relative; overflow: hidden;
  }
  .chat-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(44,107,140,0.05) 0%, transparent 70%);
    pointer-events: none;
  }
  .chat-section .section-title { color: var(--dark); }

  /* ── Layout — unified height ── */
  .chat-layout {
    display: flex; gap: 0; align-items: stretch;
    max-width: 1200px; margin: 1.5rem auto 0;
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px -16px rgba(46,24,10,0.32), 0 6px 20px rgba(46,24,10,0.14);
    border: 2px solid rgba(124,61,31,0.28);
    height: 840px;
    transform: scale(0.9);
    transform-origin: top center;
    margin-bottom: -84px; /* compensate for space freed by scale */
  }
  .chat-main { flex: 0 0 70%; min-width: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; }
  .chat-sidebar { flex: 0 0 30%; min-width: 0; display: flex; flex-direction: column; border-left: 1.5px solid rgba(183,90,60,0.14); }

  /* ── Chat window ── */
  .chat-window {
    background: #FDFAF4;
    display: flex; flex-direction: column;
    flex: 1; min-height: 0;
  }

  /* ── Shared header color token — override per page ── */
  :root {
    --chat-header-bg:     rgba(183,90,60,0.10);
    --chat-header-border: rgba(183,90,60,0.18);
    --chat-header-text:   var(--dark);
    --chat-header-sub:    rgba(107,90,72,0.55);
    --chat-header-status: var(--rust);
    --chat-header-height: 54px;
  }

  /* header — both sides same height */
  .chat-win-header,
  .chat-sidebar-header {
    background: var(--chat-header-bg);
    border-bottom: 1px solid var(--chat-header-border);
    height: var(--chat-header-height);
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .chat-win-header {
    padding: 0 20px;
    display: flex; align-items: center; gap: 12px;
  }

  /* 🤖 avatar — big emoji with blink animation */
  .chat-win-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(183,90,60,0.12);
    border: 1.5px solid rgba(183,90,60,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; flex-shrink: 0;
    animation: robot-blink 2.5s ease-in-out infinite;
  }
  @keyframes robot-blink {
    0%,  42%  { transform: scale(1);    filter: brightness(1); }
    45%        { transform: scale(0.96); filter: brightness(1.25); }
    48%        { transform: scale(1);    filter: brightness(1); }
    51%        { transform: scale(0.97); filter: brightness(1.2); }
    54%,  100% { transform: scale(1);    filter: brightness(1); }
  }

  .chat-win-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem; font-weight: 700;
    color: var(--chat-header-text);
    letter-spacing: 0.08em; text-transform: uppercase;
  }
  .chat-win-sub {
    font-size: 0.88rem;
    color: var(--chat-header-sub);
    margin-top: 2px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.04em;
  }

  /* ai-status removed — greeting bubble handles context */

  /* offline banner */
  .cm-offline-banner {
    display: none;
    background: #E53935; color: #fff;
    padding: 7px 16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
    text-align: center; flex-shrink: 0;
    animation: blink-banner 1.5s infinite;
  }
  .cm-offline-banner.show { display: block; }
  @keyframes blink-banner { 0%,100%{opacity:1} 50%{opacity:0.65} }

  /* messages */
  .cm-messages {
    flex: 1; min-height: 0; overflow-y: auto;
    padding: 14px 18px; display: flex; flex-direction: column; gap: 10px;
    background: #FDFAF4;
  }
  .cm-messages::-webkit-scrollbar { width: 4px; }
  .cm-messages::-webkit-scrollbar-thumb { background: var(--bdr); border-radius: 2px; }
  .cm-row { display: flex; gap: 8px; }
  .cm-row.usr { flex-direction: row-reverse; }
  .cm-bubble {
    max-width: 82%; padding: 12px 17px;
    border-radius: 18px; font-size: 1rem; line-height: 1.58;
  }
  .cm-bubble.bot { background: #fff; color: var(--dark); border: 1px solid var(--bdr); border-bottom-left-radius: 4px; }
  .cm-bubble.usr { background: var(--chat-header-bg); color: var(--dark); border: 1.5px solid var(--chat-header-border); border-bottom-right-radius: 4px; }
  .cm-bubble a { color: var(--rust); text-decoration: underline; font-weight: 600; }
  /* The selection the user just clicked in the sidebar — stands out from the
     other (plain rust) links and stays clickable to re-open the drawer. */
  .cm-bubble a.cm-clicked-sel {
    color: var(--rust-deep); font-weight: 800;
    background: rgba(184,67,26,0.12); padding: 1px 5px;
    border-radius: 5px; text-underline-offset: 2px;
  }
  .cm-bubble.bot a { color: var(--sky); }
  .cm-tdots { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
  .cm-td { width: 7px; height: 7px; border-radius: 50%; background: var(--mid); animation: td 1.2s infinite ease-in-out; }
  .cm-td:nth-child(2){animation-delay:.2s;}.cm-td:nth-child(3){animation-delay:.4s;}
  @keyframes td{0%,80%,100%{transform:translateY(0)}40%{transform:translateY(-6px)}}

  /* input row */
  .cm-input-row {
    padding: 12px 16px 16px;
    background: #F0EBE1; border-top: 1.5px solid rgba(46,42,36,0.10);
    display: flex; gap: 10px; align-items: flex-end;
    flex-shrink: 0;
  }
  .cm-input {
    flex: 1; border: 1.5px solid var(--bdr); border-radius: 14px;
    padding: 12px 16px; font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem; color: var(--dark);
    background: #FDFAF4; outline: none;
    resize: none; min-height: 52px; max-height: 160px; line-height: 1.55;
    transition: border-color .2s, box-shadow .2s;
  }
  .cm-input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(46,107,140,0.10); }
  .cm-input::placeholder { color: rgba(107,90,72,0.45); }
  .cm-send {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--sky); border: none; color: #fff;
    font-size: 1.25rem; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .15s;
  }
  .cm-send:hover { background: var(--rust); transform: scale(1.08); }


  /* ── Sidebar ── */
  .chat-sidebar-box {
    background: #F7F2EA;
    display: flex; flex-direction: column;
    flex: 1; min-height: 0;
  }
  .chat-sidebar-header {
    padding: 0 14px;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--chat-header-text);
    transition: color .2s;
  }
  .chat-sidebar-header:hover { color: var(--rust); }
  .chat-sidebar-header-icon { font-size: 1.3rem; }
  .chat-sidebar-list {
    flex: 1; min-height: 0;
    max-height: 680px !important;   /* ~8 tiles (4 rows); rest scroll. Tune this number. */
    overflow-y: scroll !important;  /* scroll (not auto) → bar always visible on the right */
    scrollbar-width: thin;                                   /* Firefox */
    scrollbar-color: var(--rust, #B8431A) rgba(183,90,60,0.14);
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;          /* real tile height — aspect-ratio was collapsing in-grid */
    column-gap: 6px;                /* vertical gutter between the two columns — unchanged */
    row-gap: 24px;                  /* more horizontal separation between rows */
    align-content: start;
  }
  .chat-sidebar-list::-webkit-scrollbar { width: 9px; }
  .chat-sidebar-list::-webkit-scrollbar-track { background: rgba(183,90,60,0.14); border-radius: 5px; }
  .chat-sidebar-list::-webkit-scrollbar-thumb { background: var(--rust, #B8431A); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
  .chat-sidebar-list::-webkit-scrollbar-thumb:hover { background: var(--rust-deep, #8F3414); background-clip: padding-box; }
  .chat-sidebar-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: flex-end;
    padding: 0; cursor: pointer;
    transition: opacity .15s, transform .15s;
    border-radius: 10px; overflow: hidden;
    aspect-ratio: 1 / 1;
    background: rgba(183,90,60,0.08);
    position: relative;
  }
  .chat-sidebar-item:hover { opacity: 0.88; transform: scale(0.97); }
  .chat-sidebar-thumb {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  .chat-sidebar-emoji {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
  }
  .chat-sidebar-label {
    position: relative; z-index: 1; width: 100%;
    background: linear-gradient(to top, rgba(46,42,36,0.72) 0%, transparent 100%);
    padding: 18px 6px 6px;
  }
  .chat-sidebar-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    color: #fff; line-height: 1.2;
    text-align: center; letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }

  /* ── Mobile: stack to full width ── */
  @media (max-width: 768px) {
    /* reset the desktop scale(0.9) + negative bottom margin so the
       layout sits flush and full-width on mobile */
    .chat-layout { flex-direction: column; border-radius: 14px; height: auto; transform: none; margin-bottom: 0; box-shadow: none; }
    .chat-main { flex: 0 0 auto; }
    .chat-sidebar { flex: 0 0 auto; border-left: none; border-top: 1.5px solid rgba(183,90,60,0.14); }
    /* chatbot is the dominant entry pane — FIXED absolute height with internal
       scroll so it can't grow without limit as selections are added. flex:0 0 auto
       stops flex-grow from overriding the height in the stacked mobile layout. */
    .chat-layout .cm-messages { flex: 0 0 auto; height: 400px; max-height: 400px; min-height: 0; overflow-y: auto; }
    /* reply/message text reduced 10% on mobile (1rem -> 0.9rem) */
    .chat-layout .cm-bubble { font-size: 0.9rem; }
    /* placeholder ("subtle message") reduced 10% on mobile (1.05rem -> 0.945rem) */
    .chat-layout .cm-input::placeholder { font-size: 0.945rem; }
    /* chat input: remove the inner scrollbar; keep placeholder on one
       centered line within the entry field (no wrap = no vertical overflow) */
    .chat-layout .cm-input { overflow-y: hidden; text-align: center; white-space: nowrap; }
    /* SCROLL TO EXPLORE — mobile: horizontal swipe strip below the chat pane,
       ~4 thumbnails visible, swipe sideways for the rest. */
    .chat-sidebar-list {
      max-height: none !important;
      display: flex; flex-direction: row;
      overflow-x: scroll; overflow-y: hidden;   /* scroll (not auto) → bar stays visible */
      gap: 6px; padding: 8px 8px 4px;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;                     /* Firefox: always-visible thin bar */
      scrollbar-color: var(--rust, #B8431A) rgba(183,90,60,0.12);
    }
    .chat-sidebar-list::-webkit-scrollbar { height: 6px; width: 6px; }
    .chat-sidebar-list::-webkit-scrollbar-track { background: rgba(183,90,60,0.12); border-radius: 3px; }
    .chat-sidebar-list::-webkit-scrollbar-thumb { background: var(--rust, #B8431A); border-radius: 3px; }
    .chat-sidebar-item {
      flex: 0 0 calc((100% - 18px) / 4);   /* 4 across: 3 gaps × 6px = 18px */
      scroll-snap-align: start;
    }
    /* small tiles, but readable name text */
    .chat-sidebar-name { font-size: 0.72rem; line-height: 1.1; }
    .chat-sidebar-label { padding: 16px 4px 5px; }

    /* header wraps so the action buttons drop to their own full-width row */
    .chat-win-header { height: auto; min-height: 54px; padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
    /* 3 action buttons span the full pane width, evenly distributed.
       Title/avatar text untouched; font sizes left for later. */
    .chat-win-actions { width: 100%; margin-left: 0 !important; gap: 0.4rem; }
    .chat-win-actions button {
      flex: 1 1 0; min-width: 0;
      justify-content: center !important;
      text-align: center;
      font-size: 0.8rem !important;
      line-height: 1.15;
      padding: 0.4rem 0.45rem !important;
      border: 1.5px solid rgba(183,90,60,0.30) !important;
      border-radius: 14px !important;
      background: rgba(183,90,60,0.06) !important;
    }

  }

  /* ── Ready / Not yet / Print links in chat bubbles ── */
  .cm-ready-link {
    display: inline-block; margin-top: 0.3rem;
    color: var(--rust); font-weight: 700;
    text-decoration: underline; cursor: pointer;
  }
  .cm-ready-link:hover { color: var(--canyon); }
  .cm-btn-green {
    display: inline-block; margin-top: 0.3rem;
    background: #2E7D32; color: #fff !important;
    font-weight: 700; font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.4rem 1.1rem; border-radius: 6px;
    text-decoration: none !important; cursor: pointer;
    transition: background .2s;
  }
  .cm-btn-green:hover { background: #1B5E20 !important; color: #fff !important; }
  .ai-features {
    display: flex; gap: 1rem; justify-content: center;
    flex-wrap: wrap; margin-top: 1.75rem;
  }
  .ai-feat {
    background: #fff;
    border: 1px solid rgba(124,61,31,0.1);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    width: 160px; text-align: center;
    box-shadow: 0 2px 10px rgba(26,16,10,0.05);
    transition: box-shadow .2s, margin-top .2s;
  }
  .ai-feat:hover { box-shadow: 0 6px 20px rgba(26,16,10,0.1); margin-top: -3px; }
  .ai-feat-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
  .ai-feat h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; letter-spacing: 0.03em; text-transform: uppercase; }
  .ai-feat p { font-size: 0.78rem; color: #6B5A48; line-height: 1.45; }
  .ai-feat-tag { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); font-weight: 700; margin-bottom: 0.2rem; }
  @media (max-width: 600px) { .ai-features { display: none; } }

  .app-section { padding: 2.5rem 5vw 3rem; background: var(--cream); scroll-margin-top: 68px; }
  .app-inner {
    max-width: 960px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  }
  @media (max-width: 768px) { .app-inner { grid-template-columns: 1fr; gap: 1.5rem; } }

  /* Screenshots side */
  .app-screenshots {
    display: flex; gap: 1rem; align-items: flex-end; justify-content: center;
  }
  .app-screenshot {
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.16);
    border: 1.5px solid var(--bdr);
    flex: 1; max-width: 250px;
  }
  .app-screenshot img { width: 100%; height: auto; display: block; }
  .app-screenshot:first-child { transform: translateY(12px); }

  /* Text + badges side */
  .app-text { display: flex; flex-direction: column; gap: 1rem; }
  .app-text h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--dark); line-height: 1.2; }
  .app-text h2 em { color: var(--rust); font-style: italic; }
  .app-text p { color: var(--mid); line-height: 1.65; font-size: 1rem; }
  .app-badges { display: flex; flex-direction: row; gap: 0.75rem; }
  .app-badge {
    display: flex; align-items: center; gap: 0.65rem;
    background: var(--cream); color: var(--dark);
    padding: 0.6rem 1rem; border-radius: 10px; cursor: pointer;
    transition: background .2s, border-color .2s; flex: 1;
    border: 2px solid var(--dark);
  }
  .app-badge:hover { background: rgba(183,90,60,0.08); border-color: var(--rust); color: var(--rust); }
  .app-badge-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; filter: grayscale(1) brightness(0); }
  .app-badge:hover .app-badge-icon { filter: none; }
  .app-badge-text small { display: block; font-size: 0.6rem; opacity: 0.6; letter-spacing: 0.07em; text-transform: uppercase; }
  .app-badge-text strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.03em; }
  .app-stats { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--bdr); align-items: center; }
  .app-stat { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 400; color: var(--mid); display: flex; align-items: center; gap: 0.4rem; }
  .app-stat::before { content: '✓'; color: var(--rust); font-weight: 600; }
