:root {
  --ink: #1a1a1a;
  --muted: #3a3a3a;
  --red: #9d2c2c;
  --paper: #fffdf8;
  --card: #ffffff;
  --line: #e4d8c8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Leelawadee UI", "Segoe UI", sans-serif;
  font-size: 28px;
  line-height: 1.55;
  background: var(--paper);
}

a { color: var(--red); }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  margin: 0;
  padding: 0 1vw 72px;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 3px solid #eadfce;
}

.tablist {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 4vw;
}

.tablist button {
  border: 3px solid #eadfce;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 22px;
  font: inherit;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  min-width: 140px;
}

.tablist button small {
  display: block;
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
  margin-top: 4px;
}

.tablist button.is-on {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.tablist button.is-on small { color: #ffe8e4; }

.panel { padding-top: 28px; }
.panel[hidden] { display: none !important; }

.day-head { text-align: center; margin-bottom: 28px; }

.kicker {
  color: var(--red);
  font-weight: 800;
  font-size: 28px;
  margin: 0 0 6px;
}

h2 {
  margin: 0 0 8px;
  font-size: 56px;
  line-height: 1.15;
  text-align: center;
}

.summary {
  margin: 0;
  text-align: center;
  font-size: 30px;
}

.notes {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
}

.note {
  background: #fff4d8;
  border: 3px solid #e2b15a;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.stay-card,
.travel-grid {
  margin: 0 0 22px;
}

.travel-grid { display: grid; gap: 14px; }

.stay-card { overflow: hidden; }

.stay-card img {
  float: right;
  width: 170px;
  height: 170px;
  margin: 0 0 10px 18px;
  object-fit: cover;
  border-radius: 14px;
}

.detail {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.detail li {
  margin: 6px 0;
  font-size: 26px;
}

.timeline { display: grid; gap: 36px; margin: 0; }

.section-title {
  margin: 8px 0 14px;
  font-size: 36px;
  text-align: center;
}

.stop {
  display: grid;
  grid-template-columns: 88px 210px 1fr 200px;
  align-items: stretch;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff1cc;
  color: #1a1a1a;
  font-size: 42px;
}

.stop time {
  background: #7c1f24;
  color: #fff;
  padding: 20px 16px;
  font-weight: 800;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stop.eat time { background: #8a5a22; }
.stop.go time { background: #2f4564; }
.stop.stay time { background: #3e5c45; }

.stop-body { padding: 18px 22px; align-self: center; }

.stop h3 { margin: 0 0 8px; font-size: 32px; line-height: 1.3; }
.stop p { margin: 0; font-size: 26px; }

.stop .thumb {
  width: 170px;
  height: 170px;
  margin: 15px;
  align-self: center;
  justify-self: center;
  object-fit: cover;
  border-radius: 14px;
}

.side { display: grid; gap: 16px; }

.card {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
}

.card h3 { margin: 0 0 10px; font-size: 32px; }
.card p, .card li { margin: 0 0 8px; font-size: 26px; }
.card ul { margin: 0; padding-left: 28px; }

.meta { color: var(--muted); font-size: 24px; }

.food-grid, .overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.food, .overview-grid a {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.overview-grid a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 22px 24px;
  text-align: center;
}

.overview-grid h3 { margin: 0; font-size: 36px; }
.overview-grid p { margin: 8px 0 0; font-size: 26px; }

.food img {
  float: right;
  width: 150px;
  height: 150px;
  margin: 18px 18px 10px 14px;
  object-fit: cover;
  border-radius: 14px;
}
.food-grid > img { height: 220px; width: 100%; object-fit: cover; border-radius: 18px; }
.food div { padding: 18px 20px 22px; }

.pick-note { text-align: center; margin: -6px 0 14px; }

.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.food h3 { margin: 0 0 6px; font-size: 32px; }
.food p { margin: 0 0 6px; font-size: 26px; }

.tag {
  display: inline-block;
  background: #f6e2c4;
  color: #6d4214;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.actions a {
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 16px;
  background: #f4e7d6;
  color: var(--red);
  font-size: 24px;
  font-weight: 800;
}

.route {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 24px;
}

.route span {
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  border: 3px solid var(--line);
  font-size: 26px;
  font-weight: 700;
}

footer {
  color: var(--muted);
  font-size: 20px;
  text-align: center;
  padding: 8px 4vw 36px;
}

@media (max-width: 980px) {
  body { font-size: 24px; }
  .tablist {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 10px 12px;
  }
  .tablist button {
    flex: 0 0 auto;
    min-width: 0;
    padding: 10px 14px;
    font-size: 20px;
  }
  .tablist button small { font-size: 15px; }
  .panel { padding-top: 18px; }
  h2 { font-size: 42px; }
  .food-grid, .overview-grid, .prep-grid { grid-template-columns: 1fr; }
  .stop { grid-template-columns: 56px 1fr 130px; }
  .step { grid-column: 1; grid-row: 1; font-size: 32px; }
  .stop time { grid-column: 2; grid-row: 1; padding: 14px; font-size: 26px; }
  .stop .thumb { grid-column: 3; grid-row: 1; width: 110px; height: 110px; margin: 10px; }
  .stop-body { grid-column: 1 / -1; grid-row: 2; }
  .food img { width: 110px; height: 110px; margin: 14px 14px 8px 10px; }
  .stay-card img { width: 110px; height: 110px; margin: 0 0 8px 12px; }
}
