/* Salt Day Phuket — shared styles. Editorial light theme. Tokens first; components use tokens only. */
@view-transition { navigation: auto; }
:root {
  --sand: #f7f1e6; --sand-2: #efe5d2; --sand-3: #e4d6bb; --paper: #fffdf8; --white: #fff;
  --ink: #062f45; --text: #1d3d4e; --muted: #4b6574; --line: #e3d9c6;
  --line-2: #cbbd9f;
  --lagoon: #0e8f9c; --lagoon-t: #0a6b76; --lagoon-50: #e2f2f1; --lagoon-100: #c6e7e6;
  --deep: #073b52; --deeper: #042436; --on-dark: #e8f1ef; --on-dark-2: #b9cfd2;
  --coral: #c8432a; --coral-h: #a9361f; --coral-50: #fbe8e1; --sun: #f2b544; --sun-l: #ffd98a;
  --ok: #1d7a4f; --err: #b3261e; --err-50: #fdecea;
  --disp: "Fraunces", "Noto Serif Thai", Georgia, serif;
  --body: "Inter", "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-s: 10px; --r: 16px; --r-l: 26px; --pill: 999px;
  --sh-1: 0 1px 2px rgba(6, 47, 69, .06), 0 6px 18px -8px rgba(6, 47, 69, .16);
  --sh-2: 0 28px 60px -32px rgba(6, 47, 69, .5);
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .18s; --t: .26s;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --hdr: 68px; --tab: 64px; --gut: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: no-preference) { html:not(.shot) { scroll-behavior: smooth; } }
body { margin: 0; background: var(--sand); color: var(--text); font: 400 1rem/1.6 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="th"] body { line-height: 1.75; }
html:has(dialog[open]) { overflow: hidden; }
html[lang="th"] [lang="en"]:not(html), html[lang="en"] [lang="th"]:not(html) { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, [role="button"], summary, label[for], .chip, select { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .hero :focus-visible, .portal :focus-visible, .lb :focus-visible, .ftr :focus-visible { outline-color: var(--sun-l); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-s); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ico-f { fill: currentColor; stroke: none; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { :root { --gut: 32px; } }

/* ---------- type ---------- */
.chap { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--lagoon-t); font-weight: 600; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; }
html[lang="th"] .chap { letter-spacing: .01em; text-transform: none; font-size: .95rem; }
.chap-n { font: italic 400 1.7rem/1 var(--disp); color: var(--coral); letter-spacing: 0; text-transform: none; }
.chap::after { content: ""; width: 72px; height: 1px; background: currentColor; opacity: .45; }
.h1 { font: 340 clamp(2.6rem, 6.4vw, 5.6rem)/.98 var(--disp); letter-spacing: -.025em; color: var(--ink); font-variation-settings: "opsz" 144, "SOFT" 30; }
html[lang="th"] .h1 { font-weight: 600; font-size: clamp(2.05rem, 4.8vw, 4.1rem); line-height: 1.3; letter-spacing: 0; }
.h2 { font: 380 clamp(2.05rem, 4.4vw, 3.5rem)/1.04 var(--disp); color: var(--ink); letter-spacing: -.02em; margin: 0 0 18px; font-variation-settings: "opsz" 144; }
html[lang="th"] .h2 { font-weight: 600; font-size: clamp(1.7rem, 3.5vw, 2.65rem); line-height: 1.34; letter-spacing: 0; }
.h1 em, .h2 em { font-style: italic; color: var(--lagoon-t); font-weight: 340; }
html[lang="th"] .h1 em, html[lang="th"] .h2 em { font-style: normal; font-weight: 600; }
.h3 { font: 500 clamp(1.35rem, 2.2vw, 1.75rem)/1.15 var(--disp); color: var(--ink); letter-spacing: -.01em; }
html[lang="th"] .h3 { font-weight: 600; line-height: 1.4; letter-spacing: 0; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.h4 { font: 600 1.1rem/1.35 var(--body); color: var(--ink); margin: 0 0 6px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.fig { display: flex; gap: 8px; align-items: baseline; font: italic 400 .9rem/1.45 var(--disp); color: var(--muted); margin-top: 10px; }
html[lang="th"] .fig { font-style: normal; font-family: var(--body); font-size: .86rem; line-height: 1.6; }
.fig b { font-style: normal; font-weight: 600; font-family: var(--body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); white-space: nowrap; }
.note { font-size: .86rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.note .ico { color: var(--lagoon-t); margin-top: 2px; }
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec-tight { padding: clamp(48px, 6vw, 80px) 0; }
.sec-h { margin-bottom: clamp(32px, 4vw, 52px); max-width: 780px; }
.sec-h.split { max-width: none; display: grid; gap: 16px 48px; align-items: end; }
@media (min-width: 900px) { .sec-h.split { grid-template-columns: 1.1fr .9fr; } .sec-h.split .lede { margin: 0; } }
.paper { background: var(--paper); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); background: rgba(255, 253, 248, .92); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); view-transition-name: hdr; }
.hdr-in { display: flex; align-items: center; gap: 16px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; flex: none; }
.logo svg { width: 36px; height: 36px; }
.logo b { display: block; font: 600 1.34rem/1 var(--disp); letter-spacing: -.01em; }
.logo small { display: block; font: 600 .6rem/1 var(--body); letter-spacing: .3em; color: var(--lagoon-t); margin-top: 4px; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; text-decoration: none; color: var(--text); font-weight: 500; border-radius: var(--pill); }
.nav a .ico { color: var(--lagoon-t); }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.hdr-act { display: flex; gap: 8px; align-items: center; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--pill); background: transparent; color: var(--ink); font-weight: 600; font-size: .9rem; }
.lang-btn:hover { border-color: var(--ink); }
.trip-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 600; }
.trip-btn:hover { background: var(--deep); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--coral); color: #fff; font: 700 .74rem/1 var(--body); }
.badge.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.35); } }
@media (max-width: 1023px) { .nav a { padding: 0 10px; } .nav a .ico { display: none; } }
@media (max-width: 767px) {
  :root { --hdr: 60px; }
  .nav { display: none; }
  .hdr-act { margin-left: auto; }
  .trip-btn .tlbl { display: none; }
  .trip-btn { padding: 0 14px; }
  .logo svg { width: 32px; height: 32px; }
  .logo b { font-size: 1.18rem; }
}

