/* ============================================================
   Ban Samet Ngam — Mobile-first design system
   Palette: "Shipyard & Mangrove" — Thai heritage-inspired.
   Weathered teak & deep mangrove ground the layout; temple gold
   is reserved as a restrained accent (gold-on-lacquer principle).
   Muted, handcrafted tones throughout — no saturated gradients.
   ============================================================ */
:root {
  /* color — heritage palette */
  --primary:        #2A3B32;  /* deep mangrove — grounding dark green */
  --primary-deep:   #22302A;  /* shaded mangrove */
  --primary-ink:    #1E2A23;  /* ship-hull green-black (dark sections) */
  --sand:           #B99274;
  --accent:         #8A6449;
  --accent-deep:    #654832;
  --accent-btn:     #6E4E37;
  --accent-btn-hov: #5A3F2C;
  --cta-green:      #2A3B32;  /* soft sage green — mobile download CTA */
  --cta-green-hov:  #80daa7;  /* deeper sage on press */
  --cta-green-soft: #DCEDE3;  /* pale mint — subtle icon backdrop */
  --bg:             #EAF0EA;  /* parchment — warm ivory (samut khoi paper) */
  --surface:        #DDE8E2;  /* linen — handwoven cotton / sedge base */
  --surface-2:      #CFE0D6;  /* มินต์อ่อน — คู่ไล่สีของ surface */
  --tint:           #E3ECE4;  /* aged scroll — warm section tint */
  --border:         #BFCCC3;  /* driftwood — muted warm gray-brown */
  --text:           #2B2620;  /* charcoal umber — sumi ink / ebony dye */
  --text-soft:      #6B6355;  /* aged bronze — softened warm gray */
  --on-dark:        #E8E0D2;  /* bone — warm off-white on dark */
  --on-dark-soft:   rgba(232,224,210,.72);

  /* type */
  --font-head: "Trirong", "Sarabun", serif;
  --font-body: "Rubik", "Sarabun", system-ui, sans-serif;

  /* radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadow (subtle, warm-toned) */
  --sh-sm: 0 1px 3px rgba(30,42,35,.06);
  --sh-md: 0 4px 16px rgba(30,42,35,.08);
  --sh-lg: 0 12px 32px rgba(30,42,35,.12);

  /* spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  --nav-h: 64px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, var(--tint) 100%);
  background-image:
    radial-gradient(ellipse 780px 480px at 12% -8%, rgba(212,169,106,.16), transparent 62%),
    radial-gradient(ellipse 640px 520px at 104% 18%, rgba(42,59,50,.07), transparent 58%),
    radial-gradient(ellipse 680px 460px at 15% 108%, rgba(184,134,43,.09), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.17  0 0 0 0 0.15  0 0 0 0 0.11  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-size: auto, auto, auto, 140px 140px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height:auto is what turns the width/height attributes on every <img> into a
   pure aspect-ratio hint: the browser reserves the right box before the file
   arrives (no layout shift) but CSS still decides the rendered size. Without
   it the height attribute becomes the used height while max-width shrinks the
   width, which stretches the picture. Rules that set an explicit height with
   object-fit (.gallery-strip img, .stay-img img, .exp-card img) are more
   specific and keep winning. */
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }
main { display: block; }

