/* Leonida Waypoint — interactive map styles (map.html only).
   Carried over from the approved preview build, including the phone
   scroll-off behaviour shipped at the user's direction. */
.map-shell {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--bg-2);
}
/* isolation confines every Leaflet pane, badge and overlay z-index
   inside the stage, so nothing from the map can ever paint over the
   sticky site header (header z-index 120) again. */
.map-stage { position: relative; min-width: 0; isolation: isolate; z-index: 0; }
#leonida-map { height: 560px; width: 100%; background: #2e7d8c; z-index: 0; }
/* Locked (default on touch): a one-finger swipe starting on the map
   scrolls the page as normal. Pin details pop up on the map itself,
   so there is no detail card below to scroll off the map for.
   Unlock to pan / pinch the map. */
#leonida-map.is-locked { touch-action: pan-y !important; }
#leonida-map.is-locked .leaflet-pane,
#leonida-map.is-locked .leaflet-map-pane,
#leonida-map.is-locked .leaflet-marker-icon { touch-action: pan-y !important; }
#leonida-map.is-unlocked { touch-action: none; }
/* The Move map button lives in the underbar, in page flow directly
   under the map (Nick, Nov 11, 2026: "it's gotta be right under the
   map"), never floating on the map where it can be covered or lost. */
.map-underbar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--bg-2); border-top: 1px solid var(--line);
}
.map-move-btn {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; flex: none;
  background: var(--pink); color: #fff; border: 2px solid #fff;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4); min-height: 44px;
}
.map-move-btn[aria-pressed="true"] { background: var(--teal); }
.map-hint {
  font-size: 13px; font-weight: 600; color: var(--ink-soft); min-width: 0;
}
.map-hint[hidden] { display: none; }
/* Badge position (Nov 18, 2026, Nick's screenshot): the badge used
   to sit top-right, where its right edge covered the Leaflet zoom
   control whenever placeZoom parked the zoom corner at the stage's
   right edge. It now lives bottom-left at every width, the one
   corner with no Leaflet control (attribution is off; credits live
   in the page copy), no top cluster and no search box. On desktop
   the open filter panel owns the left edge, so the badge offsets to
   left:428px, the same dock offset the pin card uses, clear of the
   panel and of the card's filters-hidden dock at left:12px. */