/* ---------- bottom tab bar (mobile) ---------- */
.tabbar { display: none; }
@media (max-width: 767px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 253, 248, .97); border-top: 1px solid var(--line); padding: 0 4px env(safe-area-inset-bottom); box-shadow: 0 -12px 30px -22px rgba(6, 47, 69, .5); view-transition-name: tabbar; }
  .tb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--tab); padding: 6px 2px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; line-height: 1.2; background: none; border: 0; text-align: center; }
  .tb .ico { width: 24px; height: 24px; }
  .tb[aria-current="page"] { color: var(--coral); }
  .tb[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--coral); }
  .tb .badge { position: absolute; top: 6px; left: calc(50% + 4px); }
  body { padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); }
}

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--pill); border: 1.5px solid transparent; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; transition: transform var(--t-fast) var(--ease); text-align: center; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-h); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-glass { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(4, 36, 54, .28); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(4, 36, 54, .5); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .a1 { display: none; }
.btn.is-added { background: var(--lagoon-t); border-color: var(--lagoon-t); color: #fff; }
.btn.is-added .a0 { display: none; }
.btn.is-added .a1 { display: inline; }
.ico-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); flex: none; }
.ico-btn:hover { border-color: var(--ink); }
.ico-btn-s { width: 36px; height: 36px; }
.ico-btn-s::after { content: ""; position: absolute; inset: -4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .ico { width: 1.1em; height: 1.1em; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--pill); background: var(--lagoon-50); color: var(--lagoon-t); font-size: .78rem; font-weight: 600; }
.tag-sun { background: #fdf0d3; color: #7a4b00; }
.tag-coral { background: var(--coral-50); color: var(--coral-h); }
.tag .ico { width: 1em; height: 1em; }
.stars { display: inline-flex; gap: 1px; color: #b7791f; }
.stars .ico { width: 15px; height: 15px; }

/* ---------- forms ---------- */
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.fld > label, .lbl { font-weight: 600; font-size: .92rem; color: var(--ink); }
.fld-row { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.inp { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); font-size: 1rem; width: 100%; color: var(--ink); }
select.inp { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23062f45' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.inp:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 1px; border-color: var(--lagoon-t); }
.inp[aria-invalid="true"] { border-color: var(--err); background: var(--err-50); }
.inp-s { min-height: 44px; padding: 6px 10px; font-size: .92rem; }
textarea.inp { min-height: 84px; resize: vertical; }
.fld-err { margin: 0; color: var(--err); font-size: .86rem; font-weight: 500; line-height: 1.45; }
.fld-err:empty { display: none; }
.hint { margin: 0; font-size: .84rem; color: var(--muted); }
.stp { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--pill); background: var(--white); flex: none; }
.stp button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; color: var(--ink); }
.stp button:disabled { opacity: .3; cursor: not-allowed; }
.stp output { min-width: 2.2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.stp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.stp-row:last-child { border-bottom: 0; }
.stp-row p { margin: 0; }
.stp-row small { display: block; color: var(--muted); font-size: .82rem; }
.chk { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 6px 0; font-size: .92rem; line-height: 1.5; }
.chk input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--coral); flex: none; }
.chk-box { padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); }
.chk-box:has(input:checked) { border-color: var(--lagoon-t); background: var(--lagoon-50); }
.chk-box:has(input:disabled) { opacity: .55; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .92rem; color: var(--ink); width: 100%; }
.seg label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--white); font-weight: 500; font-size: .92rem; line-height: 1.35; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 2px; }
.seg label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.seg-col label { width: 100%; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.shot .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- home hero: film strip ---------- */
.hero { position: relative; height: calc(100svh - var(--hdr)); min-height: 600px; max-height: 960px; overflow: hidden; color: #fff; background: var(--deeper); isolation: isolate; }
.hero-sl { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-sl.on { opacity: 1; z-index: 1; }
.hero-sl img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transform-origin: var(--kb, 55% 45%); transition: transform 0s 1.3s; }
.hero-sl.on img { transform: scale(1); transition: transform 9s linear; }
.shot .hero-sl img, .rm .hero-sl img { transform: none !important; transition: none !important; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(4, 36, 54, .42) 0%, rgba(4, 36, 54, 0) 26%, rgba(4, 36, 54, .08) 46%, rgba(4, 30, 44, .86) 100%), linear-gradient(90deg, rgba(4, 30, 44, .6) 0%, rgba(4, 30, 44, 0) 64%); }
.hero-c { position: absolute; z-index: 3; left: 0; right: 0; bottom: 156px; }
.hero-k { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sun-l); }
html[lang="th"] .hero-k { letter-spacing: .02em; text-transform: none; font-size: .98rem; }
.hero-k::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero h1 { color: #fff; max-width: 13em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
html[lang="th"] .hero h1 { max-width: 12em; }
.hero h1 em { color: var(--sun-l); }
.hw { display: inline-block; opacity: 0; transform: translateY(.45em); animation: hw .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 95ms + 150ms); }
@keyframes hw { to { opacity: 1; transform: none; } }
.shot .hw { animation: none; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hw { animation: none; opacity: 1; transform: none; } .hero-sl img { transform: none !important; transition: none !important; } .hero-sl { transition: none; } }
.hero-sub { margin: 20px 0 26px; max-width: 46ch; font-size: 1.12rem; color: var(--on-dark); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cap { position: absolute; z-index: 3; top: 22px; right: var(--gut); max-width: 340px; margin: 0; text-align: right; font: italic 400 .88rem/1.45 var(--disp); color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
html[lang="th"] .hero-cap { font-style: normal; font-family: var(--body); }
.hero-cap b { display: block; font: 600 .7rem/1.6 var(--body); letter-spacing: .2em; color: var(--sun-l); font-style: normal; }
.strip { position: absolute; z-index: 4; left: 0; right: 0; bottom: 22px; }
.strip-in { display: flex; align-items: flex-end; gap: 10px; justify-content: flex-end; }
.strip-t { position: relative; flex: 0 0 132px; padding: 0; border: 0; background: none; color: #fff; text-align: left; opacity: .72; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.strip-t:hover, .strip-t[aria-current="true"] { opacity: 1; }
.strip-t[aria-current="true"] { transform: translateY(-4px); }
.strip-ph { display: block; height: 78px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); outline: 2px solid transparent; }
.strip-t[aria-current="true"] .strip-ph { outline-color: var(--sun-l); }
.strip-ph img { width: 100%; height: 100%; object-fit: cover; }
.strip-n { display: block; margin-top: 7px; font: 600 .72rem/1 var(--body); letter-spacing: .14em; }
.strip-bar { display: block; height: 3px; margin-top: 7px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.strip-bar i { display: block; height: 100%; background: var(--sun-l); transform: scaleX(0); transform-origin: left; }
.strip-t.done .strip-bar i { transform: scaleX(1); }
.strip-play { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(4, 36, 54, .35); color: #fff; display: grid; place-items: center; flex: none; }
@media (max-width: 899px) {
  .hero { height: calc(100svh - var(--hdr) - var(--tab)); min-height: 560px; }
  .hero-c { bottom: 128px; }
  .hero-cap { display: none; }
  .strip { bottom: 14px; }
  .strip-in { justify-content: flex-start; gap: 6px; }
  .strip-t { flex: 1 1 0; min-width: 0; }
  .strip-ph { height: 52px; border-radius: 8px; }
  .strip-n { font-size: .66rem; letter-spacing: .06em; }
  .strip-play { margin-bottom: 14px; width: 44px; }
  .hero-sub { font-size: 1rem; margin: 14px 0 20px; }
}
@media (min-width: 900px) and (max-width: 1100px) { .strip-t { flex-basis: 104px; } }

/* ---------- home: intro strip ---------- */
.intro { display: grid; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.intro p { margin: 0; }
.intro-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.intro-stats div { border-left: 2px solid var(--coral); padding-left: 14px; }
.intro-stats b { display: block; font: 400 2rem/1.1 var(--disp); color: var(--ink); }
.intro-stats span { font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1.4fr; align-items: center; } .intro-stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- home: portals accordion ---------- */
.portals { display: flex; gap: 12px; height: clamp(540px, 66vh, 660px); }
.portal { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r-l); overflow: hidden; color: #fff; background: var(--deep); isolation: isolate; }
.portal.on { flex: 3.4 1 0; }
.portal-ph { position: absolute; inset: 0; z-index: -1; }
.portal-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.portal.on .portal-ph img { transform: scale(1.04); }
.portal::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 30, 44, .1) 20%, rgba(4, 30, 44, .88) 100%); }
.portal:not(.on)::after { background: linear-gradient(180deg, rgba(4, 30, 44, .35), rgba(4, 30, 44, .78)); }
.portal-tab { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 22px; border: 0; background: none; color: #fff; text-align: left; }
.portal.on .portal-tab { pointer-events: none; }
.portal-n { font: italic 400 2.2rem/1 var(--disp); color: var(--sun-l); }
.portal-v { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 1.6rem/1.1 var(--disp); letter-spacing: -.01em; white-space: nowrap; }
html[lang="th"] .portal-v { font-weight: 600; font-size: 1.4rem; letter-spacing: 0; }
.portal.on .portal-v { opacity: 0; }
.portal-body { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 40px); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s .35s; }
.portal.on .portal-body { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
.portal-k { margin: 0 0 8px; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sun-l); }
html[lang="th"] .portal-k { letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.portal h3 { color: #fff; font: 380 clamp(2rem, 3.4vw, 3rem)/1.02 var(--disp); letter-spacing: -.02em; margin: 0 0 12px; }
html[lang="th"] .portal h3 { font-weight: 600; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.3; letter-spacing: 0; }
.portal-p { max-width: 46ch; color: var(--on-dark); margin-bottom: 16px; }
.portal-hl { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; font-size: .92rem; }
.portal-hl li { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.portal-hl .ico { color: var(--sun-l); }
.portal-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.from { font-size: .86rem; color: var(--on-dark-2); }
.from b { display: block; font: 400 2rem/1 var(--disp); color: #fff; }
.portal-dots { display: none; }
@media (max-width: 899px) {
  .portals { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 0 var(--gut) 8px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: none; }
  .portals::-webkit-scrollbar { display: none; }
  .portal, .portal.on { height: 540px; scroll-snap-align: start; }
  .portal-tab { pointer-events: none; padding: 18px; }
  .portal-v { display: none; }
  .portal-body { opacity: 1; visibility: visible; transform: none; }
  .portal::after, .portal:not(.on)::after { background: linear-gradient(180deg, rgba(4, 30, 44, .05) 25%, rgba(4, 30, 44, .9) 100%); }
  .portal-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .portal-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: transform var(--t) var(--ease); }
  .portal-dots span.on { background: var(--coral); transform: scale(1.35); }
}
.portal-vt-tours { view-transition-name: vt-tours; }
.portal-vt-cars { view-transition-name: vt-cars; }
.portal-vt-taxi { view-transition-name: vt-taxi; }
::view-transition-group(vt-tours), ::view-transition-group(vt-cars), ::view-transition-group(vt-taxi) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- home: scroll story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.story-map { position: sticky; top: calc(var(--hdr) + 20px); height: calc(100vh - var(--hdr) - 40px); max-height: 760px; min-height: 460px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
.story-map svg { flex: 1; width: 100%; min-height: 0; }
.map-land { fill: #e9dfc9; stroke: #c9b994; stroke-width: 1.4; }
.map-isl { fill: #e9dfc9; stroke: #c9b994; stroke-width: 1.1; }
.map-sea { fill: var(--lagoon-50); }
.map-lbl { font: 600 11px var(--body); fill: var(--muted); }
.map-lbl-s { font: 500 10px var(--body); fill: var(--muted); }
.map-road { fill: none; stroke: #d4c5a4; stroke-width: 2; stroke-dasharray: 2 4; }
.rt { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rt-road { stroke: var(--coral); }
.rt-sea { stroke: var(--lagoon-t); stroke-dasharray: none; }
.wp circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2; transition: transform var(--t) var(--ease); transform-box: fill-box; transform-origin: center; }
.wp.on circle { fill: var(--coral); stroke: var(--paper); transform: scale(1.35); }
.wp text { font: 700 11px var(--body); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.story-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.story-legend i { display: inline-block; width: 20px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.story-now { margin: 6px 0 0; font: italic 400 1rem/1.4 var(--disp); color: var(--ink); min-height: 1.4em; }
html[lang="th"] .story-now { font-style: normal; font-family: var(--body); font-weight: 600; font-size: .95rem; }
.story-steps { display: flex; flex-direction: column; gap: clamp(56px, 16vh, 160px); padding: 8vh 0 14vh; }
.step { display: grid; gap: 16px; }
.step-t { display: flex; align-items: baseline; gap: 14px; }
.step-time { font: italic 400 2.6rem/1 var(--disp); color: var(--coral); }
.step-i { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lagoon-t); }
html[lang="th"] .step-i { letter-spacing: .02em; text-transform: none; font-size: .92rem; }
.step-ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand-2); }
.step-ph img { width: 100%; height: 100%; object-fit: cover; }
.step p { margin: 0; }
.step-f { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.step-price { font-weight: 600; color: var(--ink); }
@media (max-width: 899px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-map { top: var(--hdr); z-index: 5; height: 40vh; min-height: 250px; max-height: 340px; padding: 8px 10px; margin: 0 calc(-1 * var(--gut)); border-radius: 0; border-width: 0 0 1px; box-shadow: 0 16px 24px -22px rgba(6, 47, 69, .5); }
  .story-legend { display: none; }
  .story-steps { padding: 28px 0 40px; gap: 56px; }
  .step-time { font-size: 2.1rem; }
}

/* ---------- home: quiz ---------- */
.quiz { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .quiz { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.quiz-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 3vw, 36px); box-shadow: var(--sh-1); }
.quiz-prog { display: flex; gap: 6px; margin-bottom: 18px; }
.quiz-prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.quiz-prog i.on { background: var(--coral); }
.quiz-q { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--disp); color: var(--ink); margin: 0 0 18px; }
html[lang="th"] .quiz-q { font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.45; }
.quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 96px; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--white); text-align: left; transition: transform var(--t-fast) var(--ease); }
.qo:hover { border-color: var(--ink); transform: translateY(-2px); }
.qo[aria-pressed="true"] { border-color: var(--coral); background: var(--coral-50); }
.qo .ico { width: 28px; height: 28px; color: var(--lagoon-t); }
.qo b { color: var(--ink); font-weight: 600; line-height: 1.35; }
.qo small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }
.quiz-res { display: grid; gap: 14px; }
.qr-items { display: grid; gap: 10px; }
.qr-it { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.qr-it .ph { width: 96px; height: 72px; border-radius: 10px; overflow: hidden; }
.qr-it .ph img { width: 100%; height: 100%; object-fit: cover; }
.qr-it p { margin: 0; }
.qr-cat { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lagoon-t); }
html[lang="th"] .qr-cat { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.qr-n { font-weight: 600; color: var(--ink); line-height: 1.35; }
.qr-d { font-size: .84rem; color: var(--muted); }
.qr-p { font-weight: 700; color: var(--ink); white-space: nowrap; }
.qr-tot { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--lagoon-50); }
.qr-tot div { display: flex; justify-content: space-between; gap: 12px; }
.qr-tot .disc { color: var(--lagoon-t); font-weight: 600; }
.qr-tot .tot { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
@media (max-width: 520px) { .qr-it { grid-template-columns: 72px 1fr; } .qr-it .ph { width: 72px; height: 60px; } .qr-p { grid-column: 2; } .quiz-opts { grid-template-columns: 1fr 1fr; } .qo { min-height: 0; padding: 12px; } }
.quiz-aside .ph { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 5; }
.quiz-aside .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) { .quiz-aside .ph { aspect-ratio: 16 / 9; } }

/* ---------- gallery masonry ---------- */
.gal-f { margin-bottom: 22px; }
.mason { columns: 4 230px; column-gap: 14px; }
.m-it { break-inside: avoid; margin: 0 0 14px; }
.m-it button { display: block; width: 100%; padding: 0; border: 0; background: var(--sand-2); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.m-it img { width: 100%; height: auto; transition: transform .6s var(--ease-out); }
.m-it button:hover img { transform: scale(1.04); }
.m-it figcaption { margin-top: 6px; font-size: .82rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 560px) { .mason { columns: 2; column-gap: 10px; } .m-it { margin-bottom: 10px; } .m-it figcaption { display: none; } }

/* ---------- reviews ---------- */
.rev-wrap { display: grid; gap: 28px; }
@media (min-width: 960px) { .rev-wrap { grid-template-columns: 320px 1fr; align-items: start; } }
.rate-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; }
.rate-big { display: flex; align-items: baseline; gap: 10px; }
.rate-big b { font: 380 4rem/1 var(--disp); color: var(--ink); }
.bars { display: grid; gap: 8px; margin-top: 16px; }
.bar-r { display: grid; grid-template-columns: 34px 1fr 40px; gap: 10px; align-items: center; font-size: .86rem; color: var(--muted); }
.bar { height: 8px; border-radius: 8px; background: var(--sand-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lagoon); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out); }
.in .bar i, .shot .bar i { transform: scaleX(var(--v)); }
@media (prefers-reduced-motion: reduce) { .bar i { transform: scaleX(var(--v)); transition: none; } }
.rev-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 86%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 2px 2px 12px; scrollbar-width: thin; }
.rev { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); }
.rev q { font: 400 1.12rem/1.5 var(--disp); color: var(--ink); quotes: "“" "”"; }
html[lang="th"] .rev q { font-family: var(--body); font-size: 1rem; line-height: 1.75; }
.rev-who { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; font-size: .88rem; }
.rev-who b { color: var(--ink); display: block; }
.rev-who span { color: var(--muted); }
.rev-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--lagoon-50); color: var(--lagoon-t); font: 600 1rem/1 var(--disp); flex: none; }
.rev-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