h1, h2, h3 { font-family: var(--font-head); color: var(--primary-ink); line-height: 1.25; font-weight: 600; }
h2 { font-size: clamp(1.55rem, 5.4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }

.container { width: min(1120px, 100% - 2 * var(--sp-5)); margin-inline: auto; }
.section { padding: var(--sp-8) 0; }
.section-tint { background: var(--tint); }

/* icon helper */
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- kicker / section heads ---------- */
.kicker {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: rgba(42,59,50,.07);
  border: 1px solid rgba(42,59,50,.16);
  padding: 6px 14px; border-radius: var(--r-pill);
  margin-bottom: var(--sp-4);
}
.kicker-light { color: var(--sand); background: rgba(212,169,106,.12); border-color: rgba(212,169,106,.28); }
.section-sub { color: var(--text-soft); margin-top: var(--sp-3); font-size: 1.02rem; max-width: 620px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent-btn); color: #fff; box-shadow: 0 6px 18px rgba(154,106,24,.32); }
.btn-primary:hover { background: var(--accent-btn-hov); }
.btn-glass {
  background: rgba(255,255,255,.14); color: #fff;
  border-color: rgba(255,255,255,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,.24); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; margin-top: var(--sp-4); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ================= NAVBAR ================= */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
  background: linear-gradient(rgba(30,42,35,.42), rgba(30,42,35,0));
}
.navbar.scrolled {
  background: rgba(250,247,242,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-md);
}
.nav-inner {
  height: var(--nav-h);
  width: min(1120px, 100% - 2 * var(--sp-4)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.brand {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: #fff; transition: color .3s var(--ease);
}
.brand-icon { width: 26px; height: 26px; color: var(--sand); }
.navbar.scrolled .brand { color: var(--primary-ink); }
.nav-links { display: none; }
.nav-actions { display: flex; align-items: center; gap: var(--sp-2); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 14px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: var(--r-pill);
  font-weight: 600; font-size: .85rem; cursor: pointer;
  transition: all .3s var(--ease);
}
.lang-toggle .ic { width: 17px; height: 17px; }
.navbar.scrolled .lang-toggle { background: rgba(42,59,50,.07); border-color: rgba(42,59,50,.2); color: var(--primary); }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #fff; cursor: pointer; transition: all .3s var(--ease);
}
.navbar.scrolled .menu-btn { background: rgba(42,59,50,.07); border-color: rgba(42,59,50,.2); color: var(--primary); }
.menu-btn .ic { width: 22px; height: 22px; }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(30,42,35,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-links {
  position: absolute; top: var(--nav-h); left: var(--sp-4); right: var(--sp-4);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: var(--sp-3);
  display: flex; flex-direction: column;
  transform: translateY(-12px); transition: transform .3s var(--ease);
}
.mobile-menu.open .mobile-menu-links { transform: translateY(0); }
.mobile-menu-links a {
  padding: 14px 16px; border-radius: var(--r-sm);
  font-weight: 500; font-size: 1.05rem; color: var(--text);
  min-height: 48px; display: flex; align-items: center;
}
.mobile-menu-links a:active { background: var(--tint); }
.mobile-menu-links a + a { border-top: 1px solid var(--border); }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden;
  padding-bottom: calc(var(--sp-6) + env(safe-area-inset-bottom));
}
.hero-bg {
  position: absolute; inset: 0;
  /* JPEG first as the universal fallback; browsers that understand
     image-set() take the WebP (~20% smaller) instead. */
  background-image: url("../assets/img/hero/hero_banner.jpg");
  background-image: image-set(
    url("../assets/img/hero/hero_banner.webp") type("image/webp"),
    url("../assets/img/hero/hero_banner.jpg") type("image/jpeg")
  );
  background-size: cover; background-position: center;
  transform: scale(1.05); animation: heroZoom 16s var(--ease) forwards;
}

/* <picture> is a pure wrapper -- it must not introduce a box, or the
   figure/aspect-ratio rules that target the inner <img> would break. */
picture { display: contents; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,42,35,.5) 0%, rgba(30,42,35,.18) 40%, rgba(30,42,35,.82) 100%);
}
.hero-content { position: relative; z-index: 2; width: min(1120px, 100% - 2 * var(--sp-5)); margin-inline: auto; }

.hero-title {
  font-size: clamp(2.6rem, 12vw, 5.2rem); font-weight: 700; color: #fff;
  line-height: 1.04; letter-spacing: -.01em; text-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.hero-tagline {
  font-size: clamp(1rem, 3.6vw, 1.25rem); margin: var(--sp-4) 0 var(--sp-5);
  max-width: 560px; color: rgba(255,255,255,.94); text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-stats {
  position: relative; z-index: 2;
  width: min(1120px, 100% - 2 * var(--sp-5)); margin: var(--sp-6) auto 0;
  display: flex; gap: var(--sp-5); flex-wrap: wrap;
  padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.22);
}
.stat { display: flex; flex-direction: column; min-width: 90px; }
.stat-num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--sand); line-height: 1.1; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.82); margin-top: 2px; }

