/* ==========================================================
   Vietnam 2026 — shared styles
   ========================================================== */

:root {
  --cream: #faf6ef;
  --sand: #f1e8d9;
  --sand-deep: #e6d8c0;
  --ink: #1d2a2a;
  --ink-soft: #4a5857;
  --muted: #7d8786;
  --lacquer: #b8322a;
  --lacquer-deep: #8e231d;
  --jade: #1f6f64;
  --jade-deep: #154f47;
  --jade-soft: #dcebe6;
  --gold: #d9a441;
  --gold-soft: #f6e7c6;
  --sea: #2b8aa0;
  --line: rgba(29, 42, 42, 0.12);
  --shadow: 0 1px 2px rgba(29, 42, 42, 0.05), 0 8px 24px rgba(29, 42, 42, 0.07);
  --radius: 18px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--jade); text-underline-offset: 3px; }
a:hover { color: var(--lacquer); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lacquer);
  margin-bottom: 0.8em;
  display: inline-block;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 680px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--lacquer);
  display: grid; place-items: center;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand small {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 4px;
}

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .brand small { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #10333a;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art svg { width: 100%; height: 100%; }
.hero-content {
  position: relative;
  padding-top: clamp(90px, 14vw, 170px);
  padding-bottom: clamp(120px, 16vw, 200px);
}
.hero h1 { color: #fff; max-width: 820px; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero h1 em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.2rem; max-width: 600px; }

.hero-small .hero-content { padding-top: 80px; padding-bottom: 110px; }
.hero-small h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.countdown {
  display: inline-flex;
  gap: 10px;
  margin-top: 1.6em;
  flex-wrap: wrap;
}
.countdown .unit {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 10px 16px;
  min-width: 82px;
  text-align: center;
}
.countdown .num {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
}
.countdown .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-sand { background: var(--sand); }
.section-head { margin-bottom: 40px; }

.grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--line);
}
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Stats strip ---------- */

.stats {
  margin-top: -64px;
  position: relative;
  z-index: 5;
}
.stats .grid { gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .big { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--jade); }
.stat .small { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }
@media (max-width: 900px) {
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- Destination cards ---------- */

.dest {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.dest-art { aspect-ratio: 16 / 9; }
.dest-art svg { width: 100%; height: 100%; }
.dest-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.dest-body .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.6em; }
.dest-body .btn { margin-top: auto; align-self: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { background: var(--lacquer); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold-soft); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); }

/* ---------- Route strip ---------- */

