:root {
  --ink: #1b1714;
  --ink-soft: #3f3832;
  --muted: #7a7268;
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --rule: #d7cfc0;
  --rust: #9a3d2c;
  --rust-deep: #6e281c;
  --forest: #2c4638;
  --white: #fffdf8;
  --map-blue: #1f5fbf;
  --shadow: 0 0 0 1px rgba(27, 23, 20, 0.06);
  --serif: "Fraunces", "Songti SC", "Noto Serif SC", serif;
  --sans: "Figtree", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}
button,
a {
  font-family: inherit;
}
button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(244, 239, 230, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  gap: 22px;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a:hover {
  color: var(--rust);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: end stretch;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 12, 0.42);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 8vw 10vh;
  color: var(--white);
  max-width: 920px;
}
.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
  color: #efe2cc;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08;
  margin: 0 0 14px;
}
.lede {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  color: #f0e6d6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
}
.stat:last-child {
  border-right: 0;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 520;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}

.map-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 82vh;
  min-height: 560px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.map-side {
  padding: 22px 16px 16px;
  background: var(--paper-2);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
@media (min-width: 901px) {
  body.panel-open .map-side {
    position: relative;
    z-index: 50;
  }
}
.map-side h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 520;
  margin: 0;
}
.day-jumps {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -8px;
  padding-right: 4px;
}
.day-jump {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 8px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.day-jump:hover {
  background: var(--paper);
}
.day-jump.on {
  border-left-color: var(--rust);
  background: var(--paper);
}
.day-jump .jump-num {
  grid-row: 1 / span 2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rust);
  padding-top: 2px;
}
.day-jump .jump-title {
  font-size: 13px;
  line-height: 1.3;
}
.day-jump .jump-eat {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
#map {
  min-height: 0;
  height: 100%;
  width: 100%;
}
.leaflet-container {
  background: #d5ddd0;
  font-family: var(--sans);
}
.pin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rust);
  color: #fff;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leaflet-div-icon.map-stop-icon,
.leaflet-marker-icon.map-stop-icon {
  background: transparent;
  border: 0;
  overflow: visible !important;
}
.map-stop {
  position: relative;
  display: block;
  width: 58px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 3px 8px rgba(18, 14, 12, 0.35));
}
.map-stop img {
  width: 58px;
  height: 44px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 4px;
  background: var(--paper-2);
}
.map-stop .pin {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  font-size: 9px;
}
.map-stop-card {
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%) scale(0.96);
  min-width: 108px;
  padding: 7px 10px;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--ink);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  box-shadow: 0 8px 20px rgba(18, 14, 12, 0.12);
}
.map-stop-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 520;
}
.map-stop-card em {
  display: block;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.map-stop-card span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--rust);
}
.map-stop:hover img,
.map-stop:focus-visible img {
  transform: scale(1.06);
}
.map-stop:hover .map-stop-card,
.map-stop:focus-visible .map-stop-card,
.leaflet-marker-icon:hover .map-stop-card {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.map-stop.is-launch img {
  animation: stop-pop 0.4s ease;
}
@keyframes stop-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}
.fly-ghost {
  position: fixed;
  z-index: 80;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(18, 14, 12, 0.28);
  pointer-events: none;
  transition:
    left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.chapter {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}
.chapter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chapter .veil {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 12, 0.38);
}
.chapter-copy {
  position: relative;
  padding: 48px 8vw;
}
.chapter-copy .label {
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.chapter-copy h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  margin: 0 8px 0 0;
  display: inline;
}
.chapter-copy em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  opacity: 0.85;
}

.days {
  padding: 12px 0 80px;
}
.day-row {
  width: 100%;
  display: grid;
  grid-template-columns: 92px minmax(0, 1.1fr) 220px 140px;
  gap: 24px;
  align-items: center;
  padding: 22px 8vw;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  text-align: left;
  color: inherit;
}
.day-row:hover {
  background: var(--paper-2);
}
.day-row.on {
  background: #e7d8c8;
}
.day-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--rust);
}
.day-row h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}
.day-row .sum {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.day-meta {
  color: var(--ink-soft);
  font-size: 13px;
}
.thumb {
  width: 140px;
  height: 92px;
  object-fit: cover;
  background: var(--paper-2);
}

.panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}
.panel.open {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 56vw);
  background: rgba(18, 14, 12, 0.45);
}
.panel-backdrop {
  background: rgba(18, 14, 12, 0.45);
  border: 0;
}
.panel-body {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.panel-scroll {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.panel-close {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 15px;
  min-height: 44px;
  min-width: 44px;
}
.panel-dock {
  display: none;
}
.panel-body.enter {
  animation: panel-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes panel-enter {
  from {
    opacity: 0.35;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.panel-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.panel-toolbar .nav-btns {
  display: flex;
  gap: 8px;
}
.ghost {
  border: 1px solid var(--rule);
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
}
.ghost:hover {
  border-color: var(--ink);
}
.ghost:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.attraction + .attraction {
  border-top: 1px solid var(--rule);
}
.attraction-photo-wrap {
  background: #1b1714;
  display: flex;
  justify-content: center;
}
.attraction-photo {
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
}
.attraction-copy {
  padding: 28px 32px 36px;
}
.attraction-copy .en {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin: 0 0 8px;
}
.attraction-copy h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 520;
  margin: 0 0 14px;
}
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--rust);
  margin: 0 0 12px;
}
.attraction-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 42em;
}
.tips {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 14px !important;
  color: var(--ink-soft);
}
.ext-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.ext-link {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.ext-link:hover {
  background: var(--ink);
  color: var(--paper);
}
.day-kicker {
  padding: 24px 32px 0;
  color: var(--muted);
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
}
.day-kicker strong {
  color: var(--rust);
  letter-spacing: 0;
  font-size: 14px;
}

.day-locator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 38%);
  border-bottom: 1px solid var(--rule);
  background: #d5ddd0;
}
.day-locator-map {
  height: 210px;
}
.day-locator-map .leaflet-container {
  height: 100%;
}
.day-locator-meta {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: var(--paper-2);
  border-left: 1px solid var(--rule);
}
.loc-region {
  margin: 0;
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
.loc-place {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 520;
}
.loc-route {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.loc-coord {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.eat-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--rust);
}
.eat-article {
  background: var(--paper-2);
}
.eat-article .attraction-photo-wrap {
  background: #241c16;
}

.site-footer {
  padding: 36px 8vw 48px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .map-wrap {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .map-side {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    max-height: 42vh;
  }
  #map {
    min-height: 62vh;
    height: 62vh;
  }
  .day-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .day-meta,
  .thumb {
    display: none;
  }
  .panel.open {
    grid-template-columns: 1fr;
    z-index: 80;
    background: var(--white);
  }
  .panel-backdrop {
    display: none;
  }
  .panel-toolbar {
    padding: 10px 12px;
    padding-top: calc(10px + env(safe-area-inset-top));
  }
  .panel-dock {
    display: block;
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--rule);
  }
  .panel-dock button {
    width: 100%;
    min-height: 48px;
    border: 0;
    background: var(--ink);
    color: var(--paper);
    font-size: 16px;
  }
  .day-locator {
    grid-template-columns: 1fr;
  }
  .day-locator-map {
    height: 160px;
  }
  .day-locator-meta {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 16px 20px;
  }
  .site-header {
    padding: 12px 16px;
  }
}