/* ================= STORY ================= */
.story-media { position: relative; margin: var(--sp-5) 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.story-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-media figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(30,42,35,.78); color: #fff; font-size: .8rem;
  padding: 6px 14px; border-radius: var(--r-pill);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.story-text p { color: var(--text-soft); margin-bottom: var(--sp-4); font-size: 1.03rem; }

.fact-list { list-style: none; display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.fact-list li {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-4);
  box-shadow: var(--sh-sm);
}
.fact-list .ic { width: 22px; height: 22px; color: var(--primary); margin-top: 3px; }
.fact-list strong { display: block; font-weight: 600; color: var(--primary-ink); font-size: .95rem; }
.fact-list span { color: var(--text-soft); font-size: .95rem; }

/* ================= WHY ================= */
.why-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); margin-top: var(--sp-6); }
.why-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.why-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: rgba(42,59,50,.09); color: var(--primary);
}
.why-icon svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.why-card p { font-size: .94rem; color: var(--text-soft); }

/* ================= INNOVATIONS ================= */
.inno-list { display: grid; gap: var(--sp-7); margin-top: var(--sp-6); }
.inno-item { display: grid; gap: var(--sp-5); }
.inno-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.inno-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.inno-num {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: #fff; background: rgba(30,42,35,.6);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
}
.inno-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: var(--sp-3);
  background: rgba(184,134,43,.13); color: var(--accent-deep);
}
.inno-icon svg { width: 24px; height: 24px; }
.inno-body h3 { font-size: 1.45rem; margin-bottom: 2px; }
.inno-sub { font-family: var(--font-head); color: var(--accent-deep); font-weight: 500; margin-bottom: var(--sp-3); font-size: .98rem; }
.inno-body > p:not(.inno-sub) { color: var(--text-soft); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.chips li {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--border);
  color: var(--primary); font-size: .82rem; font-weight: 500;
  padding: 6px 13px; border-radius: var(--r-pill);
}

