:root {
  --ink: #18332e;
  --ink-deep: #102923;
  --forest: #153f36;
  --forest-light: #245b4f;
  --paper: #f7f3e9;
  --surface: #fffdf8;
  --surface-soft: #eee9dc;
  --line: #d8d1c1;
  --muted: #64706c;
  --orange: #e7673d;
  --orange-dark: #be4725;
  --yellow: #f4c84b;
  --blue: #6c9ca1;
  --shadow: 0 24px 70px rgba(18, 46, 39, .13);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 1160px;
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
}

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-deep);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 36px), var(--content));
  min-height: 82px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  grid-area: 1 / 1;
  content: "";
  width: 5px;
  height: 14px;
  border-radius: 999px 999px 2px 2px;
  background: var(--yellow);
  transform-origin: 50% 15px;
}

.brand-mark::before { transform: rotate(-38deg); }
.brand-mark::after { transform: rotate(38deg); }
.brand-mark span { transform: translateY(-3px); }

.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 17px; letter-spacing: -.03em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }

.guide-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.guide-link svg { width: 18px; transition: transform .18s ease; }
.guide-link:hover svg { transform: translateX(3px); }

.page-shell {
  width: min(calc(100% - 36px), var(--content));
  margin: 14px auto 64px;
}

.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, .55fr);
  gap: 50px;
  align-items: center;
  min-height: 480px;
  padding: 64px 72px;
  overflow: hidden;
  border-radius: 36px;
  background: var(--forest);
  color: #fffdf7;
  box-shadow: var(--shadow);
}

.intro::before {
  position: absolute;
  z-index: -1;
  top: -135px;
  right: 110px;
  width: 350px;
  height: 350px;
  border: 74px solid rgba(244, 200, 75, .11);
  border-radius: 50%;
  content: "";
}

.intro::after {
  position: absolute;
  z-index: -1;
  right: -130px;
  bottom: -170px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 50px rgba(255,255,255,.035), 0 0 0 100px rgba(255,255,255,.025);
}

.eyebrow,
.step-label,
.result-kicker,
.card-eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.intro .eyebrow { color: var(--yellow); }

.intro h1 {
  max-width: 690px;
  margin: 0;
  font-family: "Leelawadee UI", Tahoma, sans-serif;
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

.intro h1 span { color: var(--yellow); }

.intro-lede {
  max-width: 650px;
  margin: 26px 0 30px;
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-points li { display: flex; gap: 9px; align-items: center; font-size: 14px; font-weight: 650; }
.intro-points span { color: var(--yellow); font-family: Arial, sans-serif; font-size: 10px; letter-spacing: .1em; }

.day-ticket {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 305px;
  padding: 32px 22px 26px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 24px;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.035);
  text-align: center;
}

.day-ticket::before,
.day-ticket::after {
  position: absolute;
  top: 67%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest);
  content: "";
}

.day-ticket::before { left: -12px; }
.day-ticket::after { right: -12px; }
.ticket-label { align-self: start; font-family: Arial, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.day-ticket strong { align-self: end; color: var(--yellow); font-family: Arial, sans-serif; font-size: 130px; line-height: .78; }
.ticket-day { color: rgba(255,255,255,.86); font-family: Arial, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: .3em; text-indent: .3em; }
.ticket-note { align-self: end; width: 100%; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.35); color: rgba(255,255,255,.7); font-size: 12px; }

.builder-card,
.result-shell {
  margin-top: 28px;
  padding: 56px 62px;
  border: 1px solid rgba(37,67,59,.12);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 50px rgba(23, 52, 45, .08);
}

.section-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; align-items: end; margin-bottom: 34px; }
.section-heading .step-label { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.1; }
.section-heading > p:last-child { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.65; }

.planner-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.form-row { min-width: 0; }
.form-row.wide { grid-column: 1 / -1; }

.field-label,
.choice-fieldset legend {
  display: block;
  margin: 0 0 9px;
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 750;
}

.choice-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  min-height: 54px;
  appearance: none;
  padding: 0 46px 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.select-wrap svg { position: absolute; top: 17px; right: 15px; width: 20px; pointer-events: none; color: var(--forest-light); }
.select-wrap select:focus { border-color: var(--forest-light); box-shadow: 0 0 0 4px rgba(36,91,79,.13); }

