/* build/city-home/map-page.css - the /map/ page Leaflet block (map-page.mjs), shared by every city
   guide. Same pin, chip and list style as the homepage map (home.css .lf-*), scoped to
   .lf-block.lf-page so it never touches the homepage. home.css is NOT loaded on /map/, so every
   colour here reads the site's own palette (styles.css :root) and its band tokens (--band-*), with
   literal fallbacks for a site that lacks one. Copied into src/public/assets/css/map-page.css by
   writeMapPageCss(); edit THIS file, never the site copy. */
.lf-page {
  --lfp-ink: var(--band-fg, var(--ink, #1F1D1B));
  --lfp-soft: var(--band-muted, var(--ink-soft, #4A433B));
  --lfp-line: var(--band-line, var(--line, #CBB68F));
  --lfp-surface: var(--band-surface, var(--surface, #FFFFFF));
  --lfp-strong: var(--brand-deep, #16211D);
  --lfp-link: var(--band-link, var(--brand, #164F45));
  --lfp-map-bg: var(--paper-2, #EAE0D0);
  margin-top: 24px;
}
.lf-page .lf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; scroll-margin-top: 96px; }
.lf-page { scroll-margin-top: 96px; }
.lf-page .lf-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--lfp-line); background: var(--lfp-surface); color: var(--lfp-ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.lf-page .lf-chip:not(.is-on) { background: transparent; color: var(--lfp-soft); border-style: dashed; }
.lf-page .lf-chip.is-on.lf-all { background: var(--lfp-strong); border-color: var(--lfp-strong); color: #FFFFFF; }
.lf-page .lf-chip.lf-zoomout { border-style: solid; background: transparent; color: var(--lfp-link); text-decoration: underline; text-underline-offset: 3px; }
.lf-page .lf-key { width: 12px; height: 12px; border-radius: 50%; background: var(--lf-c, var(--lfp-link)); }
.lf-page .lf-chip:not(.is-on) .lf-key { opacity: .45; }
.lf-page .lf-n { font-weight: 500; opacity: .9; }
/* Height: about 70vh on desktop, capped at 640px; about 60vh on phones, never under 380px. A
   FIXED box before init, so Leaflet's arrival never shifts the layout. */
.lf-page .lf-map { position: relative; height: clamp(420px, 70vh, 640px); border-radius: 16px; overflow: hidden; background: var(--lfp-map-bg); border: 1px solid var(--lfp-line); z-index: 0; }
@media (max-width: 600px) { .lf-page .lf-map { height: max(380px, 60vh); max-height: 560px; border-radius: 12px; } }
.lf-page .lf-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 20px; text-align: center; color: var(--lfp-soft); font-size: 15px; }
.lf-page .lf-map.is-live .lf-hint { display: none; }
.lf-page .lf-note { font-size: 14px; color: var(--lfp-soft); margin: 10px 0 0; }
.lf-page .lf-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; }
.lf-page .lf-list li { margin: 0; min-width: 0; }
.lf-page .lf-list li.is-off { opacity: .45; }
.lf-page .lf-row { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--lfp-line); color: var(--lfp-ink); text-decoration: none; }
.lf-page a.lf-row:hover .lf-name { text-decoration: underline; }
.lf-page .lf-num, .lf-page .lf-pin span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lf-c, var(--lfp-link)); color: #FFFFFF; font-size: 13px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.lf-page .lf-num { grid-row: span 2; }
.lf-page .lf-name { font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.lf-page .lf-line { font-size: 13px; line-height: 1.4; color: var(--lfp-soft); }
.lf-page .lf-pin { background: none; border: 0; }
.lf-page .lf-pin span { border: 2px solid #FFFFFF; box-shadow: 0 1px 4px rgba(0,0,0,.4); transition: transform .15s ease; }
.lf-page .lf-pin.is-main span { width: 32px; height: 32px; font-size: 14px; box-shadow: 0 0 0 3px rgba(0,0,0,.25), 0 1px 4px rgba(0,0,0,.4); }
.lf-page .leaflet-popup-content { margin: 12px 14px; font-family: inherit; display: flex; flex-direction: column; gap: 4px; }
.lf-page .lf-pop-t { font-size: 15px; color: #1F1D1B; }
.lf-page .lf-pop-l { font-size: 13px; color: #4A433B; }
.lf-page .lf-pop-a { font-size: 13px; font-weight: 700; color: #1F4E79; }
/* Attribution sits over raster tiles in both colour schemes, so it carries its own solid ground
   and fixed dark ink (about 12:1 and 8:1) instead of the theme's tokens. */
.lf-page .leaflet-container .leaflet-control-attribution { font-size: 12px; line-height: 1.4; padding: 2px 6px; background: #FFFFFF; color: #333333; }
.lf-page .leaflet-container .leaflet-control-attribution a { color: #1F4E79; }
@media (max-width: 900px) { .lf-page .lf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lf-page .lf-list { grid-template-columns: 1fr; } }
/* The sticky compare/booking bar never sits over the map: map-page.mjs sets this body class while
   any part of the map box is on screen. Covers the pipeline's bar ids and classes. */
body.lf-map-inview #sticky-cta, body.lf-map-inview .sticky-cta, body.lf-map-inview [data-sticky-bar] { transform: translateY(160%) !important; opacity: 0 !important; pointer-events: none !important; }