/* ================= UNCLE SAMET ================= */
.uncle { background: linear-gradient(150deg, var(--primary-ink) 0%, #24352B 55%, var(--primary-deep) 100%); color: var(--on-dark); }
.uncle h2 { color: #fff; }
.uncle-grid { display: grid; gap: var(--sp-6); align-items: center; }
.uncle-quote {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 500;
  color: var(--sand); border-left: 3px solid var(--accent);
  padding-left: var(--sp-4); margin: var(--sp-4) 0; font-style: italic; line-height: 1.5;
}
.uncle-body p { color: var(--on-dark-soft); margin-bottom: var(--sp-4); }
.uncle-credit { font-size: .9rem; opacity: .82; }
.uncle-app-name {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  color: var(--sand); margin: var(--sp-2) 0 var(--sp-3);
}
.btn-download {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); color: var(--primary-ink);
  padding: 14px 22px; box-shadow: var(--sh-lg); margin-top: var(--sp-3);
  border-radius: var(--r-md); width: 100%; justify-content: flex-start; text-align: left;
}
.btn-download:hover { background: var(--sand); }
.btn-download .ic { width: 26px; height: 26px; color: var(--primary); }
.btn-download strong { display: block; font-size: 1.02rem; }
.btn-download small { font-weight: 400; color: var(--text-soft); font-size: .84rem; }
.dl-note { margin-top: var(--sp-3); font-size: .84rem; color: var(--on-dark-soft); transition: color .3s; }

.placeholder-box {
  aspect-ratio: 1/1.05; border-radius: var(--r-xl);
  border: 2px dashed rgba(234,227,214,.45);
  background: rgba(255,255,255,.06);
  display: grid; place-content: center; justify-items: center; text-align: center;
  gap: var(--sp-3); padding: var(--sp-5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.placeholder-icon { width: 52px; height: 52px; color: var(--sand); }
.placeholder-box strong { font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.placeholder-box small { color: var(--on-dark-soft); }

/* รูปแอป SametGo */
.uncle-app-img {
  width: 100%; max-width: 420px; height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}

/* ================= APP SHOWCASE ================= */
.app-showcase {
  background: linear-gradient(150deg, var(--primary-ink) 0%, #24352B 55%, var(--primary-deep) 100%);
  color: var(--on-dark);
}
.app-showcase h2 { color: #fff; }
.app-lead {
  color: var(--on-dark-soft); max-width: 62ch; margin-top: var(--sp-3); margin-bottom: var(--sp-6);
  font-size: 1.02rem; line-height: 1.7;
}
.app-poster {
  display: block; width: 100%; max-width: 480px; margin: 0 auto var(--sp-8);
  border-radius: var(--r-xl); box-shadow: var(--sh-lg);
}
.app-feat-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.app-feat { text-align: center; }
.app-feat-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: rgba(185,146,116,.16); color: var(--sand);
  margin-bottom: var(--sp-3);
}
.app-feat-icon svg { width: 24px; height: 24px; }
.app-feat h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); color: #fff; }
.app-feat p { font-size: .9rem; color: var(--on-dark-soft); }

/* ================= STAY ================= */
.stay-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: var(--sp-4); margin-top: var(--sp-6);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-3);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stay-carousel::-webkit-scrollbar { display: none; }
.stay-card {
  scroll-snap-align: start;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stay-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.stay-img { aspect-ratio: 16/10; overflow: hidden; }
.stay-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.stay-card:hover .stay-img img { transform: scale(1.05); }
.stay-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.stay-cat { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); }
.stay-body h3 { font-size: 1.12rem; }
.stay-body p { font-size: .9rem; color: var(--text-soft); flex: 1; }
.stay-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--border); }
.stay-price { font-weight: 600; color: var(--primary); font-size: .95rem; }
.stay-tel { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; color: var(--primary); font-weight: 600; }
.stay-tel .ic { width: 15px; height: 15px; }

.gallery-title { margin: var(--sp-7) 0 var(--sp-4); font-size: 1.25rem; }
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.gallery-strip figure { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-strip figure:hover img { transform: scale(1.07); }

/* ================= EXPLORE ================= */
.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin-top: var(--sp-6); }
.exp-card {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 1/1.05; box-shadow: var(--sh-sm); display: block;
}
.exp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.exp-card:active img, .exp-card:hover img { transform: scale(1.06); }
.exp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,42,35,0) 42%, rgba(30,42,35,.85) 100%); }
.exp-label { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; color: #fff; display: flex; gap: 8px; align-items: flex-start; }
.exp-label .ic { width: 20px; height: 20px; color: var(--sand); margin-top: 2px; flex: none; }
.exp-label strong { display: block; font-family: var(--font-head); font-size: .98rem; line-height: 1.2; }
.exp-label span { font-size: .78rem; color: rgba(255,255,255,.85); }

/* ================= VISIT ================= */
.visit-grid { display: grid; gap: var(--sp-6); }
.visit-lead { color: var(--text-soft); margin: var(--sp-3) 0 var(--sp-4); }
.itinerary { background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-md); }
.itinerary h3 { margin-bottom: var(--sp-4); font-size: 1.2rem; }
.timeline { list-style: none; position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--primary), var(--accent)); border-radius: 2px; }
.timeline li { position: relative; padding-bottom: var(--sp-4); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -22px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border: 3px solid var(--primary);
}
.t-time { font-family: var(--font-head); font-weight: 600; color: var(--accent-deep); margin-right: 6px; }
.timeline p { display: inline; color: var(--text-soft); font-size: .95rem; }

