:root {
  --ink: #24332f;
  --muted: #51605a;
  --paper: #f8f5ef;
  --white: #fffdfa;
  --line: #e3dbd0;
  --accent: #9c4f3e;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); }
a { color: inherit; }
button { font: inherit; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #bd775e; outline-offset: 4px; }
.shell { width: min(1160px, 100% - 64px); margin-inline: auto; }
.hero { min-height: min(680px, 82svh); position: relative; display: grid; align-items: end; isolation: isolate; color: #fffaf2; background: #293b36; }
.hero > img, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero > img { object-position: 50% 45%; z-index: -2; }
.hero::before { content: ''; background: linear-gradient(90deg, #11251fc9, #172b2566 52%, #14282110), linear-gradient(0deg, #13252066, transparent 55%); }
.hero-content { padding-block: 90px 64px; }
.date-line, .area { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.date-line { display: flex; align-items: center; gap: .65rem; }
.date-line span { display: inline-block; width: 28px; height: 1px; background: #f5c69a; }
.hero h1 { font: 500 clamp(4.25rem, 9vw, 8.15rem)/.91 var(--display); letter-spacing: -.085em; margin-block: 22px 25px; }
.hero h1 em { color: #ffe0bb; font-weight: 500; }
.hero p { font-size: clamp(1.02rem, 2vw, 1.24rem); max-width: 26rem; line-height: 1.5; }
.primary { display: inline-flex; min-height: 48px; align-items: center; margin-top: 26px; background: #fff8ed; color: #263830; text-decoration: none; padding: 10px 19px; border-radius: 100px; font-weight: 700; }
.primary:hover { background: #ffe0bb; }
.hero-caption { position: absolute; right: 32px; bottom: 24px; color: #fffaf2; text-shadow: 0 1px 5px #000; font-size: .84rem; }
.day-nav { position: sticky; top: 0; z-index: 600; background: #f8f5eff5; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 18px; }
.nav-title { font: 600 1.16rem var(--display); white-space: nowrap; }
.nav-title span { margin-inline: .2em; color: var(--accent); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tabs button { border: 0; border-radius: 100px; white-space: nowrap; min-height: 44px; padding: 0 16px; color: #3c4d45; background: transparent; cursor: pointer; font-weight: 700; font-size: .9rem; }
.tabs button:hover { background: #eae2d8; }
.tabs button[aria-selected=true] { background: #293b33; color: #fffaf2; }
#day-panel { padding-block: 35px 62px; }
.day-cover { position: relative; display: grid; align-items: end; min-height: 310px; overflow: hidden; border-radius: 22px; isolation: isolate; background: #34483e; color: #fffdf7; }
.day-cover img, .day-cover::before { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.day-cover img { z-index: -2; }
.day-cover::before { content: ''; background: linear-gradient(90deg, #111d19a6, transparent 80%),linear-gradient(0deg, #14231bf0, #15271d00 82%); }
.day-cover > div { padding: 34px; }
.day-cover .area { color: #ffe0bb; }
.day-cover h2 { font: 500 clamp(2.55rem, 6vw, 4.7rem)/1.06 var(--display); letter-spacing: -.06em; margin-block: 5px 8px; }
.day-cover p { line-height: 1.5; }
.day-content { display: grid; grid-template-columns: 1.13fr 1fr; gap: 36px; margin-top: 35px; align-items: start; }
.section-title { font: 600 clamp(1.7rem, 4vw, 2.26rem)/1.15 var(--display); letter-spacing: -.045em; margin-bottom: 15px; }
.route { position: sticky; top: 91px; }
.map-frame { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px #322f2110; }
.map { height: clamp(300px, 44vh, 450px); background: #e9ece2; font-family: var(--body); }
.map .leaflet-tile-pane { filter: saturate(.75); }
.map-fallback { display: grid; place-items: center; padding: 28px; text-align: center; }
.route-detail { display: grid; gap: 10px; padding: 15px; }
.route-detail p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.route-detail .estimate { font-weight: 700; color: var(--ink); }
.map-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.map-actions a, .location { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; }
.map-actions a { min-height: 42px; padding: 6px 10px; background: #e8eee8; border-radius: 8px; color: #294037; font-size: .82rem; }
.map-actions a:hover, .location:hover { background: #d9e6db; }
.stops { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stop { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 33%; padding: 8px; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.stop:hover { border-color: #c8b7a7; }
.stop-copy { padding: 7px 5px 5px 8px; }
.stop-time { display: inline-flex; gap: 7px; align-items: center; font-weight: 700; font-size: .87rem; color: #803f32; }
.number { display: inline-flex; justify-content: center; align-items: center; border-radius: 100%; width: 22px; height: 22px; color: white; background: var(--route-color); font-size: .75rem; }
.stop h4 { margin: 4px 0; font-size: 1.09rem; line-height: 1.24; }
.stop p { font-size: .94rem; color: var(--muted); line-height: 1.45; }
.stop figure { margin: 0; position: relative; min-width: 0; min-height: 100px; }
.stop figure img { height: 100%; min-height: 100px; position: absolute; inset: 0; border-radius: 9px; background: #e1d7ca; }
.stop figure figcaption { position: absolute; right: 4px; bottom: 4px; padding: 2px 4px; border-radius: 4px; background: #18251dd9; color: white; font-size: .68rem; }
.location { font-size: .82rem; min-height: 36px; padding-inline: 6px; margin-left: -6px; border-radius: 6px; color: #2f5949; }
.note { border-left: 3px solid var(--route-color); margin-block: 15px 0; padding: 10px 13px; font-size: .95rem; color: var(--muted); line-height: 1.5; background: #efe8dc; border-radius: 0 8px 8px 0; }
.options { margin-top: 26px; }
.pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 100%; color: white; border: 2px solid white; background: var(--route-color); box-shadow: 0 2px 5px #0005; font-weight: 700; font-size: .85rem; }
.pin.optional { background: #9d5e20; }
.leaflet-popup-content { font-size: .87rem; line-height: 1.45; }
.leaflet-popup-content a { color: #255746; font-weight: 700; }
.leaflet-tooltip { font-family: var(--body); }
.footer { text-align: center; background: #243a32; color: #fff8ed; padding: 38px 0; }
.footer-mark { color: #f5c69a; font-size: 1.5rem; }
.footer-title { font: 500 clamp(2rem, 5vw, 3rem) var(--display); margin: 5px 0; letter-spacing: -.04em; }
.credits { color: #e1d9ce; margin-top: 24px; font-size: .86rem; }
.credits summary { cursor: pointer; }
.credits p { margin-top: 8px; }
#photo-credits { display: flex; justify-content: center; gap: 8px 16px; flex-wrap: wrap; margin: 12px 0; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 34px); }
  .hero { min-height: 500px; }
  .hero-content { padding-block: 78px 56px; }
  .hero-caption { bottom: 12px; right: 17px; }
  .nav-inner { min-height: 63px; }
  #day-panel { padding-top: 19px; padding-bottom: 38px; }
  .day-cover { min-height: 235px; border-radius: 17px; }
  .day-cover > div { padding: 22px; }
  .day-content { grid-template-columns: 1fr; gap: 25px; margin-top: 21px; }
  .route { grid-row: 1; position: static; }
  .map { height: 320px; }
}
@media (max-width: 450px) {
  .hero h1 { font-size: clamp(3.65rem, 15vw, 4.55rem); }
  .hero > img { object-position: 55% center; }
  .nav-title { display: none; }
  .tabs { width: 100%; }
  .tabs button { padding-inline: 8px; }
  .area { font-size: .73rem; }
  .map { height: 280px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
