/* GlizzyFinder map-first home page (index.html + js/app.js), 2026-10-07, with Map | List views (same day).
 * Wide screens (≥ 760 px): the red header, then (Map view) a list panel on the left and the map filling the rest, or
 * (List view, .hm.is-list) a full-width grid of picture cards. A spot opens in the panel.
 * Phones (< 760 px): no header. Map view: the map fills the screen, the search bar + one row of filter chips float on
 * top, a row of swipeable picture cards sits at the bottom. List view: picture cards under the search bar. A spot opens
 * full screen (.hm.has-spot). The "List / Map" pill switches. Everything here is scoped to body.home. */
body.home { --hm-blue: #1a73e8; --hm-amber: #e0a000; --hm-grey: #a99c8f; --hm-panel: 400px; --hm-sh: 0 1px 2px rgb(40 20 0 / .1), 0 3px 10px rgb(40 20 0 / .12); }
body.home { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
body.home > .top, body.home > .offline { flex: none; }
.hm { flex: 1; min-height: 0; position: relative; display: grid; grid-template-columns: var(--hm-panel) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.hm-tools { grid-column: 1; grid-row: 1; padding: 14px 16px 10px; background: var(--bg); border-right: 1px solid var(--line); z-index: 2; }
.hm-sheet { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; min-height: 0; background: var(--bg); border-right: 1px solid var(--line);
  box-shadow: 2px 0 10px rgb(40 20 0 / .06); z-index: 2; }
.hm-map { grid-column: 2; grid-row: 1 / span 2; position: relative; min-height: 0; }
.hm-map #map { position: absolute; inset: 0; width: auto; height: auto; }
.hm-view { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.hm-view[hidden] { display: none !important; }

/* search */
.hm-search { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 6px 0 12px; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; color: var(--muted); }
.hm-search:focus-within { border-color: var(--mustard-d); }
.hm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 16px var(--body); padding: 0 4px; }
.hm-search input::placeholder { color: var(--muted); }
.hm-mark, .hm-me, .hm-menu { display: none; }

/* chips */
.hm-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hm-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 500 13.5px var(--body); white-space: nowrap; cursor: pointer; }
.hm-chip:hover { border-color: var(--muted); }
.hm-chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.hm-chip.is-note { cursor: default; color: var(--muted); }
.hm-chip.night-only { display: none; }
:root[data-night] .hm-chip.night-only { display: inline-flex; }
.hm-chip:focus-visible, .hm-btn:focus-visible, .hm-row:focus-visible, .hm-locate:focus-visible, .hm-sort select:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.hm-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ketchup); color: #fff; font: 700 11px/18px var(--body); text-align: center; }
.hm-chip.on .hm-badge { background: var(--mustard); color: #2b1d00; }

/* Map | List switch (wide screens; phones use the floating pill) */
.hm-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bun); border: 1px solid var(--line); margin-top: 10px; }
.hm-seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border: 0; border-radius: 999px; background: none;
  color: var(--muted); font: 600 13.5px var(--body); cursor: pointer; }
.hm-seg button.on { background: var(--ink); color: var(--bg); box-shadow: var(--hm-sh); }
.hm-seg button:focus-visible, .hm-pill:focus-visible, .hm-card:focus-visible, .hm-cc:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.hm-pill { display: none; }
/* Map view's 400 px panel: the switch sits beside the search box, icons only (the words come back in List view) */
@media (min-width: 760px) {
  .hm:not(.is-list) .hm-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  .hm:not(.is-list) .hm-chips { grid-column: 1 / -1; }
  .hm:not(.is-list) .hm-seg { grid-column: 2; grid-row: 1; margin-top: 0; align-self: center; }
  .hm:not(.is-list) .hm-seg button { padding: 0 11px; }
  .hm:not(.is-list) .hm-seg span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.hm-chip { padding: 0 12px; }

/* pictures: a credit / "Illustration" tag sits on every one */
.pic-credit { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); display: flex; white-space: nowrap;
  padding: 2px 7px; border-radius: 6px; background: rgb(0 0 0 / .62); color: #fff; font: 500 11px/1.5 var(--body); text-decoration: none; }
.pc-by { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pc-lic { flex: none; }
.pic-credit.art { background: rgb(255 255 255 / .9); color: #6d625a; font-weight: 600; }
a.pic-credit:hover { text-decoration: underline; }

/* list head */
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); flex: none; }
.hm-titles { min-width: 0; }
.hm-title { font: 800 20px/1.15 var(--head); letter-spacing: -.02em; margin: 0; }
.hm-title em { font-style: normal; color: var(--open); }
.hm-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-sort select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 8px; background: var(--bun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236d625a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--ink); font: 600 13px var(--body); padding: 7px 26px 7px 10px; cursor: pointer; }
.hm-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.hm-scroll .night-ops { margin: 12px 12px 4px; }
.hm-scroll .foot { border-top: 0; padding: 18px 16px 28px; font-size: 12.5px; }

