:root {
  --forest: #173f35;
  --forest-2: #235d4d;
  --vermillion: #ce4a32;
  --gold: #c39a56;
  --sea: #2f6f78;
  --night-control: #19211f;
  --ink: #19211f;
  --muted: #65706c;
  --paper: #f2f1ea;
  --paper-2: #e8e7de;
  --surface: #fbfaf5;
  --line: #d5d4cb;
  --white: #fffef9;
  --success: #267356;
  --warning: #a7562e;
  --danger: #a33b32;
  --shadow-1: 0 8px 24px rgba(25, 33, 31, .08);
  --shadow-2: 0 18px 50px rgba(25, 33, 31, .16);
  --radius: 6px;
  --space: 1;
  --motion: 260ms cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  transition: background var(--motion), color var(--motion);
}
html.is-dark {
  --ink: #f2f0e8;
  --muted: #a7aea9;
  --paper: #171c1a;
  --paper-2: #222826;
  --surface: #202623;
  --line: #39413d;
  --white: #f6f3e8;
  --shadow-1: 0 8px 24px rgba(0, 0, 0, .24);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, .38);
  color-scheme: dark;
}
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; stroke-width: 1.8; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10000; padding: 10px 14px; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  min-height: min(760px, 86svh);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: #254e43;
}
.hero-photo { position: absolute; inset: 0; z-index: -3; background: url("assets/hero-saigon-skyline.jpg") 52% 46% / cover no-repeat; transform: scale(1.02); animation: heroIn 1.1s ease-out both; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(11, 25, 21, .22) 0%, rgba(11, 25, 21, .08) 30%, rgba(11, 25, 21, .78) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 45, 37, .38), transparent 65%); mix-blend-mode: multiply; }
.topbar { height: 72px; padding: max(14px, env(safe-area-inset-top)) 20px 0; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; }
.wordmark { width: 44px; height: 44px; display: grid; place-content: center; text-decoration: none; border: 1px solid rgba(255,255,255,.55); font-size: 11px; line-height: 1; }
.wordmark span, .wordmark b { display: block; }
.wordmark b { margin-top: 3px; color: #f2c069; font-weight: 700; }
.trip-progress { justify-self: center; display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; }
.progress-line { width: 58px; height: 1px; background: rgba(255,255,255,.4); overflow: hidden; }
.progress-line i { display: block; width: 20%; height: 100%; background: #f2c069; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: inline-grid; place-items: center; cursor: pointer; transition: transform var(--motion), background var(--motion), border-color var(--motion); }
.icon-button:hover { background: var(--paper-2); }
.icon-button:active { transform: scale(.94); }
.icon-button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 70%, white); outline-offset: 2px; }
.icon-button.small { width: 40px; height: 40px; }
.share-button { justify-self: end; border-color: rgba(255,255,255,.55); color: #fff; background: rgba(12,31,25,.12); backdrop-filter: blur(12px); }
.share-button:hover { background: rgba(12,31,25,.35); }
.hero-content { position: absolute; left: 20px; right: 20px; bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px)); max-width: 780px; }
.eyebrow, .kicker { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.eyebrow { color: #f2c069; }
.hero h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 68px; line-height: .92; font-weight: 700; text-wrap: balance; }
.hero h1 span { font-style: italic; font-weight: 400; }
.hero-copy { max-width: 520px; margin: 20px 0 18px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.9); text-wrap: pretty; }
.hero-signature { width: min(100%, 390px); min-height: 44px; margin: 0 0 15px; padding: 9px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border-top: 1px solid rgba(255,255,255,.34); border-bottom: 1px solid rgba(255,255,255,.18); }
.hero-signature > span { color: #f2c069; font-family: "Songti SC", "STSong", serif; font-size: 16px; font-weight: 700; }
.hero-signature > i { height: 1px; background: rgba(255,255,255,.28); }
.hero-signature > div { min-width: 0; text-align: right; }
.hero-signature b, .hero-signature small { display: block; white-space: nowrap; }
.hero-signature b { font-size: 8px; font-weight: 800; }
.hero-signature small { margin-top: 2px; color: rgba(255,255,255,.62); font-size: 7px; }
.route-lockup { display: flex; align-items: center; gap: 7px; font-size: 12px; flex-wrap: wrap; }
.route-lockup svg { width: 14px; height: 14px; color: #f2c069; }
.route-lockup span { opacity: .68; }
.route-lockup strong { font-weight: 700; }
.route-lockup .route-final { display: inline-flex; align-items: center; gap: 5px; opacity: 1; }
.route-final b { font-weight: 700; }
.route-final em { color: #f2c069; font-style: normal; opacity: .8; }
.hero-scroll { position: absolute; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); color: #fff; background: rgba(11,25,21,.16); display: grid; place-items: center; cursor: pointer; animation: bob 2s ease-in-out infinite; }

.audit-strip { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; max-width: 900px; margin: 0 auto; padding: 18px 20px; color: #fff8ec; background: var(--warning); }
.audit-icon { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.audit-strip b { font-size: 14px; }
.audit-strip p { margin: 2px 0 0; font-size: 12px; opacity: .82; text-wrap: pretty; }
.text-button { min-height: 44px; padding: 0 8px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

main { width: min(100%, 900px); margin: 0 auto; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.view { padding: calc(32px * var(--space)) 20px 24px; animation: viewIn var(--motion) both; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: calc(24px * var(--space)); }
.section-heading.compact { margin: 0 0 16px; }
.section-heading h2, .section-heading h3 { margin: 0; font-family: "Songti SC", "STSong", serif; line-height: 1.08; }
.section-heading h2 { font-size: 32px; }
.section-heading h3 { font-size: 24px; }
.kicker { color: var(--vermillion); }
.mode-pill { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: flex; gap: 8px; align-items: center; cursor: pointer; white-space: nowrap; }
.mode-pill svg { width: 17px; height: 17px; color: var(--forest-2); }
.data-stamp { font-size: 11px; color: var(--muted); }

.date-rail { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px 22px; padding: 2px 20px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.date-rail::-webkit-scrollbar { display: none; }
.date-chip { flex: 0 0 58px; min-height: 70px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; scroll-snap-align: center; transition: background var(--motion), color var(--motion), transform var(--motion); }
.date-chip small { font-size: 10px; color: var(--muted); }
.date-chip b { margin-top: 3px; font-size: 20px; font-weight: 650; }
.date-chip span { margin-top: 2px; font-size: 9px; color: var(--muted); }
.date-chip.is-active { background: var(--forest); color: #fff; border-color: var(--forest); transform: translateY(-2px); }
.date-chip.is-active small, .date-chip.is-active span { color: rgba(255,255,255,.64); }

.day-hero { position: relative; min-height: 210px; margin: 0 -20px; padding: 26px 20px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; background: var(--forest); }
.day-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--day-photo) 50% 50% / cover no-repeat; }
.day-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(11,21,18,.08), rgba(11,21,18,.82)); }
.day-hero > * { position: relative; z-index: 1; }
.day-number { position: absolute; right: 18px; top: 12px; font-family: "Songti SC", serif; font-size: 58px; font-style: italic; opacity: .36; }
.day-hero .kicker { color: #f2c069; }
.day-hero h3 { max-width: 520px; margin: 0; font-size: 31px; line-height: 1.08; text-wrap: balance; }
.day-hero p { max-width: 590px; margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,.76); }
.day-weather { position: absolute; top: 18px; left: 20px; display: inline-flex; gap: 7px; align-items: center; padding: 7px 9px; border: 1px solid rgba(255,255,255,.4); font-size: 10px; background: rgba(15,31,26,.18); backdrop-filter: blur(8px); }
.day-weather svg { width: 15px; height: 15px; }
.day-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.day-summary div { min-width: 0; padding: 13px 12px; border-right: 1px solid var(--line); }
.day-summary div:last-child { border-right: 0; }
.day-summary small { display: block; font-size: 9px; color: var(--muted); }
.day-summary strong { display: block; margin-top: 3px; font-size: 12px; overflow-wrap: anywhere; }
.day-hero.is-night-hero { min-height: 168px; }
.day-mode-content { animation: viewIn var(--motion) both; }
.night-plan { margin: 14px 15px 0; }
.night-rationale { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: start; padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
.night-mark { width: 50px; height: 50px; display: grid; place-items: center; color: #fff; background: var(--forest); }
.night-mark svg { width: 22px; height: 22px; }
.night-rationale .kicker { margin: 0 0 2px; font-size: 8px; }
.night-rationale h4 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 18px; line-height: 1.2; }
.night-rationale p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-wrap: pretty; }
.night-facts { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.night-facts > div { min-width: 0; padding: 12px 10px 12px 0; display: grid; grid-template-columns: 18px 1fr; gap: 7px; align-items: start; border-bottom: 1px solid var(--line); }
.night-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.night-facts > div:nth-child(even) { padding-left: 10px; }
.night-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.night-facts svg { width: 15px; height: 15px; margin-top: 2px; color: var(--gold); }
.night-facts span, .night-facts small, .night-facts b { display: block; min-width: 0; }
.night-facts small, .night-guidance small, .night-next small, .night-fallback small { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.night-facts b { margin-top: 2px; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.night-facts > .night-reserve { grid-column: 1 / -1; padding-left: 0; border-right: 0; border-bottom: 0; }
.night-booking-cell a { min-width: 0; min-height: 44px; padding: 2px 0; display: block; color: var(--vermillion); text-decoration: none; }
.night-booking-cell a svg { display: inline-block; width: 12px; height: 12px; margin: 1px 0 0 3px; color: currentColor; vertical-align: text-top; }
.night-booking-cell a:hover b { text-decoration: underline; text-underline-offset: 2px; }
.night-guidance { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.night-guidance p, .night-next p, .night-fallback p, .night-reference p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-wrap: pretty; }
.night-care { padding-left: 12px; border-left: 1px solid color-mix(in srgb, var(--sea) 45%, var(--line)); }
.night-next { margin-top: 12px; padding: 12px; display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: var(--ink); background: color-mix(in srgb, var(--sea) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sea) 28%, var(--line)); }
.night-next > svg { width: 17px; height: 17px; color: var(--sea); }
.night-reference { margin-top: 8px; padding: 10px 12px; display: grid; grid-template-columns: 18px 1fr; gap: 7px; border: 1px dashed var(--line); }
.night-reference svg { width: 15px; height: 15px; color: var(--gold); }
.night-reference p { margin-top: 0; }
.night-fallback { margin-top: 8px; padding: 12px 0; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.night-fallback b { display: block; margin-top: 2px; font-size: 12px; }
.night-fallback .icon-button { width: 42px; height: 42px; color: var(--forest-2); }
.night-actions { margin: 12px 0 0 !important; }
.night-recheck { margin: 10px 0 0; display: grid; grid-template-columns: 16px 1fr; gap: 6px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.night-recheck svg { width: 14px; height: 14px; color: var(--gold); }
.night-plan.is-rest .night-mark { background: var(--sea); }
.night-plan.is-rest .night-guidance { grid-template-columns: 1fr; }
.weather-impact { margin: 12px 0 0; padding: 14px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: #f5fbfa; background: var(--sea); border-radius: var(--radius); animation: viewIn var(--motion) both; }
.weather-impact > svg { width: 21px; height: 21px; }
.weather-impact b { display: block; font-size: 12px; }
.weather-impact p { margin: 3px 0 0; color: rgba(255,255,255,.74); font-size: 11px; text-wrap: pretty; }
.luggage-strip { margin: 12px 0 0; padding: 13px 14px; display: grid; grid-template-columns: 22px 1fr; gap: 9px; border: 1px dashed var(--line); background: var(--paper-2); }
.luggage-strip > svg { width: 19px; height: 19px; color: var(--forest-2); }
.luggage-strip b { display: block; font-size: 11px; }
.luggage-strip p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-wrap: pretty; }
.comfort-strip { margin: 12px 0 0; padding: 14px; border: 1px solid color-mix(in srgb, var(--forest-2) 34%, var(--line)); background: color-mix(in srgb, var(--forest-2) 7%, var(--surface)); }
.comfort-head { display: flex; align-items: flex-start; gap: 10px; }
.comfort-badge { flex: 0 0 auto; padding: 4px 6px; color: var(--forest); background: var(--gold); font: 800 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.comfort-head small { display: block; color: var(--muted); font: 800 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.comfort-head h4 { margin: 4px 0 0; font-family: "Songti SC", "STSong", serif; font-size: 17px; line-height: 1.2; }
.comfort-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.comfort-facts span { min-width: 0; }
.comfort-facts small { display: block; color: var(--muted); font-size: 9px; }
.comfort-facts b { display: block; margin-top: 3px; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.comfort-rule { display: flex; align-items: flex-start; gap: 7px; margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.comfort-rule svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--forest-2); }
.jw-credit-card { margin: 14px 0 0; padding: 16px; border: 1px solid color-mix(in srgb, var(--vermillion) 42%, var(--line)); background: color-mix(in srgb, var(--vermillion) 5%, var(--surface)); }
.jw-credit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jw-credit-head h4 { margin: 4px 0 0; font-family: "Songti SC", "STSong", serif; font-size: 20px; line-height: 1.18; }
.jw-credit-head > strong { flex: 0 0 auto; color: var(--vermillion); font: 800 18px ui-monospace, SFMono-Regular, Menlo, monospace; }
.jw-credit-caveat { margin: 11px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; text-wrap: pretty; }
.jw-credit-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.jw-credit-option { min-width: 0; padding: 11px; border: 1px solid var(--line); background: var(--surface); }
.jw-credit-label { display: inline-block; color: var(--vermillion); font-size: 9px; font-weight: 800; }
.jw-credit-option h5 { margin: 6px 0 0; font-size: 13px; line-height: 1.25; }
.jw-credit-option p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.52; text-wrap: pretty; }
.jw-credit-option > small { display: block; margin-top: 8px; color: var(--forest-2); font-size: 9px; line-height: 1.35; }
.jw-credit-option a { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; color: var(--ink); font-size: 9px; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.jw-credit-option a:hover { color: var(--vermillion); }
.jw-credit-option a svg { width: 12px; height: 12px; }
.jw-credit-actions { display: grid; grid-template-columns: 64px 1fr; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.jw-credit-actions > b { color: var(--muted); font-size: 10px; }
.jw-credit-actions ol { display: grid; gap: 5px; margin: 0; padding-left: 17px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.companion-notes { margin-top: 12px; padding-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); }
.companion-note { min-width: 0; display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; }
.companion-note small { display: block; margin: 1px 0 2px; color: var(--vermillion); font-size: 9px; font-weight: 800; }
.companion-note:nth-child(even) small { color: var(--sea); }
.companion-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-wrap: pretty; }
.plan-branches { margin: 14px 0 0; padding: 15px; border: 1px solid color-mix(in srgb, var(--sea) 35%, var(--line)); background: color-mix(in srgb, var(--sea) 7%, var(--surface)); }
.branch-head { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: end; }
.branch-head .kicker { grid-column: 1 / -1; margin-bottom: 2px; font-size: 9px; }
.branch-head b { font-family: "Songti SC", serif; font-size: 18px; line-height: 1.2; }
.branch-head span { color: var(--muted); font-size: 9px; }
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.branch-grid article { min-width: 0; padding: 10px; border-top: 2px solid var(--sea); background: var(--surface); }
.branch-grid article:nth-child(2) { border-color: var(--gold); }
.branch-grid article:nth-child(3) { border-color: var(--vermillion); }
.branch-grid small { color: var(--muted); font-size: 9px; font-weight: 800; }
.branch-grid h4 { margin: 5px 0 4px; font-size: 12px; line-height: 1.25; }
.branch-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; text-wrap: pretty; }

.traveler-split { margin: 24px 0 4px; padding: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.traveler-split-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.traveler-split-head .kicker { margin-bottom: 4px; }
.traveler-split-head h4 { margin: 0; font-family: "Songti SC", serif; font-size: 21px; }
.traveler-split-head > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.traveler-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.traveler-card { position: relative; min-width: 0; min-height: 146px; padding: 13px 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); display: grid; grid-template-columns: 56px 1fr; gap: 7px; align-items: end; text-align: left; cursor: pointer; overflow: hidden; transition: transform var(--motion), border-color var(--motion), background var(--motion); }
.traveler-card:hover { transform: translateY(-2px); }
.traveler-card.is-active { border-color: var(--vermillion); background: color-mix(in srgb, var(--vermillion) 7%, var(--surface)); box-shadow: inset 0 0 0 1px var(--vermillion); }
.traveler-card > svg { position: absolute; top: 10px; right: 9px; width: 15px; height: 15px; color: var(--muted); }
.traveler-card-copy { min-width: 0; align-self: center; }
.traveler-card-copy small, .traveler-card-copy strong, .traveler-card-copy b, .traveler-card-copy > span { display: block; }
.traveler-card-copy small { color: var(--muted); font-size: 8px; }
.traveler-card-copy strong { margin-top: 2px; font-family: "Songti SC", serif; font-size: 18px; }
.traveler-card-copy b { margin-top: 4px; color: var(--vermillion); font-size: 11px; }
.traveler-card-copy > span { margin-top: 2px; color: var(--muted); font-size: 9px; }

.traveler-figure { --skin: #d9a17e; --hair: #282522; --shirt: var(--vermillion); position: relative; display: inline-block; width: 56px; height: 82px; flex: 0 0 56px; }
.traveler-figure i { position: absolute; display: block; }
.figure-hair { z-index: 1; left: 11px; top: 5px; width: 34px; height: 38px; border-radius: 52% 52% 42% 42%; background: var(--hair); }
.figure-face { z-index: 2; left: 17px; top: 12px; width: 23px; height: 27px; border-radius: 48% 48% 44% 44%; background: var(--skin); box-shadow: inset 0 -2px rgba(105,56,38,.08); }
.figure-face::before { content: ""; position: absolute; left: 5px; top: 11px; width: 2px; height: 2px; border-radius: 50%; background: #3b2c27; box-shadow: 10px 0 #3b2c27; }
.figure-face::after { content: ""; position: absolute; left: 9px; bottom: 5px; width: 6px; height: 2px; border-bottom: 1px solid rgba(102,45,39,.72); border-radius: 50%; }
.figure-neck { z-index: 1; left: 25px; top: 36px; width: 8px; height: 9px; background: var(--skin); }
.figure-body { z-index: 2; left: 13px; top: 43px; width: 31px; height: 30px; border-radius: 9px 9px 4px 4px; background: var(--shirt); }
.figure-arm { z-index: 1; top: 46px; width: 7px; height: 25px; border-radius: 8px; background: var(--skin); }
.arm-left { left: 8px; transform: rotate(8deg); }
.arm-right { right: 7px; transform: rotate(-8deg); }
.figure-leg { z-index: 1; top: 69px; width: 8px; height: 13px; border-radius: 0 0 5px 5px; background: #263c38; }
.leg-left { left: 18px; }
.leg-right { left: 32px; }
.figure-bag { z-index: 3; right: 0; top: 55px; width: 13px; height: 17px; border: 1px solid rgba(25,33,31,.35); border-radius: 3px; background: var(--gold); }
.figure-bag::before { content: ""; position: absolute; left: 3px; top: -5px; width: 5px; height: 5px; border: 1px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }
.traveler-johnny { --hair: #2d2927; --shirt: #2f6f78; }
.traveler-johnny .figure-hair { height: 39px; border-radius: 48% 48% 26% 26%; box-shadow: 0 4px 0 -1px var(--hair); }
.traveler-johnny .figure-body { border-radius: 6px 6px 3px 3px; clip-path: none; }
.traveler-mom { --hair: #3e3431; --shirt: #c68562; }
.traveler-mom .figure-hair { height: 45px; border-radius: 50% 50% 42% 42%; box-shadow: -4px 9px 0 -1px var(--hair), 4px 9px 0 -1px var(--hair); }
.traveler-mom .figure-body { border-radius: 10px 10px 4px 4px; background: var(--shirt); }
.traveler-figure.is-compact { width: 30px; height: 30px; flex-basis: 30px; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--shirt) 16%, var(--surface)); }
.traveler-figure.is-compact .figure-hair { left: 4px; top: 2px; width: 22px; height: 24px; }
.traveler-figure.is-compact .figure-face { left: 8px; top: 7px; width: 15px; height: 18px; }
.traveler-figure.is-compact .figure-face::before { left: 3px; top: 7px; box-shadow: 7px 0 #3b2c27; }
.traveler-figure.is-compact .figure-face::after { left: 6px; bottom: 3px; width: 4px; }
.traveler-figure.is-compact .figure-neck, .traveler-figure.is-compact .figure-body, .traveler-figure.is-compact .figure-arm, .traveler-figure.is-compact .figure-leg, .traveler-figure.is-compact .figure-bag { display: none; }
.traveler-figure.is-compact.traveler-mom .figure-hair { height: 22px; }

.timeline { margin-top: calc(24px * var(--space)); }
.timeline-event { position: relative; display: grid; grid-template-columns: 58px 20px 1fr; gap: 10px; min-height: 104px; }
.event-time { padding-top: 2px; font-size: 12px; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.event-rail { position: relative; display: flex; justify-content: center; }
.event-rail::before { content: ""; position: absolute; top: 12px; bottom: -2px; width: 1px; background: var(--line); }
.timeline-event:last-child .event-rail::before { display: none; }
.event-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--paper); border: 2px solid var(--forest-2); box-shadow: 0 0 0 4px var(--paper); }
.event-body { min-width: 0; padding: 0 0 calc(24px * var(--space)); border-bottom: 1px solid var(--line); }
.timeline-event:last-child .event-body { border-bottom: 0; }
.event-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.event-heading { min-width: 0; }
.traveler-event-tag { width: max-content; margin-bottom: 5px; padding-right: 8px; border-radius: 999px; display: flex; align-items: center; gap: 5px; color: var(--muted); background: var(--paper-2); font-size: 9px; font-weight: 800; }
.traveler-event-tag .traveler-figure { margin-left: 0; }
.traveler-event-johnny .event-dot { border-color: #2f6f78; }
.traveler-event-mom .event-dot { border-color: #c68562; }
.event-title { margin: 0; font-size: 17px; font-weight: 750; line-height: 1.35; text-wrap: pretty; }
.event-body p { margin: 6px 0 10px; font-size: 13px; color: var(--muted); text-wrap: pretty; }
.event-visual { width: 112px; margin: 3px 0 8px 13px; float: right; }
.event-visual img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); }
.event-visual figcaption { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.25; text-align: right; }
.event-visual a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.event-body::after { content: ""; display: block; clear: both; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.event-meta span { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; color: var(--muted); }
.event-meta svg { width: 13px; height: 13px; }
.event-booking { width: max-content; max-width: 100%; min-height: 34px; margin-top: 8px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 5px; color: var(--vermillion); border: 1px solid color-mix(in srgb, var(--vermillion) 34%, var(--line)); border-radius: var(--radius); text-decoration: none; font-size: 9px; font-weight: 800; }
.event-booking svg { width: 13px; height: 13px; }
.event-booking:hover { background: color-mix(in srgb, var(--vermillion) 7%, var(--surface)); }
.save-button { flex: 0 0 44px; width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.save-button svg { width: 19px; height: 19px; }
.save-button.is-saved { color: var(--vermillion); }
.save-button.is-saved svg { fill: currentColor; }
.day-note { margin-top: 10px; padding: 16px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; background: color-mix(in srgb, var(--gold) 17%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); }
.day-note svg { color: var(--warning); }
.day-note b { display: block; margin-bottom: 3px; font-size: 13px; }
.day-note p { margin: 0; font-size: 12px; color: var(--muted); }
.day-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.action-button { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 12px; font-weight: 750; cursor: pointer; }
.action-button.primary { color: #fff; background: var(--forest); border-color: var(--forest); }
.action-button svg { width: 17px; height: 17px; }

.island-map { position: relative; height: 590px; margin: 0 -20px; overflow: hidden; background: #dce8e6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.is-dark .island-map { background: #1d302d; }
.map-watermark { position: absolute; top: 32px; right: -8px; color: rgba(23,63,53,.08); font-family: "Songti SC", serif; font-size: 52px; font-weight: 700; writing-mode: vertical-rl; }
body.is-dark .map-watermark { color: rgba(255,255,255,.06); }
.island-shape { position: absolute; width: 220px; height: 500px; left: 50%; top: 30px; transform: translateX(-50%) rotate(4deg); background: #b8c7a7; clip-path: polygon(47% 0, 61% 4%, 67% 11%, 59% 18%, 67% 26%, 62% 34%, 71% 43%, 64% 51%, 70% 61%, 61% 70%, 66% 79%, 55% 89%, 54% 100%, 40% 96%, 35% 87%, 27% 82%, 33% 71%, 25% 62%, 31% 54%, 23% 43%, 30% 34%, 27% 24%, 38% 16%, 35% 8%); box-shadow: inset -14px -14px 0 rgba(23,63,53,.08); }
body.is-dark .island-shape { background: #4d6656; }
.map-path { position: absolute; left: calc(50% - 2px); top: 108px; width: 2px; height: 366px; border-left: 2px dashed rgba(206,74,50,.65); transform: rotate(3deg); }
.map-pin { position: absolute; z-index: 2; min-height: 56px; border: 0; background: transparent; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; text-align: left; cursor: pointer; }
.map-pin > span { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--forest); border: 4px solid rgba(255,255,255,.78); box-shadow: var(--shadow-1); font-size: 11px; font-weight: 800; }
.map-pin b { align-self: end; font-size: 12px; }
.map-pin small { align-self: start; font-size: 9px; color: var(--muted); }
.map-pin:hover > span, .map-pin:focus-visible > span { background: var(--vermillion); transform: scale(1.05); }
.pin-north { left: calc(50% - 142px); top: 56px; }
.pin-airport { left: calc(50% + 6px); top: 278px; }
.pin-airport > span { background: var(--sea); }
.pin-airport svg { width: 16px; height: 16px; }
.pin-south { left: calc(50% - 144px); top: 422px; }
.pin-sunset { left: calc(50% + 4px); top: 488px; }
.pin-sunset > span { background: var(--vermillion); outline: 2px solid rgba(206,74,50,.35); outline-offset: 3px; }
.map-scale { position: absolute; left: 20px; bottom: 18px; max-width: 180px; font-size: 9px; color: var(--muted); }
.map-scale i { display: block; width: 70px; height: 4px; margin-bottom: 6px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.map-legend { display: flex; gap: 18px; padding: 14px 0 26px; font-size: 10px; color: var(--muted); }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-solid { background: var(--forest); }
.dot-ring { border: 2px solid var(--vermillion); }
.dot-route { border-radius: 0; height: 1px; width: 16px; border-top: 1px dashed var(--vermillion); }

.hotel-gallery { display: grid; gap: 14px; }
.hotel-card { position: relative; min-height: 300px; overflow: hidden; color: #fff; background: var(--forest); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.hotel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hotel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,18,.03), rgba(10,22,18,.82)); }
.hotel-copy { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 17px; }
.hotel-index { position: absolute; top: 15px; left: 16px; z-index: 1; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; font-size: 10px; backdrop-filter: blur(8px); }
.hotel-status { position: absolute; top: 15px; right: 16px; z-index: 1; min-height: 30px; padding: 5px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; background: rgba(17,38,31,.7); font-size: 9px; backdrop-filter: blur(8px); }
.hotel-status.is-flexible { color: #fff6dc; background: rgba(167,86,46,.84); }
.hotel-copy p { margin: 0 0 5px; color: #f2c069; font-size: 10px; font-weight: 800; }
.hotel-copy h3 { margin: 0; max-width: 80%; font-family: "Songti SC", serif; font-size: 24px; line-height: 1.15; }
.hotel-copy small { display: block; margin-top: 7px; color: rgba(255,255,255,.72); }
.hotel-late { display: flex; align-items: flex-start; gap: 5px; margin-top: 7px; color: #f6d38a; font-size: 10px; line-height: 1.4; }
.hotel-late svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 1px; }
.hotel-tools { display: flex; gap: 8px; margin-top: 13px; }
.hotel-tools button, .hotel-tools a { min-height: 40px; padding: 0 11px; border: 1px solid rgba(255,255,255,.38); border-radius: var(--radius); color: #fff; background: rgba(18,40,33,.35); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 10px; cursor: pointer; backdrop-filter: blur(8px); }
.hotel-tools svg { width: 15px; height: 15px; }
.stay-pick { margin-top: 40px; }
.stay-intro { margin: -4px 0 14px; max-width: 660px; color: var(--muted); font-size: 12px; text-wrap: pretty; }
.saigon-pick { padding: 22px 18px 4px; background: var(--surface); border: 1px solid var(--line); }
.saigon-pick .stay-option:last-child { border-bottom: 0; }
.stay-options { display: grid; gap: 10px; }
.stay-option { padding: 18px 0; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid var(--line); }
.stay-option:last-child { border-bottom: 1px solid var(--line); }
.stay-grade { width: 48px; height: 48px; border: 1px solid var(--line); display: grid; place-items: center; font-family: "Songti SC", serif; font-size: 20px; color: var(--vermillion); }
.stay-option h4 { margin: 0; font-size: 15px; }
.stay-option p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.stay-option a { width: 44px; height: 44px; display: grid; place-items: center; }
.saigon-option { grid-template-columns: 48px minmax(0, 1fr) auto; }
.saigon-option small { display: block; margin-bottom: 2px; color: var(--vermillion); font-size: 9px; font-weight: 800; }
.stay-option-actions { display: flex; align-items: center; }
.stay-option-actions a { width: 40px; height: 44px; }
.stay-option-actions svg { width: 16px; height: 16px; }

.completion { min-width: 62px; font-size: 12px; font-weight: 800; color: var(--muted); text-align: right; }
.completion-bar { height: 5px; margin: -10px 0 30px; background: var(--paper-2); overflow: hidden; }
.completion-bar i { display: block; width: 0; height: 100%; background: var(--vermillion); transition: width 400ms ease; }
.check-group { margin: 0 0 28px; }
.check-group h3 { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.check-item { min-height: 52px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; border-bottom: 1px solid var(--line); }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.check-mark { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background var(--motion), border-color var(--motion); }
.check-mark svg { width: 14px; height: 14px; opacity: 0; color: #fff; transform: scale(.6); transition: opacity var(--motion), transform var(--motion); }
.check-item input:checked + .check-mark { background: var(--success); border-color: var(--success); }
.check-item input:checked + .check-mark svg { opacity: 1; transform: scale(1); }
.check-item input:checked ~ .check-label { color: var(--muted); text-decoration: line-through; }
.check-label { padding: 12px 4px; cursor: pointer; font-size: 14px; text-wrap: pretty; }
.delete-item { width: 40px; height: 40px; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); cursor: pointer; opacity: .55; }
.delete-item svg { width: 16px; height: 16px; }
.add-item { display: grid; grid-template-columns: 1fr 48px; gap: 8px; margin: 28px 0; }
.add-item input { min-width: 0; height: 48px; padding: 0 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.document-note { padding: 18px; display: grid; grid-template-columns: 28px 1fr; gap: 11px; color: var(--ink); background: color-mix(in srgb, var(--vermillion) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--vermillion) 32%, var(--line)); }
.document-note > svg { color: var(--vermillion); }
.document-note b { font-size: 13px; }
.document-note p { margin: 5px 0 10px; color: var(--muted); font-size: 12px; text-wrap: pretty; }
.document-note a { grid-column: 2; display: inline-flex; align-items: center; gap: 5px; color: var(--vermillion); font-size: 12px; font-weight: 800; }
.document-note a svg { width: 14px; height: 14px; }

.reference-shelf { margin: -4px 0 36px; padding: 20px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reference-intro { max-width: 680px; }
.reference-intro h3 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 25px; line-height: 1.12; }
.reference-intro p:last-child { margin: 9px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; text-wrap: pretty; }
.reference-filter-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 9px; }
.reference-filter-row > span { padding-top: 12px; color: var(--muted); font-size: 10px; font-weight: 800; }
.reference-tabs { min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding: 1px 1px 5px; scrollbar-width: none; }
.reference-tabs::-webkit-scrollbar { display: none; }
.reference-tab { min-height: 42px; flex: 0 0 auto; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; font-weight: 750; cursor: pointer; transition: color var(--motion), background var(--motion), border-color var(--motion), transform var(--motion); }
.reference-tab:hover { color: var(--ink); border-color: var(--forest-2); transform: translateY(-1px); }
.reference-tab.is-active { color: #fff; border-color: var(--forest); background: var(--forest); }
.reference-tab svg { width: 14px; height: 14px; }
.reference-meta { margin: 14px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; }
.reference-meta b { color: var(--vermillion); font-size: 11px; }
.reference-meta span { text-align: right; }
.reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.reference-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; transition: border-color var(--motion), transform var(--motion), box-shadow var(--motion); }
.reference-card:hover { border-color: var(--forest-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.reference-card-image { margin: -15px -15px 13px; }
.reference-card-image img { width: 100%; height: 126px; display: block; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.reference-card-image figcaption { min-height: 19px; padding: 5px 10px 0; color: var(--muted); font-size: 8px; line-height: 1.25; }
.reference-card-image a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.reference-card-top { min-height: 27px; display: flex; align-items: center; gap: 7px; }
.reference-card-index { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.reference-card-mark { width: 28px; height: 28px; display: grid; place-items: center; color: var(--forest-2); background: color-mix(in srgb, var(--forest-2) 10%, var(--surface)); }
.reference-card-mark svg { width: 15px; height: 15px; }
.reference-card-city { margin-left: auto; color: var(--muted); font-size: 9px; }
.reference-card h4 { margin: 14px 0 0; font-family: "Songti SC", "STSong", serif; font-size: 19px; line-height: 1.18; text-wrap: pretty; }
.reference-area { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.reference-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 9px; }
.reference-tags span { padding: 3px 6px; color: var(--vermillion); border: 1px solid color-mix(in srgb, var(--vermillion) 25%, var(--line)); font-size: 8px; line-height: 1.2; }
.reference-desc { min-height: 56px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; text-wrap: pretty; }
.reference-when { margin-top: 12px; padding-top: 9px; display: grid; grid-template-columns: 34px 1fr; gap: 6px; border-top: 1px dashed var(--line); }
.reference-when small { color: var(--muted); font-size: 9px; }
.reference-when b { min-width: 0; font-size: 10px; font-weight: 700; line-height: 1.35; }
.reference-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.reference-action { min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 750; text-decoration: none; }
.reference-action:hover { color: var(--ink); border-color: var(--forest-2); }
.reference-action.primary { color: var(--forest); border-color: color-mix(in srgb, var(--forest) 35%, var(--line)); background: color-mix(in srgb, var(--forest) 7%, var(--surface)); }
.reference-action svg { width: 14px; height: 14px; }
.reference-card-drink .reference-card-mark { color: var(--vermillion); background: color-mix(in srgb, var(--vermillion) 10%, var(--surface)); }
.reference-card-coffee .reference-card-mark { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--surface)); }
.reference-card-browse .reference-card-mark { color: var(--sea); background: color-mix(in srgb, var(--sea) 10%, var(--surface)); }
.reference-empty { grid-column: 1 / -1; padding: 28px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.utility-heading { margin-top: 34px; }
.utility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.utility-card { min-height: 150px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.utility-card > svg { color: var(--forest-2); }
.utility-card h3 { margin: 18px 0 6px; font-size: 14px; }
.utility-card p { margin: 0; font-size: 11px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.utility-card a { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--vermillion); font-size: 10px; font-weight: 750; }
.utility-card a svg { width: 13px; height: 13px; }
.hanoi-calculator { margin: 38px -20px 0; padding: 28px 20px; color: #fff; background: var(--forest); }
.calc-head .kicker { color: #f2c069; }
.calc-head h3 { margin: 0; max-width: 520px; font-family: "Songti SC", serif; font-size: 29px; line-height: 1.12; }
.calc-head p { margin: 10px 0 22px; max-width: 620px; font-size: 12px; color: rgba(255,255,255,.67); }
.traveler-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.traveler-picker button { min-width: 0; min-height: 54px; padding: 6px 10px 6px 7px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); color: rgba(255,255,255,.66); background: transparent; display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; }
.traveler-picker button.is-active { color: #fff; border-color: #f2c069; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px #f2c069; }
.traveler-picker button span:not(.traveler-figure) { min-width: 0; }
.traveler-picker button b, .traveler-picker button small { display: block; }
.traveler-picker button b { font-size: 12px; }
.traveler-picker button small { color: inherit; opacity: .65; font-size: 9px; }
.traveler-picker .traveler-figure.is-compact { --surface: #f6f3e8; }
.traveler-departure { min-height: 108px; margin: 12px 0 0; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: center; }
.traveler-departure .traveler-figure { transform: scale(.78); transform-origin: center; }
.traveler-departure small, .traveler-departure strong, .traveler-departure span { display: block; }
.traveler-departure small { color: rgba(255,255,255,.56); font-size: 9px; }
.traveler-departure strong { margin-top: 2px; color: #f2c069; font-size: 24px; }
.traveler-departure span { margin-top: 1px; color: rgba(255,255,255,.72); font-size: 11px; }
.time-entry { display: grid; grid-template-columns: 1fr 118px; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.time-entry label { font-size: 12px; }
.time-entry input { width: 118px; height: 44px; padding: 0 10px; border: 1px solid rgba(255,255,255,.32); border-radius: var(--radius); color: #fff; background: rgba(255,255,255,.08); }
.time-result { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 8px; margin: 22px 0; }
.time-result > div { min-width: 0; }
.time-result small { display: block; font-size: 9px; color: rgba(255,255,255,.58); }
.time-result strong { display: block; margin-top: 2px; font-family: "Avenir Next", sans-serif; font-size: 28px; font-variant-numeric: tabular-nums; }
.time-result > svg { width: 18px; opacity: .45; }
.hanoi-route { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 10px; white-space: nowrap; scrollbar-width: none; }
.hanoi-route svg { flex: 0 0 auto; width: 13px; color: #f2c069; }
.calc-warning { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; margin: 14px 0 0; font-size: 10px; color: rgba(255,255,255,.64); }
.calc-warning svg { width: 16px; height: 16px; color: #f2c069; }
.quick-credit-note { margin-top: 18px; padding: 16px; border: 1px solid color-mix(in srgb, var(--vermillion) 40%, var(--line)); background: color-mix(in srgb, var(--vermillion) 5%, var(--surface)); }
.quick-credit-note h3 { margin: 3px 0 0; font-family: "Songti SC", "STSong", serif; font-size: 21px; line-height: 1.2; }
.quick-credit-note > p:not(.kicker) { max-width: 760px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-wrap: pretty; }
.quick-credit-note .action-button { margin-top: 12px; }
.saved-section { margin-top: 36px; }
.saved-list { display: grid; gap: 8px; }
.saved-item { min-height: 60px; padding: 10px 0; display: grid; grid-template-columns: 36px 1fr 44px; gap: 10px; align-items: center; border-top: 1px solid var(--line); }
.saved-item:last-child { border-bottom: 1px solid var(--line); }
.saved-item > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--vermillion); font-size: 11px; font-weight: 800; }
.saved-item b { display: block; font-size: 13px; }
.saved-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.saved-empty { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }

.bottom-nav { position: fixed; z-index: 100; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 900px); height: calc(72px + env(safe-area-inset-bottom)); padding: 6px 12px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(25,33,31,.06); }
.nav-item { min-width: 0; height: 58px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); cursor: pointer; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item span { font-size: 10px; }
.nav-item.is-active { color: var(--vermillion); }
.nav-item.is-active svg { stroke-width: 2.3; }

.tweaks-toggle { position: static; z-index: auto; min-width: 0; height: 58px; padding: 0; border: 0; border-radius: 0; color: var(--muted); background: transparent; box-shadow: none; backdrop-filter: none; cursor: pointer; }
.tweaks-toggle svg { width: 20px; height: 20px; }
.tweaks-toggle[aria-expanded="true"] { color: var(--vermillion); }
.tweaks-panel { position: fixed; z-index: 121; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); width: min(310px, calc(100vw - 28px)); padding: 17px; color: #f8f5ec; background: rgba(24,32,29,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; box-shadow: var(--shadow-2); backdrop-filter: blur(22px); transform-origin: bottom right; animation: panelIn var(--motion) both; pointer-events: auto; visibility: visible; }
.tweaks-panel[hidden] { display: none !important; pointer-events: none !important; visibility: hidden; }
.tw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tw-head b { font-size: 12px; }
.tw-head .icon-button { border-color: rgba(255,255,255,.12); }
.tw-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.09); }
.tw-row > span { font-size: 11px; color: rgba(255,255,255,.62); }
.segmented { display: flex; padding: 2px; background: rgba(255,255,255,.07); border-radius: 999px; }
.segmented button { min-width: 52px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; color: rgba(255,255,255,.52); background: transparent; font-size: 10px; cursor: pointer; }
.segmented button.is-active { color: #17241f; background: #fffef9; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.switch { position: relative; width: 44px; height: 24px; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); cursor: pointer; }
.switch i { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--motion); }
.switch[aria-checked="true"] { background: var(--vermillion); }
.switch[aria-checked="true"] i { transform: translateX(20px); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 199; background: rgba(9,16,14,.56); backdrop-filter: blur(3px); }
.detail-sheet { position: fixed; z-index: 200; inset: auto 0 0; width: min(100%, 680px); max-height: min(82svh, 760px); margin: 0 auto; padding: 36px 20px calc(26px + env(safe-area-inset-bottom)); color: var(--ink); background: var(--surface); border: 0; border-radius: 8px 8px 0 0; box-shadow: var(--shadow-2); overflow-y: auto; }
.detail-sheet[open] { animation: sheetIn 320ms cubic-bezier(.2,.9,.2,1) both; }
.detail-sheet::backdrop { background: transparent; }
.sheet-handle { position: absolute; top: 10px; left: 50%; width: 44px; height: 4px; transform: translateX(-50%); border-radius: 999px; background: var(--line); }
.sheet-close { position: absolute; top: 18px; right: 16px; }
.sheet-title { margin: 0 50px 8px 0; font-family: "Songti SC", serif; font-size: 27px; line-height: 1.15; }
.sheet-lead { margin: 0 46px 22px 0; color: var(--muted); font-size: 13px; }
.sheet-list { margin: 0; padding: 0; list-style: none; }
.sheet-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.sheet-list li b { display: block; margin-bottom: 3px; }
.sheet-list li p { margin: 0; color: var(--muted); }
.sheet-list a { display: inline-flex; align-items: center; gap: 5px; color: var(--vermillion); overflow-wrap: anywhere; }
.share-link-box { display: grid; grid-template-columns: 1fr 44px; gap: 8px; margin: 20px 0 0; }
.share-link-box input { min-width: 0; height: 44px; padding: 0 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 11px; }
.share-link-box .icon-button { width: 44px; height: 44px; }
.share-actions { margin-top: 10px; }
.share-feedback { min-height: 20px; margin: 8px 0 0; color: var(--success); font-size: 11px; }
.action-button:disabled { cursor: wait; opacity: .58; }
.wechat-share-tip { margin-top: 18px; padding: 14px; display: grid; grid-template-columns: 24px 1fr; gap: 9px; color: var(--ink); background: color-mix(in srgb, var(--sea) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sea) 35%, var(--line)); }
.wechat-share-tip > svg { width: 19px; color: var(--sea); }
.wechat-share-tip b { display: block; font-size: 12px; }
.wechat-share-tip p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); max-width: calc(100vw - 40px); padding: 11px 15px; transform: translate(-50%, 20px); border-radius: 999px; color: #fff; background: rgba(24,32,29,.94); box-shadow: var(--shadow-1); font-size: 11px; opacity: 0; pointer-events: none; transition: opacity var(--motion), transform var(--motion); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

body[data-density="compact"] { --space: .72; }
body[data-weather="rain"] .day-weather { background: rgba(47,111,120,.72); }
body[data-motion="reduced"] { --motion: 1ms linear; }
body[data-motion="reduced"] * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (min-width: 720px) {
  .hero { min-height: min(820px, 88svh); }
  .topbar, .hero-content { left: 50%; right: auto; width: min(calc(100% - 80px), 900px); transform: translateX(-50%); }
  .topbar { position: absolute; top: 0; padding-left: 0; padding-right: 0; }
  .hero h1 { font-size: 96px; }
  .hero-copy { font-size: 19px; }
  .hero-scroll { right: max(40px, calc((100vw - 900px) / 2)); }
  .audit-strip { margin-top: -1px; }
  .view { padding-left: 36px; padding-right: 36px; }
  .day-hero, .hanoi-calculator { margin-left: 0; margin-right: 0; border-radius: var(--radius); }
  .day-summary { border-top: 1px solid var(--line); margin-top: 10px; }
  .island-map { margin: 0; border: 1px solid var(--line); }
  .hotel-gallery { grid-template-columns: 1fr 1fr; }
  .hotel-card:first-child { grid-column: span 2; min-height: 370px; }
  .utility-grid { grid-template-columns: repeat(4, 1fr); }
  .tweaks-panel { right: calc((100vw - 900px) / 2 + 18px); }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 58px; }
  .hero-copy { font-size: 15px; }
  .audit-strip { grid-template-columns: 38px 1fr; }
  .audit-strip .text-button { grid-column: 2; justify-self: start; min-height: 32px; }
  .section-heading h2 { font-size: 28px; }
  .map-pin { transform: scale(.92); transform-origin: left center; }
  .saigon-pick { padding-left: 14px; padding-right: 14px; }
  .saigon-option { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 10px; }
  .saigon-option .stay-grade { width: 40px; height: 40px; font-size: 15px; }
  .stay-option-actions { flex-direction: column; }
  .stay-option-actions a { width: 40px; height: 38px; }
  .night-guidance { grid-template-columns: 1fr; gap: 10px; }
  .branch-grid { grid-template-columns: 1fr; }
  .branch-grid article { padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Single-screen trip console and city atlas */
.console-heading { align-items: center; margin-bottom: 16px; }
.console-heading-actions { display: flex; align-items: center; gap: 8px; }
.console-heading-actions .icon-button { width: 44px; height: 44px; }
.console-toolbar { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr); gap: 10px; align-items: end; margin-bottom: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.console-control-block { min-width: 0; }
.console-control-block > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.console-toolbar .date-rail { min-width: 0; margin: 0; padding: 0; gap: 5px; }
.console-toolbar .date-chip { flex-basis: 52px; min-height: 58px; }
.console-toolbar .date-chip small { font-size: 8px; }
.console-toolbar .date-chip b { font-size: 18px; }
.console-toolbar .date-chip span { font-size: 8px; }
.scene-switch { min-height: 58px; padding: 3px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.scene-switch button { min-width: 0; min-height: 50px; padding: 4px 6px; border: 0; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); background: transparent; cursor: pointer; transition: color var(--motion), background var(--motion), transform var(--motion); }
.scene-switch button svg { width: 16px; height: 16px; }
.scene-switch button span { font-size: 9px; font-weight: 800; }
.scene-switch button:hover { color: var(--ink); }
.scene-switch button:active { transform: scale(.96); }
.scene-switch button.is-active { color: #fff; background: var(--forest); }
.scene-switch button[data-plan-scene="rain"].is-active { background: var(--sea); }
.scene-switch button[data-plan-scene="night"].is-active { background: var(--night-control); }
.city-tabs { display: flex; gap: 5px; min-height: 58px; align-items: stretch; }
.city-tabs button { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; font-size: 10px; font-weight: 750; cursor: pointer; transition: background var(--motion), color var(--motion), border-color var(--motion), transform var(--motion); }
.city-tabs button { flex: 1 1 0; flex-direction: column; gap: 1px; }
.city-tabs button small { color: inherit; opacity: .66; font-size: 8px; font-weight: 500; }
.city-tabs button.is-active { color: #fff; background: var(--forest); border-color: var(--forest); }
.city-tabs button:hover { transform: translateY(-1px); border-color: var(--forest-2); }
.console-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 12px; min-height: 690px; }
.console-pane { min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.console-pane-head { min-height: 62px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.console-pane-head .kicker { margin-bottom: 3px; font-size: 9px; }
.console-pane-head h3 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 19px; line-height: 1.1; }
.console-pane-head > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.console-map-pane { display: block; }
.console-day-pane { max-height: 690px; overflow: hidden auto; }
.console-day-pane .day-stage { padding-bottom: 14px; }
.console-day-pane .day-hero { margin: 0; min-height: 198px; }
.console-day-pane .day-hero.is-night-hero { min-height: 160px; }
.console-day-pane .day-hero h3 { font-size: 27px; }
.console-day-pane .day-summary { margin: 0; }
.console-day-pane .weather-impact, .console-day-pane .luggage-strip, .console-day-pane .comfort-strip, .console-day-pane .jw-credit-card, .console-day-pane .plan-branches, .console-day-pane .timeline, .console-day-pane .companion-notes, .console-day-pane .day-note, .console-day-pane .day-actions { margin-left: 15px; margin-right: 15px; }
.console-day-pane .timeline { padding-top: 14px; }
.console-day-pane .day-actions { grid-template-columns: 1fr 1fr; }
.console-day-pane .event-time { font-size: 11px; }
.console-day-pane .event-title { font-size: 15px; }
.console-day-pane .event-body p { font-size: 11px; }
.check-group-tabs { display: flex; gap: 7px; margin: -12px 0 18px; overflow-x: auto; padding: 2px 0 7px; scrollbar-width: none; }
.check-group-tabs::-webkit-scrollbar { display: none; }
.check-group-tabs button { flex: 0 0 auto; min-height: 46px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; text-align: left; cursor: pointer; }
.check-group-tabs button b { font-size: 10px; white-space: nowrap; }
.check-group-tabs button small { font-size: 9px; }
.check-group-tabs button.is-active { color: #fff; border-color: var(--forest); background: var(--forest); }
.check-group-tabs button:hover { border-color: var(--forest-2); }

.atlas-root { height: calc(100% - 62px); min-height: 628px; }
.atlas-root-large { height: min(72svh, 760px); min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.atlas-frame { position: relative; height: 100%; overflow: hidden; isolation: isolate; background: #dce8e6; }
html.is-dark .atlas-frame { background: #172c2a; }
.atlas-map-shell, .atlas-leaflet { position: absolute; inset: 0; }
.atlas-leaflet { z-index: 0; background: #dce8e6; font-family: inherit; }
.atlas-leaflet .leaflet-tile-pane { opacity: .96; }
html.is-dark .atlas-leaflet .leaflet-tile-pane { filter: brightness(.68) saturate(.78); }
.atlas-leaflet .leaflet-control-attribution { padding: 2px 5px; color: #465450; background: rgba(251,250,245,.82); font-size: 8px; }
html.is-dark .atlas-leaflet .leaflet-control-attribution { color: #dfe7df; background: rgba(25,33,31,.78); }
.atlas-map-head { position: absolute; z-index: 400; left: 12px; top: 12px; display: flex; align-items: center; gap: 7px; max-width: calc(100% - 75px); padding: 5px 7px; border: 1px solid rgba(23,63,53,.2); border-radius: 4px; color: var(--muted); background: rgba(251,250,245,.86); box-shadow: 0 4px 12px rgba(25,33,31,.12); backdrop-filter: blur(10px); font-size: 8px; }
.atlas-map-head span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.atlas-map-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
.atlas-map-head .landmark-dot { background: var(--gold); }
.atlas-map-head .airport-dot { background: var(--sea); }
.atlas-map-head small { margin-left: auto; color: var(--muted); white-space: nowrap; }
html.is-dark .atlas-map-head { border-color: rgba(255,255,255,.2); background: rgba(32,38,35,.88); }
.atlas-poi-rail { position: absolute; z-index: 400; left: 12px; right: 12px; bottom: 74px; display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.atlas-poi-rail::-webkit-scrollbar { display: none; }
.atlas-poi-rail button { flex: 0 0 auto; min-height: 36px; padding: 4px 8px 4px 5px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(23,63,53,.2); border-radius: 999px; color: var(--ink); background: rgba(251,250,245,.9); box-shadow: 0 4px 12px rgba(25,33,31,.12); cursor: pointer; backdrop-filter: blur(10px); }
.atlas-poi-rail button:hover { border-color: var(--forest-2); transform: translateY(-1px); }
.atlas-poi-rail b { font-size: 9px; white-space: nowrap; }
.poi-code { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--forest); font-size: 8px; font-weight: 800; }
.poi-code.is-airport { background: var(--sea); }
.poi-code.is-sunset { background: var(--vermillion); }
.poi-code.is-landmark { color: var(--ink); background: var(--gold); }
html.is-dark .atlas-poi-rail button { border-color: rgba(255,255,255,.2); background: rgba(32,38,35,.9); }
.atlas-leaflet-marker { width: 32px !important; height: 32px !important; border: 3px solid var(--surface); border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--forest); box-shadow: 0 2px 8px rgba(25,33,31,.32); font-size: 8px; font-weight: 800; }
.atlas-leaflet-marker.is-airport { background: var(--sea); }
.atlas-leaflet-marker.is-sunset { background: var(--vermillion); }
.atlas-leaflet-marker.is-landmark { color: var(--ink); background: var(--gold); }
.atlas-leaflet-tooltip { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface); font: inherit; font-size: 10px; box-shadow: var(--shadow-1); }
.atlas-leaflet-tooltip small { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; }
.atlas-leaflet-tooltip::before { border-top-color: var(--surface); }
.atlas-map-fallback { height: 100%; display: grid; place-content: center; gap: 5px; padding: 28px; color: var(--ink); background: var(--paper-2); text-align: center; }
.atlas-map-fallback b { font-size: 14px; }
.atlas-map-fallback span { color: var(--muted); font-size: 11px; }
.atlas-frame::before { content: ""; position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(rgba(23,63,53,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(23,63,53,.06) 1px, transparent 1px); background-size: 34px 34px; transform: rotate(-2deg) scale(1.1); }
html.is-dark .atlas-frame::before { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); }
.atlas-frame::after { content: "N"; position: absolute; top: 15px; right: 17px; width: 28px; height: 28px; border: 1px solid rgba(23,63,53,.3); border-radius: 50%; display: grid; place-items: center; color: var(--forest); font-size: 10px; font-weight: 800; }
html.is-dark .atlas-frame::after { border-color: rgba(255,255,255,.3); color: #fff; }
.atlas-canvas { position: absolute; inset: 0; transform: scale(var(--atlas-scale, 1)); transform-origin: 50% 50%; transition: transform var(--motion); }
.atlas-water-label { position: absolute; z-index: 0; color: rgba(47,111,120,.48); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; pointer-events: none; }
.atlas-water-label.is-large { font-size: 13px; }
.atlas-water-label.saigon { left: 7%; top: 18%; }
.atlas-water-label.phuquoc { right: 7%; top: 26%; }
.atlas-water-label.hanoi { left: 6%; top: 21%; }
.atlas-svg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; }
.atlas-svg .atlas-land { fill: rgba(185,201,169,.76); stroke: rgba(23,63,53,.18); stroke-width: 2; }
.atlas-svg .atlas-land-secondary { fill: rgba(201,210,180,.54); stroke: rgba(23,63,53,.12); stroke-width: 2; }
.atlas-svg .atlas-water { fill: none; stroke: rgba(47,111,120,.55); stroke-width: 29; stroke-linecap: round; }
.atlas-svg .atlas-water-thin { fill: none; stroke: rgba(47,111,120,.36); stroke-width: 9; stroke-linecap: round; }
.atlas-svg .atlas-road { fill: none; stroke: rgba(255,254,249,.92); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.atlas-svg .atlas-road-inner { fill: none; stroke: rgba(195,154,86,.8); stroke-width: 2.5; stroke-dasharray: 4 7; stroke-linecap: round; }
.atlas-svg .atlas-route { fill: none; stroke: var(--vermillion); stroke-width: 4; stroke-dasharray: 9 8; stroke-linecap: round; opacity: .8; }
html.is-dark .atlas-svg .atlas-land { fill: rgba(67,95,77,.8); stroke: rgba(255,255,255,.16); }
html.is-dark .atlas-svg .atlas-land-secondary { fill: rgba(76,105,86,.58); stroke: rgba(255,255,255,.12); }
html.is-dark .atlas-svg .atlas-road { stroke: rgba(245,242,230,.26); }
.atlas-node { position: absolute; z-index: 2; left: var(--atlas-x); top: var(--atlas-y); min-width: 100px; max-width: 148px; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; filter: drop-shadow(0 5px 8px rgba(25,33,31,.13)); }
.atlas-node:hover, .atlas-node:focus-visible { z-index: 4; filter: drop-shadow(0 8px 12px rgba(25,33,31,.22)); }
.atlas-node > span { width: 30px; height: 30px; margin: 0 auto 3px; border: 3px solid var(--surface); border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--forest); box-shadow: 0 0 0 1px rgba(23,63,53,.26); font-size: 10px; font-weight: 800; }
.atlas-node.is-airport > span { background: var(--sea); }
.atlas-node.is-sunset > span { background: var(--vermillion); }
.atlas-node.is-landmark > span { background: var(--gold); color: var(--ink); }
.atlas-node > div { padding: 5px 7px; border: 1px solid rgba(23,63,53,.2); border-radius: 4px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); }
.atlas-node b { display: block; font-size: 10px; line-height: 1.2; }
.atlas-node small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.2; }
.atlas-node[data-map-node="nguyen-hue"] > div, .atlas-node[data-map-node="grand-world"] > div, .atlas-node[data-map-node="hoan-kiem"] > div { border-color: color-mix(in srgb, var(--vermillion) 40%, var(--line)); }
.atlas-frame-footer { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.atlas-route-note { max-width: 330px; padding: 9px 11px; border: 1px solid rgba(23,63,53,.18); border-radius: 5px; color: var(--ink); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); }
.atlas-route-note b { display: block; font-size: 10px; }
.atlas-route-note span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.atlas-frame-footer .icon-button { width: 42px; height: 42px; color: var(--forest); background: var(--surface); }
.atlas-map-controls { position: absolute; z-index: 5; top: 51px; right: 12px; display: grid; gap: 4px; }
.atlas-map-controls button { width: 32px; height: 32px; padding: 0; border: 1px solid rgba(23,63,53,.18); border-radius: 4px; display: grid; place-items: center; color: var(--forest); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 3px 10px rgba(25,33,31,.1); cursor: pointer; backdrop-filter: blur(10px); }
.atlas-map-controls button:hover { background: var(--surface); border-color: var(--forest-2); }
.atlas-map-controls button:active { transform: scale(.94); }
.atlas-map-controls svg { width: 15px; height: 15px; }
html.is-dark .atlas-map-controls button { color: var(--ink); border-color: rgba(255,255,255,.2); }
.atlas-legend-mini { position: absolute; z-index: 2; left: 13px; top: 12px; display: flex; gap: 7px; flex-wrap: wrap; max-width: 70%; }
.atlas-legend-mini span { padding: 4px 7px; border: 1px solid rgba(23,63,53,.16); border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--surface) 78%, transparent); font-size: 8px; backdrop-filter: blur(8px); }
.atlas-legend-mini i { width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; display: inline-block; background: var(--forest); }
.atlas-legend-mini .sea-dot { background: var(--sea); }
.atlas-legend-mini .red-dot { background: var(--vermillion); }
.city-tabs-large { margin-bottom: 12px; min-height: 48px; }
.city-tabs-large button { min-height: 48px; flex-direction: row; gap: 6px; }
.city-tabs-large button small { font-size: 9px; }
.map-heading { align-items: center; }
.view[data-view-panel="map"] .hotel-gallery { margin-top: 26px; }

@media (max-width: 719px) {
  .console-heading { align-items: flex-start; }
  .console-heading-actions { flex: 0 0 auto; }
  .console-heading-actions .mode-pill { min-height: 40px; padding: 0 10px; }
  .console-heading-actions .icon-button { width: 40px; height: 40px; }
  .console-toolbar { display: block; padding: 8px; }
  .console-control-block { margin-bottom: 8px; }
  .console-control-block:last-child { margin-bottom: 0; }
  .console-control-block > span { margin-bottom: 4px; }
  .console-toolbar .date-rail { padding-bottom: 2px; }
  .console-toolbar .date-chip { flex-basis: 48px; min-height: 54px; }
  .scene-switch { min-height: 48px; }
  .scene-switch button { min-height: 44px; flex-direction: row; gap: 5px; }
  .scene-switch button span { font-size: 10px; }
  .city-tabs { min-height: 44px; }
  .city-tabs button { min-height: 44px; flex-direction: row; gap: 4px; }
  .city-tabs button small { font-size: 8px; }
  .console-grid { display: block; min-height: 0; }
  .console-pane { display: none; }
  .console-pane.is-active { display: block; }
  .console-day-pane, .console-map-pane { height: max(500px, calc(100svh - 300px)); min-height: 500px; max-height: 590px; }
  .console-map-pane { overflow: hidden; }
  .atlas-root { min-height: 0; height: calc(100% - 62px); }
  .atlas-root-large { height: calc(100svh - 320px); min-height: 470px; }
  .atlas-node { left: var(--atlas-mobile-x); top: var(--atlas-mobile-y); min-width: 54px; max-width: 94px; }
  .atlas-node > span { width: 24px; height: 24px; margin-bottom: 2px; border-width: 2px; font-size: 8px; }
  .atlas-node > div { padding: 3px 5px; text-align: center; }
  .atlas-node b { font-size: 8px; line-height: 1.12; text-wrap: pretty; }
  .atlas-node small { display: none; }
  .atlas-route-note { max-width: 245px; }
  .atlas-route-note b { font-size: 9px; }
  .atlas-route-note span { font-size: 8px; }
  .console-day-pane .day-hero h3 { font-size: 25px; }
  .console-day-pane .day-summary > div { padding: 10px 8px; }
  .console-day-pane .day-summary strong { font-size: 13px; }
  .console-day-pane .weather-impact, .console-day-pane .luggage-strip, .console-day-pane .comfort-strip, .console-day-pane .jw-credit-card, .console-day-pane .plan-branches, .console-day-pane .timeline, .console-day-pane .companion-notes, .console-day-pane .day-note, .console-day-pane .day-actions { margin-left: 12px; margin-right: 12px; }
  .comfort-facts, .jw-credit-options { grid-template-columns: 1fr; }
  .jw-credit-actions { grid-template-columns: 1fr; gap: 5px; }
  .companion-notes { grid-template-columns: 1fr; }
  .console-day-pane .timeline-event { grid-template-columns: 48px 18px 1fr; }
  .console-day-pane .event-visual { width: 96px; margin-left: 10px; }
  .console-day-pane .day-actions { grid-template-columns: 1fr; }
  .hotel-gallery { grid-auto-flow: column; grid-auto-columns: minmax(82%, 330px); grid-template-columns: none; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; }
  .hotel-card { min-height: 270px; scroll-snap-align: start; }
  .hotel-card:first-child { grid-column: auto; }
  .reference-grid { grid-template-columns: 1fr; }
  .reference-card { padding: 14px; }
  .reference-card-image { margin: -14px -14px 12px; }
  .reference-card-image img { height: 148px; }
  .reference-desc { min-height: 0; }
  .reference-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .reference-meta span { text-align: left; }
  .utility-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(72%, 290px); grid-template-columns: none; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; }
  .utility-card { min-height: 140px; scroll-snap-align: start; }
}
