/* Vietnam Transfer Map — prototype, EN home.
   Direction: pinned poster. The pinned layer is the map of Vietnam. */

:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --ink: #333231;
  --muted: #5f5b57;
  --accent: #5c6b54;
  --accent-ink: #ffffff;
  --field-1: #cdc3b6;
  --field-1-ink: #333231;

  --m: clamp(16px, 2.2vw, 32px);
  --strip: 0px;
  --bar-h: 64px;
  --bar: calc(var(--strip) + var(--bar-h));

  --font-display: 'Unbounded', 'Arial Narrow', sans-serif;
  --font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step-small: clamp(0.875rem, 0.84rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --step-head: clamp(1.75rem, 0.8rem + 4.2vw, 4.5rem);
  --step-display: clamp(2.6rem, 0.4rem + 10.4vw, 9.75rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar); color-scheme: light; scrollbar-color: var(--accent) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: var(--m); top: -80px; background: var(--ink); color: var(--bg); padding: 12px 16px; z-index: 100; }
.skip:focus { top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.display { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 500; font-size: var(--step-body); letter-spacing: 0.005em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn:hover { background: #4d5b46; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn[disabled] { background: var(--field-1); color: var(--muted); cursor: not-allowed; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: var(--strip) 0 auto 0; height: var(--bar-h); z-index: 60;
  display: flex; align-items: center; gap: 28px; padding-inline: var(--m);
  background: var(--bg);
}
.wordmark { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 0.9375rem; letter-spacing: -0.005em; text-decoration: none; line-height: 1; white-space: nowrap; }
.nav { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; }
.nav a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.4em; font-weight: 500; padding: 8px 0; transition: text-decoration-color 0.3s var(--ease), color 0.3s var(--ease); }
.nav a:hover, .nav a[aria-current] { text-decoration-color: currentColor; }
.bar .btn { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 12px 0 12px 12px; font-weight: 500; cursor: pointer; }
@media (max-width: 960px) {
  .nav, .bar > .btn { display: none; }
  .menu-btn { display: block; }
  .bar.open { height: 100svh; align-items: flex-start; padding-top: 20px; flex-wrap: wrap; align-content: flex-start; }
  .bar.open .nav { display: flex; flex-direction: column; gap: 0; width: 100%; margin: 0; order: 3; padding-top: 36px; }
  .bar.open .nav a { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 2rem; padding: 14px 0; text-decoration: none; }
  .bar.open > .btn { display: inline-flex; order: 4; margin-top: 28px; }
}

/* ---------- pinned story ---------- */
.story { position: relative; height: 300svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; padding: var(--bar) var(--m) var(--m); }
.title {
  position: absolute; z-index: 5; left: 50%; top: calc(var(--bar) + 2.5svh); transform: translateX(-50%);
  font-size: var(--step-display); white-space: nowrap; color: var(--ink); pointer-events: none;
}
.map {
  position: absolute; z-index: 1; left: 50%; top: var(--bar); bottom: var(--m);
  aspect-ratio: 520 / 1120; transform: translateX(-50%); background: var(--surface); overflow: hidden;
}
.map svg { width: 100%; height: 100%; }
.map .land { fill: var(--field-1); }
.map .zoom { transform-origin: 0 0; transition: transform 1.1s var(--ease); }
.map .route { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-width: 4px; }
.map .dot { fill: var(--ink); transition: opacity 0.5s var(--ease); }
.map .dot.dest { fill: var(--accent); }
.map .lbl { font-family: var(--font-text); font-weight: 500; fill: var(--ink); transition: opacity 0.5s var(--ease); paint-order: stroke; stroke: var(--field-1); stroke-width: 0.35em; }
.map .dim { opacity: 0; }
.map .hide { opacity: 0; }
@media (max-width: 820px) { .stage[data-step="0"] .lbl[data-k="HPH"], .stage[data-step="0"] .lbl[data-k="DLI"] { opacity: 0; } }

.left, .right { position: absolute; z-index: 4; bottom: var(--m); width: min(27vw, 400px); }
.left { left: var(--m); }
.right { right: var(--m); }
.lead { font-size: var(--step-lead); line-height: 1.22; font-weight: 500; max-width: 24ch; letter-spacing: -0.005em; }
.lead + .btn { margin-top: 28px; }
.pane { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0s; }
.stage[data-step="0"] .frame-wrap { opacity: 0; visibility: hidden; transform: translateY(24px); }
.stage:not([data-step="0"]) .intro { opacity: 0; visibility: hidden; transform: translateY(24px); }
.frame-wrap { position: absolute; left: 0; bottom: 0; width: 100%; }
.intro { position: absolute; left: 0; bottom: 0; width: 100%; }
.frame { position: relative; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease), transform 1.4s var(--ease); }
.frame img.on { opacity: 1; transform: scale(1); }
.frame-cap { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }

.facts { position: relative; min-height: 230px; }
.fact { position: absolute; right: 0; bottom: 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s; }
.fact.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s, 0s, 0s; }
.fact h2 { font-size: var(--step-lead); }
.fact .route-name { margin-top: 12px; }
.fact .nums { display: flex; gap: 28px; margin-top: 20px; font-size: var(--step-lead); font-weight: 500; line-height: 1.1; }
.fact .nums span { display: block; font-size: var(--step-small); font-weight: 400; color: var(--muted); margin-top: 6px; }
.fact .btn { margin-top: 24px; }
.airlist { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: var(--step-body); }
.airlist dt { font-family: var(--font-display); font-weight: 800; font-size: 0.9375rem; padding-top: 3px; }
.stage-hint { position: absolute; z-index: 4; right: var(--m); top: calc(var(--bar) + 3svh); font-size: var(--step-small); color: var(--muted); max-width: 18ch; text-align: right; }

@media (max-width: 820px) {
  .story { height: 300svh; }
  .stage { padding-top: calc(var(--bar) + 2svh); }
  .title { left: var(--m); transform: none; top: calc(var(--bar) + 1svh); font-size: 12.6vw; }
  .map { left: var(--m); transform: none; top: calc(var(--bar) + 12svh); bottom: auto; height: 44svh; aspect-ratio: 520 / 1120; }
  .right { left: calc(var(--m) + 44svh * 0.4643 + 14px); right: var(--m); width: auto; top: calc(var(--bar) + 14svh); bottom: auto; }
  .facts { min-height: 0; height: 40svh; }
  .fact { top: 0; bottom: auto; }
    .fact .nums { flex-direction: column; gap: 10px; font-size: var(--step-lead); margin-top: 14px; }
  .fact .btn { margin-top: 16px; padding: 0 16px; min-height: 46px; font-size: 1rem; width: 100%; }
  .airlist { font-size: 1rem; }
  .left { left: var(--m); right: var(--m); width: auto; bottom: var(--m); }
  .lead { font-size: 1.375rem; max-width: 26ch; }
  .frame { aspect-ratio: 16 / 9; max-height: 30svh; width: 100%; }
  .stage-hint { display: none; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(96px, 13vw, 200px) var(--m); position: relative; }
.sec h2.display { font-size: var(--step-head); max-width: 14ch; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head h2 { grid-column: 1 / 8; }
.sec-head p { grid-column: 9 / 13; max-width: 40ch; }
@media (max-width: 820px) { .sec-head h2, .sec-head p { grid-column: 1 / -1; } .sec-head p { margin-top: 20px; } }

/* price tool */
.tool { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; }
.tool-form { grid-column: 1 / 6; display: grid; gap: 28px; align-content: start; }
.tool-out { grid-column: 7 / 13; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); padding: clamp(24px, 3vw, 48px); min-height: 360px; }
.f { display: grid; gap: 8px; }
.f > label, .f > .lab, legend { font-size: var(--step-small); color: var(--muted); font-weight: 500; padding: 0; }
.field { width: 100%; min-height: 52px; padding: 0 16px; background: var(--surface); border: 0; border-radius: 0; font-size: var(--step-body); appearance: none; -webkit-appearance: none; }
select.field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23333231' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
textarea.field { padding-top: 14px; min-height: 96px; resize: vertical; }
.field:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.field:user-invalid { background-color: #f1d9d3; }
.err { color: #8a2b1d; font-size: var(--step-small); min-height: 1.2em; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip span { display: grid; align-content: center; min-height: 64px; padding: 8px 12px; background: var(--surface); text-align: left; font-weight: 500; line-height: 1.2; transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.chip span small { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); margin-top: 2px; }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); }
.chip input:checked + span small { color: #e3e8df; }
.chip input:disabled + span { opacity: 0.4; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.price-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 0.6rem + 5.2vw, 4.75rem); white-space: nowrap; line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-num sup { font-size: 0.26em; vertical-align: baseline; margin-left: 0.3em; letter-spacing: 0.02em; }
.out-route { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; margin-top: 20px; max-width: 22ch; }
.out-meta { margin-top: 12px; color: var(--muted); }
.out-note { margin-top: 32px; font-size: var(--step-small); color: var(--muted); max-width: 44ch; }
.out-bump { animation: bump 0.5s var(--ease); }
@keyframes bump { from { opacity: 0.2; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.book { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.book h3 { grid-column: 1 / 6; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-lead); line-height: 1.05; }
.book form { grid-column: 7 / 13; display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.book form .wide { grid-column: 1 / -1; }
.book form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; font-weight: 500; }
@media (max-width: 960px) {
  .tool-form, .tool-out, .book h3, .book form { grid-column: 1 / -1; }
  .tool-out { order: -1; min-height: 0; }
  .book form { grid-template-columns: 1fr; }
}

/* tables */
.table { display: block; font-size: var(--step-lead); line-height: 1.35; }
.row { display: grid; grid-template-columns: 8ch 1fr 1fr auto; gap: 0 24px; padding: 0.35em 0; align-items: baseline; }
.row .code { font-weight: 500; letter-spacing: 0.04em; }
.row .end { text-align: right; font-variant-numeric: tabular-nums; }
.row .mid { max-width: 56ch; }
.row.head { color: var(--muted); font-size: var(--step-small); padding-bottom: 12px; }
.row a { text-decoration: none; }
.row:hover .code, .row a:hover { color: var(--accent); }
.row .sub { color: var(--muted); font-size: 0.72em; }
.ft-row { grid-template-columns: 0.8fr 2fr auto; }
@media (max-width: 820px) {
  .row { grid-template-columns: 5.2ch 1fr auto; padding: 14px 0; row-gap: 2px; }
  .row .mid { grid-column: 2 / 4; grid-row: 2; font-size: 0.78em; color: var(--muted); }
  .row .mid2 { display: none; }
  .row .end { grid-column: 3; grid-row: 1; }
  .row.head { display: none; }
  .ft-row { grid-template-columns: 1fr auto; }
  .ft-row .mid { grid-column: 1 / -1; grid-row: 2; }
}

/* how it works: one verb at a time */
.verbs { position: relative; }
.verb { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; display: grid; place-items: center; }
.verb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verb .scrim { position: absolute; inset: 0; background: rgba(20, 22, 20, 0.34); }
.verb .word { position: relative; z-index: 2; font-size: var(--step-display); line-height: 1.1; padding-block: 0.1em; text-align: center; }
.verb .cap { position: absolute; z-index: 2; left: var(--m); bottom: var(--m); max-width: 38ch; font-size: var(--step-body); font-weight: 500; padding: 20px 24px; background: rgba(20, 22, 20, 0.62); }
@media (max-width: 820px) { .verb .cap { right: var(--m); max-width: none; padding: 16px 18px; } }

/* tours */
.tours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; align-items: center; }
.tours-frame { grid-column: 1 / 6; }
.tours .frame { aspect-ratio: 4 / 5; }
.tours .frame img { transform: none; transition: opacity 0.9s var(--ease); }
.tours-list { grid-column: 7 / 13; }
.tour-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 0.45em 0; font-size: var(--step-lead); line-height: 1.25; text-decoration: none; transition: color 0.3s var(--ease), padding 0.4s var(--ease); }
.tour-row .sub { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); margin-top: -2px; }
.tour-row:hover, .tour-row.on { color: var(--accent); padding-left: 12px; }
@media (max-width: 960px) { .tours-frame, .tours-list { grid-column: 1 / -1; } .tours .frame { aspect-ratio: 4 / 3; } }

/* QA rows (visa, faq) */
.qa-group + .qa-group { margin-top: clamp(80px, 11vw, 160px); }
.qa { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px 24px; padding-bottom: clamp(48px, 6vw, 88px); align-items: baseline; }
.qa .q { grid-column: 1 / 7; font-size: var(--step-lead); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; max-width: 20ch; }
.qa .a { grid-column: 8 / 13; max-width: 42ch; line-height: 1.55; }
.qa.gh .q { color: var(--muted); }
.qa .a a { color: var(--accent); font-weight: 500; }
@media (max-width: 820px) { .qa .q, .qa .a { grid-column: 1 / -1; } }

/* contact (inverse) */
.contact { position: relative; min-height: 100svh; background: var(--ink); color: var(--bg); padding: var(--m); display: grid; grid-template-rows: auto 1fr auto; }
.contact .ask { font-size: var(--step-lead); line-height: 1.25; max-width: 26ch; font-weight: 500; padding-top: clamp(24px, 4vw, 56px); }
.mail { align-self: end; font-size: clamp(2rem, 0.2rem + 6.9vw, 9.4rem); font-weight: 400; letter-spacing: -0.035em; line-height: 0.98; text-decoration: none; word-break: break-word; margin-bottom: clamp(32px, 12vh, 140px); transition: color 0.3s var(--ease); }
.mail:hover { color: #b9c9ae; }
.contact .corners { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: var(--step-small); padding-bottom: 8px; }
.contact .corners ul { display: flex; gap: 20px; flex-wrap: wrap; }
.contact a { text-underline-offset: 0.2em; }
.ph-note { color: #b8b3ac; }

/* footer */
.foot { background: var(--bg); padding: clamp(48px, 6vw, 96px) var(--m) var(--m); }
.foot .name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.02em; white-space: nowrap; }
.foot .places { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; margin-top: clamp(40px, 5vw, 72px); }
.foot .places ul { grid-column: span 3; display: grid; gap: 8px; align-content: start; }
.foot .places li:first-child { font-size: var(--step-small); color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.foot .places a { text-decoration: none; }
.foot .places a:hover { color: var(--accent); }
.foot .credits { margin-top: clamp(56px, 7vw, 104px); font-size: var(--step-small); color: var(--muted); max-width: 62ch; line-height: 1.6; }
@media (max-width: 820px) { .foot .places ul { grid-column: span 6; } .foot .name { white-space: normal; font-size: var(--step-head); } }

/* entrances */
.js [data-r] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-r].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-r] { opacity: 1; transform: none; }
}

/* the hint would sit on top of the title between phone and desktop widths */
@media (max-width: 1100px) { .stage-hint { display: none; } }

/* airport pages */
.ap { padding: calc(var(--bar) + clamp(32px, 5vw, 72px)) var(--m) clamp(64px, 8vw, 120px); }
.ap-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step-small); color: var(--muted); margin: 0 0 clamp(24px, 3vw, 40px); }
.ap-crumbs a { text-underline-offset: 0.2em; }
.ap h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 0.7rem + 3.6vw, 4rem); line-height: 1; letter-spacing: -0.02em; max-width: 20ch; overflow-wrap: break-word; margin: 0; }
.ap-intro { font-size: var(--step-lead); line-height: 1.4; max-width: 56ch; margin: clamp(20px, 2.5vw, 32px) 0 clamp(24px, 3vw, 40px); }
.ap h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-body); line-height: 1.2; margin: 0 0 20px; }
.ap-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; margin-top: clamp(48px, 6vw, 96px); }
.ap-facts { grid-column: 1 / span 5; }
.ap-meet { grid-column: 7 / span 6; }
.ap-meet p { margin: 0 0 1em; max-width: 60ch; line-height: 1.6; }
.ap-facts dl { margin: 0; }
.ap-facts .row { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(51, 50, 49, 0.22); }
.ap-facts dt { color: var(--muted); font-size: var(--step-small); padding-top: 0.15em; }
.ap-facts dd { margin: 0; }
@media (max-width: 900px) { .ap-facts, .ap-meet { grid-column: 1 / -1; } .ap-facts .row { grid-template-columns: 7.5rem 1fr; } }
.ap-photo { margin: clamp(40px, 5vw, 72px) 0 0; }
.ap-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.ap-block { margin-top: clamp(56px, 7vw, 112px); }
.ap-table { width: 100%; max-width: 900px; border-collapse: collapse; }
.ap-table th, .ap-table td { text-align: left; padding: 14px 16px 14px 0; border-top: 1px solid rgba(51, 50, 49, 0.22); vertical-align: top; }
.ap-table th { font-size: var(--step-small); color: var(--muted); font-weight: 500; }
.ap-note { margin: 20px 0 0; max-width: 60ch; line-height: 1.6; }
.ap-faq .q { max-width: 760px; padding: 20px 0; border-top: 1px solid rgba(51, 50, 49, 0.22); }
.ap-faq h3 { font-size: var(--step-body); font-weight: 500; margin: 0 0 8px; }
.ap-faq p { margin: 0; line-height: 1.6; }
.ap-more ul { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.ap-more a { text-underline-offset: 0.2em; }
.ap-more a:hover { color: var(--accent); }
.ap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 32px; margin-top: clamp(32px, 4vw, 56px); }
.ap-list a { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid rgba(51, 50, 49, 0.22); text-decoration: none; transition: color 0.3s var(--ease); }
.ap-list a:hover { color: var(--accent); }
.ap-list strong { font-size: var(--step-lead); font-weight: 500; }
.ap-list span { font-size: var(--step-small); color: var(--muted); }
.page { padding: calc(var(--bar) + clamp(32px, 5vw, 72px)) var(--m) clamp(64px, 8vw, 120px); max-width: 1200px; }

