:root {
  color-scheme: light;
  font: 500 max(16px,100%)/1.5 var(--font-sans);
  color: var(--text);
  background: var(--page-bg);
  scroll-padding-top: 6rem;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
[hidden] { display: none !important; }
button, select, input { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button { background: none; border: 0; padding: 0; }
a { color: var(--accent-700); text-decoration: none; font-weight: 600; }
a:hover { color: var(--accent-500); }
:focus-visible { outline: 2px solid var(--second-700); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; }
h2 { font-size: var(--fs-page); letter-spacing: -.035em; }
h3, h4 { font-size: var(--fs-section); letter-spacing: -.018em; }
.ico { width: 1.375rem; height: 1.375rem; flex: none; display: inline-block; vertical-align: middle; }
.icon-library { width: 0; height: 0; overflow: hidden; position: absolute; }
.shell { width: min(100% - 3rem, 1312px); margin-inline: auto; }
.surface, .comparison, .disclosure { background: var(--surface); border-radius: var(--radius-panel); box-shadow: var(--shadow-card); min-width: 0; }
.pad, .comparison { padding: var(--s-24); }
.section-line, .card-head, .place-head, .photo-tools, .photo-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.section-line p, .module p, .card-head > span, small, dt { color: var(--text-muted); }
.module { margin-bottom: 24px; }
.module p { margin-top: 4px; }
.panel { margin-block: 24px 48px; }
.stack { display: grid; gap: 24px; }
.route-grid, .two-grid, .spot-grid, #parkingList { display: grid; grid-template-columns: minmax(0,1.52fr) minmax(0,1fr); align-items: start; gap: 24px; }
.two-grid, .spot-grid, #parkingList { grid-template-columns: repeat(2,minmax(0,1fr)); }
.highlights, .route-grid, .disclosure { margin-top: 24px; }
.mast { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 32px; padding-block: 24px 64px; position: relative; }
.cover-title h1 { font-size: clamp(2.75rem,5.2vw,4.75rem); letter-spacing: -.06em; line-height: 1.02; }
.trip-facts { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 24px; }
.trip-facts > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 10px; }
.trip-facts dt { color: var(--on-cover); font-size: var(--fs-body); }
.trip-facts .ico { grid-row: span 2; width: 26px; height: 26px; color: var(--on-cover-icon); }
.trip-facts dd { font-weight: 700; }
.cover-photo { position: relative; height: clamp(14rem,19vw,18rem); overflow: hidden; border-radius: 12px; background: var(--accent-800); }
.cover-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 23%; }
.cover-photo figcaption { position: absolute; right: 12px; bottom: 10px; }
.cover-photo a { display: inline-flex; gap: 4px; align-items: center; color: white; padding: 4px 10px; background: rgb(32 30 34 / .78); border-radius: 99px; font-size: var(--fs-body); }
.cover-photo .ico { width: 16px; height: 16px; }
.comparison { position: relative; margin-top: -36px; }
.comparison .section-line { margin-bottom: 16px; align-items: baseline; }
.comparison .section-line p { font-size: var(--fs-body); }
#proposalChooser > summary { display: none; }
.select { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.pick { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 4px; position: relative; min-width: 0; text-align: left; background: var(--surface-sunken); border: 1px solid var(--line-soft); border-radius: 12px; padding: 0 16px 14px; align-content: start; }
.pick:hover { background: var(--accent-50); }
.pick[aria-pressed=true] { border-color: var(--accent-600); box-shadow: inset 0 0 0 1px var(--accent-600); background: var(--accent-50); }
.pick-img { width: calc(100% + 32px); margin: 0 -16px 6px; height: clamp(5rem,8.2vw,8rem); border-radius: 11px 11px 0 0; object-fit: cover; }
.pick-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-muted); font-size: var(--fs-body); }
.radio { width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 50%; }
.pick[aria-pressed=true] .radio { border: 5px solid var(--accent-600); }
.recommend { color: var(--accent-700); font-weight: 700; margin-left: auto; }
.pick-title { font-size: 1.125rem; font-weight: 700; }
.pick .sub { color: var(--text-muted); }
.cardCost { font-weight: 700; color: var(--accent-700); padding-top: 4px; }
.itinerary-intro .module { align-items: flex-start; }
.stop-list { display: flex; gap: 6px 16px; flex-wrap: wrap; list-style: none; padding: 0; margin-top: 10px; color: var(--text-muted); }
.stop-list li { font-size: var(--fs-body); }
#tradeoff .stop-list { gap: 0; }
#tradeoff li { position: relative; padding: 12px 16px 0 0; }
#tradeoff li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: var(--accent-300); }
#tradeoff li:last-child::before { display: none; }
#tradeoff li::after { content: ""; position: absolute; top: 1px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-500); }
.story { display: grid; grid-template-columns: 12rem minmax(0,1fr); gap: 8px 24px; padding-block: 16px; border-block: 1px solid var(--line-soft); }
.story p { max-width: 82ch; }
.story p+p { margin-top: 8px; color: var(--text-muted); }
.gallery-section { margin-top: 20px; }
#gallery { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(17rem,29%,24rem); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--accent-300) transparent; padding: 8px 2px; }
.photo-card { min-width: 0; scroll-snap-align: start; }
.photo-mosaic { display: grid; grid-template: repeat(2,minmax(0,1fr))/repeat(3,minmax(0,1fr)); gap: 3px; height: clamp(10rem,14vw,13rem); border-radius: 12px; overflow: hidden; }
.photo-mosaic[data-count="4"] { grid-template-rows: repeat(3,minmax(0,1fr)); }
.photo-open { position: relative; overflow: hidden; }
.photo-open:first-child { grid-area: 1/1/-1/3; }
.photo-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-open:focus-visible { outline: 3px solid white; outline-offset: -5px; }
.album-total { position: absolute; bottom: 8px; left: 8px; display: flex; align-items: center; gap: 6px; border-radius: 99px; padding: 3px 10px; background: rgb(32 30 34 / .8); color: white; font-size: var(--fs-body); font-weight: 600; }
.album-total .ico { width: 16px; height: 16px; }
.photo-copy, .place-copy { padding: 12px 0; }
.photo-copy small, .place-head small { font-size: var(--fs-body); }
.photo-copy h4, .place-copy h4 { margin: 2px 0 6px; }
.spot-grid { margin-top: 16px; }
.place-feature .photo-mosaic { height: clamp(12rem,22vw,20rem); }
#fujicamp { scroll-margin-top: 6rem; }
#fujiRooms { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width: 48rem) { #fujiRooms { grid-template-columns: minmax(0,1fr); } }
.card-head { padding: 16px 24px; min-height: 68px; }
.card-head > span { font-size: var(--fs-body); }
.links, .day-links, .gallery-controls, #mapTargets, .route-option > div, .map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.icon-action { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--accent-600); background: transparent; }
.icon-action:hover { color: var(--accent-700); background: var(--accent-100); }
.icon-action[aria-pressed=true], .icon-action.primary { color: white; background: var(--accent-600); }
.icon-action:focus-visible { outline: 2px solid var(--second-700); outline-offset: 1px; }
.place-head .links, .route-option > div { flex-wrap: nowrap; }
.map-frame { position: relative; }
#map { position: relative; width: 100%; height: clamp(23rem,38vw,35rem); font-family: var(--font-sans); z-index: 0; }
.map-frame.enlarged { position: fixed; inset: 0; z-index: 9999; background: white; }
.map-frame.enlarged #map { height: 100dvh; }
.map-expanded { overflow: hidden; }
.map-frame > .icon-action { position: absolute; top: 12px; right: 12px; z-index: 2; background: white; color: var(--accent-700); box-shadow: var(--shadow-card); }
#offlineNote { position: absolute; z-index: 2; bottom: 24px; inset-inline: 12px; background: #fffe; padding: 8px; font-size: var(--fs-body); }
.atlas-credits { position: absolute; bottom: 0; right: 0; max-width: 84%; padding: 0 3px; background: #fffd; font: var(--fs-body)/1.4 var(--font-sans); }
.atlas-pin, .night-marker, .number { display: grid; place-items: center; width: 28px; height: 28px; background: var(--accent-700); color: white; border-radius: 50%; border: 2px solid white; font: 700 var(--fs-body)/1 var(--font-sans); }
.atlas-pin span { position: absolute; top: 50%; transform: translateY(-50%); left: calc(100% + 3px); white-space: nowrap; pointer-events: none; }
.atlas-pin:nth-of-type(even) span, .atlas-pin[data-stop="jon"] span { left: auto; right: calc(100% + 3px); }
.atlas-pin span, .atlas-label, .lake-label { background: #fffffff0; color: var(--text); padding: 2px 5px; border-radius: 4px; font: 600 var(--fs-body)/1.3 var(--font-sans); }
.maplibregl-popup-content, .leaflet-popup-content { font: 500 1rem/1.5 var(--font-sans); }
.stop-popup > * { display: block; margin: 4px 0; }
.maplibregl-ctrl-group button { min-width: 44px; min-height: 44px; }
.map-tools { padding: 0; }
.map-key, .route-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 24px; font-size: var(--fs-body); color: var(--text-muted); }
.route-legend span { display: flex; align-items: center; gap: 6px; }
.route-legend i { width: 22px; border-top: 3px solid var(--accent-600); }
#legendReturn i { border-color: var(--second-700); }
.directions { padding: 16px 24px 24px; }
#actionLegend, #actionLegend > span { display: inline-flex; align-items: center; gap: 6px; }
#actionLegend { flex-wrap: wrap; gap: 12px; font-size: var(--fs-body); color: var(--text-muted); }
#actionLegend .ico { width: 17px; }
#mapActions { display: grid; gap: 0; margin-block: 8px; }
.overview-item, .route-option { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; min-height: 48px; }
.route-option { grid-template-columns: minmax(0,1fr) auto; }
.route-option strong, .overview-item strong { font-weight: 600; }
#pathStatus:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--second-50); padding: 12px 24px; margin-top: 8px; }
#pathStatus span > * { display: block; }
#routeNote { color: var(--text-muted); }
.nights { padding: 0 12px 16px; }
.night { display: grid; grid-template-columns: 28px 3.6rem 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 48px; border-radius: 8px; padding: 6px 8px; text-align: left; }
.night .number { background: white; color: var(--text-muted); border: 1px solid var(--line); }
.night[aria-expanded=true] { background: var(--accent-100); color: var(--accent-700); }
.night[aria-expanded=true] .number { background: var(--accent-600); color: white; }
.night time { font-size: var(--fs-body); }
.night > .ico { width: 16px; height: 16px; }
.night[aria-expanded=true] > .ico { transform: rotate(180deg); }
.day-collapse { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .16s ease, visibility 0s .16s; }
.day-collapse.expanded { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .16s ease; }
.day-clip { min-height: 0; overflow: hidden; }
.day-detail { padding: 12px 8px 18px 44px; }
.day-detail h4 { font-size: 1rem; }
.day-detail dl, .daily-nav, .visit-details, .booking-home, .night-total { margin-top: 12px; }
.day-detail dt, .summary-value dt { font-size: var(--fs-body); }
.day-detail dd+dt { margin-top: 6px; }
.arrival { margin-top: 8px; padding-left: 1.1em; }
.arrival li+li { margin-top: 6px; }
summary { color: var(--accent-700); font-weight: 600; }
.disclosure > summary { padding: 20px 24px; }
.inside { padding: 0 24px 24px; }
.inside > p, .inside li { max-width: 80ch; }
.inside > p+p, .inside li+li, .sources p { margin-top: 12px; }
.sources a, .contact a { display: inline-block; margin-right: 12px; }
.maplist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 20px; }
.maplist .stop-list { display: grid; gap: 2px; padding-left: 1.2rem; list-style: decimal; }
.unit-facts > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); align-items: baseline; gap: 8px 16px; padding-block: 8px; }
.unit-facts dd { font-weight: 600; overflow-wrap: anywhere; }
#beds, .people, .contact { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.people { gap: 2px; color: var(--accent-600); }
.bed b, .bed small { display: block; }
.parking-item { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; }
.date-chip { align-self: start; background: var(--accent-100); color: var(--accent-700); font-size: var(--fs-body); font-weight: 700; border-radius: 6px; padding: 4px 8px; }
.permit { color: var(--warning-700); font-weight: 600; margin: 4px 0 8px; }
.balance-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.money-stat { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.money-stat h3 { color: var(--text-muted); font-size: var(--fs-body); margin-bottom: 6px; }
.money-stat strong { font-size: clamp(1.5rem,2.45vw,2.125rem); line-height: 1.25; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.money-stat .ico { width: 44px; height: 44px; color: var(--accent-400); }
.money-stat.primary { background: var(--gradient-cover); color: white; }
.money-stat.primary h3, .money-stat.primary .ico { color: var(--on-cover); }
.estimates { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.summary-range { display: flex; gap: 12px 24px; flex-wrap: wrap; margin-block: 8px; }
.summary-value dd, .night-total { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.meter { display: flex; overflow: hidden; height: 12px; border-radius: 99px; margin-block: 20px 12px; }
.budget-assumption, .calc-note, .budget-scope, #paidNote { font-size: var(--fs-body); color: var(--text-muted); margin-top: 8px; }
.budget-scope { padding: 0 24px 24px; }
.table-wrap { min-width: 0; container-type: inline-size; }
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: var(--fs-body); }
.data-table caption { text-align: left; padding: 8px 0; color: var(--text-muted); font-size: var(--fs-body); }
.data-table thead { background: var(--surface-sunken); color: var(--table-quiet-strong); border-bottom: 1px solid var(--table-line-strong); }
.data-table th, .data-table td { text-align: right; vertical-align: top; padding: 10px 8px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.data-table th { font-weight: 600; }
.data-table thead th { font-size: var(--fs-secondary); }
.data-table tr > :first-child { text-align: left; }
.data-table tbody tr:hover { background: var(--row-hover); }
.payment-edit { margin-top: 16px; }
.input-grid { display: grid; gap: 12px; padding-top: 12px; }
.input-grid label { display: grid; gap: 4px; }
.input-grid input { width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-strong); }
.input-grid button { justify-self: start; background: var(--accent-600); color: white; border-radius: 12px; min-height: 44px; padding: 8px 16px; }
#fuelgrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 16px; }
#lightbox { width: min(56rem,94vw); max-height: 92dvh; overflow: auto; border: none; border-radius: 16px; padding: 16px; color: var(--text); box-shadow: var(--shadow-pop); }
#lightbox::backdrop { background: rgb(33 25 30 / .78); backdrop-filter: blur(6px); }
#photoLarge { display: block; width: 100%; max-height: 60dvh; object-fit: contain; background: var(--surface-sunken); border-radius: 8px; }
.photo-tools { margin-bottom: 8px; }
.photo-foot { align-items: flex-start; gap: 16px; margin-top: 12px; }
.photo-foot > div:first-child { flex: 1 1 14rem; }
.photo-foot p { margin: 4px 0 8px; }
footer { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 12px 0 32px; color: var(--text-muted); font-size: var(--fs-body); }
@container (max-width: 21rem) {
  .data-table, .data-table tbody, .data-table tr { display: block; width: 100%; }
  .data-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .data-table th[scope=row] { display: block; background: var(--surface-sunken); padding: 8px; }
  .data-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; }
  .data-table td:before { content: attr(data-label); text-align: left; color: var(--text-muted); font-size: var(--fs-body); }
  .data-table caption { display: block; }
}
@media(max-width: 52rem) {
  .route-grid, .two-grid { grid-template-columns: minmax(0,1fr); }
  .mast { gap: 16px; }
  .trip-facts { gap: 8px 12px; }
  .money-stat { padding: 16px; }
  .money-stat .ico { width: 32px; height: 32px; }
}
@media(max-width: 42rem) {
  .shell { width: calc(100% - 24px); }
  .mast { grid-template-columns: minmax(0,1fr); padding-block: 16px 40px; }
  .cover-photo { height: clamp(8rem,32vw,12rem); }
  .trip-facts { margin-top: 12px; }
  .comparison { margin-top: -24px; }
  .pad, .comparison { padding: 16px; }
  .section-line, .card-head { gap: 12px; }
  .story, #parkingList, .balance-board, .spot-grid, #fuelgrid, .maplist { grid-template-columns: minmax(0,1fr); }
  .story { gap: 8px; }
  #gallery { grid-auto-columns: min(85%,21rem); }
  .route-grid, .two-grid, .balance-board { gap: 16px; }
  .card-head, .directions, .inside { padding-inline: 16px; }
  .parking-item { grid-template-columns: minmax(0,1fr); }
  .date-chip { justify-self: start; }
  .estimates { grid-template-columns: 1fr; gap: 12px; }
  .unit-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .day-detail { padding-left: 12px; }
  .money-stat strong { font-size: 2rem; }
}
@media(max-width: 37rem) {
  .comparison > .section-line { display: none; }
  #proposalChooser > summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; list-style: none; }
  #proposalChooser summary .chooser-chevron { grid-column: 2; grid-row: 1/4; }
  #proposalChooser[open] summary .chooser-chevron { transform: rotate(180deg); }
  #proposalChooser summary > * { grid-column: 1; }
  #currentCost, .compare-prompt { color: var(--text-muted); font-size: var(--fs-body); }
  .select { grid-template-columns: 1fr; margin-top: 12px; gap: 12px; }
  .pick { grid-template-columns: 5rem minmax(0,1fr); grid-template-rows: auto auto auto auto; align-items: center; gap: 0 10px; padding: 8px; }
  .pick-img { grid-area: 1/1/5/2; width: 100%; height: 100%; max-height: 8rem; margin: 0; border-radius: 8px; }
  .pick-meta,.pick-title,.pick .sub,.cardCost { grid-column: 2; }
  .pick .sub { font-size: var(--fs-body); }
  .recommend { margin-left: 0; }
}
@media (max-width: 24rem) {
  .pick-meta { gap: 4px; }
  .trip-facts .ico { display: none; }
  .trip-facts > div { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.icon-tooltip {
  position: fixed; z-index: 10000; max-width: min(19rem, calc(100vw - 16px));
  padding: 6px 10px; border-radius: 8px; color: white; background: var(--ink-900);
  font-size: var(--fs-body); font-weight: 600; line-height: 1.35; pointer-events: none;
}

#mapActions { display: grid; gap: 0; }
.overview-block { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 8px 0 12px; }
.overview-block + .overview-block { border-top: 1px solid var(--line-soft); }
.overview-legs { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.overview-leg { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-size: var(--fs-body); }
.overview-leg .ico { width: 16px; height: 16px; }


.overnight-section, .parking-guide { margin-block: clamp(2rem,4vw,3.25rem); }
.overnight-section > h3, .parking-guide > h3 { font-size: clamp(1.4rem,2vw,1.8rem); margin-bottom: 1rem; }
#parkingList { grid-template-columns: repeat(auto-fit,minmax(min(100%,24rem),1fr)); align-items: stretch; gap: clamp(1rem,2vw,1.75rem); }
.parking-item { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius-panel); background: var(--surface); }
.parking-item .photo-mosaic { border-radius: 0; height: auto; aspect-ratio: 2.25; flex: none; }
.parking-body { display: grid; gap: .7rem; padding: 1.125rem 1.25rem; }
.parking-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; color: var(--text-muted); }
.parking-meta time { color: var(--accent-700); font-weight: 700; }
.parking-body h4 { font-size: 1.35rem; }
.parking-status { display: flex; gap: .45rem; align-items: start; font-weight: 650; color: var(--warning-700); }
.parking-status .ico { width: 1.15em; height: 1.15em; margin-top: .15em; }
.parking-conditions summary { width: fit-content; padding-block: .35rem; }
.parking-conditions p { padding-block: .3rem; }
.parking-contact { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.parking-contact a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.parking-contact .ico { width: 1rem; height: 1rem; }
.parking-foot { margin-top: auto; background: var(--surface-sunken); border-top: 1px solid var(--line-soft); padding: .25rem 1rem; }
.parking-foot .route-option { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.parking-foot .route-option > div { gap: .25rem; }
#stayinfo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem 1.25rem; align-items: start; }
#stayinfo details { border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: 0 1.15rem; background: var(--surface); }
#stayinfo summary { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 1rem; }
#stayinfo summary::-webkit-details-marker { display: none; }
#stayinfo details[open] { padding-bottom: 1rem; }
#stayinfo details[open] .ico { transform: rotate(180deg); }
#stayinfo details a { display: inline-block; margin: .75rem 1rem 0 0; }
@media(max-width:44rem) { #stayinfo { grid-template-columns: 1fr; } }

.vehicle-section > h3 { font-size: 1.45rem; }
#fuelgrid { align-items: start; }
.vehicle-allocation { min-width: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-panel); padding: clamp(1rem,2vw,1.5rem); }
.vehicle-heading { display: flex; gap: .8rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.vehicle-heading > .ico { width: 2.6rem; height: 2.6rem; padding: .5rem; background: var(--accent-100); color: var(--accent-700); border-radius: 12px; }
.vehicle-heading h4 { font-size: 1.4rem; }
.vehicle-heading span { color: var(--text-muted); }
.vehicle-allocation h5 { font: inherit; font-weight: 700; margin: 1rem 0 .3rem; }
.vehicle-allocation .summary-range { gap: 1rem 2rem; margin-bottom: 1rem; }
.vehicle-allocation .summary-value dd { font-size: clamp(1.25rem,2vw,1.65rem); }
.vehicle-math { padding-top: .65rem; border-top: 1px solid var(--line-soft); }
.vehicle-allocation .data-table tbody tr:last-child { background: var(--accent-50); }
.day-visit { min-width: 0; margin-block: 1rem; }
.day-visit .place-head h5 { display: grid; margin: 0; font: inherit; font-weight: 700; }
.day-visit time { font-weight: 600; color: var(--accent-700); }
.day-visit .photo-mosaic { height: auto; aspect-ratio: 2; }
.day-visit p { margin-top: .5rem; }
.photo-mosaic[data-count="2"] { grid-template: 1fr/1fr 1fr; }
.photo-mosaic[data-count="2"] > :first-child { grid-area: auto; }
#otherMeals { margin-top: 2rem; }
.resort-visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,2.5vw,2rem); padding: clamp(1rem,2vw,1.5rem); align-items: start; }
.resort-visit .photo-mosaic { height: auto; aspect-ratio: 1.48; }
.resort-copy h4 { font-size: 1.5rem; margin: .25rem 0 .6rem; }
.ride-list .resort-visit { padding: 0; }
.resort-facts { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin-block: 1rem; }
.resort-facts dd { font-weight: 700; }
.visit-details p { margin-block: .6rem; }
@media(max-width:55rem){ .resort-visit { grid-template-columns: 1fr; } }

small, sub, sup, caption, #map .maplibregl-ctrl-scale, #map .leaflet-control, #map .leaflet-control-scale-line,
#map .leaflet-control-attribution, #map .leaflet-popup-content, #map .leaflet-tooltip, #map .maplibregl-popup-content,
#map .maplibregl-control-container, #map .maplibregl-popup-close-button { font-size: var(--fs-body); }
#map .maplibregl-ctrl-scale { height: auto; line-height: 1.25; }
#map .leaflet-control-attribution, .atlas-credits { max-width: min(100%,36rem); overflow-wrap: anywhere; }
.day-detail .daily-nav summary, .visit-details summary { min-height: 44px; align-content: center; }

.meal-dates { display: flex; flex-wrap: wrap; gap: .5rem; }
.meal-dates:empty { display: none; }
.meal-date { display: inline-flex; align-items: center; gap: .65rem; padding: .5rem .75rem; margin-top: .6rem; min-height: 44px; background: var(--accent-50); color: var(--accent-700); border-radius: var(--radius-control); }
.meal-date time { font-weight: 700; }
.meal-date .ico { width: 1.1rem; }

.other-houses { margin-block: 1.5rem 2rem; }
.other-houses > summary { font-weight: 700; }
.other-houses[open] > .room-cards, .other-houses[open] > #parkingList { margin-top: 1rem; }
.parking-body .stay-choice { color: var(--brand-700, #73243a); font-weight: 700; margin: 0; }
.snow-picks { padding-block: .5rem 1.5rem; }
.snow-picks > p { max-width: 70ch; }
.snow-picks .room-cards { margin-block: 1rem; }
.room-search { margin-block: 1.5rem 2.5rem; }
.room-search > h3 { font-size: var(--fs-page); margin-block: 2rem .75rem; }
.room-search > p { margin-block: .75rem 1.25rem; max-width: 72ch; }
.room-nights { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: 1rem; }
.room-nights article { display: grid; align-content: start; gap: .25rem; background: var(--surface); box-shadow: var(--shadow-card); border-radius: var(--radius-card); padding: 1.25rem; }
.room-nights strong { font-size: 1.35rem; }
.room-nights time, .room-price dt { color: var(--text-muted); }
.room-nights p { margin-block: .5rem; }
.room-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,23rem),1fr)); }
.room-search > h3[id] { scroll-margin-top: 6rem; }
.room-cards .photo-mosaic { aspect-ratio: 1.7; }
.room-cards .photo-mosaic[data-count="5"] { grid-template: repeat(2,minmax(0,1fr))/repeat(4,minmax(0,1fr)); }
.room-cards .parking-item { max-width: 46rem; }
.room-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .5rem; }
.room-price { margin-block: .75rem; }
.room-price dd { font-size: 1.375rem; font-weight: 700; }
.proposal-phase { margin-top: 1.5rem; }
.proposal-phase > h3 { font-size: 1.4rem; }
.proposal-phase > p { color: var(--text-muted); margin: .25rem 0 .85rem; }
.chosen-pair, #budgetSubtitle { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.combined-estimate { display: block; padding-top: 1.25rem; color: var(--accent-700); }

#gondola-options { scroll-margin-top: 6rem; }
#gondola-options > p { margin: .5rem 0 1.25rem; max-width: 72ch; }

.night-choice {
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 16px;
  border: 1px solid var(--accent-600);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-600);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.night-choice[aria-pressed=true] { color: white; background: var(--accent-600); }

.atlas-pin[data-stop="okuhida"] span { left: auto; right: calc(100% + 3px); }
.overview-dates { grid-column: 1 / -1; }
.overview-dates summary, .overview-day summary { cursor: pointer; padding-block: .45rem; }
.overview-day { padding-inline-start: .8rem; }
.overview-day time { margin-inline-end: .8rem; font-weight: 700; }
.overview-day > div { display: grid; justify-items: start; gap: .35rem; padding-block-end: .6rem; }
.snowy-pair { grid-template-columns: repeat(auto-fit,minmax(min(100%,20rem),1fr)); }
.day-timing-link, .timing-drive { display:inline-flex; align-items:center; gap:.5rem; }
.day-timing-link { min-height:44px; font-weight:700; }
#camper-timetable { scroll-margin-top:6rem; }
#camper-timetable .section-line > span, .timing-heading span, .timing-stats dt, .timing-dwell dt { color:var(--text-muted); }
.timing-dates { display:flex; flex-wrap:wrap; gap:.4rem; margin:1.25rem 0; }
.timing-dates button { min-height:44px; padding:.5rem .9rem; border:1px solid var(--line); border-radius:.6rem; }
.timing-dates button[aria-pressed=true] { color:white; background:var(--accent-700); border-color:var(--accent-700); }
.timing-heading h4 { font-size:1.35rem; }
.timing-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:1rem; margin:1rem 0; padding:1rem; background:var(--accent-100); border-radius:.7rem; }
.timing-stats dd { font-size:1.2rem; font-weight:700; margin:.2rem 0 0; }
.timing-line { list-style:none; padding:0; margin:1.25rem 0; }
.timing-line li { padding:.75rem 0; border-bottom:1px solid var(--line); }
.timing-row { display:grid; grid-template-columns:4.2rem minmax(0,1fr) auto; align-items:start; gap:1rem; }
.timing-row time { color:var(--accent-700); font-weight:700; font-variant-numeric:tabular-nums; }
.timing-row p, .timing-foot p { max-width:65ch; margin:.3rem 0 0; }
.timing-dwell { display:grid; grid-template-columns:5.8rem 3.8rem; gap:1rem; }
.timing-dwell dd { margin:0; font-weight:700; }
.timing-drive { margin:0 0 .65rem 5.2rem; color:var(--text-muted); }
.timing-drive svg,.day-timing-link svg { width:1.1em; height:1.1em; }
.timing-foot { margin:.75rem 0; }
.timing-foot summary { width:fit-content; cursor:pointer; padding:.5rem 0; color:var(--accent-700); font-weight:600; }
.timing-week { overflow:auto; }
.timing-week table { width:100%; text-align:left; border-collapse:collapse; }
.timing-week caption { text-align:left; font-weight:700; }
.timing-week th,.timing-week td { padding:.6rem; border-bottom:1px solid var(--line); }
.timing-priority { max-width:65ch; }
.timing-links { display:flex; flex-wrap:wrap; gap:.3rem 1rem; margin:1rem 0; }
@media(max-width:44rem) {
 .timing-stats { grid-template-columns:1fr; gap:.5rem; }
 .timing-stats > div { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.2rem .6rem; }
 .timing-stats dd { font-size:1rem; }
 .timing-row { grid-template-columns:minmax(0,1fr); gap:.3rem; }
 .timing-drive { margin-left:0; }
 .timing-dwell { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:.4rem; }
 .timing-dates button { padding-inline:.65rem; }
}
#timingDates { scroll-margin-top:6rem; }
@media(max-width:44rem) {
 .timing-week table,.timing-week tbody,.timing-week tr,.timing-week th,.timing-week td { display:block; }
 .timing-week thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .timing-week caption { display:none; }
 .timing-week tr { padding:.65rem 0; border-bottom:1px solid var(--line); }
 .timing-week th,.timing-week td { padding:.15rem 0; border:0; }
 .timing-week td { display:flex; justify-content:space-between; gap:.75rem; }
 .timing-week td::before { content:attr(data-label); color:var(--text-muted); }
}