/* rows: dense, one line of status, one of styles + town */
.hm-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none; cursor: pointer; }
.r-ph { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bun); }
.r-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-row:hover, .hm-row.hot { background: var(--bun); }
.hm-row.sel { background: var(--bun); box-shadow: inset 4px 0 0 var(--ketchup); }
.hm-row.final { box-shadow: inset 4px 0 0 var(--neon-pink, var(--ketchup)); }
.r-main { display: grid; min-width: 0; }
.r-name { font: 700 16px/1.25 var(--head); letter-spacing: -.01em; color: var(--ink); }
.r-line { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; align-self: start; padding-top: 4px; }
.r-dist { font: 600 13px var(--body); color: var(--ink); white-space: nowrap; }
.r-cd { color: var(--soon); font-weight: 600; font-size: 13px; }
.r-cd.final { color: var(--closed); }
.st { font-weight: 600; }
.st.open { color: var(--open); } .st.soon { color: var(--soon); } .st.closed, .st.unknown { color: var(--muted); }
.hm-score { display: inline-flex; align-items: center; gap: 3px; font: 700 12.5px var(--body); color: #6a4a00; background: #fff1c2; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.hm-stars { font: 600 12.5px var(--body); color: var(--mustard-d); white-space: nowrap; }
.hm-list .empty { padding: 32px 18px; }
.hm-list .empty .hm-btn { margin-top: 6px; }
.hm-more { padding: 14px 16px; color: var(--muted); font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); }

