:root {
  --bg: #f5efe4;
  --paper: #fffaf1;
  --ink: #1c1712;
  --muted: #6f6457;
  --line: #e4d9c6;
  --accent: #e2491b;
  --accent-ink: #fff;
  --marigold: #f0a21a;
  --free: #1f7a4d;
  --warn: #9a5b00;
  --warn-bg: #fff1d6;
  --chip: #ebe2d2;
  --shadow: 0 1px 0 rgba(28, 23, 18, .06), 0 8px 24px -16px rgba(28, 23, 18, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110e; --paper: #1d1915; --ink: #f2eadc; --muted: #a89a88; --line: #2f2922;
    --accent: #ff6a3a; --marigold: #f5b23a; --free: #5fd39a; --warn: #f5c56b; --warn-bg: #33270f;
    --chip: #29231d; --shadow: 0 1px 0 rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14110e; --paper: #1d1915; --ink: #f2eadc; --muted: #a89a88; --line: #2f2922;
  --accent: #ff6a3a; --marigold: #f5b23a; --free: #5fd39a; --warn: #f5c56b; --warn-bg: #33270f;
  --chip: #29231d; --shadow: 0 1px 0 rgba(0,0,0,.4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--sticky-h, 1rem); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 60px; }
.logo { font: 800 1.6rem/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.04em; text-decoration: none; }
.logo-dot { color: var(--accent); }
.top nav { display: flex; gap: 1.1rem; align-items: center; font-size: .92rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top nav .nav-cta { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .top nav a:not(.nav-cta) { display: none; } }

.h-xxl, .h-xl, .h-sec, .card-title { font-family: 'Bricolage Grotesque', sans-serif; letter-spacing: -.03em; }
.h-xxl { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: .92; font-weight: 800; margin: .3rem 0 1.2rem; }
.h-xl { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; font-weight: 800; margin: .4rem 0 1rem; }
.h-sec { font-size: 1.5rem; font-weight: 700; margin: 2.4rem 0 1rem; }
.h-sec small { font: 500 .9rem Inter, sans-serif; color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0; }
.eyebrow a { text-decoration: none; }
.lede { font-size: 1.15rem; max-width: 46ch; margin: 0 0 1rem; }
.detail .lede, .prose .lede { max-width: none; }
.meta { font-size: .9rem; color: var(--muted); }

.hero { padding: 3.2rem 0 2rem; background:
  radial-gradient(60rem 22rem at 100% 0%, color-mix(in srgb, var(--marigold) 22%, transparent), transparent 70%),
  radial-gradient(40rem 18rem at 80% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }

.filters { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-block: 1px solid var(--line); padding: .7rem 0; }
.filters .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; }
.fgroup { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chip { border: 0; background: var(--chip); color: var(--ink); font: 500 .88rem Inter, sans-serif; padding: .42rem .8rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.chip small { color: var(--muted); font-size: .78rem; }
.chip.on { background: var(--ink); color: var(--bg); }
.chip.on small { color: inherit; opacity: .7; }
.chip:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.count { margin: 0 0 0 auto; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .count { margin: 0; } }

.jump { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.4rem; }
.jump-link { font-size: .86rem; font-weight: 500; text-decoration: none; padding: .3rem .7rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.jump-link small { color: var(--muted); margin-left: .1rem; }
.jump-link:hover { color: var(--ink); background: var(--chip); box-shadow: none; }
.jump-link[data-sec="dont-miss"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.h-sec .anchor { text-decoration: none; color: inherit; }
.h-sec .anchor::after { content: " #"; color: var(--accent); opacity: 0; transition: opacity .15s; }
.h-sec .anchor:hover::after, .h-sec .anchor:focus-visible::after { opacity: 1; }
.sec-count { font: 500 .9rem Inter, sans-serif; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.grid-big { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .grid, .grid-big { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem 1.05rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .35rem; }
.card-big { border-top: 4px solid var(--accent); }
.card[hidden], .catsec[hidden] { display: none; }
.card-kicker { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); margin-right: auto; }
.pill { font-size: .72rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; background: var(--chip); }
.pill-free { background: color-mix(in srgb, var(--free) 16%, transparent); color: var(--free); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.card-title { font-size: 1.28rem; line-height: 1.1; margin: .1rem 0 0; font-weight: 700; }
.card-big .card-title { font-size: 1.6rem; }
.card-title a { text-decoration: none; }
.where { margin: 0; font-size: .9rem; color: var(--muted); }
.where.big { font-size: 1.05rem; }
.desc { margin: .2rem 0; font-size: .93rem; }
.sched { list-style: none; padding: 0; margin: .3rem 0 0; font-size: .88rem; display: grid; gap: .15rem; }
.sched li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .4rem; }
.sched li[hidden] { display: none; }
.sched-day { font-weight: 600; }
.sched em { color: var(--muted); font-style: normal; }
.sched-lg { font-size: 1rem; gap: .5rem; }
.sched-lg li { grid-template-columns: 8rem 1fr; }
.adm { margin: auto 0 0; padding-top: .45rem; font-weight: 600; font-size: .9rem; border-top: 1px dashed var(--line); }
.adm.big { font-size: 1.15rem; border: 0; padding: 0; margin: 0 0 .5rem; }
.empty { padding: 3rem 0; font-size: 1.2rem; color: var(--muted); }

.detail .h-sec { font-size: 1.15rem; margin-top: 2rem; }
.warnbox { background: var(--warn-bg); color: var(--ink); border-left: 4px solid var(--warn); padding: .8rem 1rem; border-radius: 8px; margin: 1.2rem 0; }
.warnbox ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.basis { color: var(--muted); font-size: .88rem; }
.tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.sources { padding-left: 1.2rem; display: grid; gap: .6rem; }
.kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: .3rem; }
.supports { color: var(--muted); font-size: .9rem; }
.ledger { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ledger li { padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .6rem; }

.form { display: grid; gap: 1rem; margin: 1.5rem 0; }
.form label { display: grid; gap: .35rem; font-weight: 600; }
.form input, .form textarea { font: inherit; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.hp { position: absolute; left: -9999px; }
.btn { justify-self: start; border: 0; background: var(--accent); color: var(--accent-ink); font: 700 1rem Inter, sans-serif; padding: .75rem 1.4rem; border-radius: 999px; cursor: pointer; }
.flash { background: var(--chip); padding: .8rem 1rem; border-radius: 10px; }

.foot { margin-top: 4rem; border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .filters { position: static; } }
.fine { color: var(--muted); font-size: .9rem; padding-left: 1.2rem; }
main.narrow { padding-top: 2.4rem; }
.where.big { margin-bottom: 1rem; }

/* ---- filter rows ---- */
.filters .wrap { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .55rem; }
.frow { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; }
.view { margin-left: auto; }
@media (max-width: 760px) { .view { margin-left: 0; } }
.facets { gap: .35rem; }
.flabel { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); margin-right: .2rem; }
.chip.facet { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); padding: .32rem .7rem; font-size: .84rem; }
.chip.facet.on { background: var(--chip); box-shadow: none; color: var(--ink); text-decoration: none; }
.chip.facet small { margin-left: .15rem; }
.linkbtn { border: 0; background: none; color: var(--muted); font: 500 .84rem Inter, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: .3rem .4rem; }
.linkbtn:hover { color: var(--accent); }

/* ---- dual-handle time slider ---- */
.time { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; flex: 1 1 520px; }
.time-label { font-size: .88rem; font-weight: 600; white-space: nowrap; min-width: 11.5rem; }
.time-label output { font-weight: 500; color: var(--muted); margin-left: .3rem; }
.range { position: relative; flex: 1 1 220px; height: 28px; min-width: 200px; }
.range-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--chip); }
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; }
.range input { position: absolute; left: 0; width: 100%; top: 4px; margin: 0; height: 20px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); cursor: grab; }
.range input::-moz-range-track { background: none; }
.range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.tbd { font-size: .84rem; color: var(--muted); display: flex; gap: .35rem; align-items: center; white-space: nowrap; }
.tbd input:disabled + * , .tbd:has(input:disabled) { opacity: .55; }
.count { margin-left: auto; }

/* ---- directions menu ---- */
details.dir { position: relative; font-size: .85rem; }
details.dir summary { list-style: none; cursor: pointer; color: var(--muted); display: inline; text-decoration: underline dotted; text-underline-offset: 3px; }
details.dir summary::-webkit-details-marker { display: none; }
details.dir summary::before { content: "↗ "; color: var(--accent); }
details.dir summary:hover { color: var(--accent); }
.dir-menu { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow), 0 12px 30px -12px rgba(0,0,0,.35); padding: .35rem; display: grid; min-width: 12rem; }
.dir-h { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .3rem .55rem .2rem; }
.dir-menu a { text-decoration: none; padding: .45rem .55rem; border-radius: 6px; font-weight: 500; }
.dir-menu a:hover { background: var(--chip); color: var(--ink); }
.dir-big { font-size: 1rem; margin: -.4rem 0 1rem; }

/* ---- map ---- */
.mapwrap { margin-top: 1.2rem; }
#map { height: min(72vh, 760px); border-radius: 14px; border: 1px solid var(--line); background: var(--chip); }
.minimap { height: 260px; border-radius: 12px; border: 1px solid var(--line); }
.pin { fill: var(--accent); fill-opacity: .85; stroke: var(--paper); stroke-width: 2; }
.pin-major { fill: var(--marigold); stroke: var(--ink); }
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--paper); color: var(--ink); }
.leaflet-popup-content { margin: .8rem .9rem; }
.pop { display: grid; gap: .6rem; max-height: 280px; overflow: auto; }
.pop-name { font: 700 1rem/1.15 'Bricolage Grotesque', sans-serif; text-decoration: none; }
.pop-v, .pop-h { font-size: .8rem; color: var(--muted); }
.pop-h b { color: var(--ink); font-weight: 600; }
.pop-dir { font-size: .8rem; border-top: 1px dashed var(--line); padding-top: .5rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); }
}
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .time { flex: 1 1 100%; min-width: 0; gap: .4rem .8rem; }
  .time-label { min-width: 0; flex: 1 1 100%; }
  .range { flex: 1 1 100%; min-width: 0; }
  .count { margin-left: 0; }
  #map { height: 65vh; }
}
.frow, .fgroup { min-width: 0; }
.chip.facet.only { background: var(--ink); color: var(--bg); }
.chip.facet.only small { color: inherit; opacity: .7; }

