:root {
  color-scheme: light;
  --paper: #f7f7f3;
  --white: #fff;
  --ink: #1d2938;
  --navy: #172437;
  --muted: #58646f;
  --line: #e3e5df;
  --gold: #f4c87c;
  --soft-gold: #fcf2df;
  --burgundy: #793c37;
  --radius: 17px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
button, a, select, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid #9b6018; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
svg.icon { width: 1.15em; height: 1.15em; vertical-align: -.17em; flex: none; }
[data-icon] { display: inline-flex; align-items: center; }
.container { width: min(1192px, calc(100% - 72px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; z-index: 12; top: 12px; left: 12px; padding: 10px; background: var(--white); }
#main:focus, #book-title:focus, #discover-title:focus { outline: none; }

.topbar {
  min-height: 67px; position: sticky; z-index: 5; top: 0; background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e9e9e3; backdrop-filter: blur(18px);
}
.topbar-inner { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 800; letter-spacing: .025em; text-decoration: none; white-space: nowrap; }
.wordmark img { width: 35px; height: 35px; flex: none; }
.topnav { display: flex; align-items: center; gap: 9px; }
.topnav a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 42px;
  padding: 8px 13px; font-size: .875rem; font-weight: 700; white-space: nowrap; border-radius: 10px;
}
.topnav .nav-find { color: var(--muted); }
.topnav .nav-find[aria-current] { color: var(--ink); }
.topnav .nav-find:hover { background: #f1f2ef; }
.topnav .nav-book { background: var(--navy); color: #fff; padding-right: 10px; }
.topnav .nav-book:hover { background: #30415a; }
.nav-count, .mobile-count {
  background: var(--gold); color: var(--navy); border-radius: 50px; min-width: 23px;
  min-height: 22px; padding: 2px 6px; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hero {
  min-height: 330px; margin-top: 26px; border-radius: 23px; display: flex; align-items: center;
  overflow: hidden; color: #fffaf1; isolation: isolate; background-color: #101a2b;
  background-image: linear-gradient(90deg, rgba(12,23,39,.50), transparent 66%), url('/hero.webp');
  background-size: cover; background-position: center 43%;
}
.hero-inner { padding: 34px 52px 38px 57px; }
.hero h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
  font-size: clamp(3rem, 4.35vw, 4.25rem); line-height: 1.13; font-weight: 700; letter-spacing: .02em;
}
.hero h1 span { color: var(--gold); margin-left: .075em; }
.hero p { margin-top: 19px; font-weight: 500; color: #eee8dd; font-size: 1rem; letter-spacing: .035em; line-height: 1.9; }

.discovery { margin: 28px 0 0; }
.discovery-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.discovery-title h2 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); letter-spacing: .025em; }
.update-inline { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: .8rem; color: var(--muted); }
.update-icon { color: #6b7467; }
.update-inline[data-busy] .update-icon { animation: turn 1.6s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.filter-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 15px; }
.filter-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.park-tabs { display: inline-flex; flex: 0 0 auto; align-items: center; background: #f1f2ee; border-radius: 11px; padding: 4px; gap: 3px; }
.park-tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px;
  padding: 6px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--muted); white-space: nowrap; font-size: .875rem; font-weight: 700;
}
.park-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.park-tabs button[aria-pressed="false"]:hover { background: #e7e9e4; }
.park-tabs button[aria-pressed="true"] [data-icon] { color: var(--gold); }
.query-fields {
  display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(145px, 1fr) minmax(170px, 1.15fr);
  align-items: center; gap: 9px; flex: 1; min-width: 0;
}
.search-field, .location-field {
  position: relative; display: flex; align-items: center; gap: 8px; height: 46px; color: #5c6773;
  min-width: 0; background: #fdfdfb; border: 1px solid var(--line); border-radius: 10px;
}
.search-field > [data-icon], .location-field > [data-icon]:first-child { position: absolute; left: 12px; pointer-events: none; }
.search-field input, .location-field select {
  width: 100%; height: 100%; border: 0; background: transparent; color: var(--ink);
  border-radius: inherit; padding: 0 11px 0 37px; font-size: .875rem;
}
.search-field input::placeholder { color: #626a72; opacity: 1; }
.location-field select { appearance: none; padding-right: 30px; text-overflow: ellipsis; }
.location-field select:disabled { color: var(--muted); cursor: default; opacity: .6; }
.location-field .chevron { position: absolute; right: 11px; pointer-events: none; font-size: .85rem; }

.filter-bottom { border-top: 1px solid #ededeb; margin-top: 13px; padding-top: 12px; }
.categories { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.category-pill {
  border: 1px solid var(--line); background: #fff; color: #47535f; min-height: 39px;
  padding: 6px 12px; border-radius: 40px; font-size: .875rem; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.category-pill:hover { border-color: #aab0b6; background: #f6f7f5; }
.category-pill[aria-pressed="true"] { background: #eaf0f6; color: #203c59; border-color: #cedbe9; }
.category-pill[aria-pressed="true"] [data-icon] { color: #2f5274; }
.visit-controls {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 11px 0;
}
.visit-controls label {
  display: grid; flex: 0 1 auto; gap: 3px; color: var(--muted); font-size: .8rem; font-weight: 700;
}
.visit-controls select {
  min-height: 43px; min-width: 154px; max-width: 100%; padding: 7px 8px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .91rem;
}
.results-bar { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 15px 0 11px; border-bottom: 1px solid var(--line); }
.availability { display: flex; align-items: center; gap: 12px; }
.availability button {
  min-height: 42px; padding: 6px 6px 8px; background: transparent; border: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: .9rem; font-weight: 700;
}
.availability button:hover { color: var(--ink); }
.availability button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--navy); }
.result-count { color: var(--muted); padding: 0 0 9px; font-size: .85rem; text-align: right; font-variant-numeric: tabular-nums; }
.bookmark-help { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--muted); font-size: .875rem; }
.bookmark-help [data-icon] { flex: none; font-size: 1rem; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.food-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 15px;
  min-width: 0; align-self: start; overflow: hidden; cursor: pointer; transition: border-color .16s, box-shadow .16s;
}
.food-card:hover, .food-card:focus-within { border-color: #aab8c4; box-shadow: 0 8px 22px rgba(32,47,62,.07); }
.food-card.is-saved { border-color: #b99a62; }
.media {
  width: 100%; min-height: 72px; aspect-ratio: 3.1; background: #e8e8dc; position: relative;
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
}
.media-placeholder { display: grid; place-items: center; color: #726a55; font-size: 2.8rem; }
.food-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f2eee8; }
.food-card .media-with-photo { aspect-ratio: 4 / 3; }
.photo-credit {
  display: flex; flex-wrap: wrap; gap: 1px 6px; color: var(--muted); font-size: .76rem;
  line-height: 1.45; overflow-wrap: anywhere;
}
.photo-credit a { text-underline-offset: 2px; }
.media-snack, .media-popcorn { background: #f4e5d2; }
.media-drink { background: #dbe9ef; }
.media-drink .media-placeholder { color: #47697d; }
.media-noodle, .media-bowl { background: #ede7d6; }
.media-set, .media-kids, .media-low-allergen { background: #f0e0d8; }
.media-soup { background: #f3e3cc; }
.period-badge {
  display: inline-flex; align-items: center; gap: 4px; width: fit-content; min-height: 23px; padding: 2px 8px;
  border-radius: 6px; font-size: .75rem; font-weight: 750; line-height: 1.35; white-space: nowrap;
  color: #4e5b66; background: #eef0ee;
}
.media .period-badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.period-badge.is-limited { color: #712f29; background: #fff0e4; }
.period-badge.is-upcoming { color: #27465a; background: #e7f1fa; }
.save-button {
  position: absolute; top: 9px; right: 9px; z-index: 3; width: 43px; height: 43px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(32,43,55,.10); background: #fff; color: var(--navy);
  font-size: 1.1rem; box-shadow: 0 2px 7px #1c27301a;
}
.save-button:hover { background: #fcf0d9; }
.save-button[aria-pressed="true"] { background: var(--gold); color: #563b1c; border-color: #be9a58; }
.save-button[aria-pressed="true"] svg { fill: currentColor; }
.card-content { display: grid; grid-template-rows: auto minmax(2.65em, auto) auto auto; row-gap: 6px; padding: 12px 13px 13px; width: 100%; }
.card-tag { font-size: .75rem; font-weight: 750; color: #566c7e; }
.food-card h3 { font-size: .99rem; line-height: 1.43; font-weight: 750; overflow-wrap: anywhere; align-self: start; }
.detail-trigger { border: 0; background: transparent; padding: 0; text-align: left; font-weight: inherit; color: inherit; cursor: pointer; }
.card-location { color: var(--muted); font-size: .78rem; display: flex; align-items: flex-start; gap: 4px; line-height: 1.5; min-width: 0; }
.card-location [data-icon] { padding-top: 2px; }
.card-location-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { font-size: .94rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.store-hours-list { list-style: none; margin: 2px 0 0; padding: 0; }
.store-hours-list > li {
  padding: 6px 0; border-top: 1px solid #e8e8e2; display: grid; gap: 4px;
}
.store-hours-name { color: var(--ink); font-size: .82rem; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.hours-periods { display: grid; gap: 4px; width: fit-content; min-width: 0; max-width: 100%; }
.hours-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.hours-point {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 5px; padding: 3px 5px; border-radius: 5px;
  background: #eaf0f6; color: #243e55; line-height: 1.25;
}
.hours-point > span { font-size: .72rem; white-space: nowrap; }
.hours-point strong { font-size: .98rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-point.hours-close { background: #f6eee6; color: #553b28; }
.hours-missing { color: var(--muted); font-size: .8rem; }
.official-menu-link {
  text-align: center; text-decoration: none; line-height: 1.3; scroll-margin-block: 74px;
}
.food-card .official-menu-link { justify-self: stretch; }
.detail-body > .official-menu-link { margin-top: 4px; }
.initial-state { min-height: 140px; color: var(--muted); grid-column: 1 / -1; padding: 22px 0; }
.load-more { display: flex; justify-content: center; margin: 24px 0 0; }
.outline-button {
  background: #fff; border: 1px solid #cdd4d8; border-radius: 9px; font-weight: 700;
  color: var(--ink); min-height: 44px; padding: 9px 15px; display: inline-flex; gap: 7px;
  align-items: center; justify-content: center; font-size: .875rem;
}
.outline-button:hover { border-color: #94a1a9; background: #eff2f1; }

.note-invite {
  margin-top: 36px; padding: 20px 22px; border-radius: 14px; background: #f2ece2; border: 1px solid #e2d5c6;
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px;
}
.note-invite > div { flex: 1 1 360px; }
.note-invite h2 { color: var(--navy); font-size: 1.13rem; margin-bottom: 5px; }
.note-invite p { color: #555858; font-size: .9rem; line-height: 1.65; }
.note-invite-link {
  display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px;
  background: var(--navy); color: #fff; font-size: .87rem; font-weight: 750; text-decoration: none; scroll-margin-block: 74px;
}
.note-invite-link:hover { background: #375367; }

.app-footer {
  display: flex; justify-content: space-between; gap: 16px; padding: 17px 0 25px; margin-top: 35px;
  border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); line-height: 1.8;
}
.app-footer a { text-underline-offset: 3px; }
.refresh-button, .back-button { background: transparent; border: 0; padding: 8px 0; min-height: 40px; font-weight: 700; display: inline-flex; gap: 7px; align-items: center; }
.refresh-button { font-size: .85rem; white-space: nowrap; margin-left: auto; }
.refresh-button:hover, .back-button:hover { text-decoration: underline; text-underline-offset: 4px; }

.notebook { margin-top: 26px; }
.book-banner {
  display: grid; grid-template-areas: "back map" "title copy"; grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 15px; align-items: end; padding: 21px 27px 25px;
  background: var(--navy); color: white; border-radius: 19px; margin-bottom: 21px;
}
.book-banner h1 { font-size: clamp(1.45rem, 3.2vw, 2.65rem); margin: 4px 0 7px; }
.book-banner p { font-size: .9rem; color: #e0e7ee; }
.book-banner .back-button { grid-area: back; justify-self: start; color: var(--gold); font-size: .875rem; }
.book-title-group { grid-area: title; }
#copy-book { grid-area: copy; justify-self: end; }
.map-open-button {
  grid-area: map; justify-self: end; border: 1px solid var(--gold); border-radius: 9px;
  min-height: 44px; padding: 8px 13px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: var(--navy); font-size: .875rem; font-weight: 800;
}
.map-open-button:enabled:hover { background: #ffe0a3; }
.map-open-button:disabled { color: #dce3e8; border-color: #687488; background: transparent; cursor: default; }
.book-park { margin-top: 25px; }
.book-park-title { font-size: 1.3rem; display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.book-area { margin-bottom: 15px; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.book-area-title {
  display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #edf1f4; color: #223d55;
  font-size: .98rem; border-bottom: 1px solid #e5e9ed;
}
.book-area ul, .venue-list { list-style: none; padding: 0; margin: 0; }
.book-row { display: grid; grid-template-columns: 67px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; }
.book-row + .book-row { border-top: 1px solid var(--line); }
.book-row .media { min-height: 0; aspect-ratio: 1.15; border-radius: 7px; }
.book-row .media-placeholder { font-size: 1.4rem; }
.book-row .detail-trigger { font-weight: 750; font-size: .975rem; }
.book-row .detail-trigger:hover { text-decoration: underline; text-underline-offset: 3px; }
.book-row p { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.book-row .store-hours-list { margin-top: 5px; }
.book-row .row-note { color: var(--burgundy); }
.book-row .period-badge { margin-left: 6px; }
.book-row .remove-button, .close-dialog {
  border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center;
  width: 44px; height: 44px; background: #fff; color: var(--muted);
}
.book-row .remove-button:hover, .close-dialog:hover { background: #f4ede6; color: var(--ink); }
.empty {
  grid-column: 1 / -1; background: #fff; border: 1px dashed #cdd3d0; border-radius: 14px;
  text-align: center; padding: 38px 16px; color: var(--muted);
}
.empty > .icon { color: #81715b; font-size: 1.65rem; margin-bottom: 12px; }
.empty h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.08rem; }
.empty .outline-button { margin-top: 17px; }

.detail-dialog {
  border: 0; border-radius: 19px; padding: 0; color: var(--ink); background: #fff;
  max-height: min(87dvh, 750px); width: min(535px, calc(100% - 24px)); box-shadow: 0 20px 65px #111b2e55; overflow: auto;
}
.detail-dialog::backdrop { background: rgba(11,23,42,.61); }
.detail-dialog .media { aspect-ratio: 3.1; }
.detail-dialog .media-with-photo { aspect-ratio: 4 / 3; max-height: min(49dvh, 390px); }
.detail-dialog .media .period-badge { top: 14px; left: 14px; }
.close-dialog { position: absolute; top: 11px; right: 11px; z-index: 3; }
.detail-body { padding: 17px 19px 20px; }
.detail-body h2 { font-size: 1.35rem; line-height: 1.4; margin: 4px 0 8px; }
.detail-heading small { margin-left: 4px; font-weight: 550; color: var(--muted); }
.detail-heading { font-weight: 750; font-size: 1rem; margin: 14px 0 7px; }
.detail-body .venue-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.venue-list li { padding: 9px 11px; font-size: .875rem; }
.venue-list li + li { border-top: 1px solid var(--line); }
.venue-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.venue-heading a { font-weight: 700; text-decoration-color: #8b9695; text-underline-offset: 3px; }
.venue-cost { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.venue-list .hours-periods { margin-top: 5px; }
.venue-list p { margin-top: 3px; color: var(--muted); font-size: .8rem; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 17px; }
.primary-button {
  border: 1px solid var(--navy); background: var(--navy); color: white; border-radius: 9px;
  min-height: 44px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: .875rem; font-weight: 700;
}
.primary-button[aria-pressed="true"] { background: var(--soft-gold); border-color: #cba76c; color: #51371a; }
.primary-button:hover { filter: brightness(1.12); }
.external-link-dialog { width: min(430px, calc(100% - 24px)); }
.external-link-dialog h2 { padding-right: 40px; }
.external-link-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.external-link-actions .primary-button { text-decoration: none; }
.external-link-address { display: grid; gap: 4px; font-size: .875rem; font-weight: 700; }
.external-link-address input {
  width: 100%; min-height: 44px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); background: var(--paper); font-size: 1rem; font-weight: 400;
}
#external-link-status { margin-top: 8px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.food-map-dialog {
  width: min(1020px, calc(100% - 24px)); max-height: 90dvh; padding: 0; overflow: auto;
  border: 0; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 20px 65px #111b2e55;
}
.food-map-dialog::backdrop { background: #0b172a9c; }
.food-map-header {
  position: sticky; z-index: 5; top: 0; min-height: 58px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 9px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.food-map-header h2 { font-size: 1.22rem; }
.food-map-header .close-dialog { position: static; }
#food-map-content { padding: 13px 16px 17px; }
.food-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 10px; }
.map-park-label { font-size: 1rem; font-weight: 800; }
.map-zoom-buttons { display: flex; align-items: center; gap: 5px; }
.map-zoom-buttons button {
  display: grid; place-items: center; width: 43px; min-height: 43px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; font-size: 1.25rem; font-weight: 650;
}
.map-zoom-buttons button:enabled:hover { background: #edf1f5; }
.map-zoom-buttons button:disabled { opacity: .45; cursor: default; }
.food-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .43fr); gap: 13px; }
.map-viewport {
  position: relative; aspect-ratio: 16/9; width: 100%; overflow: auto;
  overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; background: #eaf1ed;
}
.map-layer { position: relative; width: 100%; min-width: 100%; aspect-ratio: 16/9; }
.map-layer > img { width: 100%; height: 100%; object-fit: contain; user-select: none; pointer-events: none; }
.map-pin {
  --pin-fill: #213e5a;
  position: absolute; transform: translate(-50%,calc(-100% - 4px)); display: grid; place-items: center;
  width: 37px; height: 37px; padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: var(--pin-fill); color: #fff; box-shadow: 0 2px 6px #17243761;
  font-size: .85rem; font-weight: 800; line-height: 1;
}
.map-pin::after {
  position: absolute; content: ""; bottom: -6px; left: calc(50% - 5px);
  border-width: 6px 5px 0; border-style: solid; border-color: var(--pin-fill) transparent transparent;
}
.map-pin-landmark { border-style: dashed; }
.map-source-links { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.map-attribution { color: var(--muted); font-size: .75rem; text-underline-offset: 2px; }
.map-pin:hover, .map-pin:focus-visible, .map-pin[aria-pressed="true"] { z-index: 2; }
.map-pin[aria-pressed="true"] { --pin-fill: var(--gold); color: #201a12; }
.map-source-link { display: inline-block; margin-top: 8px; font-size: .8rem; color: #31556d; text-underline-offset: 3px; }
.food-map-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.map-location, .map-location-choices { padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.map-area-label { color: var(--muted); font-size: .78rem; }
.map-location h3, .map-location-choices h3 { font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.map-location h3 { margin: 4px 0 7px; }
.map-location h3 .map-store-index { margin-right: 5px; }
.map-food-list, .map-location-choices ul { list-style: none; padding: 0; margin: 0; }
.map-food-list li { padding: 6px 0; border-top: 1px solid var(--line); font-size: .84rem; }
.map-food-list li > div { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; }
.map-food-list li span { white-space: nowrap; }
.map-food-list small { display: block; margin-top: 2px; color: var(--muted); font-size: .75rem; }
.map-location-choices h3 { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.map-location-choices h3 span { color: var(--muted); font-size: .8rem; font-weight: 500; }
.map-location-choices ul { overflow: auto; max-height: 220px; }
.map-store-button {
  text-align: left; width: 100%; display: flex; align-items: flex-start; gap: 7px; padding: 7px 5px;
  border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: .875rem; font-weight: 650;
}
.map-store-button:hover, .map-store-button[aria-pressed="true"] { background: #edf2f6; border-color: #dee6eb; }
.map-store-button:focus-visible { outline-offset: -2px; }
.map-store-label { overflow-wrap: anywhere; min-width: 0; }
.map-store-label small { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; }
.map-store-index {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; flex: none;
  border-radius: 40px; color: #fff; background: #274660; font-size: .75rem; font-weight: 800;
}
.mobile-notebook { display: none; }
.toast {
  position: fixed; z-index: 6; left: 50%; transform: translateX(-50%); bottom: 18px;
  background: #142337; color: #fff; padding: 10px 15px; border-radius: 10px;
  box-shadow: 0 6px 18px #17243737; font-size: .875rem; max-width: calc(100% - 24px); width: max-content;
}

@media (max-width: 1020px) {
  .container { width: calc(100% - 44px); }
  .hero { min-height: 287px; }
  .hero-inner { padding-left: 40px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .filter-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .query-fields { width: 100%; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 28px); }
  .topbar, .topbar-inner { min-height: 57px; }
  .topbar-inner { gap: 7px; }
  .wordmark { font-size: .875rem; gap: 6px; }
  .wordmark img { width: 31px; height: 31px; }
  .topnav .nav-find { display: none; }
  .topnav .nav-book { gap: 5px; min-height: 39px; font-size: .8rem; padding: 5px 7px; }
  .nav-count { min-width: 20px; min-height: 20px; }
  .hero {
    margin-top: 13px; min-height: 216px; border-radius: 16px; background-position: 60% 50%;
    background-image: linear-gradient(90deg, rgba(12,23,39,.88), rgba(12,23,39,.66) 37%, transparent 86%), url('/hero.webp');
  }
  .hero-inner { padding: 21px 12px 24px 20px; }
  .hero h1 { font-size: clamp(2rem, 7.6vw, 3.3rem); }
  .hero p { margin-top: 13px; font-size: .825rem; line-height: 1.7; letter-spacing: 0; }
  .discovery { margin-top: 20px; }
  .discovery-title { margin-bottom: 9px; }
  .update-inline { max-width: 50%; font-size: .7rem; text-align: right; }
  .filter-panel { padding: 8px; border-radius: 14px; }
  .filter-top { align-items: stretch; gap: 8px; }
  .park-tabs button { flex: 1; min-height: 39px; padding-inline: 4px; }
  .query-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .search-field { grid-column: 1 / -1; }
  .search-field input, .location-field select { font-size: 1rem; padding-left: 29px; padding-right: 24px; }
  .search-field input { padding-right: 7px; }
  .search-field input::placeholder { font-size: .8rem; }
  .location-field select { letter-spacing: -.04em; }
  .search-field > [data-icon], .location-field > [data-icon]:first-child { left: 7px; }
  .location-field .chevron { right: 7px; }
  .filter-bottom { margin-top: 8px; padding-top: 8px; }
  .categories { gap: 5px; }
  .category-pill { min-height: 36px; font-size: .79rem; padding: 5px 7px; gap: 4px; }
  .visit-controls { gap: 8px; }
  .visit-controls label { flex: 1 1 105px; min-width: 0; }
  .visit-controls select { min-width: 0; width: 100%; font-size: 1rem; }
  .hours-point { padding-inline: 4px; column-gap: 3px; }
  .hours-point > span { font-size: .68rem; }
  .hours-point strong { font-size: .9rem; }
  .store-hours-name { font-size: .78rem; }
  .results-bar { margin-top: 8px; }
  .availability { gap: 8px; }
  .availability button { min-height: 42px; font-size: .82rem; }
  .result-count { font-size: .75rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .food-card { border-radius: 12px; }
  .media { aspect-ratio: 2.55; min-height: 84px; }
  .media .period-badge { top: 7px; left: 6px; }
  .period-badge { min-height: 20px; font-size: .7rem; padding-inline: 5px; }
  .save-button { top: 5px; right: 5px; width: 42px; height: 42px; }
  .card-content { padding: 8px; row-gap: 4px; }
  .food-card h3 { font-size: .9rem; }
  .card-location { font-size: .72rem; }
  .card-price { font-size: .87rem; }
  .app-footer { gap: 8px; flex-wrap: wrap; margin-top: 20px; padding: 14px 0 28px; }
  body.has-saved:not(.show-book) .app-footer { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .refresh-button { margin-left: 0; }
  .mobile-notebook {
    position: fixed; z-index: 4; inset: auto 14px calc(11px + env(safe-area-inset-bottom));
    color: #fff; background: var(--navy); border: 1px solid #ffffff25; box-shadow: 0 9px 24px #1d293851;
    display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 48px;
    border-radius: 12px; font-weight: 750; font-size: .875rem;
  }
  body.has-saved:not(.show-book) .toast { bottom: calc(66px + env(safe-area-inset-bottom)); }
  .notebook { margin-top: 13px; }
  .book-banner { padding: 12px 14px 15px; grid-template-areas: "back map" "title title" "copy copy"; gap: 7px 9px; }
  #copy-book { justify-self: start; }
  .book-banner .outline-button { min-height: 39px; }
  .book-row { grid-template-columns: 47px minmax(0, 1fr) 39px; gap: 8px; padding: 9px 8px; }
  .book-row .remove-button { width: 39px; height: 39px; }
  .book-row .detail-trigger { font-size: .85rem; }
  .book-row p { font-size: .75rem; }
  .food-map-dialog { max-height: 93dvh; width: calc(100% - 14px); }
  .food-map-header { padding: 7px 9px; }
  #food-map-content { padding: 9px; }
  .food-map-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .map-location-choices ul { max-height: 200px; }
  .food-map-toolbar .park-tabs button { font-size: .75rem; padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
