/* Glowfinder components. Every value comes from tokens.css; nothing here redefines a token. */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; height: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 24px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type helpers */
.gf-display { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.gf-t1 { font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 600; margin: 0; }
.gf-t2 { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 500; margin: 0; }
.gf-t3 { font-size: 18px; line-height: 24px; font-weight: 700; margin: 0; }
.gf-small { font-size: 14px; line-height: 20px; }
.gf-label { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; }
.gf-muted { color: var(--ink-muted); }
.gf-num { font-variant-numeric: tabular-nums; }

/* icon */
.gf-icon { display: inline-block; flex: none; vertical-align: middle; }

/* buttons */
.gf-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-tap); padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent; font-weight: 700; font-size: 16px; line-height: 20px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.gf-btn-primary { background: var(--glow); color: var(--on-glow); }
.gf-btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.gf-btn-quiet { background: transparent; color: var(--ink); }
.gf-btn-quiet:hover { background: var(--surface-selected); }
.gf-btn-onroute { background: var(--glow-soft); color: var(--glow-ink); border-color: var(--glow-ink); }
.gf-btn-block { width: 100%; }
.gf-btn[disabled], .gf-btn[aria-disabled="true"] { cursor: not-allowed; background: var(--surface-sunken); color: var(--ink-muted); border-color: var(--line); }
.gf-btn-loading { cursor: progress; }
.gf-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gf-spin 0.8s linear infinite; }
@keyframes gf-spin { to { transform: rotate(360deg); } }
.gf-iconbtn { display: inline-grid; place-items: center; width: var(--size-tap); height: var(--size-tap); border-radius: var(--radius-md); border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.gf-iconbtn:hover { background: var(--surface-selected); }
.gf-iconbtn-secondary { background: var(--surface-raised); border-color: var(--line-strong); }
.gf-iconbtn-floating { background: var(--surface-raised); border-color: var(--line); box-shadow: var(--shadow-raised); }
.gf-iconbtn[aria-pressed="true"] { background: var(--glow-soft); color: var(--glow-ink); border-color: var(--glow-ink); }

/* logo */
.gf-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.gf-logo-word { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 28px; letter-spacing: -0.01em; }

/* tags and chips */
.gf-tag { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 28px; padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.gf-tag-glow { background: var(--glow-soft); color: var(--glow-ink); }
.gf-tag-ended { background: transparent; color: var(--ink-muted); border: 1px dashed var(--line-strong); }
.gf-tag-quiet { background: transparent; color: var(--ink-muted); padding: 0; }
.gf-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.gf-chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-tap); padding: 0 var(--space-4) 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.gf-chip[aria-pressed="true"] { background: var(--glow-soft); border-color: var(--glow-ink); color: var(--glow-ink); }
.gf-chip-check { display: none; }
.gf-chip[aria-pressed="true"] .gf-chip-check { display: inline-block; }
.gf-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* category badge: glyph in its category fill */
.gf-catdot { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--on-cat); flex: none; box-shadow: inset 0 0 0 1.5px var(--on-cat); }
.gf-cat-lights { background: var(--cat-lights); }
.gf-cat-giving { background: var(--cat-giving); }
.gf-cat-events { background: var(--cat-events); }
.gf-cat-shops { background: var(--cat-shops); }
.gf-catdot.gf-is-ended { background: var(--ended); }

/* category tabs */
.gf-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-1); border-bottom: 1px solid var(--line); }
.gf-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: var(--space-2) var(--space-1); border: 0; background: transparent; color: var(--ink-muted); font-size: 14px; line-height: 18px; font-weight: 700; cursor: pointer; text-align: center; }
.gf-tab-top { display: inline-flex; align-items: center; gap: 6px; }
.gf-tab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gf-tab:hover { color: var(--ink); }
.gf-tab[aria-selected="true"] { color: var(--ink); }
.gf-tab[aria-selected="true"]::after { content: ""; position: absolute; left: var(--space-2); right: var(--space-2); bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--glow); }
.gf-count { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 6px; border-radius: var(--radius-xs); background: var(--surface-sunken); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gf-tab[aria-selected="true"] .gf-count { background: var(--glow-soft); color: var(--glow-ink); }

/* search */
.gf-search { display: flex; align-items: stretch; gap: var(--space-2); padding: var(--space-1); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line-strong); box-shadow: var(--shadow-raised); }
.gf-search-zip { flex: 1; display: flex; align-items: center; gap: var(--space-2); padding-left: var(--space-3); min-width: 0; }
.gf-search-zip input { width: 100%; min-width: 0; min-height: var(--size-tap); border: 0; background: transparent; outline: none; font-weight: 700; }
.gf-search-zip:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.gf-search select { min-height: var(--size-tap); border: 0; border-left: 1px solid var(--line); background: transparent; padding: 0 var(--space-3); font-weight: 700; color: var(--ink); cursor: pointer; }
.gf-search .gf-iconbtn { color: var(--glow-ink); }

