:root {
  --bg: #f6f0e6;
  --bg-2: #fffaf4;
  --ink: #143840;
  --ink-soft: #47636a;
  --line: rgba(20, 56, 64, 0.12);
  --card: rgba(255, 250, 244, 0.9);
  --teal: #194b52;
  --terracotta: #b8654c;
  --gold: #b79152;
  --shadow: 0 18px 40px rgba(15, 36, 40, 0.08);
  --radius: 22px;
  --radius-sm: 16px;
  --content: min(100%, 1040px);
  --tab-height: 58px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184,145,82,.18), transparent 32%),
    linear-gradient(180deg, #f5eee3 0%, #fbf7f1 18%, #fffdf9 100%);
}
a { color: var(--teal); }
img { display: block; width: 100%; height: auto; border-radius: 18px; }
.site-shell img { background: linear-gradient(180deg, rgba(20,56,64,.06), rgba(184,101,76,.05)); }
.site-shell { width: var(--content); margin: 0 auto; padding: 18px 16px 56px; }
.site-header { padding: 10px 2px 20px; }
.topline {
  margin: 0 0 8px;
  color: var(--terracotta);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  letter-spacing: -0.02em;
}
h1 {
  margin: 0;
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  line-height: 0.96;
}
.intro { margin: 10px 0 0; max-width: 42rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.day-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0 0 14px;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(251,247,241,.96), rgba(251,247,241,.82));
}
.tab-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 2px;
  scrollbar-width: none;
}
.tab-strip::-webkit-scrollbar { display: none; }
.tab-button {
  min-height: 52px;
  min-width: 88px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  color: var(--ink);
  border-radius: 18px;
  padding: 10px 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 36, 40, 0.04);
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.tab-button:hover { transform: translateY(-1px); }
.tab-button:focus-visible {
  outline: 3px solid rgba(25,75,82,.28);
  outline-offset: 2px;
}
.tab-button[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(25,75,82,.97), rgba(22,63,69,.97));
  color: #fffaf2;
  border-color: rgba(25,75,82,.7);
  box-shadow: 0 14px 28px rgba(25,75,82,.22);
}
.tab-label { font-weight: 700; font-size: .95rem; }
.tab-sub { font-size: .76rem; opacity: .78; }
@media (max-width: 759px) {
  .tab-button { min-width: 78px; padding: 10px 13px; }
  .tab-sub { display: none; }
}
main { padding-top: 8px; }
.panel {
  animation: fadeIn .28s ease;
}
.panel[hidden] { display: none; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel-header { margin-bottom: 16px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--terracotta);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h2 { margin: 0; font-size: clamp(1.82rem, 6.5vw, 3rem); line-height: 1.08; max-width: 18ch; text-wrap: balance; }
.summary { margin: 10px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.62; max-width: 42rem; }
.cover-card,
.info-card,
.list-card,
.timeline-card,
.utility-card,
.source-card,
.stay-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cover-card {
  overflow: hidden;
  display: grid;
  gap: 16px;
}
.cover-copy { padding: 22px 20px 0; }
.cover-image { padding: 0 0 0; }
.cover-image img { border-radius: 0; aspect-ratio: 16 / 11; min-height: 0; object-fit: cover; object-position: center 54%; }
.hero-figure, .support-figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; background: #102f34; }
.hero-figure img {
  aspect-ratio: 16 / 10;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
}
.hero-figure figcaption, .support-figure figcaption { position: absolute; inset: auto 0 0; padding: 28px 14px 12px; color: white; font-size: .82rem; font-weight: 750; line-height: 1.35; background: linear-gradient(transparent, rgba(7,27,31,.88)); }
.hero-figure figcaption span, .support-figure figcaption span { display: block; max-width: 48ch; }
.img-day14_hero { object-position: center 42%; }
.img-day16_hero { object-position: center 38%; }
.img-food_hero { object-position: center 58%; }
.img-cover { object-position: center 62%; }
.route-strip {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.route-strip::-webkit-scrollbar { display: none; }
.route-strip span {
  flex: 0 0 auto;
  position: relative;
  background: rgba(25,75,82,.045);
  color: var(--ink);
  border: 1px solid rgba(25,75,82,.07);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: .88rem;
  white-space: nowrap;
}
.route-strip span:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
}
.highlight-list, .chip-row, .credit-list, .info-card ul, .list-card ul {
  margin: 0;
  padding-left: 18px;
}
.highlight-list { margin-top: 14px; display: grid; gap: 10px; }
.chip-row {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-row li {
  border-radius: 12px;
  padding: 7px 10px;
  background: rgba(184,101,76,.12);
  color: var(--terracotta);
  font-size: .78rem;
  font-weight: 700;
}
.support-grid,
.info-grid,
.list-grid,
.source-grid,
.utility-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.support-figure {
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 0;
  border: 0;
}
.support-figure img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.section-label { margin: 0 0 12px; color: var(--terracotta); font-size: .76rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.run-sheet { margin-top: 28px; }
.photo-story, .free-time { margin-top: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,250,244,.84); box-shadow: 0 12px 28px rgba(15,36,40,.05); overflow: hidden; }
.photo-story summary, .free-time summary { min-height: 56px; padding: 15px 17px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 850; list-style: none; }
.photo-story summary::-webkit-details-marker, .free-time summary::-webkit-details-marker { display: none; }
.photo-story summary::after, .free-time summary::after { content: '+'; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: white; }
.photo-story[open] summary::after, .free-time[open] summary::after { content: '−'; }
.photo-story summary small, .free-time summary small { color: var(--ink-soft); font-size: .73rem; font-weight: 650; }
.photo-story .support-grid { padding: 0 14px 14px; margin-top: 0; }
.free-time ul { margin: 0; padding: 0 22px 18px 36px; display: grid; gap: 10px; color: var(--ink-soft); line-height: 1.55; }
.field-notes { margin-top: 28px; }
.info-card, .list-card, .utility-card, .source-card, .timeline-card, .stay-card { padding: 18px; }
.utility-card, .source-card { box-shadow: 0 10px 24px rgba(15,36,40,.05); }
.info-card h3, .list-card h3, .source-card h3, .timeline-card h3, .utility-card h4, .stay-card h3 { margin: 0 0 10px; font-size: 1.18rem; }
.stay-section { margin-top: 28px; }
.section-kicker, .stay-city { margin: 0 0 7px; color: var(--terracotta); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.section-title { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.5rem); }
.stay-intro { max-width: 62ch; color: var(--ink-soft); line-height: 1.6; }
.stay-grid { display: grid; gap: 12px; }
.stay-card address { min-height: 3.2em; color: var(--ink-soft); font-style: normal; line-height: 1.55; }
.stay-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.action-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--teal); border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; text-decoration: none; }
.action-button.secondary { background: transparent; color: var(--teal); }
.action-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.info-card p, .timeline-card p, .utility-card p, .source-card p, .info-card li, .list-card li {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}
.list-card ul, .info-card ul { display: grid; gap: 10px; }
.timeline { display: grid; gap: 0; margin-top: 0; counter-reset: guide-step; }
.timeline-card { position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 0; padding: 0 0 24px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.timeline-card::before { counter-increment: guide-step; content: counter(guide-step, decimal-leading-zero); position: relative; z-index: 1; grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-weight: 850; font-size: .8rem; letter-spacing: .04em; }
.timeline-card:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--gold), rgba(183,145,82,.18)); }
.timeline-card > .slot { grid-column: 2; grid-row: 1; }
.timeline-copy { grid-column: 2; grid-row: 2; min-width: 0; padding: 3px 0 0; }
.timeline-copy h3 { margin-bottom: 7px; }
.slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}
.slot::before {
  content: '✦';
  color: var(--gold);
}
.utility-grid { gap: 12px; }
.utility-do { border-top: 4px solid var(--gold); }
.utility-eat { border-top: 4px solid var(--terracotta); }
.utility-carry { border-top: 4px solid #5e8390; }
.utility-backup { border: 1px solid rgba(184,101,76,.32); border-left: 5px solid var(--terracotta); background: #fff7ef; }
.utility-backup h4 { color: var(--terracotta); }
.credit-list { display: grid; gap: 10px; }
#practical .info-grid, #sources .info-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .site-shell { padding: 24px 24px 72px; }
  .cover-card { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .cover-copy { padding: 34px 30px; }
  .cover-image img { min-height: 100%; height: 100%; aspect-ratio: auto; }
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr; }
  .timeline-card { grid-template-columns: 62px minmax(0,1fr); max-width: 880px; }
  .timeline-card::before { width: 50px; height: 50px; }
  .timeline-card:not(:last-child)::after { left: 24px; top: 50px; }
  .hero-figure img { min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tab-button, .panel { transition: none !important; animation: none !important; }
}


/* Magazine edition: premium editorial rhythm with phone-first restraint. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
.site-header { border-bottom: 1px solid var(--line); }
.site-header h1 { max-width: 14ch; }
.panel-header h2::first-letter,
.cover-copy h2::first-letter { color: var(--terracotta); }
.cover-card { position: relative; background: #123e44; color: #fffaf2; }
.cover-image { position: relative; min-height: 310px; }
.cover-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8,31,35,.76));
}
.cover-image img { height: 100%; min-height: 310px; object-fit: cover; }
.cover-stamp {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #fff9ee;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.cover-copy { padding: 24px 20px 26px; }
.cover-copy .eyebrow { color: #e7bc79; }
.cover-copy .summary { color: rgba(255,250,242,.78); }
.cover-copy h2 { font-size: clamp(2.16rem, 10vw, 4.4rem); line-height: .96; max-width: 13ch; }
.cover-copy .highlight-list { padding-left: 0; list-style: none; counter-reset: issue; }
.cover-copy .highlight-list li { position: relative; padding: 12px 0 0 42px; border-top: 1px solid rgba(255,255,255,.14); line-height: 1.45; }
.cover-copy .highlight-list li::before { counter-increment: issue; content: "0" counter(issue); position: absolute; left: 0; color: #e7bc79; font: 700 .72rem ui-sans-serif, sans-serif; letter-spacing: .1em; }
.journey-index { margin-top: 22px; padding: 18px 0 6px; border-top: 1px solid var(--line-strong, rgba(20,56,64,.18)); border-bottom: 1px solid var(--line); }
.section-kicker { margin: 0; color: var(--terracotta); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.journey-index .route-strip { margin-top: 10px; }
.overview-stories .support-figure { position: relative; overflow: hidden; }
.overview-stories .support-figure:first-child::after { content: "Hạ Long · water & limestone"; }
.overview-stories .support-figure:last-child::after { content: "Bà Nà · above the cloud line"; }
.overview-stories .support-figure::after { position: absolute; left: 13px; bottom: 12px; padding: 7px 9px; color: white; background: rgba(12,42,47,.78); backdrop-filter: blur(8px); border-radius: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.day-panel .hero-figure { position: relative; }
.day-panel .hero-figure::after { content: "The day in one frame"; position: absolute; left: 12px; bottom: 12px; padding: 7px 9px; border-radius: 8px; background: rgba(12,42,47,.78); color: white; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.day-panel .support-grid .support-figure:first-child { transform: translateY(0); }
.timeline-card:nth-child(2) { background: linear-gradient(155deg, rgba(255,252,248,.98), rgba(183,145,82,.09)); }
.utility-card:first-child { border-top: 3px solid var(--gold); }
.utility-card:first-child h4 { color: var(--terracotta); }

@media (max-width: 759px) {
  .site-shell { padding: 12px 12px 52px; }
  .site-header { padding: 8px 2px 13px; }
  .site-header h1 { font-size: clamp(2rem, 10vw, 2.8rem); line-height: .94; }
  .intro { font-size: .9rem; line-height: 1.4; }
  .day-nav { margin-inline: -12px; padding-inline: 12px; }
  .overview-panel .support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .overview-stories img { aspect-ratio: 4 / 5; }
  .overview-stories .support-figure::after { content: none !important; }
  .cover-card { gap: 0; border-radius: 18px; }
  .cover-image, .cover-image img { min-height: 285px; }
  .cover-image img { aspect-ratio: 4 / 5; object-position: center 58%; }
  .cover-copy h2 { font-size: clamp(2.1rem, 9.6vw, 2.8rem); max-width: 11ch; }
  .cover-copy .summary { font-size: .94rem; line-height: 1.5; }
  .cover-copy .highlight-list { gap: 0; }
  .cover-copy .highlight-list li { font-size: .9rem; }
  .cover-copy .highlight-list li:nth-child(2) { display: none; }
  .journey-index .route-strip { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; gap: 7px; }
  .journey-index .route-strip span { min-width: 0; white-space: normal; padding: 8px 9px; border-radius: 9px; font-size: .76rem; line-height: 1.25; }
  .journey-index .route-strip span::after { display: none; }
  .overview-panel .info-grid { gap: 10px; margin-top: 14px; }
  .overview-panel .info-card { padding: 15px; border-radius: 16px; box-shadow: 0 8px 18px rgba(15,36,40,.05); }
  .overview-panel .info-card h3 { font-size: 1.08rem; }
  .overview-panel .info-card p { font-size: .91rem; line-height: 1.5; }
  .day-panel .support-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .day-panel .support-grid img { aspect-ratio: 4 / 5; }
  .panel-header h2 { max-width: 14ch; }
}

.weather-bar { margin-top: 14px; padding: 11px 13px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; border: 1px solid rgba(25,75,82,.12); border-radius: 14px; background: rgba(25,75,82,.06); }
.free-time { margin-top: 16px; border: 1px solid rgba(25,75,82,.14); border-radius: 16px; background: rgba(255,255,255,.72); box-shadow: 0 8px 20px rgba(15,36,40,.04); }
.free-time summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--teal); cursor: pointer; font-weight: 800; }
.free-time summary small { color: var(--ink-soft); font-size: .72rem; font-weight: 600; }
.free-time ul { margin: 0; padding: 0 22px 16px 34px; color: var(--ink-soft); line-height: 1.6; }
.free-time li + li { margin-top: 8px; }
.free-time summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.weather-place { font-weight: 800; color: var(--teal); }
.weather-reading { text-align: right; font-weight: 700; }
.weather-note { grid-column: 1 / -1; color: var(--ink-soft); font-size: .72rem; }
.phrase-grid { display: grid; gap: 12px; margin-top: 18px; }
.phrase-card, .translator-card, .language-note { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-soft, 0 10px 24px rgba(15,36,40,.05)); }
.language-note { margin-top: 14px; line-height: 1.55; color: var(--ink-soft); }
.phrase-en, .phrase-say { margin: 0; color: var(--ink-soft); }
.phrase-local { margin: 7px 0; font: 700 1.3rem/1.3 Georgia, serif; color: var(--ink); }
.phrase-say { font-size: .83rem; }
.phrase-actions { display: flex; gap: 8px; margin-top: 12px; }
.phrase-actions button, .translate-link { min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--teal); font-weight: 800; cursor: pointer; text-decoration: none; }
.translator-card { margin-top: 18px; }
.translator-card h3 { margin: 8px 0; }
.translator-card label { display: block; margin-top: 14px; font-weight: 800; }
.translator-card textarea { width: 100%; margin: 7px 0 10px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; font: inherit; resize: vertical; }
.translate-link { display: inline-flex; align-items: center; background: var(--teal); color: white; }

@media (min-width: 760px) {
  .cover-card { grid-template-columns: minmax(380px, .92fr) minmax(0, 1.08fr); }
  .cover-image { order: 0; }
  .cover-copy { order: 1; align-self: center; padding: 44px 40px; }
  .overview-panel .info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day-panel .support-grid { margin-top: 12px; padding-inline: 7%; }
  .day-panel .support-grid .support-figure:first-child { transform: translateY(-22px); }
  .day-panel .support-grid .support-figure:last-child { transform: translateY(18px); }
  .phrase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