.choice-grid { display: grid; gap: 10px; }
.interest-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choice-grid label { position: relative; min-width: 0; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid label > span {
  display: grid;
  min-height: 94px;
  align-content: center;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.choice-grid b { font-size: 15px; }
.choice-grid small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.choice-grid input:checked + span { border-color: var(--forest); background: #edf3ef; box-shadow: inset 0 0 0 1px var(--forest); }
.choice-grid input:checked + span::after { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); content: ""; }
.choice-grid input:focus-visible + span { outline: 3px solid rgba(231,103,61,.28); outline-offset: 2px; }
.choice-grid label:hover > span { transform: translateY(-2px); }

.city-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.city-choice-grid label { position: relative; min-width: 0; cursor: pointer; }
.city-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.city-choice-grid label > span {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.city-choice-grid img {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--surface-soft);
}
.city-choice-grid b { padding: 11px 0 12px 12px; font-size: 14px; }
.city-choice-grid small { align-self: center; padding: 11px 12px 12px 5px; color: var(--muted); font-family: Arial, sans-serif; font-size: 10px; }
.city-choice-grid input:checked + span { border-color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest), 0 8px 18px rgba(21,63,54,.12); }
.city-choice-grid input:checked + span::after { position: absolute; top: 9px; right: 9px; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px rgba(16,41,35,.25); content: ""; }
.city-choice-grid input:focus-visible + span { outline: 3px solid rgba(231,103,61,.3); outline-offset: 2px; }
.city-choice-grid label:hover > span { transform: translateY(-3px); }

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-submit p { margin: 0; color: var(--muted); font-size: 13px; }

.primary-button,
.secondary-button,
.maps-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

.primary-button {
  gap: 12px;
  padding: 0 25px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21,63,54,.18);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.primary-button svg { width: 20px; }
.primary-button:hover { background: var(--forest-light); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21,63,54,.2); }
.primary-button:focus-visible,
.secondary-button:focus-visible,
.maps-button:focus-visible,
.text-button:focus-visible { outline: 3px solid rgba(231,103,61,.35); outline-offset: 3px; }

.result-shell { scroll-margin-top: 20px; }
.result-visual {
  position: relative;
  margin: -30px -36px 42px;
  overflow: hidden;
  border-radius: 21px;
  background: var(--forest);
  box-shadow: 0 18px 40px rgba(18,46,39,.14);
}
.result-visual img { display: block; width: 100%; height: min(48vw, 540px); min-height: 360px; object-fit: cover; }
.result-visual figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  min-width: 220px;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 13px;
  background: rgba(255,253,248,.94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(16,41,35,.18);
}
.result-visual figcaption span { color: var(--orange-dark); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.result-visual figcaption strong { margin-top: 2px; font-size: 16px; }
.result-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); gap: 30px; align-items: end; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.result-hero h2 { max-width: 690px; margin: 0; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.055em; line-height: 1.06; }
.result-hero h2:focus-visible { outline: 3px solid rgba(231, 103, 61, .42); outline-offset: 6px; border-radius: 5px; }
.result-hero > div > p:last-child { max-width: 690px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }

.result-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.result-stats div { min-height: 82px; padding: 14px 16px; background: var(--paper); }
.result-stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.result-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
.result-stats dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.result-stats dd { margin: 5px 0 0; font-family: Arial, sans-serif; font-size: 18px; font-weight: 800; }