/* pins */
.gf-pin { position: relative; display: inline-block; width: 40px; height: 48px; border: 0; padding: 0; background: none; cursor: pointer; color: var(--on-cat); }
.gf-pin svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gf-pin-body { stroke: var(--on-cat); stroke-width: 2; }
.gf-pin-lights .gf-pin-body { fill: var(--cat-lights); }
.gf-pin-giving .gf-pin-body { fill: var(--cat-giving); }
.gf-pin-events .gf-pin-body { fill: var(--cat-events); }
.gf-pin-shops .gf-pin-body { fill: var(--cat-shops); }
.gf-pin-halo { fill: var(--glow-halo); display: none; }
.gf-pin-ring { fill: none; stroke: var(--snow); stroke-width: 2.5; display: none; }
.gf-pin.is-selected { width: 48px; height: 58px; z-index: 2; }
.gf-pin.is-selected .gf-pin-halo, .gf-pin.is-selected .gf-pin-ring { display: block; }
.gf-pin.is-ended .gf-pin-body { fill: var(--ended); }
.gf-pin.is-ended { opacity: 0.85; }
.gf-pin-stop { position: absolute; top: -6px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--glow); color: var(--on-glow); border: 2px solid var(--on-cat); font-size: 12px; line-height: 18px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.gf-pin.is-loading .gf-pin-body { fill: var(--skeleton); stroke: var(--line-strong); }
.gf-pin.is-loading .gf-pin-glyph { display: none; }
.gf-pulse { animation: gf-pulse 1.4s ease-in-out infinite; }
@keyframes gf-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .gf-pulse, .gf-spin { animation: none; } }

/* map */
.gf-map { position: relative; overflow: hidden; background: var(--map-land); width: 100%; height: 100%; min-height: 240px; }
.gf-map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.gf-map-land { fill: var(--map-land); }
.gf-map-water { fill: var(--map-water); }
.gf-map-park { fill: var(--map-park); }
.gf-map-road { stroke: var(--map-road); fill: none; stroke-linecap: round; }
.gf-map-major { stroke: var(--map-road-major); fill: none; stroke-linecap: round; }
.gf-map-label { fill: var(--map-label); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; paint-order: stroke; stroke: var(--map-land); stroke-width: 3px; }
.gf-map-pin { position: absolute; transform: translate(-50%, -100%); }
.gf-map-me { position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--snow); border: 4px solid var(--night); box-shadow: 0 0 0 8px var(--glow-halo); }
.gf-map-controls { position: absolute; right: var(--space-4); top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); z-index: var(--z-float); }

/* we visited */
.gf-visited { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-tap); padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.gf-visited[aria-pressed="true"] { background: var(--surface-selected); border-color: var(--ink-muted); }
.gf-visited .gf-num { color: var(--ink-muted); font-weight: 700; }

/* overflow menu */
.gf-menuwrap { position: relative; }
.gf-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: var(--z-menu); min-width: 200px; padding: var(--space-1); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line-strong); box-shadow: var(--shadow-raised); list-style: none; margin: 0; }
.gf-menu button { display: flex; width: 100%; align-items: center; gap: var(--space-3); min-height: var(--size-tap); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font-weight: 700; text-align: left; cursor: pointer; }
.gf-menu button:hover { background: var(--surface-selected); }