.map-badge {
  position: absolute; top: auto; bottom: 12px; left: 12px; right: auto; z-index: 600;
  background: var(--gold); color: #2a1503; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3); pointer-events: none;
}
@media (min-width: 1024px) {
  .map-badge { left: 428px; }
}
.map-legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 600;
  background: rgba(22,10,36,0.88); color: #fdf0e9; border-radius: 6px;
  padding: 8px 12px; font-size: 12.5px; line-height: 1.5; pointer-events: none;
}
.map-legend .dot { margin-right: 6px; }
.dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #fff; vertical-align: -1px; flex: none;
}
.dot-collectible { background: #0e7d86; }
.dot-stunt { background: #e8316f; }
.dot-package { background: #f26d21; }
.dot-store { background: #ffb43a; }
.dot-activity { background: #7a4fd0; }
.pin-marker { background: none; border: none; }
.pin {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg); border: 2px solid #fff; color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.45); cursor: pointer;
}
.pin svg { transform: rotate(45deg); width: 14px; height: 14px; }
.pin-collectible { background: #0e7d86; }
.pin-stunt { background: #e8316f; }
.pin-package { background: #f26d21; }
.pin-store { background: #ffb43a; color: #2a1503; }
.pin-activity { background: #7a4fd0; }
.pin.is-found { background: #4c4453; opacity: 0.55; }
.pin.is-selected { box-shadow: 0 0 0 3px #ffb43a, 0 3px 8px rgba(0,0,0,0.45); }
/* Pin detail card, docked ON the map (Nick, Nov 11, 2026): selecting
   a pin pops this panel up at the bottom of the map and the page
   never scrolls. touch-action pan-y and default overscroll chaining
   mean a swipe starting on the panel can still scroll the page, so
   the panel can never trap movement. */
.pin-detail {
  position: absolute; left: 12px; bottom: 12px; z-index: 660;
  width: min(400px, calc(100% - 24px)); max-height: calc(100% - 84px);
  overflow-y: auto; touch-action: pan-y; overscroll-behavior: auto;
  border: 1.5px solid var(--teal); border-radius: 10px; padding: 14px 38px 14px 16px;
  background: var(--teal-soft); box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  animation: pd-rise 160ms ease-out;
}
@keyframes pd-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pin-detail { animation: none; } }
.pd-close {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px;
  display: grid; place-items: center; font: inherit; font-size: 20px; font-weight: 700;
  line-height: 1; color: var(--ink); background: none; border: none; border-radius: 50%;
  cursor: pointer;
}
.pd-close:hover { background: rgba(0,0,0,0.08); }
.pin-detail[hidden] { display: none; }
/* Pin picture (Nov 17, 2026): the detail card leads with the pin's
   picture when an honest one exists (see buildPinPics in map.js).
   Fixed height with cover crop keeps the card's shape steady across
   pins; the card's own max-height and internal scroll absorb the
   extra height on short screens, and the close control is an
   absolutely positioned overlay, so it is never pushed away. */
.pd-pic { margin: 0 0 10px; }
.pd-pic[hidden] { display: none; }
.pd-pic img {
  display: block; width: 100%; height: 180px; object-fit: cover;
  border-radius: 8px; background: rgba(0,0,0,0.18);
}
.pd-pic figcaption { font-size: 11.5px; line-height: 1.45; color: var(--ink-soft); margin-top: 5px; }
@media (max-width: 720px) { .pd-pic img { height: 150px; } }
.pop-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-deep); }
.pop-title { font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-weight: 700; line-height: 1.05; margin: 2px 0 4px; color: var(--ink); text-transform: uppercase; }
.pop-area { font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 5px; }
.pop-desc { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 12px; }
.pop-found {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  background: var(--pink); color: #fff; border: none; border-radius: 5px; padding: 9px 14px; width: 100%; min-height: 44px;
}
.pop-found[aria-pressed="true"] { background: var(--teal); }
.pop-share {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  background: transparent; color: var(--teal); border: 1.5px solid var(--teal); border-radius: 5px; padding: 8px 14px; width: 100%; min-height: 44px; margin-top: 8px;
}
.pd-guide {
  display: block; font-weight: 700; font-size: 14.5px; margin: 0 0 12px;
  color: var(--teal);
}
.pd-guide[hidden] { display: none; }
.map-side { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.map-progress-num { font-family: "Barlow Condensed", sans-serif; font-size: 44px; font-weight: 700; line-height: 1; color: var(--pink); }
.map-progress-num small { font-size: 20px; color: var(--ink-soft); }
.map-search {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink);
}
.map-search:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
/* Filter bar above the map (Nov 11, 2026): the category chips and the
   pin search used to live in the side panel below the map, where phone
   visitors never found them. The bar spans the top of the map shell,
   directly above the map, on every screen size. Chips scroll sideways
   on narrow screens. This also follows the house rule that the tools
   a visitor filters with sit at the top, not buried below content. */
.map-filterbar {
  grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.map-filter-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.map-filter-label {
  flex: none; font-size: 12.5px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-soft);
}
.map-cats {
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px;
  overflow-x: auto; padding-bottom: 2px; min-width: 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.map-cats::-webkit-scrollbar { display: none; }
.cat-row {
  display: flex; align-items: center; gap: 9px; width: auto; flex: none; font: inherit; text-align: left;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; cursor: pointer; color: var(--ink); min-height: 44px;
  white-space: nowrap;
}
.cat-row .cat-name { font-weight: 600; font-size: 15px; }
.cat-row .cat-count { margin-left: auto; font-size: 13.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cat-row[aria-pressed="false"] { opacity: 0.45; }
.cat-row[aria-pressed="false"] .cat-name { text-decoration: line-through; }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-btn {
  font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
  background: var(--bg-2); color: var(--ink); border: 1.5px solid var(--line);
  padding: 6px 12px; border-radius: 999px; min-height: 38px;
}
.tool-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pin-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 300px; border-top: 1px solid var(--line); }
.pin-list li { border-bottom: 1px solid var(--line); }
.pin-row {
  display: flex; align-items: center; gap: 9px; width: 100%; font: inherit; text-align: left;
  background: none; border: none; padding: 9px 4px; cursor: pointer; color: var(--ink); min-height: 44px;
}
.pin-row .pin-name { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.pin-row .pin-area { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-soft); }
.pin-row .pin-state { margin-left: auto; flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.pin-row.is-found .pin-name { color: var(--ink-soft); text-decoration: line-through; }
/* Place results (Nov 18, 2026): a searched place name from the map
   artwork itself lists above the pin rows, tinted and tagged so it
   reads as the area it is, not as one more pin. */
.pin-row.place-row { background: var(--bg-2); box-shadow: inset 3px 0 0 #2563eb; }
.pin-row.place-row .pin-area { color: #2563eb; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.pin-list-empty { padding: 14px 4px; font-size: 14px; color: var(--ink-soft); }
.map-note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; max-width: 62em; }
.map-note b { color: var(--ink); }
@media (max-width: 860px) {
  .map-shell { grid-template-columns: 1fr; }
  #leonida-map { height: 480px; }
  .pin-list { max-height: 260px; }
}
@media (min-width: 861px) {
  /* Desktop (Nick, Nov 11, 2026): the map is huge and on top, the
     collectible tools and pin list sit underneath it, full width. */
  #leonida-map { height: 700px; }
  .map-cats { flex-wrap: wrap; overflow-x: visible; }
  .pin-list { max-height: 360px; }
}
@media (max-width: 560px) {
  #leonida-map { height: 400px; }
  .map-legend { display: none; }
}

/* Confirmed places (added Nov 10, 2026): Rockstar-named places get a
   blue marker, distinct from the five gameplay demo categories. */
.dot-place{background:#3b82f6}
.pin-place{background:#2563eb;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.45),inset 0 0 0 2px rgba(255,255,255,.22)}
.pin-detail .pop-source{color:var(--ink-soft);font-size:.86rem;margin-top:8px}

/* Category icons (filters, legend, pin list): the same SVG set the
   pins themselves carry in map.js, in a coloured disc matching each
   pin colour, so a visitor can match filter -> legend -> pin by icon. */
.cat-ico{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;color:#fff;flex:none;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.cat-ico svg{width:13px;height:13px}
.cat-ico-collectible{background:#0e7d86}
.cat-ico-stunt{background:#e8316f}
.cat-ico-package{background:#f26d21}
.cat-ico-store{background:#ffb43a;color:#2a1503}
.cat-ico-activity{background:#7a4fd0}
.cat-ico-place{background:#2563eb}
.cat-ico-landmark{background:#2fbc75}
.pin-landmark{background:#2fbc75}
.map-legend .cat-ico{width:20px;height:20px;vertical-align:-6px;margin-right:6px}
.map-legend .cat-ico svg{width:11px;height:11px}
/* Pin-name label on the map (Leaflet tooltip opened on selection).
   Non-interactive by design: it never takes pointer events, has no
   close control and does not pan the map, so it cannot trap page
   scrolling the way the removed popups did. Name only, pill shaped. */
.leaflet-tooltip.pin-tip{background:#160a24;color:#fdf0e9;border:2px solid #ffb43a;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.45);font-family:"Barlow",sans-serif;font-weight:700;font-size:13px;padding:5px 11px;pointer-events:none;white-space:nowrap}
.leaflet-tooltip.pin-tip:before{border-top-color:#ffb43a}

/* Desktop rail layout (Nick, Nov 11, 2026, modeled on the ARC Raiders
   Hub map pages): filters live in a left sidebar, the collectible
   panel stacks under them in the same rail, and the map fills the
   rest of the space so it stays in view while filtering. The shell
   also breaks out wider than the text column on desktop. */
@media (min-width: 1024px) {
  .map-shell {
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-areas: "filter stage" "side stage" "side under";
    width: min(1560px, calc(100vw - 40px));
    margin-left: calc(50% - min(780px, 50vw - 20px));
  }
  .map-filterbar { grid-area: filter; border-right: 1px solid var(--line); padding: 16px; }
  .map-filter-row { flex-direction: column; align-items: stretch; }
  .map-cats { flex-direction: column; flex-wrap: nowrap; overflow-x: visible; }
  .map-cats .cat-chip { width: 100%; justify-content: flex-start; }
  .map-side { grid-area: side; border-right: 1px solid var(--line); background: var(--bg-2); }
  .map-stage { grid-area: stage; }
  .map-underbar { grid-area: under; }
  #leonida-map { height: 720px; }
  .pin-list { max-height: 320px; }
}

/* App view (Nick, Nov 11, 2026: "u need to be able to always see the
   map"): on desktop the map tool owns the full screen height under
   the header. The map never scrolls away while you work: filters stay
   pinned at the top of the rail, the collectible panel scrolls inside
   the rail, and the page itself does not move. */
@media (min-width: 1024px) {
  .map-shell {
    height: calc(100vh - 62px);
    height: calc(100dvh - 62px);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .map-stage { display: flex; min-height: 0; }
  #leonida-map { height: 100%; flex: 1; }
  .map-side { overflow-y: auto; min-height: 0; overscroll-behavior: auto; }
  .pin-list { max-height: none; }
}

/* Overlay app layout (Nov 11, 2026): the map tool rebuilt to the ARC
   Raiders Hub map layout, studied from that site's own stylesheet.
   Their model: the app is one screen tall, the map fills it entirely,
   and the filters live in a translucent panel floating OVER the map
   that slides away with a toggle. The grid rail and stacked layouts
   from earlier today are superseded; the rules below override them. */
.map-shell {
  display: flex; flex-direction: column;
  width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw);
  height: calc(100vh - 60px); height: calc(100dvh - 60px);
  border: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0; background: var(--bg-2);
}
.map-stage { flex: 1; min-height: 0; }
#leonida-map { height: 100%; }
.map-underbar { flex: none; }
.map-sidebar {
  position: absolute; top: 14px; left: 14px; bottom: 14px; z-index: 1200;
  width: 400px; max-width: calc(100% - 28px);
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(22, 10, 36, 0.93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-left: 3px solid var(--pink); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-sidebar.hidden { transform: translateX(calc(-100% - 20px)); }
.map-sidebar-scroll {
  /* Scroll chaining (Nick, Nov 18, 2026): while the panel can still
     scroll it scrolls alone (the Leaflet propagation guards in
     map.js keep wheel events off the map, and the panel consumes
     the gesture); once it reaches either end, the rest of the
     gesture chains through to the page behind it instead of
     trapping. overscroll-behavior therefore stays auto here:
     contain is what used to trap the scroll at the panel's ends. */
  overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin;
  padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 16px;
}
.map-sidebar .map-filterbar {
  position: static; padding: 0; background: none; border: none;
  display: flex; flex-direction: column; gap: 10px;
}
.map-sidebar .map-filter-row { flex-direction: column; align-items: stretch; }
.map-sidebar .map-cats { flex-direction: column; flex-wrap: nowrap; overflow-x: visible; }
.map-sidebar .map-cats .cat-row { width: 100%; justify-content: flex-start; }
.map-sidebar .map-side { padding: 0; background: none; border: none; }
/* Panel crush repair (Nov 18, 2026): the >=1024px app-grid rules
   above (.map-side { overflow-y: auto; min-height: 0; }) were
   written when the tools and pin list sat in a grid cell with a
   height of its own. Inside this overlay the aside is a flex item
   of the panel's scrolling column, and those rules crush it to
   zero height: the pin list (15,188px of rows) became unreachable
   and the panel's scroll box stopped at 971px. In the sidebar the
   aside takes its natural height and the panel's own scroll box
   carries everything, exactly as it already does below 1024px,
   where the same numbers measure full height. */
.map-sidebar .map-side { flex: none; overflow-y: visible; min-height: auto; }
.map-sidebar .pin-list { max-height: none; }
.map-side-toggle {
  position: absolute; top: 14px; left: 428px; z-index: 1201;
  display: flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink);
  background: rgba(22, 10, 36, 0.92); border: 1.5px solid var(--pink);
  border-radius: 999px; padding: 9px 14px; min-height: 40px; cursor: pointer;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-shell.lw-filters-hidden .map-side-toggle { left: 14px; }
.mst-chev { font-size: 16px; line-height: 1; transition: transform 0.3s; }
.map-shell.lw-filters-hidden .mst-chev { transform: rotate(180deg); }
.map-legend { left: auto; right: 12px; }
@media (min-width: 1024px) {
  .pin-detail { left: 428px; }
  .map-shell.lw-filters-hidden .pin-detail { left: 12px; }
}
@media (max-width: 1023px) {
  .map-side-toggle { left: auto; right: 14px; }
  .map-shell.lw-filters-hidden .map-side-toggle { left: auto; right: 14px; }
  .map-badge { right: auto; left: 12px; }
  /* Zoom buttons (top-right) drop below the Filters pill on phones. */
  .leaflet-top.leaflet-right { margin-top: 56px; }
}

/* Sidebar scroll fix + condense pass (Nick, Nov 11, 2026: the panel
   did not scroll and everything in it was too big). The scroll area
   is a flex child: without flex:1 and min-height:0 it grows with its
   content instead of scrolling inside the panel frame. Sizing below
   is the panel's compact scale; tap targets stay >= 36px tall. */
.map-sidebar-scroll { flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; padding: 12px 14px 14px; gap: 12px; }
.map-sidebar .map-filterbar { gap: 8px; }
.map-sidebar .map-filter-label { font-size: 11.5px; }
.map-sidebar .map-cats { gap: 6px; }
.map-sidebar .cat-row { padding: 7px 10px; border-radius: 8px; }
.map-sidebar .cat-row .cat-name { font-size: 14px; }
.map-sidebar .cat-row .cat-count { font-size: 12.5px; }
.map-sidebar .map-search { padding: 8px 10px; font-size: 14px; }
.map-sidebar .map-side { gap: 10px; }
.map-sidebar .map-progress-num { font-size: 30px; }
.map-sidebar .map-progress-num small { font-size: 15px; }
.map-sidebar .progress-bar { height: 8px; }
.map-sidebar .map-prog-block p { font-size: 13.5px; line-height: 1.45; margin: 6px 0 0; }
.map-sidebar .map-tools { gap: 8px; }
.map-sidebar .tool-btn { padding: 6px 11px; font-size: 13px; min-height: 36px; }
.map-sidebar .pin-list { gap: 2px; }
.map-sidebar .pin-row { padding: 7px 8px; gap: 10px; }
.map-sidebar .pin-row .pin-name { font-size: 14.5px; }
.map-sidebar .pin-row .pin-area { font-size: 12px; }

/* Progress sits at the bottom of the panel (Nick, Nov 11, 2026: the
   % found block is less important than filters and the pin list). */
.map-prog-block { border-top: 1px solid var(--line); padding-top: 10px; }


/* Show all / Hide all + search on top, two-column filter grid (Nick's
   reference layout, Nov 11): compact rows, two per line, to save space. */
.map-cat-controls{display:flex;gap:6px;margin-bottom:6px}
.cat-ctl-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:5px 6px;border-radius:8px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#efe9ff;font:600 12px/1 "Barlow",sans-serif;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
.cat-ctl-btn:hover{background:rgba(255,255,255,.12);border-color:rgba(62,198,207,.55)}
.cat-ctl-btn svg{flex:none}
.map-sidebar .map-search{width:100%;box-sizing:border-box;margin:0 0 8px}
.map-sidebar .map-cats{display:grid;grid-template-columns:1fr 1fr;gap:5px;width:100%}
.map-sidebar .cat-row{min-height:38px;padding:5px 8px;gap:7px;border-radius:8px}
.map-sidebar .cat-ico{width:22px;height:22px}
.map-sidebar .cat-ico svg{width:13px;height:13px}
.map-sidebar .cat-name{font-size:12.5px}
.map-sidebar .cat-count{font-size:11px}
/* Landmarks layer controls + map labels/outlines (Nick, Nov 12). */
.map-layers{margin-top:12px}
.layer-label{display:block;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:6px}
.layer-toggles{display:flex;gap:8px}
.layer-toggle{flex:1;min-height:38px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--ink);font:600 13px/1 inherit;cursor:pointer}
.layer-toggle[aria-pressed="true"]{background:rgba(255,92,138,.18);border-color:var(--pink);color:#fff}
.leaflet-div-icon.area-label{background:transparent;border:none;pointer-events:none}
.leaflet-div-icon.place-label{background:transparent;border:none;pointer-events:none}
.place-label span{display:block;transform:translate(-50%,-200%);font-family:"Barlow Condensed",sans-serif;font-weight:600;font-size:12.5px;letter-spacing:.13em;text-transform:uppercase;color:rgba(253,240,233,.88);text-shadow:0 1px 6px rgba(10,4,18,.95),0 0 3px rgba(10,4,18,.95);white-space:nowrap}
.place-label.far-label span{font-size:14px;font-weight:700;letter-spacing:.16em;color:rgba(253,240,233,.95)}
.area-label span{display:block;transform:translate(-50%,-200%);font-family:"Barlow Condensed",sans-serif;font-weight:700;font-size:15px;letter-spacing:.22em;text-transform:uppercase;color:rgba(253,240,233,.95);text-shadow:0 1px 8px rgba(10,4,18,.95),0 0 3px rgba(10,4,18,.95);white-space:nowrap}
.area-outline{stroke-linejoin:round}

/* Frames Reference (Nov 17, 2026): the eight frame sections printed
   along the east edge of the community map, rebuilt as browsable
   grids under the map. Each section carries its OWN search box,
   scoped to that section only (Nick's ask). Dark panels in the map
   sidebar family, sunset trim on the section heads. */
.frames-block { margin-top: 26px; }
.frames-credit { color: var(--ink-soft); font-size: 13.5px; margin: 14px 2px 0; }
.frames-sec {
  margin-top: 18px; padding: 14px 14px 16px; border-radius: 14px;
  background: var(--night-2); color: #fdf0e9;
  border: 1px solid rgba(255, 180, 58, 0.22);
  scroll-margin-top: 92px;
}
.frames-sec-head {
  display: flex; align-items: center; gap: 9px; margin: 0 0 10px;
  padding-top: 6px; position: relative;
}
.frames-sec-head::before {
  content: ""; position: absolute; top: -14px; left: -14px; right: -14px; height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #ff2e88, var(--orange), var(--gold), #3ec6cf);
}
.frames-sec-head h3 {
  margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 21px; letter-spacing: 0.04em; text-transform: uppercase; color: #fdf0e9;
}
.frames-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.frames-total {
  margin-left: auto; font-size: 13px; font-weight: 700; color: var(--gold);
  border: 1px solid rgba(255, 180, 58, 0.45); border-radius: 999px; padding: 2px 10px;
}
/* Frames section dropdowns (Nick, Nov 17, 2026): the section head is
   a toggle button in the Quick Version dropdown's family: name +
   count badge + a chevron that flips on open. The body (search +
   grid) starts hidden; sections open independently. */
.frames-toggle {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  -webkit-appearance: none; appearance: none; font: inherit; color: inherit;
}
.frames-sec-title {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 21px; letter-spacing: 0.04em; text-transform: uppercase; color: #fdf0e9;
}
.frames-toggle:hover .frames-sec-title { text-decoration: underline; }
.frames-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.frames-chev {
  flex: none; width: 11px; height: 11px; margin-left: 2px;
  border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  transform: rotate(45deg); transition: transform 0.25s ease;
}
.frames-sec.frames-open .frames-chev { transform: rotate(225deg); }
.frames-sec:not(.frames-open) .frames-sec-head { margin-bottom: 0; }
.frames-body[hidden] { display: none; }
.frames-body.fb-anim { animation: frames-in 0.28s ease; }
@keyframes frames-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .frames-body.fb-anim { animation: none; }
  .frames-chev { transition: none; }
}
.frames-searchrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.frames-inputwrap { position: relative; flex: 1; min-width: 0; }
.frames-search {
  width: 100%; font: inherit; font-size: 15px; min-height: 46px;
  padding: 10px 46px 10px 12px; border-radius: 8px;
  border: 1.5px solid rgba(253, 240, 233, 0.28);
  background: rgba(255, 255, 255, 0.07); color: #fdf0e9;
}
.frames-search::placeholder { color: rgba(253, 240, 233, 0.55); }
.frames-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.frames-search:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.frames-clear {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  color: #fdf0e9; font-size: 24px; line-height: 1; padding: 0;
}
.frames-clear[hidden] { display: none; }
.frames-count { font-size: 13.5px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.frames-count[hidden] { display: none; }
.frames-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px;
}
.frames-grid[hidden] { display: none; }
.frame-thumb {
  display: block; padding: 0; border: 1px solid rgba(253, 240, 233, 0.18);
  border-radius: 10px; overflow: hidden; background: #0d0616; cursor: pointer;
  font: inherit; text-align: left;
}
.frame-thumb[hidden] { display: none; }
.frame-thumb:hover, .frame-thumb:focus-visible { border-color: var(--pink); outline: none; }
.frame-thumb img { display: block; width: 100%; height: auto; }
.frame-cap {
  display: block; padding: 6px 9px 7px; font-size: 13px; color: rgba(253, 240, 233, 0.85);
}
.frame-cap b { color: #fff; }
.frames-none { margin: 2px 0 0; font-size: 14.5px; color: rgba(253, 240, 233, 0.8); }
.frames-none[hidden] { display: none; }
@media (max-width: 560px) {
  .frames-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .frames-sec { padding: 12px 10px 14px; }
  .frames-sec-head::before { left: -10px; right: -10px; top: -12px; }
}

/* Full-screen map mode (Nov 17, 2026): the Full screen button lives
   in the underbar with the Move map control (the site's control strip
   under the map). Tapping it adds .map-fs: the shell becomes a fixed
   full-viewport layer over everything (iPhone Safari has no element
   fullscreen, so this CSS takeover is the mechanism; the Fullscreen
   API is only an enhancement in map.js). The same button, now reading
   Exit, sits at the bottom-right corner of the full-screen view in
   the underbar. JS freezes the body and restores the exact scroll
   position on exit, mirroring the mobile menu. */
.map-fs-btn {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; flex: none;
  margin-left: auto;
  background: var(--teal); color: #fff; border: 2px solid #fff;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4); min-height: 44px;
}
.map-fs-btn[aria-pressed="true"] { background: var(--pink); }
.map-shell.map-fs {
  position: fixed; inset: 0; z-index: 2000;
  width: 100vw; max-width: 100vw; margin: 0;
  height: 100vh; height: 100dvh;
  border: none; border-radius: 0;
}

/* Community landmarks by area (Nov 17, 2026): the 1,442 landmarks
   filter by derived region, one chip per area of Leonida, under this
   subheading inside the filter panel. The grid itself reuses the
   .map-cats two-column layout, so the chips wrap and size exactly
   like the category rows above them. */
.map-region-head {
  margin: 12px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* Filter-count note (Nov 17, 2026): one line under the filter grid
   stating the community split, so the panel's numbers reconcile with
   the page copy at a glance (1,524 = 82 under Stores + 1,442 landmarks
   split by area into 13 region filters). */
.map-cat-note {
  margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-soft);
}

/* Home Screen tip (Nov 17, 2026): a static line in the underbar,
   under the Full screen button. A web page cannot hide the iPhone
   browser's address bar from inside a tab; the installed (Home
   Screen) app is the route, and this line says so once. Tapping it
   dismisses it permanently (localStorage, wired in map.js); it never
   appears as a pop-up or modal, and it is hidden in full-screen mode
   and when the page already runs installed. */
.map-underbar { flex-wrap: wrap; }
.map-fs-tip {
  flex: 0 0 100%; order: 4; margin: 0; text-align: right;
  font-size: 12.5px; font-weight: 600; line-height: 1.45;
  color: var(--ink-soft); cursor: pointer;
}
.map-fs-tip[hidden] { display: none; }
.map-fs-tip-x {
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1;
  color: var(--ink-soft); background: none; border: none; cursor: pointer;
  padding: 6px 4px; margin-left: 2px; vertical-align: -2px;
}
.map-shell.map-fs .map-fs-tip { display: none; }

/* Full-screen safe areas (Nov 17, 2026): installed (standalone) with
   a translucent status bar, the fs shell extends under the notch and
   over the home indicator. These env() insets are 0 in a normal
   browser tab, so every calc() below is a no-op there and only takes
   effect where the display actually wraps around the screen edges:
   the Exit / Lock underbar and the badge lift off the home
   indicator, and the Filters pill, panel and pin card drop below
   the notch. */
.map-shell.map-fs .map-underbar {
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.map-shell.map-fs .map-side-toggle {
  top: calc(14px + env(safe-area-inset-top));
}
.map-shell.map-fs .map-badge {
  top: auto; bottom: calc(12px + env(safe-area-inset-bottom));
}
.map-shell.map-fs .map-sidebar {
  top: calc(14px + env(safe-area-inset-top));
  bottom: calc(14px + env(safe-area-inset-bottom));
}
.map-shell.map-fs .pin-detail {
  bottom: calc(12px + env(safe-area-inset-bottom));
}
.map-shell.map-fs .map-legend {
  bottom: calc(12px + env(safe-area-inset-bottom));
}
@media (max-width: 1023px) {
  .map-shell.map-fs .leaflet-top.leaflet-right {
    margin-top: calc(56px + env(safe-area-inset-top));
  }
}

/* Filters panel vs pill (Nov 17, 2026, Nick's screenshot): on phones
   the Filters pill sits top-right at the same height as the open
   panel's top edge, and the panel (nearly full width) ran underneath
   it, clipping the Hide all button ("HIDE AL"). When the panel is
   OPEN on a phone it now starts below the pill: 14px offset + the
   pill's ~40px height + a 14px gap. The pill stays put as the close
   toggle, fully clear of the panel's header row. Desktop is
   untouched: there the pill parks at left 428px, beside the 400px
   panel, and never overlaps it. */
@media (max-width: 1023px) {
  .map-shell:not(.lw-filters-hidden) .map-sidebar { top: 68px; }
  .map-shell.map-fs:not(.lw-filters-hidden) .map-sidebar {
    top: calc(68px + env(safe-area-inset-top));
  }
}

/* Map mobile fit pass (Nov 17, 2026, Nick's screenshot): three fixes.
   (1) The Full screen button moves out of the underbar into a top
   control cluster beside the Filters pill, so it is visible without
   scrolling in normal view, with the panel open, and in full-screen
   mode (where it reads Exit). The cluster takes over the pill's old
   positioning: on desktop it parks at left 428px beside the open
   panel (14px when the panel is hidden) and slides with the same
   transition; on phones it anchors top-right in reverse order, so
   the Filters pill keeps the far-right spot it has always had and
   Full screen sits to its left. The pill itself becomes a static
   child of the cluster; its own left/right rules go inert.
   (2) The panel's inner grid could force itself wider than the
   panel: 1fr grid columns size to min-content and the chip labels
   are nowrap, so the scroll box measured 528px inside a 396px panel
   and chips clipped on one side or the other. The grid now uses
   minmax(0, 1fr) columns, chip names wrap inside their chip, and
   the scroll box can never scroll sideways, at any width. On phones
   the panel itself is inset 10px inside the stage on every side
   (the open-panel top keeps yesterday's 68px pill clearance) and
   scrolls internally, as before.
   (3) On phones the shell is exactly the visible viewport height
   below the real topbar: the topbar measures 67px (44px menu button
   + 20px vertical padding + 3px border) while the old calc used
   60px and overshot. The underbar compacts to match: the hint now
   flexes and wraps beside the Move map button instead of forcing
   its own full-width row. The hint text itself is unchanged. */
.map-top-cluster {
  position: absolute; top: 14px; left: 428px; z-index: 1201;
  display: flex; align-items: center; gap: 8px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-shell.lw-filters-hidden .map-top-cluster { left: 14px; }
.map-top-cluster .map-side-toggle { position: static; }
.map-top-cluster .map-fs-btn {
  margin-left: 0; font-size: 13.5px; padding: 9px 14px; min-height: 40px;
}
.map-shell.map-fs .map-top-cluster { top: calc(14px + env(safe-area-inset-top)); }
@media (max-width: 1023px) {
  .map-top-cluster { left: auto; right: 14px; flex-direction: row-reverse; }
  .map-shell.lw-filters-hidden .map-top-cluster { left: auto; right: 14px; }
}
.map-sidebar-scroll { overflow-x: hidden; }
.map-sidebar .map-cats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.map-sidebar .cat-row { min-width: 0; }
.map-sidebar .cat-name { white-space: normal; overflow-wrap: break-word; line-height: 1.2; }
.map-sidebar .pin-name { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 720px) {
  .map-shell { height: calc(100vh - 67px); height: calc(100dvh - 67px); }
  .map-sidebar { left: 10px; right: 10px; width: auto; max-width: none; top: 10px; bottom: 10px; }
  .map-shell.map-fs .map-sidebar { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .map-underbar { padding: 8px 10px; gap: 10px; }
  .map-hint { flex: 1 1 0; min-width: 0; font-size: 12.5px; line-height: 1.35; }
  .map-fs-tip { text-align: left; }
}

/* Badge vs cluster (Nov 17 pass, caught on the after screenshots):
   with Full screen up top, the phone cluster reached the Community
   map badge and covered its last word ("NOT OFFIC" + button), so on
   <=1023px the badge moved to the bottom-left of the stage. On
   Nov 18, 2026 the same move was extended to every width (see the
   base .map-badge rule): on desktop the badge's top-right home
   covered the zoom control instead. The rules below now restate
   the base placement for <=1023px and keep the full-screen badge
   clear of the home indicator via the safe-area inset. A selected
   pin's detail card docks over the badge, which is fine for a
   pointer-events:none label. */
@media (max-width: 1023px) {
  .map-badge { top: auto; bottom: 12px; }
  .map-shell.map-fs .map-badge { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* Full-screen control on the map itself (Nick, Nov 18, 2026: "the
   full screen should be on the top right"): a Leaflet bar control
   in the top-right corner, stacked above the zoom buttons (map.js
   inserts it ahead of the zoom control in the same corner, and
   placeZoom shifts the whole corner, so the stack stays aligned at
   the artwork's right edge on every window size). It drives the
   same fsEnter/fsExit as the top cluster's Full screen button, and
   map.js keeps both buttons' label and pressed state in sync, so
   entering from one and exiting from the other works. The bar
   inherits Leaflet's control styling; the box runs a touch larger
   than the zoom buttons so the tap target stays comfortable, and
   larger again on phone widths. The pressed state matches the
   cluster button's (pink). */
.leaflet-bar.leaflet-control-fs a {
  display: block; width: 34px; height: 34px; line-height: 34px;
  font-size: 20px; text-align: center; cursor: pointer;
}
.leaflet-bar.leaflet-control-fs a[aria-pressed="true"] {
  background: var(--pink); color: #fff;
}
@media (max-width: 1023px) {
  .leaflet-bar.leaflet-control-fs a { width: 40px; height: 40px; line-height: 40px; font-size: 22px; }
}