/* content pages */
.ap-body { margin-top: clamp(40px, 5vw, 72px); max-width: 880px; }
.ap-body h2 { margin: clamp(40px, 5vw, 72px) 0 16px; }
.ap-body h2:first-child { margin-top: 0; }
.ap-body p { margin: 0 0 1em; max-width: 62ch; line-height: 1.6; }
.ap-ul { margin: 0 0 1.4em; padding: 0; list-style: none; max-width: 62ch; }
.ap-ul li { padding: 8px 0 8px 1.3em; position: relative; line-height: 1.5; }
.ap-ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 0.55em; height: 0.55em; background: var(--accent); }
.ap-body .ap-table { margin: 0 0 8px; }
.ap-scroll { overflow-x: auto; margin: 0 0 16px; }
.ap-scroll .ap-table { min-width: 560px; }
.ap-table a { text-underline-offset: 0.2em; }
.ap-table a:hover { color: var(--accent); }
.ap-table .num { white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; text-align: right; }
.ap-facts-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 24px; margin: 0 0 28px; max-width: 900px; }
.ap-facts-inline div { padding: 12px 0; border-top: 1px solid rgba(51, 50, 49, 0.22); }
.ap-facts-inline dt { color: var(--muted); font-size: var(--step-small); }
.ap-facts-inline dd { margin: 4px 0 0; font-weight: 500; }
.ap-body .btn { margin-top: 8px; }
.order { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin-top: 8px; }
.order .wide { grid-column: 1 / -1; }
.order .o-out { grid-column: 1 / -1; background: var(--surface); padding: clamp(20px, 3vw, 36px); display: grid; gap: 10px; }
.order .o-out .price-num { font-size: clamp(1.8rem, 0.8rem + 3.6vw, 3.4rem); }
.order .o-out p { margin: 0; color: var(--muted); }
.order .btn { justify-self: start; }
@media (max-width: 700px) { .order { grid-template-columns: 1fr; } .order .chips { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .ap-list a:hover { padding-left: 8px; } }

/* ---------- contacts: desktop strip, phone bar ---------- */
@media (min-width: 961px) { :root { --strip: 36px; } }
.topline { position: fixed; inset: 0 0 auto 0; height: var(--strip); z-index: 61; display: none; background: var(--ink); color: var(--bg); font-size: 0.875rem; }
@media (min-width: 961px) { .topline { display: block; } }
.topline .in { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2vw, 28px); padding-inline: var(--m); }
.topline a { text-decoration: none; opacity: 0.88; white-space: nowrap; transition: opacity 0.2s var(--ease); }
.topline a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.3em; }
.topline a:focus-visible { outline-color: var(--bg); outline-offset: 2px; opacity: 1; }
.topline .lang { margin-right: auto; }
.mobbar { position: fixed; inset: auto 0 0 0; z-index: 59; display: none; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--ink); }
.mobbar a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 2px; text-align: center; text-decoration: none; font-weight: 700; font-size: 0.78rem; line-height: 1.1; transition: transform 0.2s var(--ease); }
.mobbar a:active { transform: scale(0.97); }
.mobbar a:focus-visible { outline-color: var(--bg); outline-offset: 2px; }
.mobbar .m-bk { background: var(--accent); color: var(--accent-ink); }
.mobbar .m-wa { background: #1fa855; color: #04140a; flex-grow: 1.3; }
.mobbar .m-tel { background: #fff; color: var(--ink); }
.mobbar .m-ml { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 2px var(--bg); }
.in-book .mobbar .m-bk { display: none; }
@media (max-width: 960px) {
  .mobbar { display: flex; }
  .foot { padding-bottom: calc(var(--m) + 76px); }
}

/* home title: place name plus what we do, both visible */
.title .title-sub { display: block; margin-top: 0.14em; font-family: var(--font-text); font-weight: 500; font-size: clamp(1rem, 0.7rem + 1.3vw, 1.75rem); letter-spacing: 0; line-height: 1.2; text-transform: none; text-align: center; color: var(--muted); }
@media (max-width: 820px) { .title .title-sub { text-align: left; margin-top: 0.3em; } .title { font-size: min(var(--step-display), 11.5vw); } }

/* price tables on phones: each row becomes a small card (name, time, then label/value lines) */
@media (max-width: 700px) {
  .ap-scroll { overflow: visible; }
  .ap-scroll .ap-table.ap-stack { min-width: 0; display: block; }
  .ap-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ap-stack tbody { display: block; }
  .ap-stack tr { display: block; padding: 16px 0 12px; border-top: 1px solid rgba(51, 50, 49, 0.22); }
  .ap-stack td { display: block; padding: 0; border: 0; }
  .ap-stack td:first-child { font-weight: 500; line-height: 1.3; font-size: var(--step-lead); padding-bottom: 2px; }
  .ap-stack td.tm { color: var(--muted); font-size: var(--step-small); line-height: 1.45; padding-bottom: 8px; }
  .ap-stack td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; }
  .ap-stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: var(--step-small); font-weight: 400; }
  .ap-stack td.num { text-align: right; font-weight: 500; }
}