/* listing card */
.gf-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); color: var(--ink); }
.gf-card.is-selected { border: 2px solid var(--glow); padding: calc(var(--space-4) - 1px); background: var(--surface-selected); }
.gf-card.is-route { border-color: var(--glow-ink); }
.gf-card.is-ended .gf-card-title { color: var(--ink-muted); }
.gf-card.is-ended .gf-card-img { opacity: 0.5; filter: grayscale(1); }
.gf-card-head { display: flex; align-items: flex-start; gap: var(--space-3); }
.gf-card-headtext { flex: 1; min-width: 0; }
.gf-card-title { font-size: 18px; line-height: 24px; font-weight: 700; margin: 0; }
.gf-card-title a { color: inherit; text-decoration: none; }
.gf-card-title a:hover { text-decoration: underline; }
.gf-card-sub { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.gf-card-head .gf-menuwrap { margin: -10px -10px 0 0; }
.gf-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; }
.gf-meta-row { display: flex; align-items: flex-start; gap: var(--space-2); }
.gf-meta-row .gf-icon { margin-top: 2px; color: var(--ink-muted); }
.gf-card-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-sunken); display: block; }
.gf-card-shop { display: flex; gap: var(--space-3); }
.gf-card-shop .gf-card-img { width: 88px; height: 88px; aspect-ratio: auto; flex: none; }
.gf-card-blurb { margin: 0; font-size: 14px; line-height: 20px; }
.gf-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; padding-top: var(--space-1); }
.gf-card-foot .gf-btn-primary, .gf-card-foot .gf-btn-onroute { margin-left: auto; }
.gf-card-note { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.gf-skel { display: block; border-radius: var(--radius-xs); background: var(--skeleton); }
.gf-card.is-loading { pointer-events: none; }

/* route */
.gf-tray { display: flex; align-items: center; gap: var(--space-3); min-height: var(--size-tray); padding: var(--space-3) var(--space-4); background: var(--surface-raised); border-top: 1px solid var(--line); box-shadow: var(--shadow-sheet); }
.gf-tray-title { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; white-space: nowrap; }
.gf-tray-stops { display: flex; gap: var(--space-2); flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.gf-stopchip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3) 0 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); font-size: 14px; font-weight: 700; white-space: nowrap; }
.gf-stopnum { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--glow); color: var(--on-glow); font-size: 12px; font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.gf-tray-empty { color: var(--ink-muted); font-size: 14px; flex: 1; }
.gf-planner { display: flex; flex-direction: column; gap: var(--space-4); }
.gf-stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.gf-stop { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-1); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); }
.gf-stop.is-dragging { border: 2px dashed var(--glow-ink); background: var(--surface-selected); }
.gf-stop-handle { color: var(--ink-muted); cursor: grab; }
.gf-stop-text { flex: 1; min-width: 0; }
.gf-stop-name { font-weight: 700; margin: 0; }
.gf-stop-move { display: flex; flex-direction: column; }
.gf-iconbtn[disabled] { color: var(--line-strong); cursor: not-allowed; background: transparent; }
.gf-stop-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.gf-planner-cap { font-size: 14px; color: var(--ink-muted); margin: 0; }
.gf-planner-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* sheet */
.gf-sheet { display: flex; flex-direction: column; background: var(--surface-raised); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-sheet); border-top: 1px solid var(--line); color: var(--ink); max-height: 100%; }
.gf-sheet-handle { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: var(--space-2) 0 0; }
.gf-sheet-handlebtn { display: grid; place-items: center; min-height: 28px; border: 0; background: transparent; cursor: grab; width: 100%; }
.gf-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-5) var(--space-3); }
.gf-sheet-body { padding: 0 var(--space-5) var(--space-5); overflow: auto; flex: 1; display: flex; flex-direction: column; gap: var(--space-4); }
.gf-sheet-foot { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-5) var(--space-5); border-top: 1px solid var(--line); }
.gf-sheet-foot > * { flex: 1; }