/* List view cards */
.hm-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(60 30 0 / .05); color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.hm-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.hm-card.final { box-shadow: 0 0 0 2px var(--neon-pink, var(--ketchup)); }
.hc-ph { position: relative; aspect-ratio: 2 / 1; background: var(--bun); overflow: hidden; }
.hc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-badge { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: #fff; box-shadow: var(--hm-sh); font: 700 12.5px var(--body); color: #6d625a; }
.hc-badge.open { color: #11803f; } .hc-badge.soon { color: #a15c00; }
.hc-dist { position: absolute; right: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgb(31 26 23 / .8); color: #fff; font: 700 12.5px var(--body); }
.hc-bd { display: grid; gap: 2px; padding: 11px 14px 14px; min-width: 0; }
.hc-name { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font: 700 18px/1.2 var(--head); letter-spacing: -.01em; }
.hc-desc { margin-top: 5px; font-size: 13.5px; color: var(--ink); opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-morebar { grid-column: 1 / -1; text-align: center; padding: 6px 0 4px; }
.hm-morebar small { color: var(--muted); font-weight: 500; }

/* phone Map view: the swipeable card row */
.hm-cards { display: none; }
.hm-cc { flex: none; width: min(86%, 340px); scroll-snap-align: center; display: grid; grid-template-columns: 96px minmax(0, 1fr); min-height: 108px;
  border-radius: 16px; overflow: hidden; background: var(--card); color: inherit; text-decoration: none; box-shadow: 0 4px 16px rgb(0 0 0 / .22); }
.hm-cc.on { box-shadow: 0 0 0 3px var(--ketchup), 0 4px 16px rgb(0 0 0 / .22); }
.cc-ph { position: relative; background: var(--bun); }
.cc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-ph .pic-credit { right: 4px; bottom: 4px; font-size: 9.5px; padding: 1px 5px; }
.cc-bd { display: grid; align-content: center; gap: 1px; padding: 9px 12px; min-width: 0; }
.cc-bd .r-name { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-meta { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-size: 13px; }
.hm-cc.empty-cc { grid-template-columns: 1fr; width: calc(100% - 4px); }
.hm-cc.empty-cc .empty { padding: 4px; } .hm-cc.empty-cc h3 { font-size: 15px; margin: 0 0 2px; } .hm-cc.empty-cc p { margin: 0 0 6px; font-size: 13px; }

/* a spot: its picture on top */
.sp-hero { position: relative; height: 200px; background: var(--bun); overflow: hidden; flex: none; }
.sp-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-addph { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px; border: 1.5px dashed var(--line); border-radius: 12px; font-size: 13.5px; color: var(--muted); }
.sp-addph b { color: var(--ink); } .sp-addph a { font-weight: 600; }
.sp-remove { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* ───────────── wide screens: List view ───────────── */
@media (min-width: 760px) {
  .hm.is-list { grid-template-columns: minmax(0, 1fr); }
  .hm.is-list .hm-map { display: none; }
  .hm.is-list .hm-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hm.is-list .hm-search { width: min(440px, 100%); }
  .hm.is-list .hm-chips, .hm.is-list .hm-seg { margin-top: 0; }
  .hm.is-list .hm-seg { margin-left: auto; }
  .hm.is-list .hm-sheet { border-right: 0; box-shadow: none; }
  .hm.is-list .hm-head { padding: 16px 28px 12px; border-bottom: 0; }
  .hm.is-list .hm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 4px 28px 24px; max-width: 1500px; }
  .hm.is-list .hm-list .empty { grid-column: 1 / -1; }
  .hm.is-list .hm-scroll .night-ops { margin: 4px 28px 16px; max-width: 900px; }
  .hm.is-list .hm-scroll .foot { padding: 18px 28px 28px; }
}

/* buttons */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 600 14.5px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.hm-btn:hover { filter: brightness(.98); }
.hm-btn.primary { background: var(--ketchup); border-color: var(--ketchup); color: #fff; }
.hm-btn.big { height: 52px; font-size: 16px; border-radius: 14px; }
.hm-btn svg { flex: none; }

/* map controls */
.hm-fabs { position: absolute; z-index: 1001; right: 14px; bottom: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.hm .fab { display: grid; position: static; width: 48px; height: 48px; font-size: 22px; border-width: 2px; }
.hm-locate { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--card); color: var(--hm-blue); display: grid; place-items: center;
  box-shadow: var(--hm-sh); cursor: pointer; }
.hm-locate.on { background: var(--hm-blue); color: #fff; }
/* 🌍 Globe: a labeled pill (not another round icon) so the Glizzy Globe is easy to spot from the map; fixed colors so it reads in 2 AM Mode too */
.hm-globe { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 15px 0 11px; border-radius: 999px; border: 2px solid #1f1a17;
  background: #ffc629; color: #1f1a17; font: 800 15px var(--head, var(--body)); text-decoration: none; box-shadow: var(--hm-sh); white-space: nowrap; }
.hm-globe span { font-size: 20px; line-height: 1; }
.hm-globe:hover { filter: brightness(1.05); }
.hm-globe:focus-visible { outline: 3px solid var(--hm-blue); outline-offset: 2px; }
.hm-locate.busy svg { animation: hm-spin 1s linear infinite; }
@keyframes hm-spin { to { transform: rotate(360deg); } }
.hm-legend { position: absolute; z-index: 1000; left: 12px; bottom: 22px; display: flex; gap: 14px; padding: 7px 12px; border-radius: 10px; background: var(--card);
  color: var(--ink); box-shadow: var(--hm-sh); font: 500 12.5px var(--body); }
.hm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hm-legend i { width: 11px; height: 11px; border-radius: 50%; }
.lg-open { background: var(--relish); } .lg-soon { background: var(--hm-amber); } .lg-closed { background: var(--hm-grey); }
.hm .leaflet-control-zoom { border: 0; box-shadow: var(--hm-sh); }

/* pins: green = open, amber = closing within the hour, smaller faded grey pin = closed / unknown, big red = selected */
.mp { width: 32px; height: 32px; border-radius: 50% 50% 50% 3px; transform: rotate(-45deg); display: grid; place-items: center;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .3); background: var(--relish); transition: transform .12s; }
.mp i { width: 21px; height: 21px; border-radius: 50%; background: #fff; transform: rotate(45deg); display: grid; place-items: center; }
.leaflet-container .mp i img { width: 16px; height: auto; display: block; }
.mp.soon { background: var(--hm-amber); }
.mp.hot { transform: rotate(-45deg) scale(1.18); }
.mp.sel { width: 46px; height: 46px; background: var(--ketchup); border-width: 3px; }
.mp.sel i { width: 31px; height: 31px; } .leaflet-container .mp.sel i img { width: 23px; }
.mp.off { width: 26px; height: 26px; background: var(--hm-grey); opacity: .9; }
.mp.off i { width: 17px; height: 17px; } .leaflet-container .mp.off i img { width: 13px; filter: grayscale(1); opacity: .6; }
.mp.off.hot { opacity: 1; background: var(--ink); }
.mclu { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #5d544d; color: #fff; font: 700 13px var(--body);
  border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .3); }
.mclu.open { background: var(--relish); }
.hm .you { width: 18px; height: 18px; }
.you.approx { background: transparent; border: 2px dashed var(--hm-blue); width: 22px; height: 22px; animation: none; box-shadow: none; }

/* spot view (panel on wide screens, sheet on phones) */
.hm-spot { overflow-y: auto; overscroll-behavior: contain; }
.sp-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 8px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 1; }
.sp-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ketchup); font: 600 14px var(--body); padding: 6px 8px; cursor: pointer; }
.sp-pager { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.sp-pager button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 16px; cursor: pointer; }
.sp-pager button:disabled { opacity: .35; cursor: default; }
.sp-in { padding: 14px 16px 26px; }
.sp-sum h2 { font: 800 24px/1.12 var(--head); letter-spacing: -.02em; margin: 0 0 3px; }
.sp-addr { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.sp-st { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14.5px; margin-bottom: 8px; }
.sp-cd { margin: 0 0 8px; font: 700 15px var(--head); color: var(--soon); }
.sp-cd.final { color: var(--closed); }
.sp-desc { margin: 0 0 10px; }
.sp-acts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.sp-acts .hm-btn { padding: 0 8px; }
.sp-more { margin-top: 6px; }
.sp-more h4 { font: 700 12.5px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 6px; }
.sp-more table.hours { max-width: none; }
.sp-more .tags { margin-top: 4px; }
.sp-links { display: grid; gap: 8px; margin-top: 18px; font-weight: 600; }
.sp-toast { margin: 8px 0 0; color: var(--open); font-weight: 600; font-size: 13.5px; min-height: 1.2em; }

/* location ask */
.hm-ask { position: absolute; z-index: 1500; left: calc(var(--hm-panel) + (100% - var(--hm-panel)) / 2); top: 50%; transform: translate(-50%, -50%);
  width: min(400px, calc(100% - 32px)); background: var(--card); color: var(--ink); border-radius: 22px; padding: 20px 18px 16px; box-shadow: 0 14px 48px rgb(40 20 0 / .28); }
.ask-hd { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ask-hd img { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--mustard); }
.ask-hd h2 { font: 800 22px/1.1 var(--head); letter-spacing: -.02em; margin: 0; }
.ask-hd p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.hm-ask > .hm-btn { width: 100%; }
.ask-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 12px 0; }
.ask-or::before, .ask-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ask-zip { display: flex; gap: 8px; }
.ask-zip input { flex: 1; min-width: 0; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 14px;
  font: 600 18px var(--body); letter-spacing: .08em; }
.ask-zip input:focus { outline: none; border-color: var(--mustard-d); }
.ask-msg { margin: 8px 0 0; min-height: 1.2em; color: var(--closed); font-size: 13.5px; font-weight: 600; }
.ask-msg:empty { display: none; }
.ask-fine { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 12.5px; }
.ask-fine .linkish { font-size: 12.5px; color: var(--ink); }

/* filters dialog */
dialog.hm-filters { width: min(520px, calc(100vw - 20px)); max-height: 86vh; padding: 0; display: none; flex-direction: column; overflow: hidden; }
dialog.hm-filters[open] { display: flex; }
.hf-head { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.hf-head h2 { font: 800 20px var(--head); margin: 0; text-align: center; }
.hf-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--unk-bg); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.hf-body { overflow-y: auto; flex: 1; padding-bottom: 8px; }
.hf-sec { padding: 14px 16px 4px; }
.hf-sec h3 { font: 700 12.5px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.hf-tog { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.hf-tog b { display: block; font-weight: 600; } .hf-tog small { color: var(--muted); font-size: 12.5px; }
.hf-tog input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.hf-tog input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: left .15s; }
.hf-tog input:checked { background: var(--relish); }
.hf-tog input:checked::after { left: 21px; }
.hf-tog input:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.hf-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-styles .hm-chip small { color: inherit; opacity: .7; font-weight: 600; }
.hf-styles .hm-chip.zero:not(.on) { color: var(--muted); border-style: dashed; }
.hf-sec h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
/* "+12 here with hours unknown · Show them" under the list (and as the last card on phones) */
.hm-unknown { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 13.5px; text-align: center; border-bottom: 1px solid var(--line); }
.hm-unknown .linkish { font-size: 13.5px; font-weight: 700; color: var(--ketchup); }
.hm-cc.unk-cc { grid-template-columns: 1fr; width: min(70%, 260px); align-items: center; }
.hm-cc.unk-cc .hm-unknown { border: 0; padding: 8px; }
.hf-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--card); }

/* ───────────── phones ───────────── */
@media (max-width: 759px) {
  body.home > .top { display: none; }
  .hm { display: block; position: fixed; inset: 0; height: auto; }
  .hm-map { position: absolute; inset: 0; }
  .hm-tools { position: absolute; z-index: 1100; top: 0; left: 0; right: 0; padding: max(10px, env(safe-area-inset-top)) 10px 0; background: none; border: 0;
    pointer-events: none; }
  .hm-tools > * { pointer-events: auto; }
  .hm-search { height: 50px; border: 0; border-radius: 25px; padding: 0 4px 0 7px; box-shadow: 0 2px 10px rgb(0 0 0 / .18); }
  .hm-glass { display: none; }
  .hm-mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ketchup); }
  .hm-mark img { width: 26px; height: auto; }
  .hm-me, .hm-menu { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .hm-me.on { background: var(--mustard); color: #3a2a00; font: 800 15px var(--head); text-decoration: none; }
  .hm-chips { flex-wrap: nowrap; overflow-x: auto; margin: 10px -10px 0; padding: 0 10px 8px; scrollbar-width: none; }
  .hm-chips::-webkit-scrollbar { display: none; }
  .hm-chip { box-shadow: var(--hm-sh); border-color: transparent; }
  .hm-chip.on { border-color: var(--ink); }
  #filtersBtn { order: -1; }   /* first on phones: the chip row scrolls sideways and the last chip used to be cut off */

  .hm-seg { display: none; }
  /* Map view: the list lives in the card row; the sheet only appears for an open spot */
  .hm-sheet { display: none; position: absolute; z-index: 1050; left: 0; right: 0; bottom: 0; top: var(--tools-h, 110px); border: 0; box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom); }
  .hm-cards { display: flex; position: absolute; z-index: 1001; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); gap: 10px; padding: 4px 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hm-cards::-webkit-scrollbar { display: none; }
  .hm-cards:empty { display: none; }
  .hm-pill { display: inline-flex; align-items: center; gap: 8px; position: absolute; z-index: 1150; left: 50%; transform: translateX(-50%);
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 128px); height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink);
    color: var(--bg); font: 700 15px var(--body); box-shadow: 0 4px 16px rgb(0 0 0 / .3); cursor: pointer; }
  .hm-fabs { right: 12px; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 128px); }
  .hm-head { padding: 12px 16px 10px; }
  .hm-title { font-size: 21px; }
  /* List view: picture cards under the (now solid) search bar; the map hides but keeps its size */
  .hm.is-list .hm-map { visibility: hidden; }
  .hm.is-list .hm-tools { background: var(--bg); border-bottom: 1px solid var(--line); }
  .hm.is-list .hm-search { box-shadow: none; border: 1.5px solid var(--line); }
  .hm.is-list .hm-chip { box-shadow: none; border-color: var(--line); }
  .hm.is-list .hm-sheet { display: flex; }
  .hm.is-list .hm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; padding: 2px 14px 90px; }
  .hm.is-list .hm-list .empty, .hm.is-list .hm-morebar { grid-column: 1 / -1; }
  .hm.is-list .hm-scroll .foot { padding-bottom: 96px; }
  .hm.is-list .hm-pill { bottom: max(18px, env(safe-area-inset-bottom)); }
  /* an open spot: full screen, its picture on top, ✕ floating over it */
  .hm.has-spot .hm-sheet { display: flex; position: fixed; inset: 0; z-index: 1300; top: 0; background: var(--bg); }
  .hm.has-spot .hm-pill { display: none; }
  .hm-spot .sp-bar { position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; padding: 0; border: 0; background: none; }
  .hm-spot .sp-back, .hm-spot .sp-pager { background: rgb(255 255 255 / .94); color: var(--ink); border-radius: 999px; box-shadow: var(--hm-sh); padding: 6px 12px; }
  .hm-spot .sp-pager button { width: 28px; height: 28px; }
  .sp-hero { height: calc(220px + env(safe-area-inset-top)); }
  .hm-legend { display: none; }
  .hm .leaflet-control-zoom { display: none; }
  .hm .leaflet-control-attribution { font-size: 9px; }
  .hm-ask { left: 10px; right: 10px; top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; width: auto; z-index: 1200; }
  .sp-in { padding-top: 12px; }
  dialog.hm-filters { width: 100vw; max-width: 100vw; max-height: 86dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .hf-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .coach { bottom: auto; top: calc(max(10px, env(safe-area-inset-top)) + 104px); }
}
@media (prefers-reduced-motion: reduce) { .hm-card { transition: none; } .hm-locate.busy svg { animation: none; } }