/* ---------- faq + contact ---------- */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 1.15fr .85fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; list-style: none; font-weight: 600; color: var(--ink); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform var(--t) var(--ease); color: var(--coral); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 64ch; }
.contact { background: var(--deep); color: var(--on-dark); border-radius: var(--r-l); padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden; }
.contact h3 { color: #fff; }
.contact-l { display: grid; gap: 10px; margin: 18px 0; }
.contact-l a, .contact-l div { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.contact-l a:hover { background: rgba(255, 255, 255, .12); }
.contact-l .ico { color: var(--sun-l); }
.contact-l small { display: block; color: var(--on-dark-2); font-size: .8rem; }
.contact-ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; margin-top: 6px; }
.contact-ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- sub-page hero ---------- */
.phero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.phero-g { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .phero-g { grid-template-columns: 1fr 1.05fr; } }
.phero .lede { margin: 18px 0 24px; }
.phero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 26px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.phero-facts div b { display: block; font: 400 1.7rem/1.1 var(--disp); color: var(--ink); }
.phero-facts div span { font-size: .84rem; color: var(--muted); }
.phero-ph { position: relative; }
.phero-main { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 5 / 4; background: var(--sand-2); }
.phero-main img { width: 100%; height: 100%; object-fit: cover; }
.phero-sub { position: absolute; left: -28px; bottom: -28px; width: 38%; border-radius: var(--r); overflow: hidden; border: 6px solid var(--sand); aspect-ratio: 4 / 5; box-shadow: var(--sh-2); }
.phero-sub img { width: 100%; height: 100%; object-fit: cover; }
.phero-ph .fig { justify-content: flex-end; text-align: right; }
.vt-tours { view-transition-name: vt-tours; }
.vt-cars { view-transition-name: vt-cars; }
.vt-taxi { view-transition-name: vt-taxi; }
@media (max-width: 899px) { .phero-sub { display: none; } .phero-main { aspect-ratio: 4 / 3; } }

/* ---------- cards (tours / cars) ---------- */
.toolbar { display: grid; gap: 14px; margin-bottom: 24px; padding: 18px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); }
.toolbar-r { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.toolbar .lbl { margin-right: 4px; }
.tg-g { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.res-n { font-size: .9rem; color: var(--muted); margin: 0; }
.grid-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1); min-width: 0; }
.card-b { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card-b p { margin: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card h3 { font: 500 1.35rem/1.2 var(--disp); color: var(--ink); letter-spacing: -.01em; }
html[lang="th"] .card h3 { font-weight: 600; font-size: 1.18rem; line-height: 1.45; letter-spacing: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .ico { color: var(--lagoon-t); }
.card-f { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font-size: .84rem; color: var(--muted); line-height: 1.3; }
.price b { display: block; font: 500 1.6rem/1.1 var(--disp); color: var(--ink); }
.card-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-btn[aria-pressed="true"] { background: var(--lagoon-50); border-color: var(--lagoon-t); color: var(--lagoon-t); }
.mc { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-2); }
.mc-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.mc-track::-webkit-scrollbar { display: none; }
.mc-track > button { flex: 0 0 100%; height: 100%; padding: 0; border: 0; background: none; scroll-snap-align: start; cursor: zoom-in; }
.mc-track img { width: 100%; height: 100%; object-fit: cover; }
.mc-nav { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.mc-nav button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 253, 248, .94); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .5); }
.mc-count { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--pill); background: rgba(4, 36, 54, .78); color: #fff; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.mc-badge { position: absolute; left: 10px; top: 10px; }
.itin-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--lagoon-t); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; align-self: flex-start; }
.itin-btn .ico { transition: transform var(--t) var(--ease); }
.itin-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.itin { position: relative; margin: 4px 0 6px; padding-left: 22px; }
.itin::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--lagoon), var(--coral)); border-radius: 2px; }
.itin li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 6px 0; font-size: .92rem; }
.itin li::before { content: ""; position: absolute; left: -21px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--lagoon-t); }
.itin time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.itin-anim li { animation: itin .4s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes itin { from { opacity: 0; transform: translateX(-8px); } }
@media (prefers-reduced-motion: reduce) { .itin-anim li { animation: none; } }
.empty { padding: 40px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--r-l); color: var(--muted); }