/* ================= CONTACT ================= */
.contact { background: var(--primary-ink); color: var(--on-dark); text-align: center; }
.contact h2 { color: #fff; }
.contact-sub { color: var(--on-dark-soft); margin: var(--sp-3) 0 var(--sp-6); }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); max-width: 720px; margin: 0 auto; }
.contact-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(234,227,214,.14);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: grid; gap: 4px; justify-items: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.contact-card:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.contact-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: var(--primary-ink);
  display: grid; place-items: center; margin-bottom: var(--sp-2);
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-icon-fb { background: #1877F2; }
.contact-card strong { font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.contact-card small { color: var(--on-dark-soft); }

/* ================= FOOTER ================= */
.footer { background: #12211C; color: rgba(234,227,214,.72); padding: var(--sp-7) 0 calc(var(--sp-6) + 76px); }
.footer .container { display: grid; gap: var(--sp-5); text-align: center; justify-items: center; }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); color: #fff; text-align: left; }
.footer-brand .brand-icon { width: 30px; height: 30px; }
.footer-brand strong { font-family: var(--font-head); }
.footer-brand p { font-size: .86rem; color: rgba(234,227,214,.6); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); justify-content: center; }
.footer-nav a { font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--sand); }
.footer-credit { font-size: .84rem; max-width: 640px; color: rgba(234,227,214,.55); }
.footer-copy { font-size: .8rem; color: rgba(234,227,214,.4); border-top: 1px solid rgba(234,227,214,.1); padding-top: var(--sp-4); width: 100%; }

/* ================= STICKY MOBILE CTA ================= */
.sticky-cta {
  position: fixed; left: var(--sp-4); right: var(--sp-4);
  bottom: calc(var(--sp-4) + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 54px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--cta-green) 0%, var(--cta-green-hov) 100%);
  color: #fff;
  font-weight: 600; font-size: 1rem;
  box-shadow: 0 10px 26px rgba(76,124,101,.35);
  transform: translateY(140%); transition: transform .35s var(--ease), box-shadow .2s, filter .2s;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta:active { filter: brightness(.94); box-shadow: 0 6px 16px rgba(76,124,101,.4); }
.sticky-cta .ic { width: 20px; height: 20px; }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   TABLET  (≥640px)
   ============================================================ */
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stay-carousel { grid-auto-columns: 46%; }
  .gallery-strip { grid-template-columns: repeat(6, 1fr); }
  .exp-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .btn-download { width: auto; }
}

/* ============================================================
   DESKTOP  (≥900px)
   ============================================================ */
@media (min-width: 900px) {
  :root { --nav-h: 72px; }
  .nav-links { display: flex; gap: var(--sp-5); }
  .nav-links a {
    color: rgba(255,255,255,.92); font-weight: 500; font-size: .96rem;
    position: relative; transition: color .3s; padding: 6px 0;
  }
  .navbar.scrolled .nav-links a { color: var(--text-soft); }
  .nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .25s var(--ease); }
  .nav-links a:hover::after { width: 100%; }
  .nav-links a:hover { color: var(--accent); }
  .menu-btn { display: none; }
  .mobile-menu { display: none; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: var(--sp-7); }

  /* story side-by-side */
  #story .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-7); align-items: center; }
  #story .kicker, #story h2 { grid-column: 1 / -1; }
  .story-media { margin: 0; }
  .fact-list { margin-top: var(--sp-5); }

  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .app-feat-grid { grid-template-columns: repeat(5, 1fr); }

  /* innovations alternate */
  .inno-item { grid-template-columns: 1.05fr 1fr; gap: var(--sp-7); align-items: center; }
  .inno-item:nth-child(even) .inno-media { order: 2; }
  .inno-media img { aspect-ratio: 4/3; }

  .uncle-grid { grid-template-columns: .85fr 1.15fr; gap: var(--sp-8); }
  .app-feat-grid { grid-template-columns: repeat(3, 1fr); }

  .stay-carousel {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
    overflow: visible; scroll-snap-type: none; padding-bottom: 0;
  }
  .stay-card { scroll-snap-align: none; }

  .visit-grid { grid-template-columns: 1.1fr .9fr; gap: var(--sp-7); align-items: start; }
}

/* ============================================================
   FEEDBACK WIDGET
   Floating button + responsive modal. Uses the heritage tokens.
   Dark mode is scoped to the widget via a local variable remap.
   ============================================================ */