.result-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 44px; margin-top: 42px; }
.timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 28px; bottom: 28px; left: 54px; width: 1px; background: var(--line); content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 18px; min-height: 135px; padding-bottom: 26px; }
.timeline-time { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; color: var(--forest); font-family: Arial, sans-serif; font-size: 13px; font-weight: 800; }
.timeline-time::after { width: 11px; height: 11px; margin-top: 12px; border: 4px solid var(--surface); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px var(--orange); content: ""; }
.stop-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.stop-index { display: flex; gap: 8px; align-items: center; margin: 0 0 7px; color: var(--orange); font-family: Arial, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.stop-kind { padding: 3px 7px; border-radius: 999px; background: #e9f0ec; color: var(--forest); font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; font-size: 9px; letter-spacing: 0; }
.stop-kind[data-kind="meal"] { background: #fff0cf; color: #8a4a19; }
.stop-kind[data-kind="evening"] { background: #e5ebf2; color: #395b70; }
.stop-card h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.stop-japanese { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.stop-description { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.stop-meta { display: grid; justify-items: end; align-content: start; gap: 5px; min-width: 80px; color: var(--muted); font-size: 12px; }
.stop-meta strong { color: var(--ink); font-family: Arial, sans-serif; font-size: 14px; }
.travel-leg { display: flex; gap: 7px; align-items: center; margin: 9px 0 0 100px; color: var(--muted); font-size: 12px; }
.travel-leg svg { width: 15px; }
.flex-leg { display: grid; gap: 2px; margin: 10px 0 14px 100px; padding: 12px 14px; border-left: 3px solid var(--yellow); background: #faf4dc; }
.flex-leg strong { color: var(--ink); font-size: 12px; }
.flex-leg span { color: var(--muted); font-size: 11px; line-height: 1.5; }

.plan-sidebar { display: grid; gap: 16px; align-content: start; }
.route-card,
.plan-note { padding: 25px; border-radius: 20px; }
.route-card { background: var(--forest); color: #fff; }
.route-card .card-eyebrow { color: var(--yellow); }
.route-card h3 { margin: 0 0 20px; font-size: 23px; }
.route-flow { display: grid; gap: 10px; }
.route-node { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; color: rgba(255,255,255,.78); font-size: 13px; }
.route-node span:first-child { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--yellow); font-family: Arial, sans-serif; font-size: 10px; font-weight: 800; }
.maps-button { gap: 8px; width: 100%; margin-top: 23px; padding: 0 15px; border: 1px solid rgba(255,255,255,.28); background: #fff; color: var(--forest); font-size: 13px; }
.maps-button svg { width: 17px; }
.plan-note { border: 1px solid #dfc777; background: #fff8dc; }
.plan-note h3 { margin: 0 0 8px; font-size: 16px; }
.plan-note p { margin: 0; color: #665d3f; font-size: 13px; line-height: 1.65; }
.plan-note .source-link { margin-top: 10px; }
.plan-note .rate-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(102,93,63,.2); font-size: 11px; }
.plan-note a { color: var(--forest); font-weight: 750; text-underline-offset: 3px; }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.secondary-button { padding: 0 22px; border: 1px solid var(--forest); background: transparent; color: var(--forest); }
.text-button { min-height: 44px; padding: 0 15px; border: 0; background: transparent; color: var(--muted); }
.action-status { flex-basis: 100%; min-height: 22px; margin: 3px 0 0; color: var(--forest-light); font-size: 13px; font-weight: 700; }

.method-note { display: grid; grid-template-columns: 180px 1fr; gap: 24px; margin-top: 24px; padding: 24px 28px; border: 1px solid rgba(37,67,59,.13); border-radius: var(--radius-md); background: rgba(255,253,248,.82); }
.method-note strong { color: var(--orange-dark); font-size: 14px; }
.method-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(calc(100% - 36px), var(--content));
  margin: 0 auto;
  padding: 32px 0 45px;
  border-top: 1px solid rgba(37,67,59,.18);
}
.site-footer div { display: grid; gap: 3px; }
.site-footer span { color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; gap: 22px; align-items: center; }
.site-footer a { color: var(--muted); font-size: 13px; text-decoration: none; }
.noscript-note { margin: 15px; padding: 16px; background: #fff; text-align: center; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; min-height: auto; padding: 54px; }
  .day-ticket { display: none; }
  .planner-form { grid-template-columns: 1fr 1fr; }
  .interest-grid { grid-template-columns: repeat(3, 1fr); }
  .city-choice-grid { grid-template-columns: repeat(3, 1fr); }
  .result-hero { grid-template-columns: 1fr; }
  .result-layout { grid-template-columns: 1fr; }
  .plan-sidebar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { background-size: 32px 32px; }
  .site-bar { width: min(calc(100% - 28px), var(--content)); min-height: 68px; }
  .guide-link { font-size: 0; }
  .guide-link svg { width: 24px; }
  .page-shell { width: min(calc(100% - 20px), var(--content)); margin-top: 4px; }
  .intro { padding: 38px 24px 40px; border-radius: 24px; }
  .intro h1 { font-size: clamp(43px, 14vw, 60px); }
  .intro-lede { margin: 20px 0 24px; font-size: 16px; }
  .intro-points { display: grid; gap: 8px; }
  .builder-card,
  .result-shell { margin-top: 16px; padding: 30px 18px; border-radius: 22px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading h2 { margin-bottom: 10px; }
  .section-heading > p:last-child { font-size: 14px; }
  .planner-form { grid-template-columns: 1fr; gap: 18px; }
  .form-row.wide,
  .form-submit { grid-column: auto; }
  .interest-grid { grid-template-columns: 1fr 1fr; }
  .city-choice-grid { display: flex; gap: 10px; overflow-x: auto; margin-right: -18px; padding: 2px 18px 12px 2px; scroll-snap-type: x mandatory; }
  .city-choice-grid label { flex: 0 0 152px; scroll-snap-align: start; }
  .choice-grid label > span { min-height: 88px; padding: 12px; }
  .choice-grid b { font-size: 14px; }
  .interest-grid label:first-child { grid-column: 1 / -1; }
  .form-submit { display: grid; }
  .form-submit .primary-button { width: 100%; }
  .result-hero { gap: 24px; padding-bottom: 26px; }
  .result-visual { margin: -16px -7px 28px; border-radius: 16px; }
  .result-visual img { height: 260px; min-height: 0; }
  .result-visual figcaption { right: 10px; bottom: 10px; min-width: 185px; padding: 10px 12px; }
  .result-hero h2 { font-size: 37px; }
  .result-hero > div > p:last-child { font-size: 15px; }
  .result-layout { gap: 20px; margin-top: 28px; }
  .timeline::before { left: 38px; }
  .timeline-item { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .stop-card { display: block; padding: 17px; }
  .stop-card h3 { font-size: 18px; }
  .stop-meta { display: flex; justify-content: flex-start; margin-top: 12px; }
  .travel-leg { margin-left: 68px; }
  .flex-leg { margin-left: 68px; }
  .plan-sidebar { grid-template-columns: 1fr; }
  .result-actions { display: grid; }
  .result-actions > button { width: 100%; }
  .method-note { display: block; padding: 20px; }
  .method-note p { margin-top: 7px; }
  .site-footer { display: grid; gap: 22px; width: min(calc(100% - 28px), var(--content)); }
}

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