/* ---- share and calendar ---- */
.actions { display: flex; gap: .35rem; align-items: center; }
.chip.act { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.chip.act svg { flex: none; }
details.cal { position: relative; }
details.cal summary { list-style: none; }
details.cal summary::-webkit-details-marker { display: none; }
.cal-menu { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); width: min(20rem, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow), 0 12px 30px -12px rgba(0,0,0,.35); padding: .5rem; display: grid; gap: .1rem; }
.cal-h { margin: .2rem .5rem .5rem; font-size: .84rem; color: var(--muted); }
.cal-h strong { color: var(--ink); }
.cal-menu a, .cal-menu .linkbtn { text-decoration: none; padding: .5rem; border-radius: 6px; font-weight: 500; font-size: .92rem; text-align: left; color: var(--ink); }
.cal-menu a:hover, .cal-menu .linkbtn:hover { background: var(--chip); color: var(--ink); }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; border-top: 1px dashed var(--line); padding-top: .45rem; }
.card-foot .adm { margin: 0; padding: 0; border: 0; }
.iconbtn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: .2rem; border-radius: 6px; line-height: 0; }
.iconbtn:hover { color: var(--accent); background: var(--chip); }
.ev-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; font-size: .9rem; z-index: 1000; box-shadow: var(--shadow); }
@media (max-width: 760px) { .jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; } .jump .flabel { flex: none; } }