.feedback-fab {
  position: fixed; right: var(--sp-4); bottom: calc(var(--sp-4) + env(safe-area-inset-bottom));
  z-index: 95;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 52px; padding: 12px 20px;
  border: none; border-radius: var(--r-pill);
  background: var(--primary); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  box-shadow: 0 10px 28px rgba(30,42,35,.4);
  cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), opacity .25s var(--ease);
}
.feedback-fab:hover { background: var(--primary-ink); transform: translateY(-2px); }
.feedback-fab:active { transform: scale(.96); }
.feedback-fab .ic { width: 20px; height: 20px; }
.feedback-fab.hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* On mobile the sticky CTA owns the bottom slot — stack the FAB above it. */
@media (max-width: 899px) {
  .sticky-cta.show ~ .feedback-fab { bottom: calc(var(--sp-4) + 62px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   PLACE SEARCH — #find
   Mobile-first: one column, cards stack. The search bar and the
   category chips stay reachable with one thumb; results reflow to
   two and three columns as the viewport allows.
   ============================================================ */
.find-lead { color: var(--text-soft); margin-top: var(--sp-3); font-size: 1.02rem; max-width: 640px; }

.find-bar {
  position: relative;
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 6px 4px var(--sp-4);
  box-shadow: var(--sh-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.find-bar:focus-within { border-color: var(--accent); box-shadow: var(--sh-md); }
.find-bar-icon { width: 19px; height: 19px; flex: none; color: var(--text-soft); }
.find-input {
  flex: 1; min-width: 0;
  border: none; background: none; outline: none;
  font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 0;
}
.find-input::placeholder { color: var(--text-soft); opacity: .8; }
/* The UA's own clear button would sit next to ours. */
.find-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.find-clear {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border: none; border-radius: var(--r-pill);
  background: transparent; color: var(--text-soft); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.find-clear:hover { background: rgba(42,59,50,.08); color: var(--text); }
.find-clear .ic { width: 16px; height: 16px; }

.find-filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.find-chip {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); cursor: pointer;
  font-size: .88rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-pill);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.find-chip:hover { border-color: var(--accent); color: var(--text); }
.find-chip.is-active {
  background: var(--primary); border-color: var(--primary);
  color: var(--on-dark);
}

.find-status {
  margin-top: var(--sp-4);
  font-size: .9rem; color: var(--text-soft); min-height: 1.4em;
}

.find-results {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-4);
  margin-top: var(--sp-3);
}

.find-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.find-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.find-card h3 { font-size: 1.1rem; line-height: 1.35; }
.find-card mark {
  background: rgba(184,134,43,.24);
  color: inherit; border-radius: 3px; padding: 0 2px;
}

.find-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.find-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(138,100,73,.10);
  border: 1px solid rgba(138,100,73,.20);
  padding: 5px 11px; border-radius: var(--r-pill);
}
.find-badge .ic { width: 14px; height: 14px; }

.find-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.find-tags li {
  font-size: .78rem; color: var(--text-soft);
  background: rgba(42,59,50,.06);
  border: 1px solid rgba(42,59,50,.12);
  padding: 3px 10px; border-radius: var(--r-pill);
}

.find-meta { display: flex; flex-direction: column; gap: 7px; }
.find-meta-row { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--text-soft); }
.find-meta-row .ic { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--accent); }

.find-compare {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding-top: var(--sp-3); border-top: 1px dashed var(--border);
}
.find-compare-label {
  width: 100%; font-size: .74rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft);
}
.find-compare-pill {
  font-size: .78rem; color: var(--primary); font-weight: 600;
  background: var(--cta-green-soft);
  border: 1px solid rgba(42,59,50,.14);
  padding: 3px 10px; border-radius: var(--r-pill);
}

.find-actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: auto; padding-top: var(--sp-3);
  border-top: 1px dashed var(--border);
}
.find-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .86rem; font-weight: 600; color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 14px; border-radius: var(--r-pill);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.find-action:hover { border-color: var(--accent); }
.find-action .ic { width: 15px; height: 15px; }
.find-action-map { background: var(--primary); border-color: var(--primary); color: var(--on-dark); }
.find-action-map:hover { background: var(--primary-ink); border-color: var(--primary-ink); }