/* forms */
.gf-field { display: flex; flex-direction: column; gap: 6px; }
.gf-field-label { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; }
.gf-field-hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.gf-field-error { font-size: 14px; line-height: 20px; color: var(--danger); font-weight: 700; }
.gf-input { width: 100%; min-height: 48px; padding: 0 var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface-sunken); color: var(--ink); font-size: 16px; }
textarea.gf-input { padding: var(--space-3); min-height: 112px; resize: vertical; line-height: 24px; }
.gf-input { color-scheme: dark; }
[data-theme="day"] .gf-input { color-scheme: light; }
.gf-input::placeholder { color: var(--ink-muted); }
.gf-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.gf-input[aria-invalid="true"] { border: 2px solid var(--danger); }
.gf-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.gf-group legend { padding: 0; margin-bottom: var(--space-2); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; }
.gf-seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--surface-sunken); border: 1px solid var(--line-strong); }
.gf-seg button { min-height: 40px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 0 var(--space-2); }
.gf-seg button[aria-pressed="true"], .gf-seg button[aria-checked="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 2px var(--glow); }
.gf-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--size-tap); cursor: pointer; font-weight: 700; }
.gf-switch-track { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--surface-sunken); border: 1px solid var(--line-strong); flex: none; }
.gf-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-muted); }
.gf-switch[aria-checked="true"] .gf-switch-track { background: var(--glow); border-color: var(--glow); }
.gf-switch[aria-checked="true"] .gf-switch-track::after { left: 23px; background: var(--on-glow); }
.gf-switch { border: 0; background: transparent; color: var(--ink); width: 100%; padding: 0; text-align: left; }
.gf-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--space-2); }
.gf-photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-sunken); }
.gf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gf-photo .gf-iconbtn { position: absolute; top: 2px; right: 2px; background: var(--surface-raised); }
.gf-photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 1; border-radius: var(--radius-sm); border: 2px dashed var(--line-strong); background: transparent; color: var(--ink-muted); font-size: 13px; font-weight: 700; cursor: pointer; }

/* stepper */
.gf-steps { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.gf-step { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--ink-muted); }
.gf-step-bar { height: 4px; border-radius: 2px; background: var(--line); }
.gf-step.is-done .gf-step-bar, .gf-step.is-current .gf-step-bar { background: var(--glow); }
.gf-step.is-current { color: var(--ink); }

/* info rows, notices */
.gf-info { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.gf-info:last-child { border-bottom: 0; }
.gf-info .gf-icon { color: var(--ink-muted); }
.gf-info-label { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-muted); margin: 2px 0 2px; }
.gf-info-value { margin: 0; }
.gf-notice { display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); background: var(--glow-soft); color: var(--ink); }
.gf-notice .gf-icon { color: var(--glow-ink); }
.gf-notice-ended { background: var(--surface-sunken); }
.gf-notice-ended .gf-icon { color: var(--ink-muted); }

/* empty state */
.gf-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); max-width: 440px; margin: 0 auto; }
.gf-empty-art { width: 160px; height: 120px; }
.gf-empty-art .a-ground { fill: var(--surface-sunken); }
.gf-empty-art .a-line { stroke: var(--line-strong); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gf-empty-art .a-wall { fill: var(--surface-raised); stroke: var(--line-strong); stroke-width: 2; stroke-linejoin: round; }
.gf-empty-art .a-glow { fill: var(--glow); }
.gf-empty-art .a-halo { fill: var(--glow-halo); }
.gf-empty-art .a-dim { fill: var(--surface-sunken); stroke: var(--line-strong); stroke-width: 2; }
.gf-empty-art .a-snow { fill: var(--ink-muted); }
.gf-empty p { margin: 0; color: var(--ink-muted); }
.gf-empty-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; margin-top: var(--space-2); }