/* ======================================================================
   P3: bright Vietnam-holiday look (sea, sun, palm). Structure unchanged.
   Overrides only; the original rules above stay as the layout base.
   ====================================================================== */
:root {
  --bg: #fffaf0;
  --surface: #ffeab8;
  --ink: #0a2540;
  --muted: #3f5670;
  --accent: #d92d20;
  --accent-ink: #ffffff;
  --field-1: #bfe6f2;
  --field-1-ink: #0a2540;
  --sea: #0b86c4;
  --sea-deep: #06476f;
  --sun: #ffc531;
  --leaf: #1f9d55;
  --rule: rgba(10, 37, 64, 0.2);
}
html { scrollbar-color: var(--sea) var(--bg); }
body { background: var(--bg); }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline-color: var(--sea); }
.btn { border-radius: 999px; font-weight: 700; box-shadow: 0 6px 0 rgba(122, 20, 12, 0.35); transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn:hover { background: #b81f14; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(122, 20, 12, 0.35); }
.btn[disabled] { box-shadow: none; }
.bar .btn { box-shadow: 0 4px 0 rgba(122, 20, 12, 0.35); }

/* top strip: navy sea with the sun-yellow "prices are final" mark */
.topline, .mobbar { background: var(--sea-deep); color: #fff; }
.topline a:focus-visible, .mobbar a:focus-visible { outline-color: var(--sun); }
.topline .final { overflow: hidden; text-overflow: ellipsis; max-width: 60vw; background: var(--sun); color: var(--ink); font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.mobbar .m-ml { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.mobbar a { border-radius: 12px; }
.mobbar .m-tel { background: var(--sun); color: var(--ink); }

/* headings: a brush stroke of sun under the display words */
.display { text-shadow: none; }
.sec h2.display, .ap-body h2, .ap h1 { background-image: linear-gradient(transparent 62%, rgba(255, 197, 49, 0.75) 62%, rgba(255, 197, 49, 0.75) 92%, transparent 92%); background-repeat: no-repeat; background-size: 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sec h2.display, .ap-body h2 { width: fit-content; max-width: 100%; }

/* calculator, cards, chips */
.tool-out, .order .o-out { background: var(--surface); border-radius: 28px; box-shadow: inset 0 0 0 3px var(--sun); }
.chip span { background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--rule); }
.chip input:checked + span { background: var(--sea); color: #fff; box-shadow: inset 0 0 0 2px var(--sea-deep); }
.chip input:checked + span small { color: #fff; }
.chip input:focus-visible + span { outline-color: var(--sun); }
.ap-ul li::before { background: var(--sun); border-radius: 50%; box-shadow: 0 0 0 3px rgba(11, 134, 196, 0.25); }
.ap-table a:hover, .row:hover .code, .row a:hover, .qa .a a, .foot .places a:hover { color: var(--sea); }
.ap-facts-inline div, .ap-stack tr { border-top-color: var(--rule); }
.ap-facts-inline { }
.ap-note, .ap-pay { background: #e7f6ee; color: #0d4a2a; border-radius: 14px; padding: 12px 16px; max-width: 62ch; line-height: 1.5; }
.ap-pay { background: #e1f2fb; color: var(--sea-deep); }

/* contact block: deep sea with a wave edge, foot: sand with a palm-green base */
.contact { background: var(--sea-deep); color: #fff; }
.contact::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 28px; background: var(--bg); -webkit-mask: radial-gradient(14px 14px at 14px 0, #000 98%, transparent 100%) 0 0 / 28px 28px repeat-x; mask: radial-gradient(14px 14px at 14px 0, #000 98%, transparent 100%) 0 0 / 28px 28px repeat-x; }
.contact .btn { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); }
.foot { background: var(--bg); border-top: 10px solid var(--sun); }
.foot .name { color: var(--sea-deep); }
.foot .places li:first-child { color: var(--leaf); font-weight: 700; }

/* sections alternate soft sand and pale sea so the page does not read as one flat field */
.sec:nth-of-type(even) { background: #eaf7fc; }
@media (prefers-reduced-motion: no-preference) {
  .ap-list a:hover { padding-left: 8px; }
  .chip span { transition: background-color 0.25s var(--ease), transform 0.25s var(--ease); }
  .chip:hover span { transform: translateY(-2px); }
}

/* P4: sent state, fields close and the thank-you stays */
form.is-sent > *:not(.form-status) { display: none !important; }
form.is-sent { display: block; }
form.is-sent .form-status { display: block; margin: 0; padding: clamp(24px, 4vw, 48px); background: #e7f6ee; color: #0d4a2a; border-radius: 24px; box-shadow: inset 0 0 0 3px #1f9d55; font-size: var(--step-lead); line-height: 1.35; text-align: center; font-weight: 600; }
form.is-sent .form-status::before { content: "\2713"; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #1f9d55; color: #fff; font-size: 2rem; line-height: 1; }

/* P4: burger button */
.menu-btn { width: 52px; height: 48px; padding: 0; display: none; align-items: center; justify-content: center; }
@media (max-width: 960px) { .menu-btn { display: flex; } }
.menu-btn .burger { display: grid; gap: 6px; width: 26px; }
.menu-btn .burger i { display: block; height: 3px; border-radius: 3px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.bar.open .menu-btn .burger i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.bar.open .menu-btn .burger i:nth-child(2) { opacity: 0; }
.bar.open .menu-btn .burger i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
/* P4: more cheerful background: warm sun top right, sea breeze left, wavy sea bands on every second block */
body { background: radial-gradient(1100px 620px at 100% -120px, #ffd95a 0%, rgba(255, 217, 90, 0) 62%), radial-gradient(900px 560px at -8% 18%, #a9e3f6 0%, rgba(169, 227, 246, 0) 60%), #fff4d6; }
.sec:nth-of-type(even) { background: linear-gradient(180deg, #d4f0fb 0%, #bfe8f7 100%); }
.sec:nth-of-type(even)::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px; background: #fff4d6; -webkit-mask: radial-gradient(11px 11px at 11px 0, #000 98%, transparent 100%) 0 0 / 22px 22px repeat-x; mask: radial-gradient(11px 11px at 11px 0, #000 98%, transparent 100%) 0 0 / 22px 22px repeat-x; pointer-events: none; }
.foot { background: #fff4d6; }

/* P5 footer credits */
.foot .credits a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot .credits a:hover { color: var(--sea); }

/* P6 mobile story: fits short phone screens (browser toolbars visible), clears the bottom bar */
@media (max-width: 820px) {
  .stage { --mt: calc(var(--bar) + max(12svh, 92px)); --mh: clamp(140px, calc(100svh - var(--mt) - 290px), 44svh); }
  .map { top: var(--mt); height: var(--mh); }
  .right { left: calc(var(--m) + var(--mh) * 0.4643 + 14px); top: calc(var(--mt) + 8px); }
  .left { bottom: calc(var(--m) + 76px); }
  .frame { max-height: 22svh; }
  .title-sub { display: block; margin-top: 4px; }
}

/* P7 popular rides band on top of the home page */
.pop { padding: calc(var(--bar) + clamp(20px, 3vw, 40px)) var(--m) clamp(28px, 4vw, 56px); position: relative; z-index: 2; }
.pop-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 0.9rem + 2vw, 2.6rem); line-height: 1.1; margin: 0; max-width: 24ch; }
.pop-sub { margin: 10px 0 0; color: var(--muted); max-width: 52ch; }
.pop-grid { list-style: none; margin: clamp(18px, 2.4vw, 32px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pop-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 20px 18px; background: #fffaf0; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.pop-card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--accent); }
.pop-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pop-route { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.pop-route i { font-style: normal; color: var(--accent); }
.pop-meta { font-size: var(--step-small); color: var(--muted); }
.pop-price { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pop-price small { display: block; font-size: var(--step-small); font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.pop-price sup { font-size: 0.5em; font-weight: 500; margin-left: 4px; }
.pop-mini { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.pop-go { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.pop-card:hover .pop-go { background: #4d5b46; }
.pop-all { display: inline-block; margin-top: 18px; color: var(--ink); text-underline-offset: 4px; }
@media (max-width: 1000px) { .pop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pop-grid { grid-template-columns: 1fr; gap: 12px; } .pop-card { padding: 16px; } .pop-price { font-size: 1.4rem; } }

/* P8 home only: sunny Nha Trang beach photo as page background; popular rides on transparent background */
body:has(#popular) { background: #fff6e0; }
body:has(#popular)::before { content: ""; position: fixed; inset: 0; z-index: -2; background: url(/vn/img/nha-trang-beach.webp) center 70% / cover no-repeat; filter: saturate(1.45) contrast(1.06) brightness(1.04); }
body:has(#popular)::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,150,200,.10) 0%, rgba(255,226,130,.10) 60%, rgba(255,246,224,.30) 100%); }
body:has(#popular) .sec:nth-of-type(odd) { background: rgba(255, 248, 228, 0.93); }
body:has(#popular) .sec:nth-of-type(even)::before { background: transparent; -webkit-mask: none; mask: none; }
body:has(#popular) .sec:nth-of-type(even) { background: rgba(214, 242, 250, 0.92); }
body:has(#popular) .story { background: transparent; }
#popular .pop-h, #popular .pop-sub { background: transparent; color: #fff; text-shadow: 0 1px 3px rgba(0,40,70,.65), 0 0 18px rgba(0,40,70,.35); padding: 0; }
#popular .pop-card { background: transparent; border: 2px solid #fff; color: #fff; text-shadow: 0 1px 3px rgba(0,40,70,.6); }
#popular .pop-card:hover { background: rgba(255,255,255,.12); box-shadow: 0 8px 0 var(--accent); }
#popular .pop-meta, #popular .pop-price small { color: rgba(255,255,255,.92); }
#popular .pop-route i { color: #ffd95a; }
#popular .pop-mini { color: rgba(255,255,255,.95); }
#popular .pop-all { color: #fff; text-shadow: 0 1px 3px rgba(0,40,70,.6); }
@media (max-width: 820px) { body:has(#popular)::before { background-position: 60% 70%; } }

.mobbar .m-tg { background: #229ed9; color: #fff; }
.topline a[href*="t.me"] { opacity: 0.88; }