@media (min-width: 640px) {
  .find-results { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .find-results { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   AI CHAT — #chat
   A real section in the page, not an overlay. Nothing here is
   position:fixed, so the conversation never sits on top of the
   content the visitor is reading.

   The console is a single elevated card: a dark bar for identity,
   a scrolling transcript with its own bounded height, and a
   composer pinned to the bottom of the card (not the viewport).
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.aichat-lead { color: var(--text-soft); margin-top: var(--sp-3); font-size: 1.02rem; max-width: 640px; }

.aichat {
  margin-top: var(--sp-5);
  max-width: 880px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* ---- identity bar ---- */
.aichat-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(135deg, var(--primary-ink) 0%, var(--primary) 100%);
  color: var(--on-dark);
}
.aichat-id { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.aichat-avatar {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  background: rgba(212,169,106,.18);
  border: 1px solid rgba(212,169,106,.34);
  color: var(--sand);
}
.aichat-avatar .ic { width: 21px; height: 21px; }
.aichat-id-text { min-width: 0; }
.aichat-id-text strong {
  display: block; font-family: var(--font-head);
  font-size: 1.08rem; line-height: 1.2; color: #fff;
}
.aichat-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--on-dark-soft);
}
.aichat-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7FBF9A; flex: none;
  box-shadow: 0 0 0 0 rgba(127,191,154,.6);
  animation: aichatPulse 2.4s var(--ease) infinite;
}
.aichat.is-busy .aichat-dot { background: var(--sand); }
.aichat.is-down .aichat-dot { background: #C97A6A; animation: none; }
@keyframes aichatPulse {
  0%   { box-shadow: 0 0 0 0 rgba(127,191,154,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(127,191,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,191,154,0); }
}

.aichat-iconbtn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid rgba(232,224,210,.18); border-radius: var(--r-pill);
  background: rgba(255,255,255,.06); color: var(--on-dark); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.aichat-iconbtn:hover { background: rgba(255,255,255,.14); border-color: rgba(232,224,210,.34); }
.aichat-iconbtn .ic { width: 17px; height: 17px; }

/* ---- transcript ---- */
.aichat-log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
  min-height: 320px; max-height: min(58vh, 520px);
  background:
    radial-gradient(ellipse 460px 240px at 8% 0%, rgba(212,169,106,.07), transparent 62%),
    var(--bg);
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.aichat-log::-webkit-scrollbar { width: 9px; }
.aichat-log::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-pill); border: 3px solid transparent; background-clip: content-box; }

/* ---- empty state ---- */
.aichat-empty {
  margin: auto 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) 0;
}
.aichat-empty[hidden] { display: none; }
.aichat-empty-avatar {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: var(--r-pill);
  background: var(--cta-green-soft);
  border: 1px solid rgba(42,59,50,.14);
  color: var(--primary); margin-bottom: var(--sp-1);
}
.aichat-empty-avatar .ic { width: 27px; height: 27px; }
.aichat-welcome {
  font-family: var(--font-head); font-size: 1.06rem; font-weight: 500;
  color: var(--text); max-width: 46ch; line-height: 1.55;
}
.aichat-suggest {
  font-size: .82rem; color: var(--text-soft);
  margin-top: var(--sp-2);
}
.aichat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 2px; }
.aichat-chip {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--primary); cursor: pointer;
  font-family: inherit; font-size: .84rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--r-pill);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.aichat-chip:hover { background: var(--surface-2); border-color: var(--accent); transform: translateY(-1px); }
.aichat-chip:active { transform: none; }

/* ---- messages ---- */
.aichat-row { display: flex; gap: var(--sp-2); align-items: flex-end; max-width: 100%; }
.aichat-row.is-user { justify-content: flex-end; }
.aichat-row-avatar {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--cta-green-soft); color: var(--primary);
  border: 1px solid rgba(42,59,50,.12);
  margin-bottom: 2px;
}
.aichat-row-avatar .ic { width: 15px; height: 15px; }