/* dark mode + 2 AM Mode */
@media (prefers-color-scheme: dark) {
  body.home { --hm-grey: #7b7068; }
  .hm-score { background: #3a2c10; color: var(--mustard); }
  .mp, .mclu { border-color: #221b17; }
}
:root[data-night] body.home { --hm-grey: #59608a; --hm-amber: var(--soon); }
:root[data-night] .hm-chip.on { background: var(--neon-cyan); border-color: var(--neon-cyan); color: #04121a; }
:root[data-night] #openNow, :root[data-night] #lateNight, :root[data-night] .hm-sort { display: none; }
:root[data-night] .hm-title em { color: var(--open); text-shadow: 0 0 14px rgb(57 255 158 / .45); }
:root[data-night] .hm-score { background: #33290a; color: var(--mustard); }
:root[data-night] .mp { border-color: #0a0d1f; background: var(--open); box-shadow: 0 0 14px rgb(57 255 158 / .8); }
:root[data-night] .mp i { background: #0a0d1f; }
:root[data-night] .mp.soon { background: var(--soon); box-shadow: 0 0 12px rgb(255 210 63 / .7); }
:root[data-night] .mp.sel { background: var(--neon-pink); box-shadow: 0 0 18px rgb(255 62 165 / .85); }
:root[data-night] .mclu { border-color: #0a0d1f; }
:root[data-night] .mp.off { background: var(--hm-grey); box-shadow: none; }
:root[data-night] .mclu.open { background: #138a55; box-shadow: 0 0 12px rgb(57 255 158 / .5); }
:root[data-night] .hm-btn.primary { background: var(--neon-pink); border-color: var(--neon-pink); }
:root[data-night] .hm-row.sel { box-shadow: inset 4px 0 0 var(--neon-pink); }
@media (min-width: 760px) { :root[data-night] .hm-sheet { box-shadow: 2px 0 0 #2f3770; } :root[data-night] .hm.is-list .hm-sheet { box-shadow: none; } }
:root[data-night] .hm-cc.on { box-shadow: 0 0 0 3px var(--neon-pink), 0 0 18px rgb(255 62 165 / .45); }
:root[data-night] .hm-seg button.on, :root[data-night] .hm-pill { background: var(--neon-cyan); color: #04121a; }
:root[data-night] .hm-card { border-color: #2f3770; }
:root[data-night] .hm-locate, :root[data-night] .hm-search, :root[data-night] .hm-legend { background: var(--card); }
:root[data-night] .sp-bar { background: var(--bg); }