/* ---------- tours: island explorer ---------- */
.explorer { display: grid; gap: 20px; }
@media (min-width: 960px) { .explorer { grid-template-columns: 1.15fr .85fr; align-items: stretch; } }
.ex-map { position: relative; background: var(--lagoon-50); border-radius: var(--r-l); border: 1px solid var(--lagoon-100); overflow: hidden; }
.ex-map svg { display: block; width: 100%; height: auto; }
.ex-land { fill: #eadfc8; stroke: #c4b38c; stroke-width: 1.4; }
.ex-isl { fill: #dfe8c9; stroke: #a7b384; stroke-width: 1.2; }
.ex-karst { fill: #b9c79a; stroke: #8d9b6b; stroke-width: 1; }
.ex-wave { fill: none; stroke: #9fd3d4; stroke-width: 1.2; stroke-linecap: round; }
.ex-lbl { font: 600 12px var(--body); fill: var(--ink); paint-order: stroke; stroke: var(--lagoon-50); stroke-width: 4px; }
.ex-lbl-s { font: 500 10.5px var(--body); fill: var(--muted); paint-order: stroke; stroke: var(--lagoon-50); stroke-width: 3px; }
.ex-boat { fill: none; stroke: var(--lagoon-t); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .0; transition: opacity var(--t) var(--ease); }
.ex-boat.on { opacity: .9; }
.pin { cursor: pointer; outline: none; }
.pin .pin-hit { fill: transparent; }
.pin .pin-dot { fill: var(--coral); stroke: var(--paper); stroke-width: 3; transition: transform var(--t) var(--ease); transform-box: fill-box; transform-origin: center; }
.pin .pin-ring { fill: none; stroke: var(--coral); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot { transform: scale(1.25); }
.pin:focus-visible .pin-ring { opacity: 1; stroke: var(--ink); stroke-width: 3; }
.pin[aria-pressed="true"] .pin-dot { fill: var(--ink); transform: scale(1.3); }
.pin[aria-pressed="true"] .pin-ring { opacity: 1; animation: ring 1.8s var(--ease-out) infinite; }
@keyframes ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin[aria-pressed="true"] .pin-ring { animation: none; } }
.shot .pin-ring { animation: none !important; }
.pier-m rect { fill: var(--ink); }
.pier-m text { font: 700 9.5px var(--body); fill: var(--ink); paint-order: stroke; stroke: #eadfc8; stroke-width: 3px; }
.ex-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-1); }
.ex-card.swap { animation: slidein .45s var(--ease-out); }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) { .ex-card.swap { animation: none; } }
.ex-card .mc { aspect-ratio: 16 / 10; }
.ex-b { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.ex-b p { margin: 0; }
.ex-times { display: grid; gap: 8px; }
.ex-times li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--lagoon-50); font-size: .92rem; }
.ex-times b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-times .ico { color: var(--lagoon-t); }
.ex-tours { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-hint { position: absolute; left: 14px; top: 12px; margin: 0; padding: 6px 12px; border-radius: var(--pill); background: rgba(255, 253, 248, .92); font-size: .82rem; color: var(--ink); font-weight: 600; }

/* ---------- tours: month planner ---------- */
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-bottom: 20px; }
.months button { min-height: 48px; padding: 4px 2px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); font-weight: 600; font-size: .86rem; color: var(--ink); position: relative; }
.months button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.months button i { position: absolute; left: 50%; bottom: 5px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; }
.months .s-calm { background: var(--lagoon); } .months .s-mod { background: var(--sun); } .months .s-rough { background: var(--coral); }
@media (max-width: 700px) { .months { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mp { display: grid; gap: 16px; }
@media (min-width: 900px) { .mp { grid-template-columns: repeat(3, 1fr); } .mp .mp-tours { grid-column: 1 / -1; } }
.mp-box { padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.mp-box h3 { font: 600 .82rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon-t); margin-bottom: 10px; }
html[lang="th"] .mp-box h3 { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.mp-big { font: 400 1.9rem/1.15 var(--disp); color: var(--ink); margin: 0 0 6px; }
html[lang="th"] .mp-big { font-family: var(--body); font-weight: 700; font-size: 1.45rem; line-height: 1.4; }
.waves { display: flex; gap: 4px; align-items: flex-end; height: 34px; margin: 8px 0; }
.waves i { width: 12px; border-radius: 3px 3px 0 0; background: var(--line); }
.waves i.on { background: var(--lagoon); }
.waves.rough i.on { background: var(--coral); }
.waves.mod i.on { background: var(--sun); }
.crowd { display: flex; gap: 5px; margin: 10px 0; }
.crowd i { width: 22px; height: 22px; border-radius: 50%; background: var(--line); }
.crowd i.on { background: var(--coral); }
.mp-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.mp-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-size: .9rem; }
.mp-list .st { margin-left: auto; font-weight: 600; font-size: .8rem; white-space: nowrap; padding: 2px 8px; border-radius: var(--pill); }
.st-ok { background: var(--lagoon-50); color: var(--lagoon-t); }
.st-lim { background: #fdf0d3; color: #7a4b00; }
.st-no { background: var(--err-50); color: var(--err); }

/* ---------- cross-sell band ---------- */
.xs { display: grid; gap: 18px; }
@media (min-width: 900px) { .xs { grid-template-columns: repeat(2, 1fr); } }
.xs-card { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); }
.xs-card .ph { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
.xs-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.xs-card p { margin: 0 0 8px; }
.xs-card .xs-k { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin: 0 0 4px; }
html[lang="th"] .xs-card .xs-k { letter-spacing: 0; text-transform: none; font-size: .86rem; }
.xs-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xs-row select { flex: 1 1 160px; min-width: 0; }
@media (max-width: 520px) { .xs-card { grid-template-columns: 96px 1fr; gap: 12px; } }

/* ---------- cars: calendar & calculator ---------- */
.calc { display: grid; gap: 20px; }
@media (min-width: 1024px) { .calc { grid-template-columns: 1.25fr .75fr; align-items: start; } }
.cal-box { padding: 18px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.cal-head p { margin: 0; font-weight: 600; color: var(--ink); }
.cal-months { display: grid; gap: 20px; }
@media (min-width: 700px) { .cal-months { grid-template-columns: 1fr 1fr; } }
.cal-m h3 { font: 500 1.15rem/1.3 var(--disp); text-align: center; margin-bottom: 8px; }
html[lang="th"] .cal-m h3 { font-family: var(--body); font-weight: 600; font-size: 1rem; }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-g .dow { text-align: center; font-size: .74rem; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal-d { position: relative; min-height: 44px; border: 0; background: none; border-radius: 10px; font-weight: 500; font-size: .92rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.cal-d:hover:not(:disabled) { background: var(--sand-2); }
.cal-d:disabled { color: #a99f8e; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .2); }
.cal-d.in { background: var(--lagoon-50); border-radius: 0; }
.cal-d.pv { background: var(--sand-2); border-radius: 0; }
.cal-d.s, .cal-d.e { background: var(--ink); color: #fff; }
.cal-d.s { border-radius: 10px 0 0 10px; } .cal-d.e { border-radius: 0 10px 10px 0; } .cal-d.s.e { border-radius: 10px; }
.cal-d.td::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--coral); }
.cal-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .92rem; }
.cal-sum b { color: var(--ink); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.tiers div { padding: 10px; border-radius: 12px; border: 1.5px solid var(--line); text-align: center; font-size: .82rem; color: var(--muted); }
.tiers div.on { border-color: var(--coral); background: var(--coral-50); color: var(--ink); }
.tiers b { display: block; font-size: 1.05rem; color: var(--ink); }
.qt { position: sticky; top: calc(var(--hdr) + 16px); padding: 22px; border-radius: var(--r-l); background: var(--deep); color: var(--on-dark); }
.qt h3 { color: #fff; font: 500 1.4rem/1.2 var(--disp); margin-bottom: 4px; }
html[lang="th"] .qt h3 { font-family: var(--body); font-weight: 600; font-size: 1.15rem; }
.qt ul { display: grid; gap: 6px; margin: 14px 0; font-size: .92rem; }
.qt li { display: flex; justify-content: space-between; gap: 12px; }
.qt .qt-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.qt .qt-tot b { font: 400 2.2rem/1 var(--disp); color: #fff; }
.qt .qt-dep { font-size: .86rem; color: var(--on-dark-2); margin: 8px 0 16px; }
.qt .btn { width: 100%; margin-top: 8px; }
.calc-opts { margin-top: 18px; display: grid; gap: 4px 20px; }
@media (min-width: 700px) { .calc-opts { grid-template-columns: 1fr 1fr; } }

/* ---------- cars: road trips ---------- */
.rtrips { display: grid; gap: 20px; }
.rtrip { display: grid; gap: 18px; padding: 20px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 960px) { .rtrip { grid-template-columns: 300px 1fr; align-items: center; } }
.rtrip h3 { margin-bottom: 6px; }
.rtrip-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 14px; font-size: .9rem; color: var(--muted); }
.rtrip-meta span { display: inline-flex; gap: 6px; align-items: center; }
.rtrip-meta .ico { color: var(--lagoon-t); }
.stops { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding-bottom: 6px; counter-reset: stop; }
.stop { scroll-snap-align: start; counter-increment: stop; }
.stop button { display: block; width: 100%; padding: 0; border: 0; background: var(--sand-2); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; position: relative; }
.stop button::before { content: counter(stop); position: absolute; z-index: 1; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 700 .8rem/1 var(--body); }
.stop img { width: 100%; height: 100%; object-fit: cover; }
.stop p { margin: 6px 0 0; font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.stop small { display: block; font-weight: 400; color: var(--muted); }
.rec { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; border-radius: 12px; background: var(--lagoon-50); font-size: .9rem; }
.rec b { color: var(--ink); }

/* ---------- cars: inspection ---------- */
.insp { display: grid; gap: 24px; }
@media (min-width: 960px) { .insp { grid-template-columns: 340px 1fr; align-items: start; } }
.insp-car { padding: 18px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); text-align: center; }
.insp-car svg { width: 100%; max-width: 240px; height: auto; margin: 0 auto; display: block; }
.part { fill: #f5efe2; stroke: #8c7f66; stroke-width: 1.4; cursor: pointer; transition: fill var(--t-fast); }
.part:hover { fill: #ece2cc; }
.part:focus-visible { outline: none; stroke: var(--coral); stroke-width: 3; }
.part.m-scratch { fill: #fde3c8; stroke: #b25b00; }
.part.m-dent { fill: #f9d2cb; stroke: var(--coral-h); }
.part.m-chip { fill: #d9eef5; stroke: #1f6c8a; }
.glass { fill: #cfe3e6; stroke: #8c7f66; stroke-width: 1.2; pointer-events: none; }
.wheel { fill: #2c3f4a; pointer-events: none; }
.insp-pin { font: 700 11px var(--body); fill: #fff; pointer-events: none; }
.insp-pin-c { fill: var(--ink); pointer-events: none; }
.insp-list { display: grid; gap: 8px; counter-reset: ip; }
.insp-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; }
.insp-list li > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem; }
.insp-sheet { margin-top: 16px; padding: 18px; border-radius: var(--r); border: 1.5px dashed var(--line-2); background: var(--white); }
.insp-sheet p { margin: 0 0 6px; }

/* ---------- taxi: fare finder ---------- */
.ff { display: grid; gap: 20px; }
@media (min-width: 1024px) { .ff { grid-template-columns: .95fr 1.05fr; align-items: start; } }
.ff-form { padding: 22px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); }
.ff-swap { display: flex; align-items: flex-end; gap: 10px; }
.ff-swap .fld { flex: 1; }
.ff-swap .ico-btn { margin-bottom: 18px; }
.veh-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.veh-opts label { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--white); font-size: .84rem; color: var(--muted); position: relative; min-height: 64px; }
.veh-opts label b { color: var(--ink); font-size: .95rem; }
.veh-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.veh-opts label:has(input:checked) { border-color: var(--coral); background: var(--coral-50); }
.veh-opts label:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 2px; }
.ff-map { position: relative; border-radius: var(--r-l); background: var(--lagoon-50); border: 1px solid var(--lagoon-100); overflow: hidden; }
.ff-map svg { display: block; width: 100%; height: auto; max-height: 640px; }
.ff-node circle { fill: var(--paper); stroke: var(--lagoon-t); stroke-width: 2; }
.ff-node.pier circle { stroke: var(--ink); }
.ff-node.from circle, .ff-node.to circle { stroke-width: 3; }
.ff-node.from circle { fill: var(--ink); stroke: var(--paper); }
.ff-node.to circle { fill: var(--coral); stroke: var(--paper); }
.ff-node text { font: 600 10.5px var(--body); fill: var(--ink); paint-order: stroke; stroke: #eadfc8; stroke-width: 3px; }
.ff-node.from text, .ff-node.to text { font-weight: 800; font-size: 12px; }
.ff-route { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; }
.ff-car { fill: var(--ink); }
.ff-out { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: rgba(255, 253, 248, .96); box-shadow: var(--sh-1); }
.ff-price { font: 400 2.2rem/1 var(--disp); color: var(--ink); }
.ff-out p { margin: 0; font-size: .86rem; color: var(--muted); }
.ff-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fdf0d3; color: #6b4200; font-size: .88rem; }
.ff-lines { display: grid; gap: 4px; margin: 6px 0 16px; font-size: .9rem; }
.ff-lines div { display: flex; justify-content: space-between; gap: 10px; }
.matrix { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.matrix table { border-collapse: collapse; width: 100%; font-size: .86rem; min-width: 420px; }
.matrix th, .matrix td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { background: var(--sand-2); color: var(--ink); }
.matrix tr.hl td { background: var(--coral-50); font-weight: 700; }

/* ---------- taxi: airport bar ---------- */
.ap { display: grid; gap: 20px; }
@media (min-width: 960px) { .ap { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.ap-box { padding: 22px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); }
.tl { position: relative; height: 72px; margin: 26px 0 8px; }
.tl-track { position: absolute; left: 0; right: 0; top: 30px; height: 14px; border-radius: 14px; background: var(--sand-2); overflow: hidden; }
.tl-free { position: absolute; top: 0; bottom: 0; left: 0; background: var(--lagoon); transform-origin: left; }
.tl-paid { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, var(--coral) 0 6px, #e2765f 6px 12px); }
.tl-exit { position: absolute; top: 0; width: 2px; height: 72px; background: var(--ink); }
.tl-exit span { position: absolute; top: -4px; left: 6px; white-space: nowrap; font-size: .78rem; font-weight: 700; color: var(--ink); }
.tl-exit.right span { left: auto; right: 6px; }
.tl-ticks { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0; font-size: .84rem; color: var(--muted); }
.tl-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.ap-out { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 14px 0; }
.ap-out div { padding: 12px; border-radius: 12px; background: var(--lagoon-50); }
.ap-out b { display: block; font: 400 1.7rem/1.1 var(--disp); color: var(--ink); }
.ap-out span { font-size: .84rem; color: var(--muted); }
.ap-msg { padding: 12px 14px; border-radius: 12px; font-size: .92rem; }
.ap-msg.ok { background: var(--lagoon-50); color: var(--lagoon-t); }
.ap-msg.warn { background: #fdf0d3; color: #6b4200; }
input[type="range"] { width: 100%; accent-color: var(--coral); min-height: 44px; }

/* ---------- taxi: hourly planner ---------- */
.hire { display: grid; gap: 20px; }
@media (min-width: 960px) { .hire { grid-template-columns: 1fr 1fr; align-items: start; } }
.hire-box { padding: 22px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); }
.add-stops { display: flex; flex-wrap: wrap; gap: 8px; }
.add-stops .chip[disabled] { opacity: .45; cursor: not-allowed; }
.plan { display: grid; gap: 8px; margin: 12px 0; min-height: 60px; }
.plan li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--white); border: 1.5px solid var(--line); }
.plan li.drag { opacity: .5; }
.plan li.over { border-color: var(--coral); }
.plan .grip { color: var(--muted); cursor: grab; display: grid; place-items: center; }
.plan p { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.35; }
.plan small { display: block; font-weight: 400; color: var(--muted); }
.plan .ctr { display: flex; gap: 4px; }
.plan .ctr .ico-btn { width: 40px; height: 40px; }
.plan-empty { padding: 18px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: .9rem; }
.tbar { height: 18px; border-radius: 18px; background: var(--sand-2); overflow: hidden; position: relative; margin: 10px 0 6px; }
.tbar i { position: absolute; inset: 0; background: var(--lagoon); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform .4s var(--ease-out); }
.tbar.over i { background: var(--coral); }
.tbar-t { display: flex; justify-content: space-between; font-size: .86rem; color: var(--muted); }
.tbar-msg { margin: 8px 0 0; font-weight: 600; font-size: .92rem; }
.tbar-msg.ok { color: var(--lagoon-t); }
.tbar-msg.over { color: var(--err); }

/* ---------- taxi: vehicles, routes ---------- */
.vcards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.vcard-ph { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4px; aspect-ratio: 16 / 9; }
.vcard-ph button { padding: 0; border: 0; overflow: hidden; background: var(--sand-2); cursor: zoom-in; position: relative; }
.vcard-ph img { width: 100%; height: 100%; object-fit: cover; }
.vcard-ph span { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: var(--pill); background: rgba(4, 36, 54, .78); color: #fff; font-size: .74rem; font-weight: 600; }
.routes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.route { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--deep); color: #fff; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.route .ph { position: absolute; inset: 0; z-index: -1; }
.route .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.route:hover .ph img { transform: scale(1.05); }
.route::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 30, 44, .05) 20%, rgba(4, 30, 44, .9) 100%); }
.route-b { padding: 16px; display: grid; gap: 8px; }
.route-b p { margin: 0; }
.route-n { font-weight: 600; line-height: 1.35; }
.route-m { font-size: .84rem; color: var(--on-dark); }
.route-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.route-f b { font: 400 1.6rem/1 var(--disp); }
.route .btn-sm { min-height: 44px; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--text); background: var(--paper); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(4, 30, 44, .55); }
.dlg-in { display: flex; flex-direction: column; height: 100%; max-height: inherit; min-height: 0; }
.dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex: none; }
.dlg-h h2 { font: 500 1.45rem/1.2 var(--disp); }
html[lang="th"] .dlg-h h2 { font-family: var(--body); font-weight: 700; font-size: 1.2rem; }
.dlg-b { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; }
.dlg-f { flex: none; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(500px, 100%); height: 100dvh; max-height: 100dvh; border-radius: var(--r-l) 0 0 var(--r-l); box-shadow: var(--sh-2); }
.drawer[open] { animation: dIn .32s var(--ease-out); }
@keyframes dIn { from { transform: translateX(48px); opacity: 0; } }
.sheet { width: min(960px, 100% - 32px); max-height: calc(100dvh - 48px); border-radius: var(--r-l); box-shadow: var(--sh-2); }
.sheet .dlg-in { height: auto; max-height: calc(100dvh - 48px); }
.sheet[open] { animation: sIn .3s var(--ease-out); }
@keyframes sIn { from { transform: translateY(28px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer[open], .sheet[open] { animation: none; } }
@media (max-width: 767px) {
  .drawer { width: 100%; border-radius: 0; }
  .sheet { width: 100%; margin: auto 0 0; max-height: 94dvh; border-radius: 22px 22px 0 0; }
  .sheet .dlg-in { max-height: 94dvh; }
}
.book-g { display: grid; gap: 8px 28px; }
@media (min-width: 820px) { .book-g { grid-template-columns: 1.25fr .75fr; } .book-sum { position: sticky; top: 0; } }
.book-sum { align-self: start; padding: 18px; border-radius: var(--r); background: var(--sand); border: 1px solid var(--line); }
.sum-h { font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.sum-l { display: grid; gap: 6px; font-size: .9rem; }
.sum-l li { display: flex; justify-content: space-between; gap: 12px; }
.sum-l li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.sum-t { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); }
.sum-t b { font: 400 1.9rem/1 var(--disp); color: var(--ink); }
.sum-n { margin: 8px 0 0; font-size: .84rem; color: var(--muted); }
.sum-x { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--lagoon-50); color: var(--lagoon-t); font-size: .84rem; font-weight: 500; }
.book-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.book-f .mini { font-size: .84rem; color: var(--muted); }
.book-f .mini b { display: block; font: 400 1.5rem/1 var(--disp); color: var(--ink); }
.book-f .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-fs { border: 0; padding: 16px 0 0; margin: 8px 0 0; border-top: 1px dashed var(--line-2); min-width: 0; }
.contact-fs legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 4px; }
.ch-row { display: flex; gap: 8px; margin-bottom: 14px; }
.ok-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--lagoon-t); color: #fff; margin-bottom: 12px; }
.ok-mark .ico { width: 30px; height: 30px; stroke-width: 2.4; }
.ok-h { font: 500 1.6rem/1.2 var(--disp); margin-bottom: 10px; }
html[lang="th"] .ok-h { font-family: var(--body); font-weight: 700; font-size: 1.3rem; }
.ok-h:focus { outline: none; }
.ok-ref { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; background: var(--sand); border: 1.5px dashed var(--line-2); margin-bottom: 12px; }
.ok-ref span { font-size: .8rem; color: var(--muted); }
.ok-ref b { font: 600 1.4rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: var(--ink); }
.msg { white-space: pre-wrap; word-break: break-word; font: .84rem/1.6 ui-monospace, "SF Mono", Menlo, monospace; padding: 12px 14px; border-radius: 12px; background: #eef6f5; color: var(--ink); border: 1px solid var(--lagoon-100); max-height: 240px; overflow: auto; }
.ok-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trip-meter { padding: 14px 20px; background: var(--sand); border-bottom: 1px solid var(--line); flex: none; }
.meter-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-cat { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--pill); border: 1.5px dashed var(--line-2); font-size: .82rem; font-weight: 600; color: var(--muted); }
.mc-cat.on { border-style: solid; border-color: var(--lagoon-t); background: var(--lagoon-50); color: var(--lagoon-t); }
.meter-t { margin: 8px 0 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.meter-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lagoon), var(--coral)); transform-origin: left; transition: transform .5s var(--ease-out); }
.trip-l { display: grid; gap: 12px; }
.ti { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.ti-ph { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.ti-ph img { width: 100%; height: 100%; object-fit: cover; }
.ti-b { min-width: 0; }
.ti p { margin: 0; }
.ti-cat { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lagoon-t); }
html[lang="th"] .ti-cat { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.ti-n { font-weight: 600; color: var(--ink); line-height: 1.35; }
.ti-n a { text-decoration: none; }
.ti-n a:hover { text-decoration: underline; }
.ti-d { font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: 2px !important; }
.ti-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.ti-row .stp button { width: 40px; height: 40px; }
.ti-date { flex: 1 1 140px; min-width: 0; }
.ti-u { font-size: .8rem; color: var(--muted); }
.ti-r { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ti-p { font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 420px) { .ti { grid-template-columns: 52px 1fr; } .ti-ph { width: 52px; height: 52px; } .ti-r { grid-column: 1 / -1; flex-direction: row; align-items: center; } }
.trip-empty { text-align: center; padding: 30px 10px; }
.trip-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.trip-tot { display: grid; gap: 4px; margin-top: 16px; }
.tt-row { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; }
.tt-disc { color: var(--lagoon-t); font-weight: 600; }
.tt-tot { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line-2); font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.trip-form { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.trip-form h3 { font: 600 1rem/1.4 var(--body); margin-bottom: 10px; }
.lb { width: 100vw; height: 100dvh; background: rgba(3, 20, 30, .97); color: #fff; }
.lb .dlg-in { height: 100%; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.lb-count { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--on-dark); }
.lb-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 64px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-cap { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); text-align: center; color: var(--on-dark); font-size: .95rem; margin: 0; }
.lb .ico-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
@media (max-width: 600px) { .lb-stage { padding: 0 8px; } .lb-nav { top: auto; bottom: -56px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } .lb-cap { padding-top: 70px; } }
.cmpd { width: min(1000px, 100% - 32px); max-height: calc(100dvh - 48px); border-radius: var(--r-l); }
.cmpd .dlg-in { max-height: calc(100dvh - 48px); }
@media (max-width: 767px) { .cmpd { width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 94dvh; } .cmpd .dlg-in { max-height: 94dvh; } }
.cmp-scroll { overflow-x: auto; }
.cmp-t { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9rem; }
.cmp-t th, .cmp-t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-t thead th { font-weight: 600; color: var(--ink); line-height: 1.35; }
.cmp-t tbody th { color: var(--muted); font-weight: 600; width: 130px; }
.cmp-ph { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.cmp-ph img { width: 100%; height: 100%; object-fit: cover; }
.yes { color: var(--ok); font-weight: 600; } .no { color: var(--muted); }
.cmp-bar { position: fixed; z-index: 55; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(720px, 100% - 24px); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--r-l); background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.cmp-bar ul { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cmp-bar li { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 4px; border-radius: 12px; background: rgba(255, 255, 255, .08); flex: none; max-width: 220px; font-size: .84rem; }
.cmp-bar li img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.cmp-bar li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-bar .ico-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); position: relative; }
@media (max-width: 767px) { .cmp-bar { bottom: calc(var(--tab) + 10px + env(safe-area-inset-bottom)); } .cmp-bar li span { display: none; } .cmp-bar li { padding-right: 4px; } }
.toast { position: fixed; z-index: 400; left: 50%; bottom: 24px; transform: translate(-50%, 140%); opacity: 0; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 24px); padding: 10px 10px 10px 18px; border-radius: var(--pill); background: var(--ink); color: #fff; box-shadow: var(--sh-2); font-size: .92rem; transition: transform .3s var(--ease-out), opacity .3s var(--ease); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast-a { min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: 0; background: var(--sun-l); color: var(--ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 767px) { .toast { bottom: calc(var(--tab) + 12px + env(safe-area-inset-bottom)); border-radius: 18px; } body.has-cmp .toast { bottom: calc(var(--tab) + 86px); } }

/* ---------- footer ---------- */
.ftr { background: var(--deeper); color: var(--on-dark-2); padding: 64px 0 28px; margin-top: 0; }
.ftr-g { display: grid; gap: 32px; }
@media (min-width: 900px) { .ftr-g { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ftr .logo { color: #fff; }
.ftr .logo small { color: var(--sun-l); }
.ftr h3 { color: #fff; font: 600 .8rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
html[lang="th"] .ftr h3 { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.ftr ul { display: grid; gap: 2px; }
.ftr a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr p { color: var(--on-dark-2); }
.ftr-demo { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: var(--on-dark-2); }
.ftr-demo a { display: inline; min-height: 0; color: var(--sun-l); text-decoration: underline; }
.ftr-t { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark); }
.rev-wrap > *, .quiz > *, .story > *, .faq-wrap > *, .explorer > *, .calc > *, .ff > *, .ap > *, .hire > *, .insp > *, .phero-g > *, .rtrip > * { min-width: 0; }
.story-map { background: var(--lagoon-50); border-color: var(--lagoon-100); }
.map-land { fill: #efe5cf; }
.story-steps { padding: min(8vh, 72px) 0 min(14vh, 120px); gap: min(16vh, 150px); }
@media (min-width: 960px) { .quiz-aside .ph { aspect-ratio: 16 / 11; } }
@media (max-width: 899px) { .story-steps { gap: 56px; padding: 28px 0 40px; } }
@media (max-width: 899px) { .portal, .portal.on { height: auto; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; } .portal-body { position: relative; padding-top: 120px; } .portal-tab { inset: 0 0 auto 0; height: 90px; } }
.part.part-glass:not(.m-scratch):not(.m-dent):not(.m-chip) { fill: #d4e7ea; }
.matrix-d summary { list-style: none; cursor: pointer; }
.matrix-d summary::-webkit-details-marker { display: none; }
.ff-out { position: static; margin: 0 12px 12px; }
.route { min-height: 270px; }
.route::after { background: linear-gradient(180deg, rgba(4, 30, 44, .12) 0%, rgba(4, 30, 44, .5) 38%, rgba(4, 30, 44, .93) 100%); }
.car-body { fill: #e6dcc6; stroke: #8c7f66; stroke-width: 1.4; }
.ftr a { min-height: 44px; }
.ico-btn-s { position: relative; }
.qt-k { margin: 0 0 4px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--sun-l); }
html[lang="th"] .qt-k { letter-spacing: 0; font-size: .9rem; }
.nw { white-space: nowrap; }
@media (max-width: 767px) { .tabbar { background: var(--paper); } }
