:root {
  --ink: #160e21;
  --ink-2: #241631;
  --paper: #fff8ec;
  --paper-2: #f2eadc;
  --orange: #ff6a26;
  --orange-dark: #c93c0a;
  --acid: #c7ef4a;
  --purple: #7146a4;
  --muted: #6f6672;
  --line: #dcd2c2;
  --white: #fffdf8;
  --shadow: 0 12px 34px rgba(30, 17, 42, .10);
  --radius: 20px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.45; }
button, input, select { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.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; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 90; transform: translateY(-220%); background: var(--acid); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(circle at 8% 20%, rgba(113, 70, 164, .34), transparent 26%), linear-gradient(125deg, #120b1d 0%, #261333 62%, #35133a 100%); min-height: 250px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 54px; background: var(--paper); clip-path: polygon(0 70%, 6% 42%, 13% 78%, 22% 37%, 31% 74%, 41% 34%, 51% 72%, 61% 40%, 72% 79%, 82% 41%, 92% 76%, 100% 46%, 100% 100%, 0 100%); }
.topbar, .hero-inner, .planner, footer { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.topbar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding-top: 24px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; min-width: 42px; height: 34px; padding: 0 7px; color: var(--ink); background: var(--orange); border-radius: 50% 46% 51% 45%; transform: rotate(-8deg); font-size: .68rem; }
.official-link { display: inline-flex; min-height: 44px; align-items: center; color: #eee6f5; text-decoration: none; font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.4); }
.official-link:hover { color: var(--acid); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 30px; padding: 28px 0 62px; }
.eyebrow { margin: 0 0 10px; color: var(--acid); font-size: .8rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 4.7vw, 4.25rem); font-weight: 800; line-height: .9; letter-spacing: -.055em; }
h1 span { color: var(--orange); }
.lede { max-width: 650px; margin: 16px 0 0; color: #d8cedf; font-size: clamp(.95rem, 1.6vw, 1.08rem); }
.moon-scene { position: relative; min-height: 150px; }
.moon { position: absolute; top: 0; right: 20px; width: 140px; height: 140px; background: #ffb633; border-radius: 50%; box-shadow: 0 0 70px rgba(255, 151, 34, .24), inset -18px -12px 0 rgba(232, 90, 26, .22); animation: moon-glow 5s ease-in-out 1; }
.moon span, .moon i { position: absolute; display: block; border-radius: 50%; background: rgba(136, 57, 40, .17); }
.moon span { width: 32px; height: 32px; top: 35px; left: 40px; }
.moon i { width: 23px; height: 23px; right: 35px; bottom: 42px; }
.bat { --flap-speed: .7s; position: absolute; display: block; width: 70px; height: auto; color: var(--ink); fill: currentColor; transform: rotate(-8deg); transform-origin: center; }
.bat-one { top: 41px; right: 57px; animation: bat-flight 8s ease-in-out infinite; }
.bat-two { --flap-speed: .54s; top: 101px; right: 158px; width: 34px; opacity: .88; animation: bat-flight-small 10s -3s ease-in-out infinite; }
.bat-wing { transform-box: view-box; transform-origin: 50% 55.5%; animation-duration: var(--flap-speed); animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.bat-wing-left { animation-name: bat-flap-left; }
.bat-wing-right { animation-name: bat-flap-right; }

.planner { padding: 14px 0 76px; }
.location-kicker { margin: 0 0 5px; color: var(--acid); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
@keyframes route-spin { to { transform: rotate(360deg); } }
.google-attribution { font-weight: 750; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.search-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.search-box > span { color: var(--orange-dark); font-size: 1.75rem; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.search-box kbd { color: var(--muted); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.filter-toggle { display: none; align-items: center; gap: 7px; padding: 0 17px; color: var(--white); background: var(--ink); border: 0; border-radius: 14px; font-weight: 800; }
.saved-shortcut { display: inline-flex; min-height: 48px; align-items: center; gap: 7px; padding: 0 15px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-weight: 800; }
.saved-shortcut strong { display: grid; place-items: center; min-width: 23px; height: 23px; background: var(--paper-2); border-radius: 50%; }
.count-pill { min-width: 21px; padding: 1px 5px; color: var(--ink); background: var(--acid); border-radius: 20px; }
.active-chips button { flex: 0 0 auto; min-height: 44px; padding: 8px 13px; color: var(--ink); background: transparent; border: 1px solid #cfc4b3; border-radius: 999px; font-weight: 720; font-size: .9rem; }
.planner-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; margin-top: 20px; }
.filters { align-self: start; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 8px; scrollbar-gutter: stable; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 10px; }
.filter-heading h2 { margin: 0; font-size: 1.15rem; }
.filter-heading button { min-height: 44px; color: var(--orange-dark); background: transparent; border: 0; text-decoration: underline; font-size: .85rem; }
.filter-heading > div { display: flex; align-items: center; gap: 8px; }
.filter-heading .close-filters { display: none; width: 44px; height: 44px; padding: 0; color: var(--ink); text-decoration: none; font-size: 1.55rem; line-height: 1; }
.filters fieldset { margin: 0; padding: 17px 2px; border: 0; border-top: 1px solid var(--line); }
.filters legend { width: 100%; padding: 0; font-weight: 830; font-size: .92rem; }
.filter-section-toggle { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; padding: 0 0 10px; color: var(--ink); background: transparent; border: 0; font-weight: 830; text-align: left; }
.filter-section-toggle span { color: var(--muted); transition: transform .15s ease; }
.filters fieldset.collapsed .filter-section-toggle span { transform: rotate(180deg); }
.filters fieldset.collapsed .filter-section-body { display: none; }
.filters .filter-section-body > label { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 9px; min-height: 44px; padding: 5px 0; color: #3e3541; font-size: .88rem; }
.filters label span { color: var(--muted); font-size: .75rem; }
.filters .filter-help { margin: 1px 0 9px 27px; color: var(--muted); font-size: .76rem; line-height: 1.42; }
.filters input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--orange); }
.category-filter .filter-section-body { padding-bottom: 4px; }
.category-filter .filter-subhead:first-child { margin-top: 0; }
.category-filter .filter-subhead + label { margin-top: 2px; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-grid label { color: var(--muted); font-size: .75rem; }
.date-grid input { width: 100%; margin-top: 4px; padding: 7px 5px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; }
.date-grid .past-events { grid-column: 1 / -1; grid-template-columns: 18px 1fr; margin-top: 4px; color: #3e3541; font-size: .84rem; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.location-grid label { color: var(--muted); font-size: .75rem; }
.location-grid input, .location-grid select { width: 100%; min-height: 36px; margin-top: 4px; padding: 7px 8px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; }
.location-grid select:disabled { cursor: not-allowed; opacity: .58; }
.zip-status { margin: 9px 0 5px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.zip-status.error { color: #a92e16; }
.clear-location { min-height: 44px; padding: 0; color: var(--orange-dark); background: transparent; border: 0; text-decoration: underline; font-size: .76rem; }
.filter-footer { display: none; }

.results-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.results-count { margin: 0; font-size: 1.08rem; font-weight: 850; }
.results-note { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.view-tools { display: flex; align-items: center; gap: 12px; }
.share-search { min-height: 44px; padding: 7px 10px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; font-size: .78rem; }
.active-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 12px; }
.active-chips:empty { display: none; }
.active-chips button { padding: 5px 10px; background: #efe5d6; border-color: transparent; font-size: .78rem; }
.reset-all { min-height: 44px; margin-top: 10px; padding: 7px 11px; color: var(--orange-dark); background: transparent; border: 1px solid #d9b9a8; border-radius: 9px; font-weight: 800; font-size: .78rem; }

.saved-plan { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; margin-top: 16px; padding: 18px 20px; color: var(--white); background: linear-gradient(120deg, var(--ink), #371a43); border-radius: 16px; }
.saved-plan h2 { margin: 0; font-family: Georgia, serif; font-size: 1.65rem; }
.saved-plan p { margin: 4px 0 0; color: #d9cfdf; font-size: .84rem; }
.plan-actions { display: flex; align-items: center; gap: 8px; }
.plan-actions button { min-height: 44px; padding: 9px 12px; color: var(--ink); background: var(--acid); border: 0; border-radius: 9px; font-weight: 850; }
.plan-actions button:last-child { background: var(--white); }
.plan-actions button:disabled { cursor: not-allowed; opacity: .55; }
.plan-warnings { grid-column: 1 / -1; padding-top: 12px; color: #f3eaf7; border-top: 1px solid rgba(255,255,255,.18); font-size: .8rem; }
.plan-warnings ul { margin: 5px 0 0; padding-left: 19px; }

.map-view { margin-top: 18px; }
#eventMap { height: 620px; overflow: hidden; background: #e7e0d4; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.map-view > p { margin: 8px 2px 0; color: var(--muted); font-size: .74rem; }
.map-error { padding: 30px; }
.map-popup-list { margin: 7px 0; padding-left: 18px; }
.map-popup-list li { margin: 2px 0; }
.map-popup-list a { display: inline-flex; min-height: 44px; align-items: center; }

.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 18px; }
.event-card { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); min-height: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 22px rgba(40, 24, 50, .06); }
.event-card:hover { border-color: #b7aa98; box-shadow: var(--shadow); transform: translateY(-1px); }
.date-block { padding: 17px 10px; color: var(--white); background: var(--ink-2); text-align: center; }
.date-block .month { display: block; color: var(--acid); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.date-block .day { display: block; margin-top: 1px; font-family: Georgia, serif; font-size: 2rem; font-weight: 900; line-height: 1; }
.date-block .weekday { display: block; margin-top: 5px; color: #cfc1d9; font-size: .7rem; }
.card-body { display: flex; flex-direction: column; min-width: 0; padding: 20px 18px 12px; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-block; padding: 3px 7px; color: #4b3f50; background: #eee6dc; border-radius: 999px; font-size: .67rem; font-weight: 800; }
.badge.free { color: #1e4b1f; background: #dff1bf; }
.badge.age { color: #5a2c73; background: #eadbf0; }
.badge.distance { color: #174b58; background: #d9f0ef; }
.save-button { flex: 0 0 auto; width: 44px; height: 44px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 1.2rem; line-height: 1; }
.save-button.saved { color: var(--orange-dark); background: #ffe2d2; border-color: #ffc1a4; }
.event-card h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.16; letter-spacing: -.025em; }
.time-line { margin: 0; color: var(--orange-dark); font-size: .83rem; font-weight: 820; }
.event-card .description { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 8px 0 10px; color: #5e5660; font-size: .88rem; }
.address { margin: auto 0 0; color: #4a414b; font-size: .75rem; }
.address span { color: var(--purple); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }
.repeat-note { color: var(--muted); font-size: .7rem; }
.details-button { min-width: 64px; min-height: 44px; color: var(--ink); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; font-weight: 800; font-size: .78rem; }
.event-list.agenda { display: block; }
.agenda-day { margin: 0 0 24px; }
.agenda-day > h2 { position: sticky; top: 0; z-index: 2; margin: 0 0 8px; padding: 9px 12px; color: var(--white); background: var(--ink); border-radius: 10px; font-size: .95rem; }
.agenda .event-card { grid-template-columns: 58px minmax(0, 1fr); min-height: 0; margin-bottom: 8px; border-radius: 14px; }
.agenda .date-block { padding: 13px 6px; }
.agenda .date-block .month, .agenda .date-block .weekday { display: none; }
.agenda .date-block .day { font-size: 1.5rem; }
.agenda .card-body { padding: 12px 14px; }
.agenda .description { -webkit-line-clamp: 1; }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state > div { color: var(--orange); font-size: 4rem; }
.empty-state h2 { margin: 5px 0; font-family: Georgia, serif; }
.empty-state p { color: var(--muted); }
.empty-state button { min-height: 44px; padding: 10px 15px; color: var(--white); background: var(--ink); border: 0; border-radius: 9px; font-weight: 800; }
.load-more { display: grid; justify-items: center; gap: 9px; padding: 26px 0 8px; }
.load-more[hidden] { display: none; }
.load-more p { margin: 0; color: var(--muted); font-size: .82rem; }
.load-more button { min-width: 190px; min-height: 44px; padding: 11px 18px; color: var(--white); background: var(--ink); border: 0; border-radius: 10px; font-weight: 850; }
.load-more button:hover { background: var(--purple); }
footer { padding: 28px 0 46px; color: var(--muted); border-top: 1px solid var(--line); font-size: .78rem; }
footer p { max-width: 850px; margin: 4px 0; }
footer .site-url { margin-top: 16px; color: var(--ink); font-size: .88rem; font-weight: 800; }
footer .creator-note { margin-top: 20px; color: var(--ink); font-size: .95rem; }
footer a { text-underline-offset: 2px; }

.event-dialog { width: min(680px, calc(100% - 26px)); max-height: min(84vh, 760px); padding: 0; color: var(--ink); background: var(--white); border: 0; border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.event-dialog::backdrop { background: rgba(15, 9, 22, .76); backdrop-filter: blur(3px); }
.dialog-close { position: sticky; top: 12px; z-index: 2; float: right; width: 44px; height: 44px; margin: 12px 12px 0 0; color: var(--white); background: var(--ink); border: 0; border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.dialog-inner { padding: 34px 34px 32px; }
.dialog-inner .eyebrow { color: var(--orange-dark); }
.dialog-inner h2 { margin: 0 50px 9px 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1.02; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 22px; }
.dialog-description { white-space: pre-line; }
.data-note { margin: 13px 0; padding: 11px 13px; color: #59331f; background: #fff0d8; border-left: 4px solid var(--orange); border-radius: 8px; font-size: .84rem; }
.checked-date { color: var(--muted); font-size: .76rem; }
.toddler-note { margin: 16px 0; padding: 13px 15px; color: #3f3150; background: #f0e3f6; border-left: 4px solid var(--purple); border-radius: 9px; }
.occurrences { margin: 22px 0; padding: 17px; background: var(--paper-2); border-radius: 13px; }
.occurrences h3 { margin: 0 0 8px; font-size: .92rem; }
.occurrences ul { max-height: 170px; overflow: auto; margin: 0; padding-left: 20px; font-size: .84rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.dialog-actions a, .dialog-actions button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 13px; color: var(--white); background: var(--ink); border: 0; border-radius: 9px; text-decoration: none; font-weight: 800; font-size: .85rem; }
.dialog-actions a.secondary, .dialog-actions button.secondary { color: var(--ink); background: #eadfee; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr 190px; }
  .moon { width: 150px; height: 150px; }
  .planner-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
  .event-list { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  body.filters-open { overflow: hidden; }
  .hero { min-height: 260px; }
  .topbar, .hero-inner, .planner, footer { width: min(100% - 24px, 1180px); }
  .topbar { padding-top: 16px; }
  .official-link { font-size: 0; }
  .official-link::after { content: "Calendar ↗"; font-size: .8rem; }
  .hero-inner { display: block; padding: 34px 0 68px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4.25rem); }
  .lede { margin-top: 14px; font-size: .96rem; }
  .moon-scene { position: absolute; top: 18px; right: -62px; opacity: .68; }
  .moon { width: 125px; height: 125px; }
  .bat-one { right: 58px; width: 58px; }
  .bat-two { display: none; }
  .planner { padding-top: 14px; }
  .filter-toggle { display: inline-flex; }
  .planner-grid { display: block; margin-top: 12px; }
  .filters { display: none; position: fixed; inset: 0; z-index: 50; width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0 16px 92px; overflow-y: auto; background: var(--white); border: 0; border-radius: 0; scrollbar-gutter: auto; }
  .filters.open { display: block; }
  .filter-heading { position: sticky; top: 0; z-index: 3; margin: 0 -16px; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
  .filter-heading .close-filters { display: inline-grid; place-items: center; }
  .filters fieldset { padding: 15px 2px; }
  .filter-section-toggle { min-height: 44px; padding-bottom: 7px; font-size: .98rem; }
  .filters .filter-section-body > label { min-height: 44px; }
  .filter-footer { position: fixed; z-index: 4; right: 0; bottom: 0; left: 0; display: block; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: rgba(255,253,248,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(30,17,42,.10); }
  .filter-footer button { width: 100%; min-height: 48px; color: var(--white); background: var(--ink); border: 0; border-radius: 11px; font-weight: 850; }
  .results-toolbar { align-items: start; }
  .view-tools { align-items: end; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
  .saved-plan { grid-template-columns: 1fr; }
  .plan-actions { flex-wrap: wrap; }
  #eventMap { height: 520px; }
  .event-card { grid-template-columns: 62px minmax(0, 1fr); }
  .card-body { padding: 14px 13px; }
  .dialog-inner { padding: 30px 21px 26px; }
}
@media (max-width: 410px) {
  .search-row { grid-template-columns: 1fr; }
  .filter-toggle { min-height: 46px; justify-content: center; }
  .search-box kbd { display: none; }
  .results-toolbar { display: block; }
  .view-tools { display: grid; grid-template-columns: auto 1fr; justify-content: stretch; margin-top: 11px; }
  .share-search { grid-column: 1 / -1; justify-self: end; }
  .event-card { grid-template-columns: 55px minmax(0, 1fr); }
  .date-block .day { font-size: 1.6rem; }
}

.filter-subhead { margin: 12px 0 4px; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.subfilter + .subfilter { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); }
.subfilter label { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 9px; min-height: 42px; padding: 4px 0; color: #3e3541; font-size: .88rem; }
.filter-count { margin-left: auto; color: var(--muted); font-size: .69rem; font-weight: 700; }

.card-action-buttons { display: flex; align-items: center; gap: 2px; }
.compare-button { min-height: 40px; padding: 6px 7px; color: var(--ink); background: transparent; border: 0; border-radius: 7px; font-size: .73rem; font-weight: 800; }
.compare-button:hover, .compare-button.active { background: #eee4f2; }
.compare-button.active { color: #4d2465; }
.save-button.saved { animation: heart-pop .28s ease-out; }
.event-card { animation: card-in .32s ease-out both; }


.tool-dialog { width: min(760px, calc(100% - 28px)); max-height: 86vh; padding: 0; color: var(--ink); background: var(--white); border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.36); }
.tool-dialog::backdrop { background: rgba(15,9,22,.75); backdrop-filter: blur(3px); }
.tool-dialog-inner { position: relative; padding: 28px; }
.tool-dialog-inner h2 { margin: 0 48px 8px 0; font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.tool-dialog-inner > p:not(.location-kicker) { color: var(--muted); }
.tool-dialog-inner > label { display: grid; gap: 6px; max-width: 330px; margin: 18px 0; font-size: .82rem; font-weight: 800; }
.tool-dialog-inner select { min-height: 44px; padding: 8px 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 9px; }
.tool-dialog-inner > label.calendar-check { display: flex; align-items: center; gap: 8px; }
.tool-dialog-close { position: absolute; top: 15px; right: 15px; width: 44px; height: 44px; color: var(--white); background: var(--ink); border: 0; border-radius: 50%; font-size: 1.4rem; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.tool-actions button, .tool-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; color: var(--white); background: var(--ink); border: 0; border-radius: 9px; text-decoration: none; font-size: .82rem; font-weight: 820; }
.tool-actions a { color: var(--ink); background: #e9def0; }
.tool-note { font-size: .75rem; }
.compare-dialog { width: min(980px, calc(100% - 28px)); }
.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.compare-grid article { position: relative; padding: 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.compare-grid h3 { margin: 0 28px 15px 0; font-family: Georgia, serif; font-size: 1.15rem; line-height: 1.08; }
.compare-grid dl { margin: 0; }
.compare-grid dl div { padding: 8px 0; border-top: 1px solid var(--line); }
.compare-grid dt { color: var(--muted); font-size: .67rem; font-weight: 850; text-transform: uppercase; }
.compare-grid dd { margin: 2px 0 0; font-size: .78rem; }
.compare-remove { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; color: var(--muted); background: transparent; border: 0; font-size: 1.2rem; }
.compare-details { min-height: 42px; margin-top: 12px; padding: 7px 10px; color: var(--white); background: var(--ink); border: 0; border-radius: 8px; font-size: .76rem; font-weight: 800; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; max-width: min(520px, calc(100% - 30px)); padding: 12px 16px; color: var(--white); background: var(--ink); border: 1px solid rgba(255,255,255,.2); border-radius: 11px; box-shadow: 0 14px 42px rgba(0,0,0,.28); opacity: 0; transform: translate(-50%, 12px); transition: opacity .18s ease, transform .18s ease; font-size: .84rem; font-weight: 720; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes moon-glow { 0% { transform: scale(.95); filter: brightness(.88); } 55% { transform: scale(1.03); filter: brightness(1.05); } 100% { transform: scale(1); } }
@keyframes bat-flight {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(18px, -13px) rotate(6deg); }
  50% { transform: translate(7px, 12px) rotate(-3deg); }
  75% { transform: translate(-18px, 4px) rotate(-16deg); }
}
@keyframes bat-flight-small {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  30% { transform: translate(16px, -20px) rotate(9deg); }
  65% { transform: translate(-12px, -8px) rotate(-18deg); }
}
@keyframes bat-flap-left {
  0%, 100% { transform: rotate(0) scaleX(1); }
  50% { transform: rotate(18deg) scaleX(.58); }
}
@keyframes bat-flap-right {
  0%, 100% { transform: rotate(0) scaleX(1); }
  50% { transform: rotate(-18deg) scaleX(.58); }
}
@keyframes heart-pop { 50% { transform: scale(1.16); } }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 880px) {
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 690px) {
  .hero { min-height: 0; }
  .topbar { padding-top: 10px; }
  .brand { font-size: .86rem; }
  .official-link::after { content: "Sources"; }
  .hero-inner { padding: 10px 0 42px; }
  h1 { max-width: 88%; font-size: clamp(2.05rem, 9.5vw, 2.8rem); line-height: .92; }
  .lede { max-width: 85%; margin-top: 10px; font-size: .88rem; }
  .moon-scene { top: -2px; right: -36px; opacity: .5; }
  .moon { width: 100px; height: 100px; }
  .search-box { min-height: 50px; padding: 0 13px; }
  .saved-shortcut, .filter-toggle { min-height: 50px; padding: 0 12px; }
  .planner-grid { margin-top: 16px; }
  .results-toolbar { display: block; }
  .view-tools { justify-content: flex-start; margin-top: 10px; }
  .event-card { min-height: 0; }
  .card-actions { align-items: end; }
  .card-action-buttons { flex-wrap: wrap; justify-content: flex-end; }
  .toast { bottom: 72px; }
  .tool-dialog-inner { padding: 23px 18px; }
}

@media (max-width: 410px) {
  .search-row { grid-template-columns: minmax(0, 1fr) auto; }
  .search-box { grid-column: 1 / -1; }
  .filter-toggle, .saved-shortcut { justify-content: center; }
  .event-card .description { -webkit-line-clamp: 2; }
  .repeat-note { display: none; }
  .compare-button, .details-button { padding-inline: 5px; font-size: .7rem; }
  .view-tools { grid-template-columns: 1fr; }
  .share-search { justify-self: stretch; }
}

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

/* Search and distance controls share one light, compact area. */
.location-panel { margin: 14px 0 0; padding: 0 2px 12px; border-bottom: 1px solid var(--line); }
.location-editor { display: grid; gap: 6px; }
.location-panel .location-grid { display: grid; grid-template-columns: minmax(180px, 280px) 150px auto 1fr; gap: 12px; align-items: end; }
.location-grid label { font-size: .76rem; }
.location-panel input, .location-panel select { min-height: 44px; padding: 9px 12px; font-size: .92rem; }
.location-panel .zip-status { margin: 0; font-size: .74rem; }
.location-panel .zip-status.error { color: #a92e16; }
.location-panel .zip-status.loading::before { content: ''; display: inline-block; width: .72em; height: .72em; margin-right: 7px; border: 2px solid var(--line); border-top-color: var(--purple); border-radius: 50%; animation: route-spin .8s linear infinite; }
.apply-location, .location-compact button { min-height: 44px; padding: 9px 14px; color: var(--white); background: var(--ink); border: 0; border-radius: 9px; font-size: .82rem; font-weight: 750; }
.apply-location:disabled { opacity: .65; cursor: wait; }
.clear-location { justify-self: start; }
.location-compact { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.location-compact p { margin: 0; font-size: .86rem; }
.location-compact p > span { color: var(--purple); margin-right: 6px; }
.location-compact button { color: var(--ink); background: var(--paper-2); }
.search-box { box-shadow: 0 3px 12px rgba(30,17,42,.04); }
.card-heading { min-width: 0; }
.card-top { gap: 10px; }
.card-place { margin: 7px 0 0; color: #63596a; font-size: .8rem; }
.card-place strong { color: #45374e; font-weight: 700; }
.card-drive { display: block; margin-top: 3px; color: #174b58; }
.card-facts { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: auto; padding-top: 6px; font-size: .8rem; }
.card-price { font-weight: 750; }
.card-price.free { color: #305525; }
.card-age { color: #6b5679; }
.card-actions { margin-top: 5px; }
.detail-price { margin: 16px 0 0; font-size: .95rem; line-height: 1.5; }
.plan-actions { flex-wrap: wrap; }
.share-search { border: 0; padding-inline: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.compare-button.active { color: #4d2465; background: #eee4f2; }
@media (max-width: 880px) {
  .location-panel .location-grid { grid-template-columns: minmax(140px, 1fr) 140px auto auto; }
}
@media (max-width: 690px) {
  .search-row { grid-template-columns: minmax(0, 1fr) auto; }
  .search-box { grid-column: 1 / -1; }
  .filter-toggle, .saved-shortcut { justify-content: center; min-height: 44px; }
  .location-panel { margin-top: 8px; padding-bottom: 10px; }
  .location-panel .location-grid { grid-template-columns: minmax(0, 1fr) 120px; gap: 7px 10px; }
  .apply-location { justify-self: start; }
  .clear-location { justify-self: end; }
  .location-panel input, .location-panel select { font-size: 1rem; }
  .view-tools { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 8px 16px; }
  .share-search { order: 3; }
  .event-card { grid-template-columns: 52px minmax(0, 1fr); }
  .card-body { padding: 16px 14px 8px; }
  .event-card h2 { font-size: 1.28rem; }
  .card-facts { display: grid; gap: 4px; }
  .repeat-note { display: inline; font-size: .7rem; }
  .details-button, .compare-button { font-size: .8rem; }
}

/* Keep the results area calm and put the map and filters within easy reach. */
.search-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.filter-toggle { display: inline-flex; min-height: 48px; }
.planner-grid { display: block; margin-top: 18px; }
body.filters-open { overflow: hidden; }
body.filters-open::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(15, 9, 22, .58); }
.filters { display: none; position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(420px, calc(100% - 24px)); height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0 24px 96px; overflow-y: auto; background: var(--white); border: 0; box-shadow: 18px 0 60px rgba(15, 9, 22, .28); scrollbar-gutter: stable; }
.filters.open { display: block; }
.filter-heading { position: sticky; top: 0; z-index: 2; min-height: 72px; padding: 10px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.filter-heading .close-filters { display: inline-grid; place-items: center; }
.filter-footer { display: block; position: fixed; bottom: 0; left: 0; z-index: 61; width: min(420px, calc(100% - 24px)); padding: 12px 24px max(12px, env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
.filter-footer button { width: 100%; min-height: 48px; color: var(--ink); background: var(--acid); border: 0; border-radius: 10px; font-weight: 850; }
.view-tools { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.view-switch { display: inline-flex; align-items: stretch; padding: 4px; background: #e8dfd1; border-radius: 12px; }
.view-switch button { min-height: 42px; padding: 8px 13px; color: var(--ink); background: transparent; border: 0; border-radius: 9px; font-size: .8rem; font-weight: 800; }
.view-switch button.active { background: var(--white); box-shadow: 0 1px 5px rgba(30, 17, 42, .12); }
.share-search { min-height: 42px; padding: 6px 2px; border: 0; font-size: .76rem; font-weight: 650; }
.event-card .description { display: none; }
.card-facts { gap: 5px 0; margin-top: 10px; padding-top: 0; }
.card-drive { display: inline; margin-top: 0; color: #174b58; }
.card-facts span + span::before { content: "·"; margin-right: 14px; color: #a89da9; }

@media (max-width: 690px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .filter-toggle, .saved-shortcut { width: 100%; justify-content: center; }
  .filters { width: 100%; padding-inline: 18px; }
  .filter-footer { width: 100%; padding-inline: 18px; }
  .results-toolbar { display: block; }
  .view-tools { display: flex; align-items: center; justify-content: flex-start; margin-top: 12px; }
  .view-switch { order: -1; width: 100%; }
  .view-switch button { flex: 0 0 auto; }
  .share-search { order: initial; }
  .card-facts { display: flex; gap: 5px 0; }
}

@media (max-width: 410px) {
  .share-search { order: 3; margin-left: auto; }
  .view-switch button { padding-inline: 10px; }
}

/* Mobile browsing: events first, with one set of controls. */
h1 .desktop-title { color: var(--white); }
h1 em { color: var(--orange); font-style: normal; }
.mobile-title, .card-date { display: none; }
.search-row { grid-template-columns: minmax(0, 1fr) auto; }
.browse-actions { display: flex; gap: 10px; }
.saved-shortcut.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.saved-shortcut.active strong { color: var(--ink); }
.location-notice { margin: 5px 2px 0; color: var(--muted); font-size: .78rem; }

/* Filters lead the browsing experience. Search stays available for known names and venues. */
@media (min-width: 691px) {
  .search-row { grid-template-columns: auto minmax(280px, 430px) auto; align-items: center; justify-content: start; gap: 12px; }
  .browse-actions { display: contents; }
  .filter-toggle { grid-column: 1; grid-row: 1; min-height: 54px; padding: 0 24px; color: var(--ink); background: var(--acid); border: 1px solid #a8d22f; border-radius: 14px; font-size: .98rem; box-shadow: 0 5px 16px rgba(73, 96, 14, .13); }
  .filter-toggle:hover { background: #d3f66a; }
  .search-box { grid-column: 2; grid-row: 1; min-height: 48px; padding-inline: 14px; box-shadow: none; }
  .search-box > span { font-size: 1.45rem; }
  .search-box input { font-size: .92rem; }
  .saved-shortcut { grid-column: 3; grid-row: 1; min-height: 48px; }
}
.location-dialog { width: min(520px, calc(100% - 24px)); }
.location-dialog h2 { font-size: 1.8rem; line-height: 1.1; }
.location-dialog .location-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.location-dialog input, .location-dialog select { min-height: 48px; font-size: 1rem; padding: 10px; }
.location-dialog .apply-location { min-height: 48px; }
.location-dialog .clear-location { justify-self: end; font-size: .85rem; }
.location-dialog .zip-status { margin-top: 14px; font-size: .85rem; }
.location-dialog .area-towns, .location-dialog .radius-help { grid-column: 1 / -1; }
.location-dialog .radius-help { margin: -7px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.view-switch { padding: 3px; gap: 3px; }
.view-switch button { flex: 1 1 0; min-width: 62px; min-height: 44px; font-size: .85rem; }
.view-switch button.active { color: var(--white); background: var(--ink); box-shadow: none; }
.filters { padding-inline: 24px; }
.filter-heading { margin: 0 -24px; padding: 10px 24px; }
.filters fieldset { padding: 6px 0 14px; }
.filter-section-toggle { min-height: 52px; padding: 0; }
.filters .filter-option-label { color: var(--ink); font-size: .9rem; }
.filter-option-label small { display: block; color: var(--muted); font-size: .75rem; }
.filters .filter-count { justify-self: end; margin-left: 0; white-space: nowrap; font-size: .8rem; }
.date-grid input { min-height: 44px; font-size: 1rem; min-width: 0; }
.date-grid label { min-width: 0; }
body.details-open { overflow: hidden; }
.event-dialog { height: min(86dvh, 820px); max-height: none; overflow: hidden; }
.event-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 8px 20px; border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 750; }
.dialog-close { position: static; float: none; margin: 0; background: var(--paper-2); color: var(--ink); }
.dialog-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.dialog-inner { padding: 24px; }
.dialog-inner h2 { margin: 0 0 20px; font-size: 2rem; line-height: 1.1; }
.event-essentials { margin: 0; }
.event-essentials > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; margin: 10px 0; }
.event-essentials dt { color: var(--muted); font-size: .85rem; }
.event-essentials dd { margin: 0; font-size: .94rem; }
.event-essentials > div:first-child dd { color: var(--orange-dark); font-weight: 750; }
.dialog-description { font-size: 1rem; line-height: 1.6; }
.occurrences { padding: 0; overflow: hidden; }
.occurrences summary { min-height: 48px; padding: 14px 16px; cursor: pointer; font-size: .9rem; font-weight: 750; }
.occurrences ul { max-height: none; overflow: visible; padding: 0 20px 16px 36px; }
.occurrences li { margin: 7px 0; }
.detail-primary-actions { display: flex; gap: 10px; padding: 12px 20px; background: var(--white); border-top: 1px solid var(--line); }
.detail-primary-actions button, .detail-primary-actions a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 12px; font-size: .95rem; font-weight: 800; text-decoration: none; }
.detail-primary-actions button { color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.detail-primary-actions a { flex: 1; color: var(--ink); background: var(--acid); }
.detail-primary-actions button[aria-pressed="true"] { color: var(--orange-dark); background: #ffe2d2; border-color: #ffc1a4; }
.empty-state { padding: 32px 20px; }
.toast { z-index: 100; pointer-events: none; }

@media (max-width: 690px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .hero-inner { padding: 8px 0 30px; }
  .hero::after { height: 24px; }
  .hero .eyebrow { margin-bottom: 9px; font-size: .65rem; }
  .official-link { font-size: .8rem; }
  .official-link::after { content: none; }
  h1 { max-width: calc(100% - 64px); font-size: clamp(1.7rem, 8.2vw, 2.3rem); line-height: 1.04; letter-spacing: -.04em; }
  h1 .desktop-title, .hero .lede { display: none; }
  h1 .mobile-title { display: block; color: var(--white); }
  .moon-scene { top: 16px; right: 0; width: 76px; min-height: 76px; opacity: 1; pointer-events: none; }
  .moon { right: 0; width: 72px; height: 72px; box-shadow: 0 0 40px rgba(255,151,34,.14), inset -9px -7px 0 rgba(232,90,26,.22); }
  .moon span { width: 17px; height: 17px; top: 18px; left: 15px; }
  .moon i { width: 12px; height: 12px; right: 16px; bottom: 15px; }
  .bat-one { top: 23px; right: 17px; width: 42px; }
  .planner { padding-top: 10px; padding-bottom: 36px; }
  .search-row { display: block; }
  .search-box { min-height: 48px; }
  .search-box kbd { display: none; }
  .browse-actions { position: fixed; bottom: 0; left: 0; right: 0; z-index: 35; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(30,17,42,.06); }
  .browse-actions button { min-height: 48px; border-radius: 12px; }
  .filter-toggle { color: var(--ink); background: var(--acid); border: 1px solid #a8d22f; }
  .location-panel { margin-top: 4px; padding: 0 0 4px; }
  .location-compact { gap: 8px; }
  .location-compact p { font-size: .82rem; }
  .location-compact button { padding: 8px 10px; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
  .location-notice { font-size: .75rem; }
  .planner-grid { margin-top: 12px; }
  .results-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding-bottom: 10px; align-items: center; }
  .results-count { font-size: 1rem; }
  .results-note { font-size: .7rem; }
  .results-context { display: none; }
  .view-tools { display: contents; }
  .view-switch { grid-column: 2; grid-row: 1; width: auto; order: initial; }
  .view-switch button { flex: 1 1 0; padding: 8px 10px; }
  .share-search { grid-column: 2; grid-row: 2; order: initial; margin: 0; justify-self: end; min-height: 44px; font-size: .8rem; }
  .event-list { padding-top: 12px; gap: 12px; }
  .event-card, .agenda .event-card { display: block; }
  .date-block { display: none; }
  .card-body, .agenda .card-body { padding: 16px 16px 6px; }
  .card-date { display: block; margin: 0 0 6px; color: var(--purple); font-size: .79rem; font-weight: 750; }
  .event-card h2 { font-size: 1.35rem; line-height: 1.15; margin-bottom: 8px; }
  .card-top { position: relative; display: block; }
  .card-date { padding-right: 44px; min-height: 20px; }
  .card-top .save-button { position: absolute; top: -5px; right: -4px; }
  .card-heading { padding-right: 0; }
  .card-heading h2 { padding-right: 26px; }
  .card-place, .card-facts, .time-line { font-size: .86rem; }
  .card-facts { gap: 6px 12px; margin-top: 8px; }
  .card-facts span + span::before { content: none; }
  .card-price { color: var(--ink); }
  .card-age { color: var(--muted); }
  .repeat-note { display: none; }
  .card-actions { justify-content: flex-end; margin-top: 0; }
  .details-button, .compare-button { font-size: .85rem; min-height: 44px; }
  .filters { padding-inline: 18px; scrollbar-gutter: auto; }
  .filter-heading { margin: 0 -18px; padding: 10px 18px; }
  .filter-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .filters .filter-section-body > label, .subfilter label { grid-template-columns: 20px minmax(0, 1fr) auto; min-height: 48px; font-size: 1rem; }
  .filters .filter-option-label { font-size: 1rem; }
  .filters input[type="checkbox"] { width: 20px; height: 20px; }
  .filter-count { font-size: .8rem; }
  .event-dialog { width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .dialog-header { padding: max(8px, env(safe-area-inset-top)) 16px 8px; }
  .dialog-inner { padding: 20px 18px; }
  .dialog-inner h2 { font-size: 1.85rem; }
  .detail-primary-actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .detail-primary-actions button, .detail-primary-actions a { padding-inline: 14px; font-size: .9rem; }
  .location-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .location-dialog .tool-dialog-inner { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .saved-plan { margin-top: 12px; padding: 16px; gap: 12px; }
  .saved-plan h2 { font-size: 1.4rem; }
  .saved-plan p { margin-bottom: 0; }
  .agenda-day > h2 { position: static; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  #results { scroll-margin-top: 12px; }
}

.event-card { animation: none; }

/* Area choices share one control on desktop and phones. */
.location-dialog .location-grid { grid-template-columns: minmax(0, 1fr); }
.location-dialog .clear-location { justify-self: center; min-height: 44px; }
.area-towns { margin: 0 0 4px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.location-dialog .area-towns, .location-dialog .radius-help { grid-column: auto; }
.location-dialog select { max-width: 100%; }
.location-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; }

.location-dialog .apply-location { width: 100%; justify-self: stretch; }

/* Put the main browsing controls where people expect them: above the results. */
.date-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.date-shortcuts button { min-height: 42px; padding: 8px 15px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; font-weight: 800; }
.date-shortcuts button:hover { border-color: #b7aa98; }
.date-shortcuts button.active { background: var(--acid); border-color: #a8d22f; }
.filter-toggle { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; color: var(--ink); background: var(--acid); border: 1px solid #a8d22f; border-radius: 12px; font-size: .82rem; font-weight: 850; }
.filter-toggle:hover { background: #d3f66a; }

@media (min-width: 691px) {
  .search-row { grid-template-columns: minmax(280px, 430px) auto; align-items: center; justify-content: start; gap: 12px; }
  .browse-actions { display: flex; }
  .search-box { grid-column: 1; grid-row: 1; min-height: 48px; padding-inline: 14px; box-shadow: none; }
  .search-box > span { font-size: 1.45rem; }
  .search-box input { font-size: .92rem; }
  .saved-shortcut { grid-column: 2; grid-row: 1; min-height: 48px; }
}

@media (max-width: 690px) {
  body { padding-bottom: 0; }
  .search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
  .search-box { grid-column: 1; min-width: 0; }
  .browse-actions { position: static; display: block; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .browse-actions button { min-height: 48px; }
  .saved-shortcut { width: auto; padding-inline: 12px; }
  .saved-shortcut > span { display: none; }
  .date-shortcuts { margin-top: 8px; }
  .date-shortcuts button { flex: 1 1 auto; min-height: 44px; padding-inline: 10px; }
  .planner-grid { margin-top: 14px; }
  .results-toolbar { display: block; }
  .view-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 12px; }
  .view-switch { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .view-switch button { flex: 1 1 0; }
  .filter-toggle { grid-column: 1; grid-row: 2; width: 100%; white-space: nowrap; }
  .share-search { grid-column: 2; grid-row: 2; justify-self: end; margin: 0; }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (max-width: 410px) {
  .share-search { order: initial; margin-left: 0; }
}

/* Browse-first controls: filters and the map lead; search waits for known names. */
.browse-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.primary-browse-button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 13px 17px;
  border-radius: 16px;
  text-align: left;
}
.primary-browse-button .browse-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 0;
}
.primary-browse-button .browse-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.primary-browse-button strong,
.primary-browse-button small { display: block; }
.primary-browse-button strong { font-size: 1.05rem; line-height: 1.2; }
.primary-browse-button small { margin-top: 3px; font-size: .77rem; font-weight: 650; line-height: 1.35; }
.filter-toggle.primary-browse-button {
  width: 100%;
  min-height: 78px;
  padding: 13px 17px;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid #a8d22f;
  box-shadow: 0 5px 16px rgba(73, 96, 14, .13);
}
.filter-toggle.primary-browse-button .browse-icon { background: rgba(255,255,255,.55); }
.map-shortcut {
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 5px 16px rgba(30,17,42,.12);
}
.map-shortcut .browse-icon { color: var(--acid); background: rgba(255,255,255,.09); }
.map-shortcut .map-heart { fill: var(--orange); stroke: var(--orange); stroke-width: 1.2; }
.map-shortcut small { color: #ddd2e2; }
.map-shortcut:hover { background: #2c1538; }
.map-shortcut.active { outline: 3px solid rgba(190,239,58,.48); outline-offset: 2px; }

.search-row {
  display: grid;
  grid-template-columns: minmax(280px, 430px) auto;
  align-items: start;
  justify-content: start;
  gap: 10px;
  margin-top: 12px;
}
.search-disclosure { width: 100%; }
.search-disclosure summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  list-style: none;
  font-size: .88rem;
  font-weight: 760;
}
.search-disclosure summary::-webkit-details-marker { display: none; }
.search-disclosure summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 500;
}
.search-disclosure[open] summary { border-radius: 13px 13px 0 0; background: var(--paper-2); }
.search-disclosure[open] summary::after { content: "−"; }
.search-disclosure .search-box {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 0 14px;
  border-top: 0;
  border-radius: 0 0 13px 13px;
  box-shadow: none;
}
.search-disclosure .search-box input { font-size: .92rem; }
.browse-actions { display: block; }
.saved-shortcut { min-height: 46px; }

.results-toolbar { align-items: center; }
.view-tools { justify-content: flex-end; }
.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.map-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.6rem; }
.map-heading button {
  min-height: 44px;
  padding: 8px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 800;
}

@media (max-width: 690px) {
  .browse-primary { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .primary-browse-button {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    min-height: 82px;
    padding: 11px;
  }
  .filter-toggle.primary-browse-button { min-height: 82px; padding: 11px; }
  .primary-browse-button .browse-icon { width: 32px; height: 32px; }
  .primary-browse-button .browse-icon svg { width: 17px; height: 17px; }
  .primary-browse-button strong { font-size: .94rem; }
  .primary-browse-button small { font-size: .68rem; }
  .primary-browse-button .count-pill { grid-column: 1 / -1; justify-self: start; }
  .search-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; margin-top: 10px; }
  .search-disclosure summary { min-height: 46px; padding-inline: 12px; font-size: .82rem; }
  .search-disclosure .search-box { min-height: 46px; padding-inline: 12px; }
  .saved-shortcut { width: auto; min-height: 46px; padding-inline: 12px; }
  .results-toolbar { display: flex; align-items: end; }
  .view-tools { display: flex; margin-top: 0; }
  .share-search { margin: 0; }
  .map-heading { align-items: end; }
  .map-heading h2 { font-size: 1.35rem; }
}

@media (max-width: 410px) {
  .primary-browse-button { grid-template-columns: 1fr; align-content: start; }
  .primary-browse-button .browse-icon { display: none; }
  .primary-browse-button small { margin-top: 5px; }
}

/* Keep the browse controls tidy at phone and narrow panel widths. */
.primary-browse-button > span:nth-child(2) { min-width: 0; }
.primary-browse-button small { white-space: normal; }

@media (max-width: 690px) {
  .date-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .date-shortcuts button {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
    white-space: nowrap;
  }
  .browse-primary { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .primary-browse-button,
  .filter-toggle.primary-browse-button {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    min-height: 74px;
    padding: 12px 14px;
    gap: 11px;
  }
  .primary-browse-button .browse-icon {
    display: grid;
    width: 38px;
    height: 38px;
  }
  .primary-browse-button .browse-icon svg { width: 20px; height: 20px; }
  .primary-browse-button strong { font-size: 1rem; }
  .primary-browse-button small { margin-top: 3px; font-size: .72rem; line-height: 1.35; }
}

@media (max-width: 410px) {
  .date-shortcuts button { font-size: .76rem; }
  .primary-browse-button,
  .filter-toggle.primary-browse-button {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-content: center;
    padding-inline: 12px;
  }
  .primary-browse-button .browse-icon { display: grid; width: 36px; height: 36px; }
  .primary-browse-button small { margin-top: 3px; }
  .search-row { grid-template-columns: minmax(0, 1fr); }
  .saved-shortcut { justify-self: start; }
}

@media (max-width: 340px) {
  .date-shortcuts { gap: 4px; }
  .date-shortcuts button { min-height: 42px; padding-inline: 4px; font-size: .71rem; }
  .primary-browse-button,
  .filter-toggle.primary-browse-button { grid-template-columns: 34px minmax(0, 1fr); }
  .primary-browse-button .browse-icon { width: 34px; height: 34px; }
  .primary-browse-button .count-pill { grid-column: 2; }
}

/* Mobile browse polish: keep the main choices compact, clear, and easy to tap. */
.location-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.location-compact .reset-location { color: var(--orange-dark); background: transparent; }
.browse-title-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.browse-title-row .count-pill {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 22px;
  min-height: 22px;
  padding: 1px 6px;
  font-size: .73rem;
  line-height: 1;
}
.filter-toggle .count-pill { color: var(--white); background: var(--ink); }
.search-label-short { display: none; }

.more-categories { margin-top: 6px; border-top: 1px dashed var(--line); }
.more-categories summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  font-size: .88rem;
  font-weight: 800;
}
.more-categories summary::-webkit-details-marker { display: none; }
.more-categories summary span { color: var(--orange-dark); font-size: 1rem; transition: transform .15s ease; }
.more-categories[open] summary span { transform: rotate(45deg); }
.more-categories-body > label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  color: #3e3541;
  font-size: .88rem;
}

@media (max-width: 690px) {
  .hero-inner { padding: 4px 0 22px; }
  .planner { padding-top: 7px; }
  .date-shortcuts { margin-top: 6px; }
  .date-shortcuts button { font-size: .84rem; }
  .browse-primary { gap: 7px; margin-top: 8px; }
  .primary-browse-button,
  .filter-toggle.primary-browse-button {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 64px;
    padding: 9px 12px;
    gap: 10px;
  }
  .primary-browse-button .browse-icon { width: 36px; height: 36px; }
  .primary-browse-button small { font-size: .82rem; line-height: 1.25; }
  .primary-browse-button .count-pill { grid-column: auto; justify-self: auto; }
  .search-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; margin-top: 8px; }
  .more-categories-body > label { grid-template-columns: 20px minmax(0, 1fr) auto; min-height: 48px; font-size: 1rem; }
}

@media (max-width: 410px) {
  .location-compact { align-items: flex-start; }
  .location-actions { flex: 0 0 auto; }
  .location-compact .reset-location { padding-inline: 5px; }
  .date-shortcuts button { font-size: .82rem; }
  .primary-browse-button,
  .filter-toggle.primary-browse-button { grid-template-columns: 34px minmax(0, 1fr); padding-inline: 11px; }
  .primary-browse-button .browse-icon { width: 34px; height: 34px; }
  .search-row { grid-template-columns: minmax(0, 1fr) auto; }
  .search-label-long { display: none; }
  .search-label-short { display: inline; }
  .search-disclosure summary { gap: 6px; padding-inline: 10px; font-size: .8rem; }
  .saved-shortcut { justify-self: auto; padding-inline: 10px; font-size: .8rem; }
}

@media (max-width: 340px) {
  .date-shortcuts button { font-size: .81rem; }
  .primary-browse-button,
  .filter-toggle.primary-browse-button { grid-template-columns: 32px minmax(0, 1fr); }
  .primary-browse-button .browse-icon { width: 32px; height: 32px; }
  .search-disclosure summary { padding-inline: 8px; }
  .saved-shortcut { padding-inline: 8px; }
}