.route {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  padding: 10px 0;
  overflow-x: auto;
}
.route::before {
  content: "";
  position: absolute;
  top: 31px; left: 30px; right: 30px;
  border-top: 2px dashed var(--sand-deep);
}
.route-stop { position: relative; text-align: center; min-width: 96px; flex: 1; }
.route-stop .dot {
  width: 44px; height: 44px; margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--sand-deep);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.75rem; color: var(--ink-soft);
}
.route-stop.stay .dot { background: var(--jade); border-color: var(--jade); color: #fff; width: 52px; height: 52px; margin-top: -4px; }
.route-stop .code { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; }
.route-stop .city { font-size: 0.82rem; color: var(--muted); line-height: 1.3; }

/* ---------- Itinerary ---------- */

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-soft); margin-top: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legend .l-booked { background: var(--lacquer); }
.legend .l-idea { background: var(--jade); }
.hero .legend i { box-shadow: 0 0 0 2px rgba(255,255,255,0.85); }
.hero .legend .l-idea { background: #3fb39f; }
.legend .l-free { background: transparent; border: 2px dashed var(--gold); }

.chapter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 26px;
}
.chapter:first-child { margin-top: 0; }
.chapter .pill {
  background: var(--jade);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.chapter h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.chapter .rule { flex: 1; border-top: 1px solid var(--line); }
.chapter.travel .pill { background: var(--lacquer); }
.chapter.island .pill { background: var(--sea); }

.day {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.day:last-child { border-bottom: 0; }
.day-date { position: sticky; top: 92px; align-self: start; }
.day-date .dow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.day-date .dnum { font-family: var(--serif); font-size: 3.2rem; line-height: 1; font-weight: 600; }
.day-date .mon { font-size: 0.9rem; color: var(--ink-soft); }
.day-date .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5713;
}
.day-body h3 { font-size: 1.55rem; margin-bottom: 0.25em; }
.day-body .sub { color: var(--ink-soft); margin-bottom: 1.1em; }

.slots { display: grid; gap: 10px; }
.slot {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--jade);
}
.slot .when { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.slot .what strong { display: block; font-weight: 600; }
.slot .what span { color: var(--ink-soft); font-size: 0.95rem; }
.slot.booked { border-left-color: var(--lacquer); background: #fffaf9; }
.slot.free {
  border: 2px dashed var(--gold);
  border-left: 2px dashed var(--gold);
  background: transparent;
}
.slot.free .what strong { color: #8a6418; }
.slot .alt { margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.slot .alt b { color: var(--ink); }

.note {
  margin-top: 14px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  background: var(--jade-soft);
  border-radius: 12px;
  padding: 12px 16px;
}
.note b { color: var(--jade-deep); }
.note.warm { background: var(--gold-soft); }
.note.warm b { color: #7a5713; }

@media (max-width: 720px) {
  .day { grid-template-columns: 1fr; gap: 14px; }
  .day-date { position: static; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .day-date .dnum { font-size: 2.2rem; }
  .day-date .tag { margin-top: 0; }
  .slot { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Flights ---------- */

.leg-group { margin-bottom: 48px; }
.leg-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.leg-group-head h3 { font-size: 1.6rem; margin: 0; }
.leg-group-head .date { color: var(--muted); font-weight: 500; }

.flight {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.flight .end .time { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1; }
.flight .end .ap { font-weight: 700; letter-spacing: 0.06em; margin-top: 6px; }
.flight .end .city { color: var(--muted); font-size: 0.9rem; }
.flight .end .d { color: var(--lacquer); font-size: 0.82rem; font-weight: 600; }
.flight .end.arr { text-align: right; }
.flight .mid { text-align: center; min-width: 170px; }
.flight .mid .no { font-weight: 700; font-size: 0.95rem; }
.flight .mid .airline { color: var(--muted); font-size: 0.85rem; }
.flight .mid .line {
  display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--jade);
}
.flight .mid .line::before, .flight .mid .line::after { content: ""; flex: 1; border-top: 2px dotted var(--sand-deep); }
.flight .mid .dur { font-size: 0.85rem; color: var(--ink-soft); }

.layover {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 0 10px 28px;
  padding: 10px 0 10px 22px;
  border-left: 2px dashed var(--sand-deep);
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.layover b { color: var(--ink); }

@media (max-width: 640px) {
  .flight { grid-template-columns: 1fr 1fr; padding: 20px; align-items: start; }
  .flight .mid { grid-column: 1 / -1; order: 3; min-width: 0; }
  .flight .end .time { font-size: 1.7rem; }
}

/* ---------- Hotels ---------- */

.hotel { display: grid; grid-template-columns: 300px 1fr; overflow: hidden; padding: 0; }
.hotel-art { min-height: 260px; }
.hotel-art svg { width: 100%; height: 100%; }
.hotel-body { padding: 32px; }
.hotel-body .dates { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0 20px; }
.hotel-body .dates div { font-size: 0.9rem; color: var(--muted); }
.hotel-body .dates b { display: block; color: var(--ink); font-size: 1.05rem; }
.hotel-body ul { padding-left: 1.2em; margin: 0 0 20px; color: var(--ink-soft); }
.hotel-body li { margin-bottom: 4px; }
@media (max-width: 760px) {
  .hotel { grid-template-columns: minmax(0, 1fr); }
  .hotel > * { min-width: 0; }
  .hotel-art { min-height: 0; height: 180px; }
}

/* ---------- Explore ---------- */

.idea { display: flex; flex-direction: column; }
.idea .icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--jade-soft); color: var(--jade);
  margin-bottom: 16px;
}
.idea .icon svg { width: 24px; height: 24px; }
.idea.red .icon { background: #f7e1de; color: var(--lacquer); }
.idea.gold .icon { background: var(--gold-soft); color: #9a6c12; }
.idea.sea .icon { background: #dcefF3; color: var(--sea); }
.idea .facts { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
}
.chip.wish { background: var(--lacquer); color: #fff; }

/* ---------- Tips list ---------- */

.tips { display: grid; gap: 14px; }
.tip { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.tip .n {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
}
.tip h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 6px 0 2px; }
.tip p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Quote / callout ---------- */

.callout {
  background: var(--ink);
  color: var(--cream);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.callout h2 { color: var(--cream); }
.callout p { color: rgba(250, 246, 239, 0.8); }
.callout .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .callout { grid-template-columns: 1fr; }
  .callout .actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(250, 246, 239, 0.7);
  padding: 48px 0;
  font-size: 0.92rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--gold-soft); }
.site-footer .names { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); }

/* ---------- Utilities ---------- */

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