/* ---- pick-one pairs (cost, setting) ---- */
.pairs { gap: .5rem 1.4rem; }
.seg { display: inline-flex; align-items: center; gap: 0; }
.seg .flabel { margin-right: .5rem; }
.seg-opt { border: 0; background: var(--chip); color: var(--ink); font: 500 .86rem Inter, sans-serif; padding: .36rem .75rem; cursor: pointer; white-space: nowrap; }
.seg-opt + .seg-opt { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--ink) 12%, transparent); }
.seg .flabel + .seg-opt { border-radius: 999px 0 0 999px; }
.seg-opt:last-child { border-radius: 0 999px 999px 0; }
.seg-opt small { color: var(--muted); font-size: .76rem; margin-left: .15rem; }
.seg-opt.on { background: var(--ink); color: var(--bg); }
.seg-opt.on small { color: inherit; opacity: .7; }
.seg-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; position: relative; z-index: 1; }

/* ---- front page ---- */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: .5rem; }
.city-card { display: grid; gap: .3rem; padding: 1.3rem 1.3rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 14px; box-shadow: var(--shadow); text-decoration: none; }
.city-card:hover { color: inherit; border-top-color: var(--marigold); }
.city-name { font: 800 2.2rem/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.03em; }
.city-meta { color: var(--muted); font-size: .92rem; }
.city-add { border-top-color: var(--line); box-shadow: none; background: transparent; border-style: dashed; }

.mail-form input[type=email] { font: inherit; padding: .6rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); margin: 0 .5rem .5rem; }
.mail-form .btn { margin: 0 .5rem .5rem; justify-self: stretch; }
.mail-now { display: flex; gap: .45rem; align-items: center; font-size: .86rem; margin: 0 .5rem .6rem; color: var(--ink); }

/* ---- search, price, near me ---- */
.find { gap: .5rem 1.2rem; }
.search { flex: 1 1 260px; min-width: 0; font: 500 .95rem Inter, sans-serif; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.near { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.chip.act.on { background: var(--ink); color: var(--bg); }
.dist { font-size: .75rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.pin-here { fill: #2f6fdb; fill-opacity: .9; stroke: #fff; stroke-width: 3; }

/* ---- images ---- */
.card-img { display: block; margin: -1rem -1.1rem .6rem; border-radius: 13px 13px 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--chip); }
.card-big .card-img { margin-top: -1rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-big.has-img { border-top-width: 1px; }
.hero-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin: 0 0 1rem; display: block; background: var(--chip); }

/* ---- weather ---- */
.wx { color: var(--muted); font-size: .82rem; white-space: nowrap; }

.wx-strip { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
.wx-strip b { color: var(--ink); font-weight: 600; }

/* ---- report and submit ---- */
details.report { margin-top: 2.4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
details.report summary { list-style: none; display: inline; }
details.report summary::-webkit-details-marker { display: none; }
.form select { font: inherit; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.flash-err { background: var(--warn-bg); color: var(--ink); }
#near-radii .seg-opt:first-child { border-radius: 999px 0 0 999px; }
.sched-lg .wx { white-space: normal; }
.sched li > span { min-width: 0; overflow-wrap: anywhere; }
