* { box-sizing: border-box; }
body { margin: 0; color: var(--shell-ink); background: var(--shell-bg); font: 16px/1.55 var(--shell-sans); }
a { color: var(--shell-accent); text-underline-offset: .18em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--shell-focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.portal-header a, .portal-footer a { text-decoration: none; }
.rr-mark { border-radius: 10px; }
.skip { position: absolute; left: -100vw; }
.skip:focus { left: 1rem; top: 1rem; z-index: 120; background: var(--shell-bg); padding: .5rem; }
.preview { padding: .45rem 1rem; background: var(--shell-control-hover); text-align: center; font-size: .84rem; }
main {
  --page-title-gap: clamp(3rem, 5vw, 4rem);
  padding-block: var(--page-title-gap) 36px;
}
main h1 {
  margin: 0 0 .75rem;
  font-size: clamp(2.125rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
main h1 + p {
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
main:has(.page-trail) { padding-block-start: 0; }
.page-trail { display: flex; align-items: center; min-height: var(--page-title-gap); }
main:has(> .ride-hero) {
  --hero-inset: clamp(1rem, 2vw, 2rem);
  padding-block-start: calc(var(--page-title-gap) - var(--hero-inset));
}
.ride-hero { min-height: clamp(215px,22vw,300px); padding: var(--hero-inset) clamp(22px,4vw,54px); border-radius: 18px; overflow: hidden; color: white; position: relative; isolation: isolate; background: #1a2326; }
.ride-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.ride-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.ride-hero { aspect-ratio:3/1; }
.ride-hero::after { background: linear-gradient(90deg,#111b1ef0,#172328a8 44%,#07111316 85%); }
.ride-hero h1 { max-width: 15ch; }
.ride-hero p { max-width: 49ch; }
.directory { margin-top: 24px; display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0,1.6fr); gap: 22px; align-items: stretch; }
.sidebar, .atlas { border: 1px solid var(--shell-rule); border-radius: 14px; overflow: hidden; }
.sidebar { position: relative; z-index: 3; overflow: visible; padding: clamp(16px,2.2vw,30px); }
.sidebar > h2 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 14px; }
.pair { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; }
.sidebar label, dialog label { font-size: .83rem; color: var(--shell-text); font-weight: 650; }
input[type=search], select { display: block; width: 100%; min-height: 42px; margin: 5px 0 12px; border-radius: 7px; border: 1px solid var(--shell-rule); color: var(--shell-ink); background: var(--shell-control); padding: 7px 9px; }
.check { display: flex; align-items: center; gap: 5px; }
.check input { accent-color: var(--shell-accent); }
.listtitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.listtitle { margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid var(--shell-rule); }
.listtitle h2, .regions h2 { margin: 0; font-size: 1rem; }
#count { font-variant-numeric: tabular-nums; }
#places, article ul:has(li[data-id]) { list-style: none; padding: 0; }
#places { margin: 0 0 12px; max-height: 315px; overflow-y: auto; scrollbar-width: thin; }
li[data-id] a { display: block; padding: .65rem .2rem; border-bottom: 1px solid var(--shell-rule); color: var(--shell-ink); text-decoration: none; }
li[data-id] a:hover { background: var(--shell-control-hover); }
li[data-id] small { display: block; color: var(--shell-muted); }
.sidebar > a, #empty { font-size: .88rem; }
.atlas { position: relative; min-height: 0; isolation: isolate; background: var(--shell-control); }
.atlas > .map-frame { position: absolute; inset: 0; }
dialog button { border: 1px solid var(--shell-rule); border-radius: 99px; color: var(--shell-ink); background: var(--shell-bg); padding: 6px 12px; font-size: .85rem; }
#map { height: 100%; background: #cbdcde; color-scheme: light; }
#location-status, #map-status { position: absolute; bottom: 24px; left: 12px; z-index: 500; background: var(--shell-bg); max-width: 85%; padding: .3rem .7rem; }
#location-status:empty, #map-status:empty { display: none; }
.leaflet-popup-content a { display: block; margin: .45rem 0; }
.regions { padding-top: 1.6rem; }
.regions-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .85rem; }
.regions-heading > a, .prefecture-back { font-size: .86rem; font-weight: 600; }
.prefecture-back { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.prefecture-back svg { width: 16px; height: 16px; }
.prefecture-directory { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: .65rem; }
.prefecture-group { min-width: 0; border: 1px solid var(--shell-rule); border-radius: .75rem; background: var(--shell-control); }
.prefecture-group summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 48px; padding: .65rem .85rem; color: var(--shell-ink); font-size: .9rem; font-weight: 650; cursor: pointer; list-style: none; }
.prefecture-group summary::-webkit-details-marker { display: none; }
.prefecture-group summary svg { width: 16px; height: 16px; flex: none; color: var(--shell-muted); }
.prefecture-group[open] summary svg { transform: rotate(180deg); }
.prefecture-group summary:hover { color: var(--shell-accent); }
.region-links { display: flex; flex-wrap: wrap; min-width: 0; gap: .4rem; padding: .15rem .7rem .7rem; }
.region-links a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding: .4rem .9rem;
  border: 1px solid var(--shell-rule);
  border-radius: 999px;
  background: var(--shell-bg);
  color: var(--shell-ink);
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
}
.region-links a:hover { background: var(--shell-control-hover); border-color: var(--shell-accent); }
main > article { min-height: 55vh; padding-block-end: clamp(16px,4vw,55px); }
article img { max-width: 100%; }
article nav { display: flex; flex-wrap: wrap; gap: 16px; }
.place-back, .place-action, .place-hours h3,
.place-route-note, .place-sources a, .place-media-note a { display: inline-flex; align-items: center; gap: .5rem; }
.place-back { font-size: .9rem; text-decoration: none; min-height: 44px; }
.place-heading { max-width: 1050px; }
.place-alias { color: var(--shell-muted); }
.place-location { display: flex; align-items: center; gap: .5rem; color: var(--shell-muted); margin-block-end: 1.5rem; }
.place-alias + .place-location { margin-block-start: .5rem; font-size: .92rem; }
.place-cover { overflow: hidden; border-radius: 16px; margin: 0; position: relative; }
.place-cover figcaption { position: absolute; bottom: 10px; right: 12px; padding: 3px 8px; border-radius: 5px; color: #fff; background: #172328cc; font-size: .72rem; pointer-events: none; }
.inline-link { display: inline-flex; align-items: center; gap: .4rem; }
.inline-link svg { width: 16px; height: 16px; }
.place-picture { display: block; position: relative; width: 100%; aspect-ratio: 1.6; padding: 0; border: 0; background: var(--shell-control); overflow: hidden; border-radius: 10px; cursor: zoom-in; }
.place-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.place-cover figcaption a { display: inline-flex; align-items: center; gap: .2rem; color: inherit; pointer-events: auto; }
.place-cover figcaption a svg { width: 13px; height: 13px; }
.place-cover .place-picture { aspect-ratio: 2.25; border-radius: 0; }
.place-contact-actions { display: grid; gap: .85rem; padding: 1.25rem 0 1.6rem; border-bottom: 1px solid var(--shell-rule); }
.place-contact-actions > nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.place-action { padding: .7rem .9rem; border: 1px solid var(--shell-rule); border-radius: 8px; font-size: .88rem; font-weight: 600; text-decoration: none; min-height: 44px; }
.place-action:hover { background: var(--shell-control-hover); }
.place-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .52fr); align-items: start; gap: clamp(28px, 5vw, 72px); margin-top: 2rem; }
.place-story > section + section { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--shell-rule); }
.place-detail h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.25; letter-spacing: -.025em; margin: 0 0 1rem; }
.place-story p { line-height: 1.75; margin: 0 0 1rem; }
.place-visit { border: 1px solid var(--shell-rule); border-radius: 12px; padding: 1.35rem; }
.place-facts { margin: 0; font-size: .91rem; }
.place-facts > div { padding: .85rem 0; border-bottom: 1px solid var(--shell-rule); }
.place-facts > div:last-child { border-bottom: 0; }
.place-facts dt, .place-map h3 { color: var(--shell-muted); font-size: .8rem; font-weight: 550; margin: 0 0 .25rem; }
.place-visit dt, .place-map h3 { display: flex; align-items: center; gap: .5rem; }
.place-visit dt > svg, .place-map h3 > svg { width: 17px; height: 17px; flex: none; }
.place-facts dd { margin: 0; overflow-wrap: anywhere; line-height: 1.6; }
.place-map { padding: .85rem 0; border-block: 1px solid var(--shell-rule); }
.place-map .place-action { justify-content: center; min-width: 0; background: var(--shell-control); color: var(--shell-ink); padding: .45rem .4rem; font-size: .8rem; text-align: center; }
.place-map .place-action:hover { background: var(--shell-control-hover); }
.place-map .place-action svg { width: 17px; height: 17px; flex: none; }
.place-map-preview { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1; border: 1px solid var(--shell-rule); border-radius: 9px; background: var(--shell-control); }
.place-map-surface, .place-map-stage, .place-map-expanded { position: absolute; inset: 0; }
.place-map-controls { position: absolute; inset-block-start: .6rem; inset-inline-end: .6rem; z-index: 1; display: grid; gap: .25rem; }
.place-map-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--shell-rule);
  border-radius: 8px;
  background: var(--shell-bg);
  color: var(--shell-ink);
  cursor: pointer;
}
.place-map-controls button:hover { background: var(--shell-control-hover); }
.place-map-controls button:disabled { opacity: .55; cursor: default; }
.place-map-preview [data-place-map-close], .place-map-dialog [data-place-map-expand] { display: none; }
.place-map-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1rem; color: var(--shell-muted); font-size: .85rem; text-align: center; pointer-events: none; }
.place-map-marker { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid white; border-radius: 50%; background: #a33f27; color: white; box-shadow: 0 1px 4px #0006; }
.place-map nav.place-map-directions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-top: .65rem; }
.place-map-dialog { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--shell-bg); color: var(--shell-ink); }
.place-map-dialog::backdrop { background: #000a; }
html:has(.place-map-dialog[open]) { overflow: hidden; }
.place-parking .place-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.place-hours { margin-top: 1.25rem; padding-top: 1.2rem; border-top: 1px solid var(--shell-rule); }
.place-hours h3 { margin: 0 0 .6rem; font-size: 1rem; }
.place-hours p { line-height: 1.7; white-space: pre-line; margin: 0 0 .6rem; font-size: .91rem; }
.place-hours small, .place-route-note, .place-media-note { color: var(--shell-muted); font-size: .79rem; }
.place-story .place-route-note { align-items: flex-start; margin-top: 1rem; line-height: 1.6; }
.place-route-note svg { flex: none; margin-top: 2px; }
.place-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.place-story .place-media-note { margin-top: .65rem; line-height: 1.6; }
.place-media-note a { gap: .25rem; }
.place-media-note svg, .place-sources a svg { width: 14px; height: 14px; flex: none; }
.place-sources ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.place-sources li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--shell-rule); }
.place-sources li a { font-size: .87rem; overflow-wrap: anywhere; }
.place-sources small { color: var(--shell-muted); flex: none; }
.place-sources a small { display: block; font-size: .75rem; font-weight: 400; }
.place-lightbox { width: min(1100px, 94vw); max-width: none; max-height: 94vh; padding: 1rem; }
.place-lightbox::backdrop { background: #080d12d9; }
.place-lightbox .gallery-close { display: grid; place-items: center; float: none; margin: 0 0 .7rem auto; width: 44px; height: 44px; padding: 0; }
.place-lightbox p { margin: .75rem 0 0; font-size: .8rem; color: var(--shell-muted); }
.place-detail svg { flex-shrink: 0; }
@media (max-width: 760px) {
  .place-columns { display: flex; flex-direction: column; gap: 2rem; }
  .place-visit { width: 100%; order: -1; }
  .place-story { width: 100%; }
  .place-cover .place-picture { aspect-ratio: 1.6; }
  .place-contact-actions > nav { gap: 8px; }
  .place-action { font-size: .8rem; padding: .6rem .7rem; }
  .place-parking .place-facts { grid-template-columns: 1fr; }
  .place-sources li { flex-direction: column; gap: .2rem; }
  .place-gallery-grid { gap: 8px; }
}
dt { font-weight: 650; }
dd { margin: 0 0 12px; }
.research-list > li { margin: 1.2rem 0; }
.research-list p { margin: 0; }
dialog { max-width: min(440px,94vw); color: var(--shell-ink); background: var(--shell-bg); border: 1px solid var(--shell-rule); border-radius: 15px; padding: 22px; }
dialog::backdrop { background: #1118; }
dialog button { float: right; }
#privacy-dialog { width: min(500px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: clamp(18px, 4vw, 28px); }
#privacy-dialog h2 { margin: 0 0 .75rem; line-height: 1.25; }
#privacy-dialog p { margin: 0 0 .85rem; color: var(--shell-text); }
#privacy-dialog .privacy-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
#privacy-dialog button { float: none; min-height: 44px; padding: .55rem .8rem; border: 1px solid var(--shell-rule); border-radius: .5rem; color: var(--shell-ink); background: var(--shell-control); font-weight: 650; line-height: 1.35; }
#privacy-dialog button:hover { background: var(--shell-control-hover); }
#privacy-dialog [data-analytics-choice="granted"] { border-color: var(--shell-accent); color: var(--shell-bg); background: var(--shell-accent); }
#privacy-dialog [data-analytics-choice="granted"]:hover { filter: brightness(1.07); }
#privacy-dialog a { display: block; margin-bottom: 1rem; }
@media(max-width:760px) {
  main { padding-block-end: 28px; }
  .ride-hero { min-height: 190px;  }
  .directory { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
  .sidebar,.atlas { width: 100%; }
  .atlas { order: -1; }
  .atlas > .map-frame { position: relative; }
  #map { height: 37vh; min-height: 235px; }
  .leaflet-control-attribution { max-width: 78vw; font-size: 9px !important; }
}

#venue-sheet { width: 100%; max-width: 100%; max-height: 58vh; overflow: auto; margin: auto 0 0; border-radius: 18px 18px 0 0; }
#venue-sheet header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
#venue-sheet h2 { margin: 0; font-size: 1.1rem; }
#venue-sheet a, .leaflet-popup-content a { font-weight: 650; }
#venue-sheet p, .leaflet-popup-content p { margin: .3rem 0 1rem; }

/* Paper City Guide destination map controls, tokens and card typography. */
.atlas {
  --map-line: var(--shell-rule); --map-paper: var(--shell-bg);
  --map-raised: var(--shell-control); --map-accent: var(--shell-accent);
  --ink: var(--shell-ink); --wash: var(--shell-control-hover); --map-shadow: 0 4px 18px #091b2926;
  --map-control-radius: .7rem;
}
main { font-family: var(--shell-sans); -webkit-font-smoothing: antialiased; }
.sidebar, .atlas { border-radius: 1.15rem; background: var(--shell-bg); }
.search-box { display:block; position:relative; }
.search-box > svg { position:absolute; left:.7rem; top:50%; transform:translateY(-50%); width:1.1rem; pointer-events:none; }
.search-box input { padding-left:2.4rem; }
input[type=search],select { border-radius:.65rem; min-height:44px; font-size:.92rem; }
.select-box { position: relative; display: block; margin: 5px 0 12px; }
.select-box > select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; margin: 0; }
.select-box > svg { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--shell-ink); pointer-events: none; }
#filters .select-box > select { padding-inline-end: 36px; }
#filters .select-box > svg { inset-inline-end: 10px; }
@media (forced-colors: active) {
  .select-box > select { appearance: auto; -webkit-appearance: auto; }
  .select-box > svg { display: none; }
}
.category-filter { min-width: 0; }
.category-picker { position: relative; margin: 5px 0 12px; }
.category-native[hidden], .category-picker[hidden], .category-options[hidden] { display: none; }
.category-picker > button { display: flex; align-items: center; gap: .45rem; width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid var(--shell-rule); border-radius: .65rem; color: var(--shell-ink); background: var(--shell-control); font: inherit; font-size: .92rem; font-weight: 600; text-align: start; cursor: pointer; }
.category-picker > button:is(:hover, [aria-expanded="true"]) { background: var(--shell-control-hover); }
.category-picker [data-category-icon] { display: flex; flex: none; }
.category-picker [data-category-icon] > svg { width: 18px; height: 18px; color: var(--shell-accent); }
#category-selected { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-picker > button > svg { width: 18px; height: 18px; flex: none; }
.category-picker > button[aria-expanded="true"] > svg { transform: rotate(180deg); }
.category-options { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 10; min-width: max(100%, 14rem); max-width: calc(100vw - 32px); max-height: 20rem; overflow: auto; margin: 0; padding: .35rem; list-style: none; border: 1px solid var(--shell-rule); border-radius: .65rem; background: var(--shell-control); box-shadow: 0 16px 40px var(--shell-shadow); }
.category-options > li { display: flex; align-items: center; gap: .65rem; min-height: 42px; padding: .5rem .6rem; border-radius: .4rem; color: var(--shell-text); font-size: .9rem; cursor: pointer; }
.category-picker[data-placement="above"] .category-options { top: auto; bottom: calc(100% + 6px); }
.category-options > li:is(:hover, [data-highlighted]) { color: var(--shell-ink); background: var(--shell-nav-hover); }
.category-options > li[aria-selected="true"] { color: var(--shell-accent); }
.category-options > li > svg { width: 20px; height: 20px; flex: none; }
.category-options [data-option-label] { flex: 1; }
.category-check { display: flex; visibility: hidden; }
.category-check > svg { width: 16px; height: 16px; }
.category-options [aria-selected="true"] .category-check { visibility: visible; }
li[data-id] a { display:grid; grid-template-columns:2.4rem minmax(0,1fr) 1rem; align-items:center; gap:.6rem; min-height:61px; padding:.45rem .25rem; line-height:1.35; border-radius:.45rem; font-size:.92rem; }
li[data-id] strong { font-weight:650; }
.venue-symbol { display:grid; width:2.4rem; height:2.4rem; place-items:center; border:1px solid var(--shell-rule); border-radius:.48rem; background:var(--shell-control); color:var(--shell-accent); }
li[data-id] a>svg { width:1rem; color:var(--shell-accent); }
.map-frame { position:relative; isolation:isolate; }
#map { z-index:0; background:var(--shell-control); font-family:var(--shell-sans); }
#map-status { pointer-events:none; border-radius:.4rem; }
.facts { width:100%; margin:1.5rem 0; border:1px solid var(--shell-rule); border-spacing:0; border-radius:.8rem; overflow:hidden; line-height:1.5; font-size:.95rem; }
.facts caption { text-align:start; font-size:1.25rem; font-weight:650; margin-bottom:.55rem; }
.facts th,.facts td { padding:.65rem .85rem; text-align:start; vertical-align:top; overflow-wrap:anywhere; }
.facts th { width:32%; background:var(--shell-control); font-weight:650; }
.facts tr+tr > * { border-top:1px solid var(--shell-rule); }
.maplibregl-popup-content { color:var(--shell-ink); }
.maplibregl-popup-content a { font-size:.95rem; font-weight:650; }
.maplibregl-popup-content p { margin:.35rem 0; }
@media(max-width:760px){
  .ride-hero { padding:0; display:block; background:var(--shell-control); color:var(--shell-ink); }
  .ride-hero { aspect-ratio:auto; }
  .ride-photo { position:static; display:block; height:auto; aspect-ratio:2.45; object-position:85% center; }
  .ride-hero::after { display:none; }
  .ride-hero>div { padding:var(--hero-inset) 1rem 1rem; }
  .ride-hero h1 { max-width:none; }
}

.destination-map-toolbar {
  position: absolute;
  inset: .78rem .78rem auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  pointer-events: none;
}
.destination-map-modes,.destination-map-zoom {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--map-line);
  border-radius: var(--map-control-radius);
  box-shadow: var(--map-shadow);
  background: var(--map-paper);
  pointer-events: auto;
}
.destination-map-zoom {flex-direction: column}
.destination-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .31rem;
  min-width: 44px;
  min-height: 44px;
  padding: .37rem .58rem;
  border: 0;
  border-radius: .5rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: .87rem;
  font-weight: 660;
  cursor: pointer;
}
.destination-map-button:hover {background: var(--wash)}
.destination-map-button[aria-pressed=true] {background: var(--map-accent); color: var(--map-paper)}
.destination-map-button svg,.destination-map-link svg,.destination-map-sources svg {width: 1.08rem; height: 1.08rem; flex: none}
.destination-map-zoom .destination-map-button {padding: .34rem}
.destination-map-zoom .destination-map-units { gap: .12rem; font-size: .8rem; padding-inline: .2rem; color: var(--shell-muted); }
.destination-map-units[data-units="metric"] [data-unit="metric"],
.destination-map-units[data-units="imperial"] [data-unit="imperial"] { color: var(--shell-accent); font-weight: 750; }
.destination-map-units[aria-pressed="true"] { background: transparent; color: var(--shell-muted); }
.destination-map-units:hover { background: var(--wash); }
.destination-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .26rem;
  min-height: 42px;
  min-width: 42px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  outline-offset: 2px;
}
.destination-map-marker:hover,.destination-map-marker:focus-visible {z-index: 4}
.destination-map-guide-marker svg {
  box-sizing: content-box;
  width: 1.18rem;
  height: 1.18rem;
  padding: .28rem;
  border: 2px solid #fff9ef;
  border-radius: 50%;
  background: #a43e29;
  color: #fff9ef;
  box-shadow: 0 2px 7px #14233265;
}
.destination-map-guide-marker:hover svg,.destination-map-guide-marker:focus-visible svg {background: #783420}
.destination-map-guide-marker:is(:hover,:focus-visible)::after {
  content: attr(data-map-label);
  position: absolute;
  bottom: calc(100% + 3px);
  width: max-content;
  max-width: min(13rem,45vw);
  padding: .34rem .52rem;
  border: 1px solid var(--map-line);
  border-radius: .42rem;
  background: var(--map-paper);
  color: var(--ink);
  text-align: center;
  font-size: .8rem;
  font-weight: 670;
  pointer-events: none;
}
.destination-map-guide-cluster {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 3px solid #fff9ef;
  background: #a43e29;
  color: #fff9ef;
  box-shadow: 0 2px 8px #14233255;
  font-size: .87rem;
  font-weight: 750;
}
.destination-map-stage .maplibregl-popup-content {background: var(--map-paper); border: 1px solid var(--map-line); border-radius: .65rem}
.destination-map-stage .maplibregl-ctrl-attrib {
  background: var(--map-paper);
  color: var(--ink);
  font: inherit;
  font-size: .69rem;
  line-height: 1.55;
}
.destination-map-stage .maplibregl-ctrl-attrib {border-radius: .4rem 0 0}
.destination-map-stage .maplibregl-ctrl-attrib a {color: inherit; white-space: nowrap}
.destination-map-stage .maplibregl-ctrl-attrib svg {width: .72rem; height: .72rem; vertical-align: -.08rem; margin-left: .16rem}
.destination-map-stage :is(.maplibregl-ctrl-scale, .leaflet-control-scale-line) {
  padding: .375rem .2rem;
  border: 1px solid var(--map-line);
  border-radius: var(--map-control-radius);
  background: var(--map-paper);
  color: var(--ink);
  box-shadow: 0 1px 3px #0004;
  font: 600 .7rem/1.35 var(--shell-sans);
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
.map-attribution { position: absolute; inset-inline: 100px 6px; bottom: 3px; z-index: 1; padding: 0; border: 0; background: transparent; color: var(--ink); text-shadow: 0 1px 2px var(--map-paper); font-size: .75rem; line-height: 1.5; text-align: end; pointer-events: none; }
.map-attribution a, .map-attribution .maplibregl-ctrl-attrib a { color: inherit; text-decoration: none; pointer-events: auto; }
.map-attribution .maplibregl-ctrl { float: none; margin: 0; pointer-events: none; }
.map-attribution .maplibregl-ctrl-attrib { display: inline; padding: 0; min-height: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; }
.map-attribution .maplibregl-ctrl-attrib-inner { display: inline; }
.map-attribution-external { display: inline-flex; align-items: center; margin-inline-start: .25rem; vertical-align: -.12em; }
.map-attribution-external > svg { width: 12px; height: 12px; }
.map-attribution { display: flex; align-items: flex-end; justify-content: flex-end; gap: .25rem; }
.map-attribution [data-map-credit-text] { min-width: 0; }
.map-attribution .map-attribution-external { flex: none; margin: 0 0 .2rem; }

.table-scroll { overflow-x:auto; margin-block:1rem; border:1px solid var(--shell-rule); border-radius:16px; background:var(--shell-bg); }
.library-table { border-collapse:collapse; width:100%; min-width:34rem; font-size:.94rem; }
.library-table th,.library-table td { padding:12px 16px; text-align:start; vertical-align:middle; }
.library-table thead th { background:var(--shell-control); font-size:.875rem; font-weight:600; }
.library-table tbody tr { border-top:1px solid var(--shell-rule); }
.library-table tbody tr:is(:hover,:focus-within) { background:var(--shell-control-hover); }
.library-table th small { display:block; font-weight:400; color:var(--shell-muted); }
.library-table td { overflow-wrap:anywhere; }

.showing-map { overflow:hidden; }
.atlas:has(.expanded-map) { isolation:auto; }
.map-frame:is(:fullscreen, .expanded-map) { position: fixed; inset: 0; width: 100%; height: 100%; background: var(--shell-bg); }
.map-frame.expanded-map { z-index:9999; }
.map-frame:is(:fullscreen, .expanded-map) #map { height:100%; min-height:0; }

[data-command="fullscreen"] .tabler-icon-minimize,
[data-command="fullscreen"][aria-pressed="true"] .tabler-icon-maximize { display: none; }
[data-command="fullscreen"][aria-pressed="true"] .tabler-icon-minimize { display: inline-block; }
.parking-figure { margin: 1rem 0; }
.parking-figure .place-picture { width: fit-content; max-width: 100%; aspect-ratio: auto; }
.parking-figure img { width: auto; height: auto; max-width: 100%; max-height: min(70vh, 640px); }
.parking-figure figcaption { display: grid; gap: .25rem; margin-top: .5rem; color: var(--shell-muted); font-size: .85rem; }
.parking-figure figcaption .place-media-note { margin: 0; }
.place-gallery-grid figure { margin: 0; }
.place-gallery-grid figcaption { margin-top: .4rem; color: var(--shell-muted); font-size: .85rem; }
.place-lightbox [data-gallery-image] img { display: block; margin: auto; max-width: 100%; width: auto; height: auto; max-height: 72vh; }

/* JourneyPilot reference page adoption; colors inherit the Rev & Rest shell. */
.privacy-card { min-height: 55vh; }
.privacy-card a { text-decoration: none; }
.privacy-document-head { max-width: none; }
.privacy-document h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.support-intro { padding-block-end: 36px; }
.support-intro > p { color: var(--shell-muted); }
.support-layout .button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 46px; padding: .75rem 1rem; border: 1px solid var(--shell-accent); border-radius: 8px; background: var(--shell-accent); color: var(--shell-bg); font: inherit; font-weight: 600; text-decoration: none; }
.support-layout .button-outline { background: transparent; color: var(--shell-accent); }
.support-guide p { line-height: 1.75; color: var(--shell-muted); }
.support-form h2, .support-guide h2 { margin: 0 0 1rem; }
.support-form > div > p { margin-bottom: 1.5rem; }
.place-facts dd a { display: inline-flex; gap: .4rem; align-items: center; max-width: 100%; }
.place-facts dd a span { min-width: 0; overflow-wrap: anywhere; }
.place-facts dd a svg { width: 15px; height: 15px; flex: none; }

/* Shared status badges are estimates from the published schedule in Japan time. */
.opening-status { display: inline-flex; align-items: center; gap: .35rem; width: max-content; max-width: 100%; margin-top: .3rem; padding: .15rem .5rem; border: 1px solid var(--shell-rule); border-radius: 99px; color: var(--shell-muted); background: var(--shell-control); font-size: .73rem; font-weight: 650; line-height: 1.5; }
.opening-status::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.opening-status[data-state="open"] { color: #339a72; border-color: #339a7259; background: #339a7212; }
.opening-status[data-state="opening-soon"] { color: var(--shell-accent); border-color: var(--shell-accent); background: var(--shell-control); }
.opening-status[data-state="closing-soon"] { color: #c47722; border-color: #c4772259; background: #c4772212; }
:root[data-theme="light"] .opening-status[data-state="open"] { color: #176747; }
:root[data-theme="light"] .opening-status[data-state="closing-soon"] { color: #8b4f0b; }
.opening-status-note { color: var(--shell-muted); font-size: .75rem; line-height: 1.6; margin: .65rem 0; }
.place-opening-status { margin: -1rem 0 1.5rem; }
.place-opening-status .opening-status, .place-hours > .opening-status { font-size: .8rem; }
.place-hours > .opening-status { margin: 0 0 .65rem; }
.place-hours .opening-status-note { font-size: .75rem; margin-top: .5rem; }
.region-filters { position: relative; z-index: 3; width: min(100%, 19rem); margin: 1.5rem 0; }
.region-filters label { font-size: .83rem; font-weight: 650; }
.region-directory .listtitle { margin-top: 0; }
#region-places { list-style: none; padding: 0; margin-top: 1rem; }
.destination-list, .map-stop-link { --venue-visual-width: clamp(3.6rem, 6vw, 5rem); }
.venue-symbol.venue-thumbnail { display: block; width: var(--venue-visual-width); height: auto; aspect-ratio: 12/11; object-fit: cover; }
.map-stop-list { overflow-wrap: anywhere; }
#map .maplibregl-popup-content { padding-inline-end: 46px; }
#map .leaflet-popup-content { margin-inline-end: 46px; }
:is(#map, #venue-sheet) :is(.maplibregl-popup-close-button, .leaflet-popup-close-button, .venue-sheet-close) {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--shell-bg);
  color: var(--shell-text);
  cursor: pointer;
}
:is(#map, #venue-sheet) :is(.maplibregl-popup-close-button, .leaflet-popup-close-button, .venue-sheet-close)::after {
  content: "";
  position: absolute;
  inset: -10px;
}
#map :is(.maplibregl-popup-close-button, .leaflet-popup-close-button) {
  top: 10px;
  right: 10px;
  font: 500 1.125rem/1 var(--shell-sans);
  text-decoration: none;
}
#venue-sheet .venue-sheet-close { position: relative; float: none; }
#venue-sheet .venue-sheet-close svg { width: 16px; height: 16px; }
:is(#map, #venue-sheet) :is(.maplibregl-popup-close-button, .leaflet-popup-close-button, .venue-sheet-close):hover {
  background-color: var(--shell-control-hover);
  color: var(--shell-ink);
}
:is(#map, #venue-sheet) :is(.maplibregl-popup-close-button, .leaflet-popup-close-button, .venue-sheet-close):focus-visible {
  outline: 2px solid var(--shell-focus);
  outline-offset: 2px;
}
.map-stop + .map-stop { border-block-start: 1px solid var(--shell-rule); margin-block-start: .75rem; padding-block-start: .75rem; }
#map { container-type: size; }
.maplibregl-popup .map-stop-list, .leaflet-popup .map-stop-list { max-height: min(18rem, calc(50cqh - 3rem)); overflow-y: auto; padding: 4px; }
.map-stop .map-stop-link { display: flex; align-items: center; gap: .7rem; }
.map-stop-link .venue-thumbnail { flex: none; }

/* Directory: one filter bar, with full-width map and naturally scrolling list views. */
.directory { display: block; margin-top: 1.5rem; }
.directory-tools { position: relative; z-index: 4; padding: 1.25rem; border: 1px solid var(--shell-rule); border-radius: 14px; background: var(--shell-bg); }
.directory-tools > h2 { margin: 0 0 1rem; font-size: 1.35rem; letter-spacing: -.025em; }
.directory-filters { display: grid; grid-template-columns: minmax(220px,1.4fr) repeat(4,minmax(145px,1fr)); gap: 1rem; align-items: start; }
.directory-filters label { color: var(--shell-text); font-size: .8rem; font-weight: 600; }
.directory-filters .search-box input { margin: .4rem 0 0; height: 46px; }
.parking-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.parking-filters .check { gap: .5rem; min-height: 24px; }
.parking-filters input { width: 16px; height: 16px; margin: 0; }
.parking-guarantee { display: inline-flex; align-items: center; gap: .5rem; color: var(--shell-text); font-size: .82rem; }
.parking-guarantee svg { width: 18px; height: 18px; color: var(--shell-accent); }
.directory-results { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.15rem 0; }
.directory-results h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1rem; }
.directory-results output { color: var(--shell-muted); font-size: .9rem; font-weight: 500; }
.directory-view-switch { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--shell-rule); border-radius: 9px; background: var(--shell-control); }
.directory-view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; min-width: 84px; padding: .4rem .75rem; border: 0; border-radius: 6px; color: var(--shell-text); background: transparent; font-size: .85rem; font-weight: 600; }
.directory-view-switch button[aria-pressed="true"] { color: var(--shell-bg); background: var(--shell-accent); }
.directory-view-switch svg { width: 18px; height: 18px; }
.directory .atlas { scroll-margin-top: 6rem; width: 100%; border: 1px solid var(--shell-rule); border-radius: 14px; overflow: hidden; }
.directory .atlas > .map-frame { position: relative; }
.directory #map { height: clamp(440px,63vh,680px); min-height: 0; }
.directory-empty { padding: 1rem; border: 1px dashed var(--shell-rule); border-radius: 10px; color: var(--shell-muted); }
#places.destination-list, #region-places.destination-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 1.5rem; list-style: none; max-height: none; overflow: visible; margin: 0; padding: 0; }
.destination-list > li { min-width: 0; }
.destination-list li[data-id] a { display: grid; grid-template-columns: var(--venue-visual-width, 2.4rem) minmax(0,1fr) auto 1rem; gap: .55rem .7rem; min-height: 92px; padding: 1rem .25rem; border-bottom: 1px solid var(--shell-rule); border-radius: 0; }
.destination-list .venue-info { min-width: 0; }
.destination-list .venue-info strong { display: block; font-size: .94rem; font-weight: 600; }
.destination-list .venue-info small { margin-top: .3rem; font-size: .78rem; }
.destination-list .venue-state { align-self: center; text-align: end; }
/* Status is secondary information, with no outlined pill in destination lists. */
.opening-status { display: inline-flex; align-items: center; gap: .4rem; width: auto; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--shell-muted); font-size: .76rem; font-weight: 550; line-height: 1.45; white-space: nowrap; }
.opening-status::before { width: 5px; height: 5px; }
.opening-status[data-state="open"] { color: #60c79c; border: 0; background: transparent; }
.opening-status[data-state="closed"] { color: #f47d83; }
.opening-status:is([data-state="unknown"],[data-state="opening-soon"],[data-state="closing-soon"]) { color: #eab35d; border: 0; background: transparent; }
.opening-status[data-state="unknown"]::before { width: 6px; height: 6px; border: 1px solid currentColor; background: transparent; }
:root[data-theme="light"] .opening-status[data-state="open"] { color: #176747; }
:root[data-theme="light"] .opening-status[data-state="closed"] { color: #b52f3e; }
:root[data-theme="light"] .opening-status:is([data-state="unknown"],[data-state="opening-soon"],[data-state="closing-soon"]) { color: #8b4f0b; }
.region-filters.directory-filters { grid-template-columns: repeat(3,minmax(0,1fr)); width: min(100%,840px); margin: 1.5rem 0; }
.region-directory .listtitle { margin-bottom: .6rem; }
.region-directory > .opening-status-note { margin-top: 1.25rem; }

/* Every filter uses the same select, with or without an icon. */
.select-filter { min-width: 0; }
.select-filter > label { display: block; }
.select-filter .select-native { margin: .4rem 0 0; }
.select-filter .select-native select { height: 46px; min-height: 46px; }
.select-picker { position: relative; margin-top: .4rem; }
.select-picker > button { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1px solid var(--shell-rule); border-radius: .65rem; color: var(--shell-ink); background: var(--shell-control); font: inherit; font-size: .88rem; font-weight: 550; text-align: start; }
.select-picker > button:is(:hover,[aria-expanded="true"]) { background: var(--shell-control-hover); }
.select-picker [data-select-label] { flex: 1; min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.select-picker [data-select-icon] { display: flex; flex: none; color: var(--shell-accent); }
.select-picker [data-select-icon] svg { width: 18px; height: 18px; }
.select-picker > button > svg { width: 18px; height: 18px; flex: none; }
.select-picker > button[aria-expanded="true"] > svg { transform: rotate(180deg); }
.select-options { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 10; width: max-content; min-width: 100%; max-width: calc(100vw - 28px); transform: translateX(var(--select-menu-offset, 0px)); margin: 0; padding: .35rem; list-style: none; border: 1px solid var(--shell-rule); border-radius: .65rem; background: var(--shell-control); box-shadow: 0 16px 40px var(--shell-shadow); }
.select-options > li { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .55rem .6rem; border-radius: .4rem; color: var(--shell-text); font-size: .88rem; cursor: pointer; }
.select-picker[data-placement="above"] .select-options { top: auto; bottom: calc(100% + 6px); }
.select-options > li:is(:hover,[data-highlighted]) { color: var(--shell-ink); background: var(--shell-nav-hover); }
.select-options > li[aria-selected="true"] { color: var(--shell-accent); }
.select-options > li > svg { width: 20px; height: 20px; flex: none; }
.select-options [data-option-label] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-check { display: flex; flex: none; visibility: hidden; }
.select-check > svg { width: 16px; height: 16px; }
.select-options [aria-selected="true"] .select-check { visibility: visible; }

#prefecture-picker { width: min(620px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 1rem 1.15rem 1.15rem; border: 1px solid var(--shell-rule); border-radius: 14px; color: var(--shell-ink); background: var(--shell-bg); box-shadow: 0 22px 70px var(--shell-shadow); overscroll-behavior: contain; }
#prefecture-picker::backdrop { background: #060b14b5; }
.prefecture-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .75rem; }
.prefecture-dialog-header h2 { margin: 0; font-size: clamp(1.15rem,3vw,1.45rem); line-height: 1.2; }
#prefecture-picker button { display: flex; align-items: center; min-height: 44px; padding: .4rem .65rem; border-radius: .55rem; color: var(--shell-ink); background: var(--shell-control); font-size: .87rem; font-weight: 550; line-height: 1.25; }
#prefecture-picker button:hover { background: var(--shell-control-hover); }
#prefecture-picker button[aria-pressed="true"] { color: var(--shell-accent); border-color: var(--shell-accent); background: var(--shell-control-hover); }
#prefecture-picker .prefecture-close { flex: none; justify-content: center; width: 44px; padding: 0; }
.prefecture-close svg, .prefecture-search svg { width: 19px; height: 19px; flex: none; }
.prefecture-search { display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .65rem; border: 1px solid var(--shell-rule); border-radius: .55rem; background: var(--shell-control); color: var(--shell-muted); }
.prefecture-search:focus-within { outline: 3px solid var(--shell-focus); outline-offset: 2px; }
.prefecture-search input { width: 100%; min-width: 0; min-height: 42px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--shell-ink); font-size: .9rem; }
.prefecture-search input:focus { outline: none; }
.prefecture-groups, .prefecture-options { display: grid; gap: .4rem; }
.prefecture-groups { grid-template-columns: repeat(5,minmax(0,1fr)); margin: .75rem 0; }
.prefecture-groups button { justify-content: center; text-align: center; }
.prefecture-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
.prefecture-options button { justify-content: space-between; text-align: start; gap: .2rem; }
.prefecture-options button svg { width: 16px; height: 16px; flex: none; }
.prefecture-options button[aria-pressed="false"] svg { visibility: hidden; }
.prefecture-panels .prefecture-options { padding-top: .6rem; border-top: 1px solid var(--shell-rule); }
.prefecture-panels h3 { margin: .65rem 0 .4rem; font-size: .86rem; color: var(--shell-text); }
#prefecture-picker:not([data-searching]) .prefecture-panels h3 { display: none; }
#prefecture-picker[data-searching] .prefecture-panels .prefecture-options { padding-top: 0; border-top: 0; }
.prefecture-no-matches { margin: .8rem 0 0; color: var(--shell-muted); font-size: .9rem; }
/* Status colors supplement the labels; the selected check remains consistent. */
#opening-options > li::before,
.select-picker[data-value] > #opening-trigger::before {
  content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%;
  background: var(--opening-indicator, var(--shell-muted));
}
#opening-options > li[data-value="open"],
.select-picker[data-value="open"] { --opening-indicator: #52c79c; }
#opening-options > li[data-value="closed"],
.select-picker[data-value="closed"] { --opening-indicator: #ff7582; }
#opening-options > li:is([data-value="opening-soon"],[data-value="closing-soon"],[data-value="unknown"]),
.select-picker:is([data-value="opening-soon"],[data-value="closing-soon"],[data-value="unknown"]) { --opening-indicator: #f7b84d; }
#opening-options > li[data-value="unknown"]::before,
.select-picker[data-value="unknown"] > #opening-trigger::before { background: transparent; border: 1.5px solid var(--opening-indicator); }

.place-cover-status { position: absolute; top: 16px; right: 16px; max-width: calc(100% - 32px); pointer-events: none; }
.place-cover-status .opening-status { min-height: 38px; padding: .55rem .85rem; border: 2px solid #fff; border-radius: 999px; background: #09141c; box-shadow: 0 0 0 1px #0003, 0 3px 12px #0007; font-size: .88rem; font-weight: 700; white-space: normal; text-align: center; text-wrap: balance; }
.place-cover-status .opening-status::before { width: 6px; height: 6px; background: currentColor; }
:root .place-cover-status .opening-status[data-state="open"] { color: #fff; background: #117647; }
:root .place-cover-status .opening-status[data-state="closed"] { color: #fff; background: #b42335; }
:root .place-cover-status .opening-status:is([data-state="unknown"],[data-state="opening-soon"],[data-state="closing-soon"]) { color: #291a04; background: #f7b84d; }
.place-cover-status .opening-status[data-state="unknown"]::before { border: 1px solid currentColor; background: transparent; }
.place-hours h3 { display: flex; margin-bottom: 1rem; }
.hours-notes { margin: .9rem 0; }
.hours-notes h4 { margin: 0; font-size: .8rem; font-weight: 600; color: var(--shell-text); }
.hours-notes p { margin: .65rem 0 0; font-size: .82rem; color: var(--shell-muted); }

/* A compact, selectable monthly schedule within Visit details. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.calendar-nav h4 { margin: 0; font-size: .9rem; font-weight: 600; text-align: center; }
.calendar-nav button { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; color: var(--shell-text); background: transparent; border: 1px solid var(--shell-rule); border-radius: 7px; }
.calendar-nav button:hover { background: var(--shell-control-hover); }
.calendar-nav button svg { width: 16px; height: 16px; }
.calendar-table { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; border: 1px solid var(--shell-rule); border-radius: 8px; overflow: hidden; }
.calendar-table th { height: 30px; font-size: .67rem; font-weight: 500; text-align: center; color: var(--shell-text); background: var(--shell-control); }
.calendar-table th, .calendar-table td { border-inline-end: 1px solid var(--shell-rule); border-bottom: 1px solid var(--shell-rule); }
.calendar-table tr > :last-child { border-inline-end: 0; }
.calendar-table tbody tr:last-child > td { border-bottom: 0; }
.calendar-table td { padding: 2px; text-align: center; }
.calendar-table button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 40px; padding: 5px 0; border: 1px solid transparent; border-radius: 6px; color: var(--shell-ink); background: transparent; font-size: .76rem; font-variant-numeric: tabular-nums; }
.calendar-table button::after, .calendar-legend > span::before { content: ""; box-sizing: border-box; width: 6px; height: 6px; border-radius: 50%; background: var(--shell-muted); }
.calendar-table [data-day-state="open"]::after, .calendar-legend [data-day-state="open"]::before { background: #60c79c; }
.calendar-table [data-day-state="closed"]::after, .calendar-legend [data-day-state="closed"]::before { border-radius: 1px; background: #f47d83; }
.calendar-table [data-day-state="unknown"]::after, .calendar-legend [data-day-state="unknown"]::before { border: 1px solid #eab35d; background: transparent; }
.calendar-table :is([data-weekday="0"], [data-weekday="6"]) { font-weight: 750; }
:root[data-theme="light"] .calendar-table [data-day-state="closed"]::after, :root[data-theme="light"] .calendar-legend [data-day-state="closed"]::before { background: #b52f3e; }
:root[data-theme="light"] .calendar-table [data-day-state="open"]::after, :root[data-theme="light"] .calendar-legend [data-day-state="open"]::before { background: #176747; }
:root[data-theme="light"] .calendar-table [data-day-state="unknown"]::after, :root[data-theme="light"] .calendar-legend [data-day-state="unknown"]::before { border-color: #8b4f0b; }
.calendar-table button[aria-current="date"] { border-color: var(--shell-rule); }
.calendar-table button[aria-pressed="true"] { background: var(--shell-control-hover); border-color: var(--shell-accent); }
.calendar-table button:hover { background: var(--shell-control); }
.calendar-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem clamp(.4rem, 2vw, .85rem); margin: .8rem 0; color: var(--shell-ink); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.calendar-legend > span { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.calendar-legend > span::before { flex: none; width: 8px; height: 8px; }
.place-hours .calendar-selection { min-height: 3.2em; margin: .7rem 0 0; font-size: .76rem; line-height: 1.6; }

/* Journey Pilot-style gallery: thumbnails, navigation, zoom/pan and fullscreen. */
.showing-gallery { overflow: hidden; }
.place-lightbox { width: min(1120px,calc(100vw - 32px)); height: min(900px,92dvh); max-width: none; max-height: 92dvh; margin: auto; padding: 0; overflow: hidden; border-radius: 14px; background: var(--shell-bg); color: var(--shell-ink); }
.place-lightbox[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; }
.place-lightbox::backdrop { background: #050b10df; }
.place-lightbox .gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; }
.place-lightbox .gallery-toolbar h2 { margin: 0; font-size: 1.15rem; }
.gallery-toolbar > div { display: flex; gap: .4rem; }
.place-lightbox button { float: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: .5rem; border: 1px solid var(--shell-rule); border-radius: 7px; color: var(--shell-ink); background: var(--shell-control); }
.place-lightbox button:hover { background: var(--shell-control-hover); }
.place-lightbox button:disabled { opacity: .35; cursor: default; }
.place-lightbox button svg { width: 20px; height: 20px; }
.gallery-figure { display: grid; grid-template-rows: minmax(0,1fr) auto; min-height: 0; margin: 0; padding: 0 1rem; }
.gallery-viewport { position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; background: #04090d; outline-offset: -3px; touch-action: pan-y; }
.place-lightbox .gallery-viewport [data-gallery-image] { display: block; width: 100%; height: 100%; min-height: 0; max-width: none; max-height: none; object-fit: contain; transform-origin: center; user-select: none; }
.place-lightbox[data-zoomed="true"] .gallery-viewport { cursor: grab; touch-action: none; }
.place-lightbox[data-zoomed="true"] .gallery-viewport:active { cursor: grabbing; }
.gallery-figure figcaption { padding: .65rem .25rem; color: var(--shell-muted); text-align: center; font-size: .8rem; line-height: 1.45; }
.gallery-thumbnails { display: flex; gap: .5rem; max-width: 100%; overflow-x: auto; padding: .3rem 1rem .65rem; scrollbar-width: thin; }
.place-lightbox .gallery-thumbnails button { display: block; flex: 0 0 72px; min-height: 48px; padding: 2px; border: 1px solid var(--shell-rule); }
.gallery-thumbnails img { display: block; width: 100%; height: 44px; object-fit: cover; border-radius: 4px; }
.place-lightbox .gallery-thumbnails [aria-pressed="true"] { border-color: var(--shell-accent); box-shadow: 0 0 0 1px var(--shell-accent); }
.gallery-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .65rem 1rem; border-top: 1px solid var(--shell-rule); }
.place-lightbox .gallery-pagination p { min-width: 4rem; margin: 0; text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
[data-gallery-zoom] .tabler-icon-zoom-out, [data-gallery-fullscreen] .tabler-icon-minimize { display: none; }
.place-lightbox[data-zoomed="true"] [data-gallery-zoom] .tabler-icon-zoom-in, .place-lightbox[data-fullscreen="true"] [data-gallery-fullscreen] .tabler-icon-maximize { display: none; }
.place-lightbox[data-zoomed="true"] [data-gallery-zoom] .tabler-icon-zoom-out, .place-lightbox[data-fullscreen="true"] [data-gallery-fullscreen] .tabler-icon-minimize { display: block; }
.place-lightbox:is(:fullscreen,.gallery-expanded) { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; border: 0; }
.directory .map-frame:is(:fullscreen,.expanded-map) { position: fixed; }
.directory .map-frame:is(:fullscreen,.expanded-map) #map { height: 100%; }
@media (max-width:1100px) {
  .directory-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .destination-search { grid-column: 1 / -1; }
  .destination-list li[data-id] a { grid-template-columns: var(--venue-visual-width, 2.4rem) minmax(0,1fr) 1rem; gap: .2rem .7rem; }
  .destination-list .venue-symbol { grid-row: 1 / 3; }
  .destination-list .venue-info { grid-column: 2; }
  .destination-list .venue-state { grid-column: 2; text-align: start; }
  .destination-list li[data-id] a > svg { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width:760px) {
  .prefecture-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directory { display: block; }
  .directory-tools { padding: 1rem; }
  .directory-filters { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: .85rem .65rem; }
  .directory-filters .select-filter:has([name="opening"]) { grid-column: 1 / -1; }
  .directory-tools > h2 { font-size: 1.25rem; }
  .parking-filters { flex-direction: column; gap: .5rem; }
  .directory-results { align-items: center; gap: .6rem; }
  .directory-results h2 { flex-wrap: wrap; font-size: .88rem; gap: .3rem; }
  .directory-view-switch button { min-width: 62px; padding: .4rem .5rem; font-size: .8rem; }
  .directory #map { height: 55vh; min-height: 350px; }
  #places.destination-list, #region-places.destination-list { grid-template-columns: minmax(0,1fr); }
  .destination-list li[data-id] a { min-height: 85px; }
  .destination-list .venue-info strong { font-size: .9rem; }
  .destination-list .venue-info small { margin-top: .25rem; }
  .region-filters.directory-filters .select-filter:has([name="opening"]) { grid-column: auto; }
  .region-filters.directory-filters { grid-template-columns: minmax(0,1fr); gap: .8rem; }
  .place-cover-status { top: 10px; right: 10px; }
  .place-cover-status .opening-status { min-height: 36px; padding: .45rem .75rem; font-size: .82rem; }
  .place-lightbox { width: calc(100vw - 16px); height: 88dvh; max-height: 88dvh; border-radius: 10px; }
  .place-lightbox .gallery-toolbar { padding: .5rem; gap: .5rem; }
  .place-lightbox .gallery-toolbar h2 { font-size: .95rem; }
  .gallery-toolbar > div { gap: .3rem; }
  .gallery-figure { padding: 0 .5rem; }
  .gallery-thumbnails { padding-inline: .5rem; }
}
@media (max-width:440px) {
  #prefecture-picker { padding-inline: .75rem; }
  .prefecture-groups { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .prefecture-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:340px) {
  .directory-filters { grid-template-columns: minmax(0,1fr); }
}

/* Give each detail its own line while the side controls span the row. */
.destination-list .venue-info { display: contents; }
.destination-list .venue-info > strong { grid-column: 2; grid-row: 1; align-self: end; }
.destination-list .venue-meta { display: contents; }
.destination-list .venue-meta > small { grid-column: 2; align-self: start; margin-top: 0; }
.destination-list .venue-state { grid-column: 3; grid-row: 1 / 4; }
.destination-list .venue-symbol { grid-row: 1 / 4; }
.destination-list li[data-id] a > svg { grid-column: 4; grid-row: 1 / 4; }
.destination-list li[data-id] a { row-gap: .15rem; }
@media (max-width:1100px) {
  .destination-list .venue-info { display: block; grid-column: 2; grid-row: 1; }
  .destination-list .venue-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; margin-top: .3rem; }
  .destination-list .venue-meta > small { margin: 0; }
  .destination-list .venue-state { text-align: start; }
  .destination-list .venue-symbol, .destination-list li[data-id] a > svg { grid-row: 1; }
  .destination-list li[data-id] a > svg { grid-column: 3; }
}

.venue-meta .venue-parking { display: block; font-size: .74rem; color: var(--shell-muted); }

.rider-location { display: block; width: 18px; height: 18px; box-sizing: border-box; border: 3px solid white; border-radius: 50%; background: #1673da; box-shadow: 0 0 0 2px #164678; pointer-events: none; }
.raster-pin .rider-location { margin: 13px; }
#location-status { z-index: 501; border-radius: .4rem; pointer-events: none; }
