:root {
  --paper: #f3f6f2;
  --surface: #ffffff;
  --ink: #13262f;
  --muted: #66757a;
  --line: #d7dfdc;
  --lake: #287b90;
  --lake-soft: #d9ebee;
  --forest: #516b55;
  --terracotta: #b65c3a;
  --warning: #b84635;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 16px 48px rgba(25, 47, 55, 0.08);
  --content: 720px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[data-module][hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(40, 123, 144, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
}
.skip-link:focus { top: calc(12px + var(--safe-top)); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(48px + var(--safe-top));
  padding: var(--safe-top) 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(19, 38, 47, 0.08);
  background: rgba(243, 246, 242, 0.91);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.wordmark { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 800; letter-spacing: 0.06em; font-size: 12px; }
.wordmark span { color: var(--muted); font-weight: 600; }
.topbar nav { display: flex; gap: 2px; }
.topbar nav a {
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}
.topbar nav a:active { color: var(--lake); }

main { overflow: hidden; }
.hero, .section, .footer { width: min(100%, var(--content)); margin-inline: auto; }
.hero { padding: 32px 18px 24px; min-height: 188px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: var(--lake);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.hero h1 { margin: 0; max-width: 620px; font-size: clamp(38px, 12vw, 64px); line-height: 0.98; letter-spacing: -0.06em; font-weight: 820; }
.hero__date { margin: 14px 0 0; font: 650 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.03em; }

.section { padding: 44px 18px; scroll-margin-top: 48px; }
.flights-section { padding-top: 24px; padding-bottom: 34px; }
.section-heading { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 30px; line-height: 1; letter-spacing: -0.04em; }
.section-index, .soft-label { margin: 0; color: var(--muted); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }

.flight-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 2px 0 14px;
}
.flight-carousel::-webkit-scrollbar { display: none; }
.flight-card {
  flex: 0 0 calc(100% - 20px);
  scroll-snap-align: center;
  min-height: 330px;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: #f7f0df;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.flight-card__top { color: #536c68; font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.flight-card__airlines { margin-top: 7px; color: #9c4d3d; font-size: 10px; }
.flight-flow { margin-top: 17px; display: grid; grid-template-columns: var(--route-columns); align-items: start; }
.flight-stop { min-width: 0; text-align: center; }
.flight-stop:first-child { text-align: left; }
.flight-stop:last-child { text-align: right; }
.flight-stop__code { display: block; color: var(--ink); font: 760 clamp(25px, 8vw, 36px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.05em; }
.flight-stop__city { display: block; min-height: 30px; margin-top: 5px; color: #5d6e6a; font-size: 11px; line-height: 1.25; }
.flight-stop__dot { position: relative; z-index: 1; display: inline-block; width: 9px; height: 9px; margin: 8px 0 10px; border: 2px solid #b34e3d; border-radius: 50%; background: #fffaf0; }
.flight-stop__timing { display: flex; flex-direction: column; gap: 3px; color: #60736f; font-size: 9px; line-height: 1.3; }
.flight-stop__timing b { color: var(--ink); font-size: 10px; font-weight: 720; }
.flight-stop__timing em { color: #9c4d3d; font-style: normal; font-size: 9px; }
.flight-segment { min-width: 0; padding-top: 53px; color: #477784; text-align: center; }
.flight-segment span { display: block; overflow: hidden; font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.flight-segment i { display: block; height: 1px; margin-top: 9px; background: rgba(55,109,125,.42); color: #376d7d; font-style: normal; font-size: 13px; line-height: 1px; text-align: right; }
.flight-card__countdown-row { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(38,61,57,.20); }
.flight-countdown { text-align: left; }
.flight-countdown span { display: block; color: #536c68; font-size: 11px; }
.flight-countdown strong { display: block; margin-top: 5px; color: var(--ink); font: 760 clamp(22px, 7vw, 30px)/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.flight-placeholder { margin: 34px 0 22px; }
.flight-placeholder__eyebrow { color: #9c4d3d; font: 760 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.flight-placeholder h3 { margin: 9px 0 0; color: var(--ink); font-size: clamp(24px, 7vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.flight-placeholder p { max-width: 520px; margin: 12px 0 0; color: #536c68; font-size: 12px; line-height: 1.7; }
.flight-placeholder ul { margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.flight-placeholder li { padding: 6px 9px; border: 1px solid rgba(55,109,125,.28); border-radius: 999px; color: #496760; background: rgba(255,250,240,.56); font-size: 10px; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; }
.carousel-dot { width: 6px; height: 6px; border: 0; padding: 0; border-radius: 50%; background: #aebbb8; transition: width .2s ease; }
.carousel-dot.is-active { width: 22px; border-radius: 99px; background: var(--lake); }

.route-map-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); cursor: zoom-in; }
.route-map-button img { width: 100%; height: auto; }
.route-map-button span { position: absolute; right: 12px; bottom: 12px; padding: 9px 12px; border-radius: 999px; color: white; background: rgba(19,38,47,.86); font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); }
.route-caption { margin: 12px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 22px; bottom: 26px; width: 1px; background: var(--line); }
.day-card { position: relative; padding-left: 48px; }
.day-card + .day-card { margin-top: 8px; }
.day-dot { position: absolute; left: 12px; top: 25px; z-index: 1; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: #a5b1ae; box-shadow: 0 0 0 1px #a5b1ae; }
.day-card.is-today .day-dot { background: var(--terracotta); box-shadow: 0 0 0 3px rgba(182,92,58,.18); }
.day-toggle { width: 100%; min-height: 78px; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 12px; cursor: pointer; }
.day-meta { color: var(--lake); font: 750 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.day-title { margin-top: 5px; font-size: 17px; font-weight: 740; line-height: 1.35; }
.day-locations { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.day-ticket-summary { display: inline-flex; min-height: 24px; margin-top: 9px; padding: 4px 8px; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 760; }
.day-ticket-summary.has-pending { color: #8f492e; background: #f6e2d8; }
.day-ticket-summary.is-complete { color: #43654a; background: #dfeade; }
.day-chevron { width: 36px; height: 36px; align-self: center; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--lake); transition: transform .2s ease; }
.day-toggle[aria-expanded="true"] .day-chevron { transform: rotate(45deg); }
.day-detail { padding: 18px 0 26px; }
.day-detail[hidden] { display: none; }
.schedule { margin: 0; padding: 0; list-style: none; }
.schedule-item { position: relative; padding: 0 0 21px 82px; min-height: 50px; }
.schedule-item::before { content: ""; position: absolute; left: 70px; top: 6px; bottom: 0; width: 1px; background: #dce4e2; }
.schedule-item:last-child::before { display: none; }
.schedule-time { position: absolute; left: 0; top: 0; width: 62px; color: var(--muted); font: 700 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.schedule-item::after { content: ""; position: absolute; left: 66px; top: 5px; width: 9px; height: 9px; border: 2px solid var(--lake); border-radius: 50%; background: var(--paper); }
.schedule-text { font-size: 13px; line-height: 1.65; }
.schedule-map-links { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }
.schedule-map-link { min-height: 32px; padding: 6px 9px; display: inline-flex; align-items: center; border: 1px solid #c8dadc; border-radius: 999px; color: #205e6b; background: #edf6f5; text-decoration: none; font-size: 11px; font-weight: 700; }
.schedule-ticket { margin-top: 9px; border: 1px solid #e8c8b8; border-radius: 12px; background: #fff8f4; overflow: hidden; }
.schedule-ticket summary { min-height: 38px; padding: 8px 10px; display: flex; align-items: center; gap: 6px; list-style: none; color: #8f492e; cursor: pointer; font-size: 10px; font-weight: 750; }
.schedule-ticket summary::-webkit-details-marker { display: none; }
.schedule-ticket summary b { margin-left: auto; color: var(--ink); font-size: 11px; }
.schedule-ticket.is-purchased { border-color: #cbdcca; background: #f1f7f0; }
.schedule-ticket.is-purchased summary { color: #43654a; }
.ticket-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.schedule-ticket__body { padding: 0 10px 11px 23px; }
.schedule-ticket__body p { margin: 0; color: #614b42; font-size: 11px; line-height: 1.5; }
.schedule-ticket__body span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.schedule-ticket__body a { min-height: 34px; margin-top: 5px; display: inline-flex; align-items: center; color: var(--lake); font-size: 10px; font-weight: 750; }
.detail-note { margin: 8px 0 0; padding: 12px 14px; border-left: 2px solid var(--terracotta); background: rgba(182,92,58,.06); color: #6d4c3e; font-size: 12px; line-height: 1.6; }
.costs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.cost-tag { padding: 7px 9px; border-radius: 8px; background: #e8eeeb; color: #53615e; font-size: 11px; }

.tickets-section { padding-top: 40px; }
.tickets-summary { margin: -5px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ticket-filters { display: flex; gap: 7px; margin-bottom: 14px; overflow-x: auto; }
.ticket-filters button { min-height: 38px; padding: 0 14px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 720; }
.ticket-filters button.is-active { border-color: var(--ink); color: white; background: var(--ink); }
.ticket-list { display: grid; gap: 11px; }
.ticket-card { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.78); }
.ticket-card.is-purchased { background: rgba(241,247,240,.82); }
.ticket-card__date { color: var(--lake); font: 740 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.ticket-card__head { margin-top: 9px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ticket-card__head h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.ticket-card__head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.ticket-badge { min-height: 25px; padding: 5px 8px; flex: 0 0 auto; border-radius: 999px; color: #8f492e; background: #f6e2d8; font-size: 9px; font-weight: 760; }
.ticket-badge.is-advance-recommended { color: #205e6b; background: #ddecf0; }
.ticket-badge.is-purchased { color: #43654a; background: #dfeade; }
.ticket-card__guidance { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.ticket-card__guidance span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.ticket-card__guidance strong { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; }
.ticket-details { margin-top: 7px; }
.ticket-details > summary { min-height: 38px; display: inline-flex; align-items: center; color: var(--lake); cursor: pointer; font-size: 11px; font-weight: 750; }
.ticket-details dl { margin: 4px 0 0; }
.ticket-details dl div { padding: 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 11px; line-height: 1.5; }
.ticket-details dt { color: var(--muted); }
.ticket-details dd { margin: 0; }
.ticket-uncertainties { margin-top: 8px; padding: 11px; border-radius: 10px; background: #f2f3ef; color: #52605d; font-size: 10px; }
.ticket-uncertainties ul { margin: 5px 0 0; padding-left: 16px; }
.ticket-actions { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-actions a, .ticket-actions button { min-height: 40px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 740; }
.ticket-actions a { color: var(--lake); }
.ticket-actions span { color: var(--muted); font-size: 10px; }
.ticket-actions button { padding: 0 12px; border: 0; border-radius: 10px; color: white; background: var(--lake); cursor: pointer; }
.tickets-empty { padding: 28px 0; color: var(--muted); text-align: center; font-size: 12px; }

.rental-panel { overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: white; box-shadow: var(--shadow); }
.return-deadline { padding: 22px; background: #fff0e5; color: #713d27; border-bottom: 3px solid #bd6941; }
.return-deadline__label { display: block; font-size: 12px; font-weight: 800; }
.return-deadline > strong { display: block; margin: 12px 0 6px; font-size: clamp(23px,7vw,34px); line-height: 1.3; }
.return-deadline time { font-variant-numeric: tabular-nums; }
.return-deadline > span:not(:first-child), .return-deadline small { font-size: 11px; line-height: 1.6; }
.return-deadline p { margin: 10px 0; font-size: 12px; overflow-wrap: anywhere; }
.return-deadline__timer { padding: 12px 0; border-block: 1px solid #e7c6ad; font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.return-deadline__warning { font-weight: 750; }
.return-deadline.is-urgent { background: #ffe1da; color: #8c291f; border-color: #b84635; }
.rental-countdown { padding: 24px; background: var(--lake); }
.rental-countdown span { display: block; color: #d6ebee; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.rental-countdown strong { display: block; margin-top: 8px; font: 760 clamp(28px, 9vw, 44px)/1.05 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.05em; }
.rental-countdown small { display: block; margin-top: 10px; color: #d6ebee; line-height: 1.5; }
.rental-details { padding: 22px; }
.rental-car { font-size: 19px; font-weight: 750; }
.rental-sub { margin-top: 5px; color: #abc0c4; font-size: 12px; }
.rental-stops { margin-top: 24px; display: grid; gap: 16px; }
.rental-stop { display: grid; grid-template-columns: 58px 1fr; gap: 12px; }
.rental-stop__label { color: #7fa8b0; font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.rental-stop b { display: block; font-size: 14px; }
.rental-stop span { display: block; margin-top: 4px; color: #abc0c4; font-size: 12px; line-height: 1.5; }
.rental-price { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; color: #abc0c4; font-size: 12px; }
.rental-price strong { color: white; font: 720 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.accordion-stack { margin-top: 14px; display: grid; gap: 10px; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); overflow: hidden; }
.accordion summary { min-height: 54px; padding: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 740; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--lake); }
.accordion[open] summary::after { content: "−"; }
.accordion ul { margin: 0; padding: 0 18px 18px 38px; color: #47575b; }
.accordion li { margin: 9px 0; font-size: 12px; line-height: 1.65; }

.packing-progress { height: 4px; margin: -8px 0 24px; border-radius: 99px; background: #dbe3e0; overflow: hidden; }
.packing-progress span { display: block; width: 0; height: 100%; background: var(--lake); transition: width .2s ease; }
.packing-group + .packing-group { margin-top: 25px; }
.packing-group h3 { margin: 0 0 8px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.packing-item { min-height: 52px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.packing-item input { appearance: none; width: 22px; height: 22px; margin: 0; flex: 0 0 22px; border: 1.5px solid #93a5a2; border-radius: 7px; background: transparent; display: grid; place-items: center; }
.packing-item input::after { content: "✓"; color: white; font-size: 14px; opacity: 0; transform: scale(.6); transition: .15s ease; }
.packing-item input:checked { border-color: var(--lake); background: var(--lake); }
.packing-item input:checked::after { opacity: 1; transform: scale(1); }
.packing-item:has(input:checked) span { color: #87928f; text-decoration: line-through; }
.text-button { min-height: 44px; margin-top: 18px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }

.footer { padding: 46px 20px calc(50px + var(--safe-bottom)); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.footer p { margin: 0; font-weight: 750; letter-spacing: .08em; }
.footer a { min-height: 44px; margin-top: -15px; display: flex; align-items: center; text-decoration: none; }

.map-dialog { width: 100%; max-width: 760px; height: 100%; max-height: none; margin: 0; padding: calc(56px + var(--safe-top)) 0 var(--safe-bottom); border: 0; background: #0e1b21; overflow: auto; }
.map-dialog::backdrop { background: rgba(7,18,22,.88); }
.map-dialog.is-fallback-open { position: fixed; inset: 0; z-index: 50; display: block; }
.map-dialog img { width: 100%; height: auto; }
.dialog-close { position: fixed; z-index: 2; top: calc(10px + var(--safe-top)); right: 12px; min-width: 54px; min-height: 40px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 700; }
.loading-error { position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--safe-bottom)); z-index: 30; padding: 16px; border-radius: 14px; color: white; background: var(--warning); box-shadow: var(--shadow); }
.loading-error strong, .loading-error span { display: block; }
.loading-error span { margin-top: 5px; font-size: 12px; line-height: 1.5; }

:focus-visible { outline: 3px solid rgba(40,123,144,.45); outline-offset: 3px; }

.place-map-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(7,18,22,.6); display: flex; align-items: flex-end; justify-content: center; }
.place-map-overlay[hidden] { display: none; }
.place-map-sheet { width: min(100%,720px); height: 85vh; height: 85dvh; display: flex; flex-direction: column; background: var(--paper); border-radius: 20px 20px 0 0; overflow: hidden; padding-bottom: var(--safe-bottom); }
.place-map-sheet header { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.place-map-sheet h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.place-map-sheet button { flex-shrink: 0; min-height: 44px; min-width: 48px; border: 0; background: transparent; color: var(--lake); }
.place-map-sheet iframe { width: 100%; flex: 1; min-height: 0; border: 0; background: #e8eeeb; }
.place-map-sheet footer { padding: 10px 16px; }
.place-map-sheet footer p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.place-map-sheet footer a { display: flex; min-height: 44px; align-items: center; color: var(--lake); font-size: 13px; font-weight: 700; }

/* Compact ticket completion, driving notes and user-managed trip preparation */
.schedule-ticket { min-height: 58px; padding: 9px 10px; background: #fff2ed; display: grid; grid-template-columns: 21px minmax(0,1fr) auto; align-items: flex-start; gap: 9px; }
.schedule-ticket__toggle { display: contents; cursor: pointer; }
.schedule-ticket input { position: absolute; opacity: 0; pointer-events: none; }
.schedule-ticket__check { width: 21px; height: 21px; margin-top: 1px; flex: 0 0 21px; border: 1.5px solid #ba765d; border-radius: 7px; color: transparent; display: grid; place-items: center; font-size: 12px; }
.schedule-ticket__content { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 7px; }
.schedule-ticket__status { color: #995137; font-size: 9px; font-weight: 780; }
.schedule-ticket__content strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-ticket__content small { grid-column: 1 / -1; color: #795c50; font-size: 9px; line-height: 1.45; }
.schedule-ticket__open { align-self: center; min-width: 44px; min-height: 36px; padding: 0 8px; border: 0; border-left: 1px solid rgba(153,81,55,.18); background: transparent; color: #8f492e; cursor: pointer; font-size: 10px; font-weight: 760; }
.schedule-ticket.is-purchased { border-color: #cbdcca; background: #eaf3e9; }
.schedule-ticket.is-purchased .schedule-ticket__check { border-color: var(--forest); color: white; background: var(--forest); }
.schedule-ticket.is-purchased .schedule-ticket__status { color: var(--forest); }
.schedule-ticket.is-purchased .schedule-ticket__content strong { color: #708072; text-decoration: line-through; }
.schedule-ticket.is-purchased .schedule-ticket__content small { display: none; }
.schedule-ticket.is-purchased .schedule-ticket__open { color: var(--forest); border-left-color: rgba(81,107,85,.2); }

.ticket-dialog { width: min(100% - 28px,720px); max-height: min(88dvh,820px); padding: 0; border: 1px solid rgba(19,38,47,.12); border-radius: 20px; background: var(--paper); box-shadow: 0 22px 70px rgba(19,38,47,.2); overflow: hidden; }
.ticket-dialog[open] { display: flex; flex-direction: column; }
.ticket-dialog::backdrop { background: rgba(7,18,22,.58); backdrop-filter: blur(3px); }
.ticket-dialog > header { min-height: 76px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.ticket-dialog > header span { display: block; color: var(--lake); font-size: 10px; font-weight: 780; letter-spacing: .12em; }
.ticket-dialog > header h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.ticket-dialog > header button { min-width: 52px; min-height: 40px; border: 0; border-radius: 999px; background: white; color: var(--lake); cursor: pointer; font-size: 12px; font-weight: 720; }
.ticket-dialog__body { min-height: 0; padding: 18px; overflow: auto; flex: 1 1 auto; }
.ticket-dialog__status { margin: 0; color: var(--terracotta); font-size: 11px; font-weight: 780; }
.ticket-dialog__guidance { margin: 8px 0 16px; color: #47575b; font-size: 13px; line-height: 1.65; }
.ticket-dialog__preview { width: 100%; min-height: min(58dvh,520px); max-height: 62dvh; border: 1px solid var(--line); border-radius: 12px; background: white; object-fit: contain; }
.ticket-dialog__preview--pdf { display: block; height: min(68dvh,680px); max-height: none; object-fit: initial; }
.ticket-dialog__empty { margin: 18px 0; padding: 24px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; }
.ticket-dialog__links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-dialog__links a { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid #c8dadc; border-radius: 999px; color: #205e6b; background: #edf6f5; text-decoration: none; font-size: 12px; font-weight: 720; }

.accordion-stack { margin-top: 14px; display: block; }
.drive-note-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.drive-note-tabs button { position: relative; min-width: 0; min-height: 48px; padding: 12px 4px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 650; }
.drive-note-tabs button::after { content: ""; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; border-radius: 2px; background: transparent; }
.drive-note-tabs button[aria-expanded="true"] { color: var(--ink); font-weight: 780; }
.drive-note-tabs button[aria-expanded="true"]::after { background: var(--lake); }
.drive-note-panel { padding: 8px 4px 4px; }
.drive-note-panel[hidden] { display: none; }
.drive-note-panel ul { margin: 0; padding: 0; list-style: none; color: #47575b; }
.drive-note-panel li { position: relative; margin: 0; padding: 12px 0 12px 14px; font-size: 12px; line-height: 1.7; }
.drive-note-panel li + li { border-top: 1px solid var(--line); }
.drive-note-panel li::before { content: ""; position: absolute; left: 0; top: 20px; width: 4px; height: 4px; border-radius: 50%; background: #8ca5a7; }

.todo-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.todo-form input { min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.8); font: inherit; font-size: 13px; outline: none; }
.todo-form input:focus { border-color: var(--lake); box-shadow: 0 0 0 3px rgba(40,123,144,.1); }
.todo-form button { min-width: 64px; min-height: 48px; border: 0; border-radius: 13px; color: white; background: var(--ink); cursor: pointer; font-size: 12px; font-weight: 750; }
.todo-list { margin-top: 13px; }
.todo-item { min-height: 54px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.todo-item label { min-width: 0; min-height: 54px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.todo-item input { position: absolute; opacity: 0; pointer-events: none; }
.todo-check { width: 22px; height: 22px; flex: 0 0 22px; border: 1.5px solid #93a5a2; border-radius: 7px; color: transparent; display: grid; place-items: center; font-size: 12px; }
.todo-text { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.todo-item.is-complete .todo-check { border-color: var(--forest); color: white; background: var(--forest); }
.todo-item.is-complete .todo-text { color: #87928f; text-decoration: line-through; }
.todo-delete { min-width: 44px; min-height: 44px; padding: 0; border: 0; color: #9a7062; background: transparent; cursor: pointer; font-size: 10px; }
.todo-empty { margin: 0; padding: 22px 0 8px; color: var(--muted); text-align: center; font-size: 11px; }

@media (min-width: 700px) {
  .topbar { padding-inline: max(24px, calc((100vw - var(--content)) / 2)); }
  .hero { min-height: 260px; padding-inline: 0; }
  .section { padding-inline: 0; }
  .flight-card { flex-basis: 86%; min-height: 350px; }
  .rental-stops { grid-template-columns: 1fr 1fr; }
}

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

/* Map is the main surface; date controls remain compact. */
.route-region-tabs,.route-day-tabs { display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:10px; }
.route-region-tabs button,.route-day-tabs button { border:0;background:transparent;padding:7px 10px;font-size:13px;border-radius:6px;cursor:pointer; }
.route-region-tabs button[aria-pressed="true"] {background:var(--ink);color:white;}
.route-day-tabs button {font-size:12px;padding:7px 8px;}
.route-day-tabs button[aria-pressed="true"] {background:white;box-shadow:inset 0 0 0 1px var(--line);}
.route-day-tabs i {display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--route-color);margin-right:5px;}
.travel-map-scroll {overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;border-radius:12px;border:1px solid var(--line);background:#f6f6f1;}
.travel-map-canvas {position:relative;min-width:700px;}
.travel-map-canvas svg {display:block;width:100%;height:auto;}
.map-utility {display:flex;justify-content:space-between;align-items:center;margin:5px 0 12px;font-size:12px;color:var(--muted);}
.map-utility button {border:0;background:transparent;font-size:12px;padding:8px;cursor:pointer;}
.transport-pin {position:absolute;transform:translate(-50%,-50%);font-size:11px;line-height:1.2;border:1px solid var(--route-color);background:white;color:var(--ink);padding:5px 7px;border-radius:20px;cursor:pointer;box-shadow:0 2px 6px #13262f22;white-space:nowrap;}
.transport-pin::before {content:"";position:absolute;inset:-6px;}
.transport-pin[aria-expanded="true"] {background:var(--route-color);color:white;}
.transport-popover {position:fixed;z-index:100;width:min(300px,calc(100vw - 16px));padding:16px 30px 14px 16px;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 8px 32px #13262f30;font-size:14px;line-height:1.6;}
.transport-popover strong {font-size:13px;}
.transport-popover p {margin:7px 0 0;}
.transport-popover button {position:absolute;right:4px;top:4px;background:transparent;border:0;width:28px;height:28px;cursor:pointer;}
.route-list-overview {border-top:1px solid var(--line);}
.route-list-overview a {display:flex;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);text-decoration:none;font-size:14px;}
.route-list-overview span {white-space:nowrap;color:var(--muted);font-size:12px;}
.day-detail .travel-map-block {margin:0 0 22px;}
#map-dialog {width:96vw;max-width:1448px;overflow:auto;padding:48px 12px 12px;background:#f6f6f1;}
#map-dialog-content {overflow:auto;}
#map-dialog-content .travel-map-canvas {min-width:1100px;}
button:focus-visible,a:focus-visible {outline:2px solid var(--lake);outline-offset:3px;}
@media(min-width:1000px) {.route-section {width:min(1100px,calc(100vw - 64px));max-width:none;margin-left:50%;transform:translateX(-50%);} .travel-map-canvas {min-width:0;}}
.is-overview .travel-map-canvas {min-width:0;}

/* Daily and Overview deliberately share one full-map canvas and viewport. */
.is-daily .travel-map-scroll {overflow:hidden;}
.is-daily .travel-map-canvas {width:100%;min-width:0;}
.map-place-dot {position:absolute;transform:translate(-50%,-50%);width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;cursor:pointer;}
.map-place-dot span {display:block;width:11px;height:11px;border:1.5px solid #fffdf6;background:var(--route-color);border-radius:50%;box-shadow:0 0 0 1px var(--route-color);}
.map-place-dot:hover span,.map-place-dot[aria-expanded="true"] span {box-shadow:0 0 0 4px #ffffffa8,0 0 0 5px var(--route-color);}
.transport-pin {transform:translate(-50%,-50%);width:28px;height:28px;display:grid;place-items:center;padding:6px;border-radius:8px;border:1px solid var(--route-color);color:var(--route-color);box-shadow:0 2px 5px #13262f18;}
.transport-pin::before {inset:-3px;}
.transport-pin svg {width:15px;height:15px;}
.transport-pin[aria-expanded="true"] {background:var(--route-color);color:white;}
.route-popover {position:fixed;z-index:100;width:min(360px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 10px 36px #13262f33;color:var(--ink);}
.route-popover .route-popover-close {position:absolute;right:5px;top:5px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;font-size:20px;cursor:pointer;}
.route-place-popover header {padding-right:22px;margin-bottom:10px;}
.route-place-popover header small {display:block;color:var(--muted);font-size:12px;margin-bottom:4px;}
.route-place-popover header strong {font-size:15px;}
.route-place-popover iframe {display:block;width:100%;height:min(240px,35dvh);border:1px solid var(--line);border-radius:8px;background:#edf1ea;}
.route-place-popover footer {display:flex;flex-direction:column;gap:7px;margin-top:10px;font-size:13px;}
.route-place-popover footer small {font-size:12px;color:var(--muted);}
.popup-place-options {display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px;}
.popup-place-options button {padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:white;font-size:12px;cursor:pointer;}

.ledger-confirm-dialog { width: min(100% - 40px, 380px); padding: 0; border: 1px solid rgba(19,38,47,.14); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 22px 70px rgba(19,38,47,.28); }
.ledger-confirm-dialog::backdrop { background: rgba(7,18,22,.55); backdrop-filter: blur(3px); }
.ledger-confirm-card { padding: 24px 22px 18px; }
.ledger-confirm-card p { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.55; text-align: center; }
.ledger-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.ledger-confirm-actions button { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: inherit; font-size: 14px; font-weight: 720; cursor: pointer; }
.ledger-confirm-actions .ledger-confirm-danger { border-color: rgba(171,67,55,.28); background: #fff1ee; color: #a13f34; }
.popup-place-options button[aria-pressed="true"] {background:var(--ink);color:white;}
.transport-popover {width:min(320px,calc(100vw - 16px));padding-right:32px;font-size:14px;line-height:1.65;}
.transport-leg + .transport-leg {margin-top:10px;padding-top:10px;border-top:1px solid var(--line);}
.transport-leg strong {font-size:13px;}
.transport-leg p {margin:5px 0 0;}
#map-dialog-content .daily-fullscreen {min-width:850px;}

@media (max-width:699px) {
  .is-daily .map-place-dot {width:14px;height:14px;}
  .is-daily .map-place-dot span {width:8px;height:8px;border-width:1px;}
  .is-daily .transport-pin {width:24px;height:24px;padding:5px;border-radius:7px;}
  .is-daily .transport-pin svg {width:13px;height:13px;}
  #map-dialog-content .daily-fullscreen {width:100%;min-width:0;}
}

/* 2026 Japanese editorial scrapbook direction */
:root {
  --paper: #efe7d5;
  --surface: #fffaf0;
  --ink: #263d39;
  --muted: #756f63;
  --line: #d4c8b4;
  --lake: #376d7d;
  --lake-soft: #d7e5e8;
  --forest: #3f604d;
  --terracotta: #bd4b38;
  --mustard: #d6af4e;
  --powder: #a9c8d8;
  --shadow: 0 14px 32px rgba(67, 48, 29, .11);
}

html { background: #e8dfcc; }
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 7%, rgba(104, 78, 43, .07) 0 1px, transparent 1.4px),
    radial-gradient(circle at 79% 22%, rgba(104, 78, 43, .05) 0 1px, transparent 1.3px),
    repeating-linear-gradient(92deg, rgba(255,255,255,.11) 0 1px, transparent 1px 5px);
  background-size: 17px 17px, 23px 23px, auto;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "PingFang SC", sans-serif;
}

.topbar {
  height: calc(52px + var(--safe-top));
  border-bottom: 1px solid rgba(61, 46, 31, .15);
  background: rgba(239, 231, 213, .9);
  box-shadow: 0 5px 18px rgba(69, 50, 31, .05);
}
.wordmark { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.primary-navigation__ledger,
.travel-navigation summary { color: var(--ink); }

main[data-site-view="travel"] { padding-bottom: 10px; }
.hero, .section, .footer { width: min(calc(100% - 24px), var(--content)); }

.hero {
  position: relative;
  min-height: 590px;
  margin-top: 12px;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(86, 61, 36, .15);
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(226, 178, 54, .20) 0 43px, transparent 43px 86px),
    #f5edda;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  left: -18px;
  bottom: 17px;
  z-index: 3;
  width: 145px;
  height: 46px;
  transform: rotate(-7deg);
  background: rgba(244, 230, 196, .76);
  box-shadow: 0 1px 0 rgba(76, 52, 31, .08);
}
.hero__copy {
  position: absolute;
  top: 28px;
  left: 18px;
  right: 54px;
  z-index: 4;
  padding: 22px 18px 19px;
  transform: rotate(-1.8deg);
  border: 1px solid rgba(66, 55, 41, .16);
  background: rgba(255, 250, 237, .96);
  box-shadow: 6px 7px 0 var(--powder), 0 15px 30px rgba(61, 42, 26, .13);
}
.hero__stamp {
  display: inline-block;
  margin: -4px 0 13px;
  padding: 5px 8px;
  transform: rotate(1.5deg);
  border: 1px solid rgba(189, 75, 56, .55);
  color: var(--terracotta);
  font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
}
.hero__eyebrow { margin: 0 0 6px; color: var(--forest); font-family: "Yu Mincho", "Songti SC", serif; font-size: 11px; letter-spacing: .1em; }
.hero h1 {
  max-width: 100%;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", serif;
  font-size: clamp(39px, 12vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.hero__date { margin-top: 12px; color: #5c564c; font-size: 12px; letter-spacing: .07em; }
.hero__handnote { margin: 14px 0 0; color: var(--terracotta); font: italic 13px/1.4 "Kaiti SC", "Yu Mincho", serif; letter-spacing: .04em; }
.hero__handnote span { display: inline-block; margin-left: 5px; font-size: 22px; transform: rotate(13deg); }
.hero__collage {
  position: absolute;
  left: 28px;
  right: -18px;
  bottom: 18px;
  z-index: 2;
  height: 390px;
  margin: 0;
  transform: rotate(1.6deg);
  border: 8px solid #faf2df;
  background: #e9dfcb;
  box-shadow: 0 12px 25px rgba(56, 40, 24, .20);
  overflow: hidden;
}
.hero__collage img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 62%; filter: saturate(.9) contrast(.97); }
.hero__collage figcaption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 5px 7px;
  color: #fffaf0;
  background: rgba(38, 61, 57, .79);
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
}
.hero__tape,
.journey-corridor-map__tape {
  position: absolute;
  top: -7px;
  left: 50%;
  z-index: 2;
  width: 98px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(211, 181, 110, .58);
  clip-path: polygon(4% 8%, 96% 0, 100% 91%, 2% 100%);
}
.hero__scribble {
  position: absolute;
  right: 5px;
  top: 214px;
  z-index: 5;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: rotate(9deg);
  border: 2px solid rgba(189, 75, 56, .74);
  border-radius: 50%;
  color: var(--terracotta);
  background: rgba(250, 241, 218, .84);
  font: 700 24px/1 "Yu Mincho", serif;
}

.section {
  position: relative;
  margin-top: 18px;
  padding: 30px 17px;
  scroll-margin-top: 58px;
  border: 1px solid rgba(86, 61, 36, .15);
  border-radius: 3px;
  background: rgba(255, 250, 239, .82);
  box-shadow: 0 8px 22px rgba(72, 51, 29, .055);
}
.section:nth-of-type(2n + 1)::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 17px;
  top: -7px;
  right: 24px;
  transform: rotate(2deg);
  background: rgba(165, 191, 194, .52);
}
.section-heading { align-items: center; margin-bottom: 21px; }
.section-kicker { margin-bottom: 8px; color: var(--terracotta); font: 760 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.section-heading h2 { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", serif; font-size: 29px; font-weight: 700; letter-spacing: -.04em; }
.section-index, .soft-label { padding: 6px 8px; transform: rotate(2deg); color: var(--forest); background: #e5dfb3; font-size: 9px; }

.flights-section { background: #f2e8d2; }
.flight-carousel { gap: 12px; margin-inline: -4px; padding: 4px 4px 16px; }
.flight-card {
  position: relative;
  flex-basis: calc(100% - 10px);
  min-height: 340px;
  padding: 22px 18px;
  border-radius: 7px;
  background-color: #f7f0df;
  background-image:
    linear-gradient(105deg, rgba(255, 250, 239, .91) 0%, rgba(255, 250, 239, .80) 48%, rgba(255, 250, 239, .63) 100%),
    url("assets/editorial/flights/flight-tokyo-handdrawn.jpg");
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, center;
  box-shadow: 7px 7px 0 #a9c8d8, 0 14px 25px rgba(44, 44, 31, .14);
}
.flight-card:nth-child(2) {
  background-image:
    linear-gradient(105deg, rgba(255, 250, 239, .92) 0%, rgba(255, 250, 239, .81) 50%, rgba(255, 250, 239, .64) 100%),
    url("assets/editorial/flights/flight-fuji-handdrawn.jpg");
  background-position: center, center;
}
.flight-card:nth-child(3) {
  background-image:
    linear-gradient(105deg, rgba(255, 250, 239, .92) 0%, rgba(255, 250, 239, .80) 48%, rgba(255, 250, 239, .61) 100%),
    url("assets/editorial/flights/flight-yokohama-handdrawn.jpg");
  background-position: center, center;
}
.flight-card::before,
.flight-card::after { content: ""; position: absolute; top: 68%; width: 16px; height: 16px; border-radius: 50%; background: #f2e8d2; }
.flight-card::before { left: -8px; }
.flight-card::after { right: -8px; }
.flight-card__top { color: #49645f; letter-spacing: .17em; }
.flight-card__airlines { color: #a54c3c; }
.flight-card__countdown-row { border-top-style: dashed; }
.flight-countdown strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.carousel-dot { background: #b8aa93; }
.carousel-dot.is-active { background: var(--terracotta); }

.route-section { background: #f6f0e2; }
.route-region-tabs { display: none; }
.route-day-tabs { margin: 0 -2px 15px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.route-day-tabs::-webkit-scrollbar { display: none; }
.route-day-tabs button { flex: 0 0 auto; border: 1px solid transparent; border-radius: 0; color: #6d675d; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.route-day-tabs button[aria-pressed="true"] { border-color: #c6b89f; background: #fffaf0; box-shadow: 3px 3px 0 #d9c995; }
.daily-map-summary { margin: 0 0 12px; padding: 12px 11px 10px; border: 1px dashed #baa98f; background: rgba(255, 250, 240, .65); }
.daily-map-summary__heading { display: flex; align-items: baseline; gap: 9px; }
.daily-map-summary__heading span { flex: 0 0 auto; color: var(--terracotta); font: 760 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.daily-map-summary__heading strong { overflow: hidden; font-family: "Yu Mincho", "Songti SC", serif; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.daily-area-route { margin: 11px -3px 0; padding: 0 3px 5px; display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; list-style: none; }
.daily-area-route::-webkit-scrollbar { display: none; }
.daily-area-route li { position: relative; flex: 0 0 auto; }
.daily-area-route li:not(:last-child)::after { content: "→"; position: absolute; top: 10px; right: -14px; color: #a9987e; font-size: 10px; }
.daily-area-route a { min-height: 34px; padding: 5px 8px 5px 5px; display: flex; align-items: center; gap: 6px; border: 1px solid #d4c6af; color: var(--ink); background: #fffdf7; text-decoration: none; }
.daily-area-route i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fffaf0; background: var(--route-color); font: normal 700 7px/1 ui-monospace, monospace; }
.daily-area-route span { font-size: 10px; font-weight: 720; white-space: nowrap; }
.journey-corridor-map__art {
  position: relative;
  margin: 0;
  padding: 8px 8px 0;
  transform: rotate(-.6deg);
  background: #fffaf0;
  box-shadow: 5px 6px 0 #bad1d8, 0 12px 24px rgba(64, 45, 26, .12);
}
.journey-corridor-map__art img { width: 100%; height: auto; border: 1px solid #d1c4ae; }
.journey-corridor-map__art figcaption { padding: 9px 3px 11px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.journey-stops { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.journey-stops a { min-height: 54px; padding: 9px; display: flex; align-items: center; gap: 9px; border: 1px dashed #bfae94; color: var(--ink); background: rgba(255,255,255,.46); text-decoration: none; }
.journey-stops a:last-child { grid-column: 1 / -1; }
.journey-stops i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff9eb; background: var(--terracotta); font: normal 700 9px/1 ui-monospace, monospace; }
.journey-stops b, .journey-stops small { display: block; }
.journey-stops b { font-family: "Yu Mincho", "Songti SC", serif; font-size: 14px; }
.journey-stops small { margin-top: 3px; color: var(--muted); font: 650 8px/1 ui-monospace, monospace; letter-spacing: .05em; }
.route-caption { margin-top: 15px; font-size: 10px; }

.weather-section { position: relative; background: #e9eee7; }
.weather-section::before { content: "☁"; position: absolute; top: 27px; right: 23px; color: rgba(70, 100, 92, .12); font: 700 60px/1 Georgia, serif; transform: rotate(8deg); pointer-events: none; }
.weather-intro { max-width: 520px; margin: -2px 0 15px; color: #66736d; font-size: 11px; line-height: 1.65; }
.weather-carousel { margin: 0 -18px; padding: 3px 18px 15px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.weather-carousel::-webkit-scrollbar { display: none; }
.weather-card { position: relative; flex: 0 0 calc(100% - 26px); min-height: 310px; padding: 18px 15px 14px; overflow: hidden; scroll-snap-align: center; border: 1px solid #bcb19d; color: #263d38; background: #f7efda; box-shadow: 5px 5px 0 rgba(183, 156, 96, .34); }
.weather-card:nth-child(2) { background: #e5eff1; box-shadow: 5px 5px 0 rgba(106, 151, 160, .30); }
.weather-card:nth-child(3) { background: #eee2c0; box-shadow: 5px 5px 0 rgba(179, 126, 72, .27); }
.weather-card::after { content: ""; position: absolute; width: 84px; height: 24px; top: -10px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: rgba(247, 239, 210, .64); border-inline: 1px solid rgba(139, 120, 85, .15); }
.weather-card header { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.weather-card header span { color: #a24c3b; font: 760 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.weather-card header h3 { margin: 7px 0 0; font-family: "Yu Mincho", "Songti SC", serif; font-size: 27px; line-height: 1; }
.weather-card header p { margin: 7px 0 0; color: #65736e; font-size: 10px; }
.weather-card header > b { width: 53px; height: 53px; display: grid; place-items: center; border: 1px solid rgba(52, 74, 68, .3); border-radius: 50%; color: #b55b39; background: rgba(255, 253, 244, .52); font: 400 27px/1 Georgia, serif; }
.weather-days { margin-top: 22px; padding: 13px 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(51px, 1fr); gap: 6px; border-block: 1px dashed rgba(89, 96, 77, .35); }
.weather-day { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.weather-day time { display: flex; flex-direction: column; gap: 2px; color: #5d6864; font-size: 8px; line-height: 1.2; }
.weather-day time b { color: #263d38; font: 760 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.weather-day__icon { height: 32px; margin: 8px 0 2px; color: #a7503e; font: 400 22px/1 Georgia, serif; }
.weather-day > strong { font: 760 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.weather-day > strong small { color: #75817d; font-size: 9px; font-weight: 650; }
.weather-day > em { margin-top: 6px; color: #64736e; font-style: normal; font-size: 7px; white-space: nowrap; }
.weather-card footer { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; color: #74807a; font-size: 8px; line-height: 1.4; }
.weather-loading-lines { margin-top: 34px; display: grid; gap: 12px; }
.weather-loading-lines i { display: block; height: 33px; background: linear-gradient(90deg, rgba(255,255,255,.25), rgba(255,255,255,.65), rgba(255,255,255,.25)); background-size: 200% 100%; animation: weather-loading 1.4s ease-in-out infinite; }
.weather-loading-lines i:nth-child(2) { width: 82%; }
.weather-loading-lines i:nth-child(3) { width: 64%; }
.weather-error { margin-top: 36px; padding-top: 20px; border-top: 1px dashed rgba(89, 96, 77, .35); }
.weather-error strong { font-family: "Yu Mincho", "Songti SC", serif; font-size: 17px; }
.weather-error p { margin: 8px 0 14px; color: #68746f; font-size: 10px; line-height: 1.6; }
.weather-error button { min-height: 39px; padding: 0 13px; border: 1px solid #546c64; color: #36564d; background: rgba(255,255,255,.48); font-size: 10px; font-weight: 720; cursor: pointer; }
.weather-dots { display: flex; justify-content: center; gap: 7px; }
.weather-dot { width: 6px; height: 6px; border-radius: 50%; background: #a5b1a9; transition: width .18s ease; }
.weather-dot.is-active { width: 22px; border-radius: 99px; background: var(--terracotta); }
.weather-source { margin: 13px 0 0; color: #75807b; font-size: 8px; text-align: center; }
.weather-source a { color: #45685e; font-weight: 720; }
@keyframes weather-loading { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.itinerary-section { background: rgba(244, 237, 218, .88); }
.timeline::before { left: 10px; top: 25px; bottom: 29px; width: 2px; background: repeating-linear-gradient(to bottom, var(--terracotta) 0 6px, transparent 6px 11px); opacity: .55; }
.day-card { padding-left: 28px; }
.day-card + .day-card { margin-top: 13px; }
.day-dot { left: 4px; top: 27px; width: 13px; height: 13px; border-color: #f4edda; background: var(--powder); box-shadow: 0 0 0 1px var(--lake); }
.day-toggle {
  min-height: 92px;
  padding: 15px 13px;
  border: 1px solid #d0c3ae;
  background: rgba(255, 252, 244, .84);
  box-shadow: 3px 3px 0 rgba(213, 190, 142, .55);
}
.day-meta { color: var(--terracotta); font-size: 9px; letter-spacing: .1em; }
.day-title { display: block; font-family: "Yu Mincho", "Songti SC", serif; font-size: 18px; }
.day-locations { display: block; }
.day-chevron { width: 31px; height: 31px; border-radius: 0; border-color: #c3b197; color: var(--terracotta); background: #f7efdc; }
.day-detail { margin: 9px 0 5px; padding: 15px 10px 20px; border: 1px solid #d5c8b6; border-top: 0; background: rgba(255,250,239,.64); }
.day-areas { display: grid; gap: 24px; }
.day-area { position: relative; }
.day-area + .day-area { padding-top: 2px; }
.day-area__heading { position: relative; min-height: 45px; margin-bottom: 9px; padding: 8px 10px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border-bottom: 2px solid var(--ink); }
.day-area__heading > span { color: var(--terracotta); font: 760 8px/1 ui-monospace, monospace; letter-spacing: .1em; }
.day-area__heading > h3 { margin: 0; font-family: "Yu Mincho", "Songti SC", serif; font-size: 19px; line-height: 1.2; }
.place-card-list { display: grid; gap: 9px; }
.place-card {
  position: relative;
  padding: 14px 12px 12px;
  border: 1px solid #d4c6b0;
  background: rgba(255, 253, 247, .91);
  box-shadow: 2px 2px 0 rgba(183, 164, 126, .32);
}
.place-card::before { content: ""; position: absolute; left: -5px; top: 18px; width: 9px; height: 9px; border: 2px solid #fffaf0; border-radius: 50%; background: var(--terracotta); }
.place-card.is-optional { border-style: dashed; background: rgba(238, 229, 203, .74); }
.place-card.is-custom { border-color: #7899a0; }
.place-card__meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .08em; }
.place-card__meta > span { padding: 4px 6px; color: #fffaf0; background: var(--forest); }
.place-card__meta em { margin-left: auto; padding: 4px 6px; color: #823f33; background: #eed4c5; font-style: normal; }
.place-card__heading { margin-top: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.place-card__heading h4 { margin: 0; font-family: "Yu Mincho", "Songti SC", serif; font-size: 16px; line-height: 1.35; }
.place-card__delete { flex: 0 0 auto; min-height: 32px; padding: 0 4px; border: 0; color: #9c5847; background: transparent; font-size: 9px; text-decoration: underline; }
.place-card__editable { flex: 0 0 auto; padding: 4px 6px; color: #477067; border: 1px solid #9ab1a7; font-size: 8px; font-weight: 760; letter-spacing: .05em; }
.place-card__description { margin: 8px 0 0; color: #625d54; font-size: 11px; line-height: 1.65; }
.schedule-map-links { margin-top: 10px; }
.schedule-map-link { min-height: 36px; padding: 7px 11px; border: 1px solid #8ca6a7; border-radius: 0; color: #315e64; background: #e5efec; font-size: 10px; cursor: pointer; }

.place-purchases { margin-top: 11px; border-top: 1px dashed #c8b89e; }
.place-purchases > summary { min-height: 40px; display: flex; align-items: center; gap: 8px; list-style: none; color: #7f442f; cursor: pointer; font-size: 11px; font-weight: 760; }
.place-purchases > summary::-webkit-details-marker,
.add-place-panel > summary::-webkit-details-marker { display: none; }
.place-purchases > summary::before { content: "✦"; color: var(--terracotta); }
.place-purchases > summary b { margin-left: auto; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #fffaf0; background: var(--terracotta); font: 700 9px/1 ui-monospace, monospace; }
.place-purchases__body { padding: 0 0 2px; }
.place-purchase { min-height: 42px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; border-bottom: 1px solid rgba(205,191,168,.58); }
.place-purchase label { min-width: 0; min-height: 42px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 11px; line-height: 1.4; }
.place-purchase input { position: absolute; opacity: 0; pointer-events: none; }
.place-purchase__check { width: 19px; height: 19px; flex: 0 0 19px; display: grid; place-items: center; border: 1px solid #9a8e78; color: transparent; background: #fffdf7; font-size: 11px; }
.place-purchase.is-complete .place-purchase__check { border-color: var(--forest); color: white; background: var(--forest); }
.place-purchase.is-complete label > span:last-child { color: #948c7e; text-decoration: line-through; }
.place-purchase button { min-width: 42px; min-height: 40px; padding: 0; border: 0; color: #a05c4b; background: transparent; font-size: 9px; }
.place-purchases__empty { margin: 0; padding: 6px 0 10px; color: var(--muted); font-size: 10px; }
.purchase-add-form { margin-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.purchase-add-form input { min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid #cbbda7; border-radius: 0; background: #fffdf7; font: inherit; font-size: 11px; }
.purchase-add-form button { min-width: 54px; border: 0; color: #fffaf0; background: var(--forest); font-size: 10px; }

.add-place-panel { margin-top: 22px; border: 1px dashed #9d8870; background: rgba(237, 226, 201, .5); }
.add-place-panel > summary { min-height: 48px; padding: 0 13px; display: flex; align-items: center; list-style: none; color: var(--forest); cursor: pointer; font-size: 12px; font-weight: 760; }
.add-place-panel form { padding: 1px 12px 13px; display: grid; gap: 10px; }
.add-place-panel label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.add-place-panel input,
.add-place-panel textarea { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #c9baa2; border-radius: 0; background: #fffdf7; color: var(--ink); font: 12px/1.5 inherit; resize: vertical; }
.add-place-panel textarea { min-height: 72px; }
.add-place-panel form > button { min-height: 44px; border: 0; color: #fffaf0; background: var(--ink); font-size: 11px; font-weight: 760; }
.add-place-panel select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #c9baa2; border-radius: 0; color: var(--ink); background: #fffdf7; font: 12px/1.5 inherit; }
.add-place-panel--area { margin-top: 10px; border-color: #9eafa3; background: rgba(226, 235, 222, .52); }
.add-place-panel--area > summary { min-height: 44px; color: #44685f; }
.add-place-area-label { margin: 0; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed #a8b7a9; color: #69756d; background: rgba(255,253,247,.65); font-size: 9px; }
.add-place-area-label b { color: var(--ink); font-family: "Yu Mincho", "Songti SC", serif; font-size: 13px; }

.day-edit-hint { margin: 0 0 18px; padding: 10px 11px; border: 1px dashed #9cae9f; color: #48665c; background: rgba(220, 233, 219, .55); font-size: 10px; line-height: 1.5; }
.day-edit-hint span { margin-right: 4px; color: var(--terracotta); font-size: 13px; }
.area-edit-panel { position: relative; }
.area-edit-panel > summary { min-width: 44px; min-height: 34px; padding: 0 7px; display: grid; place-items: center; border: 1px solid #ad9e86; color: #7c513f; background: #fffaf0; cursor: pointer; list-style: none; font-size: 9px; font-weight: 760; }
.area-edit-panel > summary::-webkit-details-marker { display: none; }
.area-edit-panel[open] > summary { color: white; background: var(--terracotta); }
.area-edit-panel form { position: absolute; top: 41px; right: 0; z-index: 4; width: min(260px, calc(100vw - 92px)); padding: 12px; border: 1px solid #bbaa8e; background: #fffaf0; box-shadow: 5px 7px 18px rgba(62, 46, 28, .18); }
.area-edit-panel label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.area-edit-panel input { min-width: 0; min-height: 40px; padding: 8px 9px; border: 1px solid #cbbba3; background: white; color: var(--ink); font: 12px/1.4 inherit; }
.area-edit-panel button { width: 100%; min-height: 40px; margin-top: 7px; border: 0; color: white; background: var(--forest); font-size: 10px; font-weight: 760; }

.place-edit-panel { margin-top: 10px; border-top: 1px dashed #aa9a82; }
.place-edit-panel > summary { min-height: 43px; display: flex; align-items: center; justify-content: space-between; color: #466b61; cursor: pointer; list-style: none; font-size: 10px; font-weight: 760; }
.place-edit-panel > summary::-webkit-details-marker { display: none; }
.place-edit-panel > summary i { font: normal 16px/1 ui-monospace, monospace; transition: transform .18s ease; }
.place-edit-panel[open] > summary i { transform: rotate(45deg); }
.place-edit-panel form { margin: 0 -4px 2px; padding: 12px; border: 1px solid #b9c5b8; background: #edf1e5; }
.place-edit-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(100px,.55fr); gap: 10px; }
.place-edit-grid label { min-width: 0; display: grid; align-content: start; gap: 5px; color: #68746b; font-size: 9px; font-weight: 720; letter-spacing: .04em; }
.place-edit-grid__wide { grid-column: 1 / -1; }
.place-edit-grid input,
.place-edit-grid select,
.place-edit-grid textarea { width: 100%; min-width: 0; min-height: 41px; padding: 9px 10px; border: 1px solid #aebbae; border-radius: 0; color: var(--ink); background: #fffdf7; font: 12px/1.5 inherit; }
.place-edit-grid textarea { min-height: 92px; resize: vertical; }
.place-edit-actions { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 6px; }
.place-edit-actions button { min-height: 41px; padding: 0 11px; border: 1px solid transparent; font-size: 10px; font-weight: 760; cursor: pointer; }
.place-edit-actions button[type="submit"] { color: white; background: var(--forest); }
.place-edit-actions .place-edit-reset { color: #45655c; border-color: #9eb0a5; background: #fffdf7; }
.place-edit-actions .place-edit-remove { margin-left: auto; color: #9b493c; border-color: #d6afa4; background: #fff6f0; }

.removed-places-panel { margin-top: 10px; border: 1px dashed #ba9f91; background: rgba(245, 228, 218, .48); }
.removed-places-panel > summary { min-height: 42px; padding: 0 12px; display: flex; align-items: center; color: #86564a; cursor: pointer; list-style: none; font-size: 10px; font-weight: 760; }
.removed-places-panel > summary::-webkit-details-marker { display: none; }
.removed-places-panel > div { padding: 0 10px 10px; }
.removed-places-panel button { width: 100%; min-height: 42px; padding: 7px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-top: 1px solid rgba(178, 151, 137, .35); color: var(--ink); background: transparent; text-align: left; font-size: 10px; }
.removed-places-panel button b { flex: 0 0 auto; color: #477067; font-size: 9px; }
.costs { margin-top: 14px; }
.cost-tag { border-radius: 0; background: #e8dfc5; }
.detail-note { background: rgba(217, 185, 103, .16); }

.prep-section { background: #e9e6d2; }
.todo-form input, .todo-form button { border-radius: 0; }
.todo-form input { background: #fffdf7; }
.todo-form button { background: var(--forest); }
.todo-item { border-color: rgba(155, 139, 112, .38); }
.todo-check { border-radius: 0; background: #fffdf7; }
.footer { width: min(calc(100% - 24px), var(--content)); margin-top: 18px; border-top: 1px dashed #a9987e; }

.schedule-ticket { border-radius: 0; box-shadow: 2px 2px 0 rgba(191, 153, 124, .24); }
.schedule-ticket__check { border-radius: 0; }
.rental-panel, .return-deadline, .todo-form input, .todo-form button { border-radius: 0; }

@media (min-width: 700px) {
  .hero { min-height: 520px; }
  .hero__copy { top: 55px; left: 38px; right: auto; width: 47%; }
  .hero__collage { left: 36%; right: 32px; bottom: 30px; height: 420px; }
  .hero__scribble { top: 365px; right: auto; left: 33%; }
  .section { padding: 38px 34px; }
  .journey-stops { grid-template-columns: repeat(5, 1fr); }
  .journey-stops a:last-child { grid-column: auto; }
  .weather-carousel { margin-inline: -34px; padding-inline: 34px; }
  .weather-card { flex-basis: 76%; min-height: 330px; padding: 22px 20px 17px; }
  .day-detail { padding: 20px 18px 25px; }
  .place-card { padding: 17px 16px 14px; }
}

@media (min-width: 1000px) {
  .route-section { width: min(calc(100% - 24px), var(--content)); max-width: var(--content); margin-left: auto; transform: none; }
}

/* Journal typography: expressive headings, readable handwritten body copy. */
:root {
  --font-journal-display: "Ma Shan Zheng", "HanziPen SC", "STXingkai", "Kaiti SC", STKaiti, KaiTi, cursive;
  --font-journal-body: "Kaiti SC", STKaiti, KaiTi, "HanziPen SC", "Songti SC", serif;
  --font-journal-note: "HanziPen SC", "Kaiti SC", STKaiti, KaiTi, "Marker Felt", "Bradley Hand", cursive;
}

body,
button,
input,
select,
textarea { font-family: var(--font-journal-body); }

.hero h1,
.section-heading h2,
.day-title,
.day-area__heading > h3,
.place-card__heading h4,
.daily-map-summary__heading strong,
.journey-stops b,
.weather-card header h3,
.weather-error strong,
.add-place-area-label b,
.ledger-confirm-card p { font-family: var(--font-journal-display); font-weight: 400; }

.hero h1 { letter-spacing: .01em; }
.section-heading h2 { letter-spacing: .015em; }
.day-title,
.day-area__heading > h3,
.place-card__heading h4 { letter-spacing: .025em; }

.wordmark,
.hero__eyebrow,
.hero__date,
.hero__handnote,
.section-kicker,
.section-index,
.soft-label,
.flight-card__top,
.flight-placeholder__eyebrow,
.route-day-tabs button,
.daily-map-summary__heading span,
.daily-area-route i,
.journey-stops i,
.journey-stops small,
.weather-card header span,
.weather-day time b,
.day-meta,
.day-area__heading > span,
.place-card__meta,
.place-purchases > summary b { font-family: var(--font-journal-note); }

.hero__handnote { font-style: normal; font-size: 15px; }
.day-locations,
.place-card__description,
.route-caption,
.weather-intro,
.weather-source,
.detail-note,
.todo-text { letter-spacing: .025em; }