/* site header and hero */
.gf-header { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; padding: 0 var(--space-4); background: var(--sky); color: var(--snow); border-bottom: 1px solid var(--night); }
.gf-header .gf-logo { color: var(--snow); }
.gf-nav { display: flex; gap: var(--space-1); margin-left: auto; }
.gf-nav a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-tap); padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--snow); text-decoration: none; font-weight: 700; font-size: 15px; }
.gf-nav a:hover { background: var(--night-hover); }
.gf-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--glow); border-radius: 0; }
.gf-header .gf-iconbtn { color: var(--snow); }
.gf-header .gf-iconbtn:hover { background: var(--night-hover); }
.gf-header :focus-visible { outline-color: var(--focus-on-night); }
.gf-hero { position: relative; max-height: 420px; background: var(--sky); color: var(--snow); overflow: hidden; transition: max-height 220ms ease, opacity 160ms ease; }
.gf-hero img { display: block; width: 100%; height: auto; }
.gf-hero-text { position: absolute; left: var(--space-6); top: var(--space-6); right: var(--space-6); max-width: 560px; }
.gf-hero-text p { margin: var(--space-2) 0 0; color: var(--snow-muted); }
html[data-hero-collapsed="true"] .gf-hero { max-height: 0; opacity: 0; pointer-events: none; }
.gf-map-share { position: absolute; top: var(--space-4); left: 72px; z-index: 1001; }
.gf-header .gf-iconbtn[aria-pressed="true"] { background: transparent; color: var(--snow); border-color: transparent; }
.gf-leaflet-pin-wrap { background: transparent; border: 0; }
.gf-leaflet-pin { position: relative; display: grid; place-items: center; width: 40px; height: 48px; color: var(--on-cat); filter: drop-shadow(0 2px 2px rgba(11,20,38,.28)); }
.gf-leaflet-pin::before { content: ""; position: absolute; inset: 2px 4px 6px; border-radius: 50% 50% 50% 4px; background: var(--cat-lights); border: 2px solid var(--on-cat); transform: rotate(-45deg); }
.gf-leaflet-pin .gf-icon { position: relative; transform: translateY(-2px); }
.gf-leaflet-pin-giving::before { background: var(--cat-giving); }
.gf-leaflet-pin-events::before { background: var(--cat-events); }
.gf-leaflet-pin-shops::before { background: var(--cat-shops); }
.gf-leaflet-pin-wrap.gf-marker-selected .gf-leaflet-pin::after { content: ""; position: absolute; inset: -5px -3px -3px; border: 3px solid var(--glow); border-radius: 50%; box-shadow: 0 0 0 5px var(--glow-halo); }
.gf-leaflet-pin-wrap.gf-marker-selected .gf-leaflet-pin { transform: scale(1.15); filter: drop-shadow(0 0 5px var(--glow-ink)); z-index: 2; }
.gf-leaflet-cluster-wrap { background: transparent; border: 0; }
.gf-leaflet-cluster { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--on-cat); border-radius: 50%; background: var(--glow); color: var(--on-glow); box-shadow: 0 0 0 5px var(--glow-halo), 0 2px 4px rgba(11,20,38,.28); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) { .gf-map-share { top: var(--space-4); left: auto; right: var(--space-4); } }
@media (prefers-reduced-motion: reduce) { .gf-hero { transition: none; } }