.map-timing { padding:1.1rem 1.5rem; border-bottom:1px solid var(--line); }
.map-timing h4 { display:flex; flex-wrap:wrap; gap:.35rem 1rem; align-items:baseline; }
.map-timing h4 span { font-size:1rem; font-weight:600; }
.map-timing .timing-stats { margin:.8rem 0 1.25rem; }
.map-timing .timing-stats dd { font-size:1.1rem; }
.daylight { margin:1rem 0; }
.daylight h5 { font-size:1rem; margin:0 0 .6rem; }
.daylight-date { display:flex; flex-wrap:wrap; gap:.25rem 1rem; margin-bottom:.65rem; color:var(--text-muted); }
.twilight-detail { margin-top:.65rem; }
.twilight-detail summary { color:var(--accent-700); font-weight:600; }
.twilight-detail .light-cards { margin-top:.6rem; }
.twilight-detail p { max-width:62ch; margin:.6rem 0; }
.light-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:.65rem; }
.light-cards > div { border-inline-start:3px solid #b57628; background:#faf5ec; padding:.6rem .8rem; border-radius:.3rem; }
.light-cards > div + div { border-color:#76628e; background:#f4f1f6; }
.light-cards dl > div { display:flex; align-items:baseline; justify-content:space-between; gap:.65rem; }
.light-cards dd,.compact-timing time,.pin-times time { font-weight:700; font-variant-numeric:tabular-nums; }
.compact-timing { padding:0; margin:.8rem 0; list-style:none; }
.compact-timing li { border-bottom:1px solid var(--line); }
.timeline-stop,.timeline-static { display:grid; grid-template-columns:3.5rem minmax(0,1fr) 1.2rem; align-items:baseline; gap:.45rem; width:100%; min-height:44px; padding:.55rem .35rem; text-align:left; border-radius:.4rem; }
.timeline-stop:hover { background:var(--page-bg); }
.timeline-stop[aria-pressed=true] { background:var(--accent-100,#f6eaee); box-shadow:inset 3px 0 var(--accent-700); }
.timeline-stop .ico { width:1.1rem; height:1.1rem; align-self:center; color:var(--accent-700); }
.time-pin { display:flex; align-items:center; gap:.5rem; max-width:16rem; padding:.45rem .75rem; margin-bottom:.45rem; border:2px solid white; border-radius:.6rem; color:white; background:#782438; font:600 1rem/1.3 var(--font-sans); box-shadow:0 .15rem .65rem #33222a45; white-space:normal; pointer-events:none; }
.time-pin::after { content:''; position:absolute; bottom:0; left:50%; margin-left:-.4rem; border:.44rem solid transparent; border-top-color:#782438; border-bottom:0; }
.time-leaflet-pin .time-pin { position:absolute; left:0; bottom:0; width:max-content; transform:translateX(-50%); }
.time-leaflet-pin .time-pin::after { bottom:-.42rem; }
.timeline-restore { display:inline-flex; align-items:center; gap:.4rem; min-height:44px; color:var(--accent-700); font-weight:700; }
.timeline-restore .ico { width:1.1rem; height:1.1rem; }
.compact-timing time { color:var(--accent-700); }
.day-drive-total { display:flex; flex-wrap:wrap; gap:.4rem 1.75rem; margin:.65rem 0; }
.day-drive-total dt { color:var(--text-muted); }
.day-drive-total dd { font-weight:700; font-variant-numeric:tabular-nums; }
.timing-drive { flex-wrap:wrap; }
.timeline-clock { display:grid; align-content:start; }
.timeline-clock abbr { color:var(--text-muted); font-size:1rem; text-decoration:none; }
.timeline-place { min-width:0; }
.visit-facts,.leg-eta { display:flex; flex-wrap:wrap; gap:.4rem 1rem; margin-top:.3rem; }
.visit-fact,.leg-eta > div { display:grid; align-content:start; }
.visit-fact > span,.leg-eta dt { color:var(--text-muted); }
.visit-fact b,.leg-eta dd { font-weight:600; font-variant-numeric:tabular-nums; }
.leg-eta { flex-basis:100%; order:2; margin:0; }
.time-pin time { white-space:nowrap; }
.pin-times { list-style:none; padding:0; margin:.5rem 0; }
.pin-times small { display:block; font-size:1rem; }
@media(max-width:37rem){ .map-timing { padding:1rem; } }

.daylight > p { margin-top:.7rem; max-width:62ch; }

.shop-hours { margin:.75rem 0; }
.shop-hours > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.2rem .75rem; }
.shop-hours dd { font-weight:700; font-variant-numeric:tabular-nums; }

@media (min-width:72rem) { #shoppingCards { grid-template-columns:repeat(3,minmax(0,1fr)); } }

.meal-location{margin:.5rem 0 1rem}
.meal-location summary{color:var(--accent,#75233b);cursor:pointer;font-weight:700}
.meal-location p,.camp-supper p{max-width:66ch;margin:.5rem 0}
.camp-supper{margin:1rem 0;padding:1rem;border:1px solid #ded2d5;border-radius:.75rem}
.camp-supper time{margin-inline-end:.6rem}
.camp-supper h5,.camp-supper h4{margin:0;font-size:1rem}

/* Day cards carry the stop notes. Sight cards carry their date. */
.stop-notes { padding: 0 .35rem .7rem 4.3rem; color: var(--text-muted); }
.stop-notes p { max-width: 62ch; margin: 0 0 .35rem; }
.stop-notes .meal-location { color: var(--text); }
.day-detail > p { margin-top: .5rem; }
.day-detail .photo-mosaic { margin-top: 1rem; }
.place-copy > time, .place-copy > small { display: block; }
.place-copy > time { font-weight: 700; color: var(--accent-700); }
.timing-week button { min-height: 44px; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: .6rem; font-weight: 700; white-space: nowrap; }
.timing-week button[aria-pressed=true] { color: white; background: var(--accent-700); border-color: var(--accent-700); }
.timing-week .none { display: block; text-align: center; }
.room-nights .night-status { color: var(--accent-700); font-weight: 600; }
.resort-visit:not(:has(.photo-mosaic)) { grid-template-columns: 1fr; }
@media(max-width:35rem){ .stop-notes { padding-left: .35rem; } }
.timing-week caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Photo carousel inside a map popup */
.pin-photos { width: 18rem; max-width: 100%; margin: .5rem 0; }
.pin-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: .6rem; }
.pin-track::-webkit-scrollbar { display: none; }
.pin-track .photo-open { flex: 0 0 100%; scroll-snap-align: start; padding: 0; }
.pin-track .photo-open img { aspect-ratio: 3/2; height: auto; }
.pin-frame { position: relative; }
.pin-step { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; background: #ffffffe6; color: var(--accent-700); display: grid; place-items: center; }
.pin-step[data-step="-1"] { left: .35rem; }
.pin-step[data-step="1"] { right: .35rem; }
.pin-caption { display: flex; justify-content: space-between; gap: .75rem; margin: .4rem 0 0; }
.pin-caption [data-pin-count] { flex: none; color: var(--text-muted); font-variant-numeric: tabular-nums; }
#map .maplibregl-popup { z-index: 5; }
@media(max-width:35rem){
  .pin-photos { width: 15rem; }
  .pin-track .photo-open img { aspect-ratio: 9/4; }
  /* The expand button sits above the map and would cover the popup's close button on a phone. */
  .map-frame:has(.maplibregl-popup, .leaflet-popup) > #mapSize { visibility: hidden; }
}

/* Budget overview: one bar and one table for the whole trip, then a card per category */
.meter-key { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; padding: 0; margin: 0 0 .5rem; }
.meter-key a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; }
.meter-key i { width: .85rem; height: .85rem; border-radius: 3px; flex: none; }
.budget-overview .data-table tbody tr:last-child { background: var(--accent-50); font-weight: 700; }
.vehicle-math + .vehicle-math { margin-top: .25rem; }
.vehicle-math summary { min-height: 44px; align-content: center; cursor: pointer; color: var(--accent-700); font-weight: 600; }

/* A night card shows its stop's first photograph beside the text when one exists */
.room-nights article { padding: 0; overflow: hidden; }
.night-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.night-body { display: grid; align-content: start; gap: .25rem; padding: 1rem 1.25rem 1.25rem; }

.hunt-status { color: var(--accent-700); font-weight: 600; }
.place-copy > .hunt-status { display: block; margin-top: .35rem; }
.photo-mosaic[data-count="1"] { grid-template: 1fr/1fr; }
.photo-mosaic[data-count="1"] > :first-child { grid-area: auto; }

.ride-list { display: grid; gap: 1.5rem; }
.ride-list:not(:empty) { margin-block: 1rem 1.5rem; }
#laterVisit:not(:empty) { margin-block: 1.5rem 0; }

/* A parking card beside its own room card does not repeat the same photographs. */
:is(#fujiRooms,#roomSearchCards,#gunmaRoom) [aria-labelledby^="parking-"] .photo-mosaic { display: none; }

/* Five photographs show one large and four small, with no empty cell. */
.place-feature .photo-mosaic[data-count="5"] { grid-template: repeat(2,minmax(0,1fr))/2fr 1fr 1fr; }
.place-feature .photo-mosaic[data-count="5"] > :first-child { grid-area: 1 / 1 / 3 / 2; }