.aichat-stack { display: flex; flex-direction: column; gap: 4px; max-width: min(76%, 560px); min-width: 0; }
.aichat-row.is-user .aichat-stack { align-items: flex-end; }

.aichat-bubble {
  padding: 11px 15px; border-radius: var(--r-lg);
  font-size: .94rem; line-height: 1.62;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.aichat-row.is-bot .aichat-bubble {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-bottom-left-radius: 6px;
}
.aichat-row.is-user .aichat-bubble {
  background: var(--primary); color: var(--on-dark);
  border-bottom-right-radius: 6px;
}
.aichat-row.is-error .aichat-bubble {
  background: rgba(201,122,106,.10);
  border: 1px solid rgba(201,122,106,.34);
  color: var(--text);
}

/* the caret that trails streamed text */
.aichat-bubble.is-streaming::after {
  content: ""; display: inline-block;
  width: 2px; height: 1em; margin-left: 2px;
  background: var(--accent); vertical-align: -2px;
  animation: aichatCaret 1s steps(2) infinite;
}
@keyframes aichatCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.aichat-tools { display: flex; gap: 4px; padding-left: 2px; }
.aichat-tool {
  display: inline-flex; align-items: center; gap: 5px;
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: .74rem; font-weight: 600;
  color: var(--text-soft); padding: 3px 6px; border-radius: var(--r-sm);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.aichat-tool:hover { background: rgba(42,59,50,.07); color: var(--text); }
.aichat-tool .ic { width: 13px; height: 13px; }

/* ---- typing indicator ---- */
.aichat-typing { display: inline-flex; align-items: center; gap: 5px; padding: 14px 16px; }
.aichat-typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-soft); opacity: .45;
  animation: aichatBounce 1.25s var(--ease) infinite;
}
.aichat-typing i:nth-child(2) { animation-delay: .16s; }
.aichat-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes aichatBounce {
  0%, 62%, 100% { transform: translateY(0); opacity: .38; }
  32%           { transform: translateY(-5px); opacity: .95; }
}

/* ---- composer ---- */
.aichat-composer {
  display: flex; align-items: flex-end; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.aichat-input {
  flex: 1; min-width: 0; resize: none;
  font-family: inherit; font-size: .96rem; line-height: 1.5; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 11px 14px;
  max-height: 132px; overflow-y: auto;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.aichat-input::placeholder { color: var(--text-soft); opacity: .82; }
.aichat-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138,100,73,.13); }
.aichat-input:disabled { opacity: .55; cursor: not-allowed; }

.aichat-send {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  border: none; border-radius: var(--r-pill);
  background: var(--primary); color: var(--on-dark); cursor: pointer;
  transition: background .2s var(--ease), transform .15s var(--ease), opacity .2s var(--ease);
}
.aichat-send:hover:not(:disabled) { background: var(--primary-ink); }
.aichat-send:active:not(:disabled) { transform: scale(.94); }
.aichat-send:disabled { opacity: .42; cursor: not-allowed; }
.aichat-send .ic { width: 20px; height: 20px; }

.aichat-hint {
  padding: 0 var(--sp-4) var(--sp-3);
  background: var(--surface);
  font-size: .76rem; color: var(--text-soft);
}

.aichat-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-soft);
}
.aichat-applink {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600;
}
.aichat-applink:hover { text-decoration: underline; }
.aichat-applink .ic { width: 15px; height: 15px; }

@media (min-width: 640px) {
  .aichat-log { padding: var(--sp-5); }
  .aichat-bar { padding: var(--sp-4) var(--sp-5); }
  .aichat-composer, .aichat-foot { padding-inline: var(--sp-5); }
  .aichat-hint { padding-inline: var(--sp-5); }
}

@media (prefers-reduced-motion: reduce) {
  .aichat-dot, .aichat-typing i, .aichat-bubble.is-streaming::after { animation: none; }
  .aichat-chip:hover { transform: none; }
}