/* app shell: list left, map right, tray bottom; phone: map with pull-up sheet */
.gf-app { container-type: inline-size; display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--surface); }
.gf-shell { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: var(--size-list) 1fr; grid-template-rows: 1fr auto; }
.gf-shell-list { grid-row: 1; grid-column: 1; overflow: auto; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.gf-shell-map { grid-row: 1; grid-column: 2; position: relative; min-height: 0; }
.gf-shell-tray { grid-row: 2; grid-column: 1 / -1; z-index: var(--z-tray); }
.gf-listhead { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: var(--space-4) var(--space-4) 0; display: flex; flex-direction: column; gap: var(--space-3); }
.gf-listbody { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.gf-listbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.gf-listbar .gf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.gf-floatsearch { display: none; }
@container (max-width: 719px) {
  .gf-shell { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gf-shell-map { grid-row: 1; grid-column: 1; }
  .gf-shell-list { grid-row: 1; grid-column: 1; align-self: end; z-index: var(--z-tray); max-height: 55%; border-right: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface-raised); box-shadow: var(--shadow-sheet); border-top: 1px solid var(--line); }
  .gf-shell-list .gf-listhead { background: var(--surface-raised); padding-top: 0; }
  .gf-shell-list .gf-search { display: none; }
  .gf-floatsearch { display: block; position: absolute; left: var(--space-4); right: var(--space-4); top: var(--space-4); z-index: var(--z-float); }
  .gf-shell-map .gf-map-controls { top: 76px; }
  .gf-shell-tray { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); grid-row: auto; }
  .gf-shell-tray .gf-tray { border-radius: var(--radius-md); border: 1px solid var(--line-strong); min-height: 60px; }
  .gf-shell-tray .gf-tray-stops { display: none; }
  .gf-shell.has-tray .gf-shell-list { margin-bottom: 76px; }
  .gf-nav-desk { display: none; }
  .gf-display { font-size: 28px; line-height: 32px; }
  .gf-hero-text { left: var(--space-4); top: var(--space-4); }
}
@container (min-width: 720px) { .gf-nav-phone { display: none; } }

/* reading pages */
.gf-page { max-width: var(--size-content); margin: 0 auto; padding: var(--space-10) var(--space-6) var(--space-16); display: flex; flex-direction: column; gap: var(--space-6); }
.gf-back { align-self: flex-start; margin-left: calc(-1 * var(--space-3)); }
.gf-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--space-2); aspect-ratio: 2 / 1; }
.gf-gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius-md); display: block; background: var(--surface-sunken); }
.gf-gallery > img:first-child { grid-row: span 2; }
.gf-detail-grid { display: grid; grid-template-columns: 1fr 260px; gap: var(--space-6); align-items: start; }
.gf-panel { padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-3); }
.gf-detail-actions { display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface); padding: var(--space-3) 0; }
.gf-list-plain { margin: 0; padding-left: 1.2em; }
.gf-list-plain li { margin: 2px 0; }
.gf-story { padding: var(--space-6); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); }
.gf-story blockquote { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 30px; font-weight: 500; }
.gf-story cite { display: block; margin-top: var(--space-3); font-style: normal; font-size: 14px; color: var(--ink-muted); }

/* hero: text column beside the full street on desktop, stacked on phones */
.gf-hero { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; align-items: end; }
.gf-hero-text { position: static; padding: var(--space-8) var(--space-6); max-width: none; align-self: center; }
.gf-hero picture { grid-column: 2; grid-row: 1; display: block; }
.gf-hero-text { grid-column: 1; grid-row: 1; }
@container (max-width: 719px) {
  .gf-hero { grid-template-columns: 1fr; }
  .gf-hero picture, .gf-hero-text { grid-column: 1; }
  .gf-hero-text { grid-row: 1; padding: var(--space-5) var(--space-4) var(--space-2); }
  .gf-hero-text p { display: none; }
  .gf-hero picture { grid-row: 2; }
}
.gf-scrim { position: absolute; inset: 0; background: var(--scrim); z-index: var(--z-modal); }
.gf-map-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gf-map-route path { fill: none; stroke: var(--glow); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 8; vector-effect: non-scaling-stroke; }
.gf-choice { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.gf-choice button { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); min-height: 112px; padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); text-align: left; cursor: pointer; font-weight: 700; }
.gf-choice button[aria-checked="true"] { border: 2px solid var(--glow); padding: calc(var(--space-4) - 1px); background: var(--surface-selected); }
.gf-choice small { font-weight: 400; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.gf-check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--size-tap); cursor: pointer; }
.gf-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--glow); flex: none; }
.gf-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-12) 0; }
.gf-done-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--glow); color: var(--on-glow); box-shadow: 0 0 0 12px var(--glow-halo); }
.gf-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.gf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@container (max-width: 719px) { .gf-choice { grid-template-columns: 1fr; } .gf-choice button { min-height: 72px; flex-direction: row; align-items: center; } .gf-grid2 { grid-template-columns: 1fr; } }
.gf-listhandle { display: none; }
@container (max-width: 719px) { .gf-listhandle { display: grid; place-items: center; min-height: 20px; } }

/* phone overrides for reading pages (kept last so they win) */
@container (max-width: 719px) {
  .gf-page { padding: var(--space-4) var(--space-4) var(--space-12); gap: var(--space-5); }
  .gf-detail-grid { grid-template-columns: 1fr; }
  .gf-detail-actions { position: sticky; bottom: 0; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
  .gf-gallery { aspect-ratio: 3 / 2; }
}
.gf-app > * { flex-shrink: 0; }
.gf-app > .gf-shell { flex: 1 1 0; min-height: 0; }

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

.leaflet-control-attribution a { color: #004968 !important; }
