/* Neighborhood explorer (/neighborhoods) and guides (/neighborhoods/<slug>),
   in the site's refreshed language (asg-*-refresh.html, the homepage): big
   800-weight type on white, warm bento tiles, hairlines, glass only over the
   map, one dark band to close. Markup: src/lib/neighborhoods/render.ts.
   Scripts: /hoods/hx-core.js, /hoods/explorer.js, /hoods/guide.js. */

.hx {
  --ink: var(--asg-text, #111);
  --muted: var(--asg-muted, rgba(17, 17, 17, .58));
  --muted-soft: var(--asg-muted-soft, rgba(17, 17, 17, .44));
  --line: var(--asg-line, rgba(17, 17, 17, .08));
  --line-strong: var(--asg-line-strong, rgba(17, 17, 17, .18));
  --warm: var(--asg-bg-alt, #f6f6f3);
  --r-card: var(--asg-r-card, 28px);
  --r-shell: var(--asg-r-shell, 34px);
  --ease: var(--asg-ease, cubic-bezier(.16, 1, .3, 1));
  --nav: var(--asg-nav-height, 96px);
  color: var(--ink);
  font-family: var(--asg-font-body, 'Outfit', system-ui, sans-serif);
}
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx button { font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hx a { -webkit-tap-highlight-color: transparent; }
.hx-wrap { max-width: var(--asg-max, 1480px); margin: 0 auto; padding: 0 var(--asg-pad-x, 20px); }

/* ── Type ───────────────────────────────────────────────────────────── */
.hx-eyebrow { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-soft); }
.hx-h1 { margin: 14px 0 0; font-family: var(--asg-font-display, inherit); font-weight: 800; font-size: clamp(3rem, 5.9vw, 6rem); line-height: .94; letter-spacing: -.056em; text-wrap: balance; }
.hx-h2 { margin: 12px 0 0; font-family: var(--asg-font-display, inherit); font-weight: 800; font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: .98; letter-spacing: -.052em; text-wrap: balance; }
.hx-h3 { margin: 8px 0 18px; font-weight: 800; font-size: 1.6rem; line-height: 1.02; letter-spacing: -.04em; }
.hx-lead { margin: 24px 0 0; max-width: 46ch; font-size: clamp(1.06rem, 1.3vw, 1.22rem); line-height: 1.55; color: rgba(17, 17, 17, .72); text-wrap: pretty; }
.hx-sec-sub { margin: 0; max-width: 40ch; font-size: 1.04rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hx-fine { margin: 14px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted-soft); }
.hx-disc { margin: 28px 0 clamp(48px, 6vw, 80px); max-width: 92ch; font-size: .84rem; line-height: 1.6; color: var(--muted-soft); }
.hx-disc a { color: var(--ink); }
@keyframes hxRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hx-rise { animation: hxRise .9s var(--ease) both; }

/* ── Small parts ───────────────────────────────────────────────────── */
.hx-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.hx-side { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 62%, #000); font-size: .78rem; font-weight: 700; letter-spacing: -.005em; }
.hx-side::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hx-line { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; font-size: .84rem; font-weight: 650; }
.hx-line::before { content: ''; width: 14px; height: 4px; border-radius: 2px; background: var(--c); }
.hx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px !important; }
.hx-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 15px; border-radius: 999px; background: var(--warm); font-size: .9rem; font-weight: 600; }
.hx-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.hx-go svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }

.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.hx-chip { min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: .88rem; font-weight: 600; transition: transform .3s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease; }
.hx-chip:active { transform: scale(.95); transition-duration: .06s; }
@media (hover: hover) { .hx-chip:hover { border-color: rgba(17, 17, 17, .4); } }
.hx button.hx-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 650; font-size: .92rem; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), background-color .2s ease, opacity .2s ease; }
.hx-btn:active { transform: scale(.96); transition-duration: .06s; }
.hx .hx-btn-dark, .hx button.hx-btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.hx-btn[disabled] { opacity: .35; cursor: default; transform: none; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hx-hero { padding: clamp(20px, 4vh, 48px) 0 clamp(16px, 3vw, 40px); overflow: clip; }
/* (asg-page-main already pads the top by the nav's height) */
.hx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 96px); align-items: center; min-height: clamp(560px, 74svh, 760px); }
.hx-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.hx-count { margin: 26px 0 0; font-size: .95rem; font-weight: 500; color: var(--muted); }
.hx-count b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

/* The deck: a card per guide, the neighborhood drawn among its neighbors.
   Springs, flick, hover fan and auto-advance (explorer.js), as on /sellers. */
.dk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; outline: none; }
.dk:focus-visible .dk-stage { outline: 2px solid var(--ink); outline-offset: 14px; border-radius: 34px; }
.dk-stage { --cw: clamp(300px, 29vw, 440px); position: relative; width: var(--cw); aspect-ratio: 4 / 5; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.dk-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 30px; overflow: hidden;
  background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 26px 54px rgba(17, 17, 17, .14), 0 2px 6px rgba(17, 17, 17, .06), inset 0 0 0 1px rgba(17, 17, 17, .05);
  transform-origin: 50% 88%; will-change: transform; cursor: grab; -webkit-user-drag: none;
}
.dk-card.is-held { cursor: grabbing; }
.dk-art { display: block; flex: 1; min-height: 0; background: color-mix(in srgb, var(--c) 7%, #f7f6f2); }
.dk-art svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.dk-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 24px 24px; }
.dk-body strong { margin-top: 4px; font-size: clamp(1.7rem, 2.3vw, 2.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.dk-body > span:last-child { font-size: .95rem; line-height: 1.45; color: var(--muted); }
.dk-ctrl { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: var(--warm); }
.dk-btn { appearance: none; border: 0; background: transparent; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s ease, transform .3s var(--ease); }
.dk-btn svg { width: 14px; height: 14px; }
.dk-btn:active { transform: scale(.88); transition-duration: .06s; }
@media (hover: hover) { .dk-btn:hover { background: #fff; } }
.dk-btn .i-play { display: none; }
.dk.is-stopped .dk-btn .i-play { display: block; }
.dk.is-stopped .dk-btn .i-pause { display: none; }
.dk-count { min-width: 54px; text-align: center; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }

/* ── Sections ──────────────────────────────────────────────────────── */
.hx-sec { padding: clamp(72px, 9vw, 128px) 0 0; scroll-margin-top: calc(var(--nav) - 10px); }
.hx-sec-tight { padding-top: clamp(28px, 3vw, 40px); }
.hx-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.4vw, 48px); }
.hx-sec-head > div:first-child { max-width: 860px; }
.hx-sec-head .hx-chips { margin: 0; }

/* ── The map ───────────────────────────────────────────────────────── */
.hx-stage { position: relative; padding: 0 var(--asg-pad-x, 20px); max-width: calc(var(--asg-max, 1480px) + 2 * var(--asg-pad-x, 20px)); margin: 0 auto; }
.hx-map-wrap { position: relative; height: clamp(620px, 86vh, 900px); border-radius: var(--r-shell); overflow: hidden; background: #ecebe6; isolation: isolate; }
.hx-stage-guide .hx-map-wrap { height: clamp(440px, 66vh, 680px); }
.hx-map { position: absolute; inset: 0; }
.hx-map .maplibregl-cooperative-gesture-screen { display: none !important; }
.hx-map .maplibregl-ctrl-attrib { font-family: inherit; font-size: 11px; }
.hx-noscript { position: absolute; inset: auto 20px 20px; margin: 0; padding: 14px 16px; border-radius: 16px; background: #fff; }

/* Glass over the map, after the homepage's pane: clear, a little blur,
   a bright rim and a faint float. */
.hx-glass {
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(16px) saturate(160%) brightness(1.04);
  backdrop-filter: blur(16px) saturate(160%) brightness(1.04);
  box-shadow: 0 14px 36px rgba(17, 17, 17, .1), 0 1px 3px rgba(17, 17, 17, .05), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.hx-top { position: absolute; top: 16px; left: 16px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: min(380px, calc(100% - 32px)); }
.hx-search { position: relative; display: flex; align-items: center; width: 100%; height: 50px; padding: 0 7px 0 16px; border-radius: 999px; }
.hx-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .5; flex: none; }
.hx-search input { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; background: transparent; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); outline: none; }
.hx-search input::placeholder { color: rgba(17, 17, 17, .5); }
.hx-search input::-webkit-search-cancel-button { display: none; }
.hx-search-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(17, 17, 17, .08); font-size: 1.2rem; line-height: 1; }
.hx-search-list { position: absolute; top: 58px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow: auto; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(17, 17, 17, .18); }
.hx-search-list li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; cursor: pointer; font-size: .95rem; font-weight: 550; }
.hx-search-list li small { margin-left: auto; color: var(--muted); font-size: .76rem; font-weight: 600; }
.hx-search-list li[aria-selected="true"], .hx-search-list li:hover { background: var(--warm); }
.hx-modes { display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.hx-mode { height: 38px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; font-size: .88rem; font-weight: 650; white-space: nowrap; transition: background-color .25s var(--ease), color .2s ease, transform .3s var(--ease); }
.hx-mode:active { transform: scale(.95); transition-duration: .06s; }
.hx button.hx-mode.is-on { background: var(--ink); color: #fff; }

.hx-layers { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.hx-layer { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: .84rem; font-weight: 650; white-space: nowrap; transition: background-color .25s var(--ease), color .2s ease, transform .3s var(--ease); }
.hx-layer:active { transform: scale(.95); transition-duration: .06s; }
.hx button.hx-layer.is-on { background: rgba(17, 17, 17, .9); color: #fff; }
.hx-legend { position: absolute; left: 16px; bottom: 70px; z-index: 2; max-width: min(380px, calc(100% - 32px)); padding: 14px; border-radius: 22px; font-size: .8rem; }
.hx-legend:empty, .hx-legend[data-mode="sides"] { display: none; }
.hx-legend-title { margin: 0 0 8px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hx-legend-sides { display: flex; flex-wrap: wrap; gap: 4px; }
.hx-legend-side { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border: 1px solid transparent; border-radius: 999px; background: rgba(255, 255, 255, .75); font-size: .78rem; font-weight: 650; }
.hx-legend-side.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, #fff); }
.hx-legend-ramp { height: 10px; border-radius: 5px; margin-bottom: 5px; }
.hx-legend-ends { display: flex; justify-content: space-between; font-weight: 600; color: var(--muted); }
.hx-tip { position: absolute; z-index: 4; pointer-events: none; padding: 9px 13px; border-radius: 16px; font-size: .86rem; font-weight: 700; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); }
.hx-tip small { display: block; margin-top: 1px; font-weight: 550; font-size: .74rem; color: var(--muted); }
.hx-caption { position: absolute; top: 16px; left: 50%; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.hx-caption[hidden], .hx-tip[hidden] { display: none; }
.hx-caption .hx-dot { width: 12px; height: 12px; }
.hx-caption button { height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: rgba(17, 17, 17, .08); font-size: .8rem; font-weight: 700; }

.hx-sheet { position: absolute; left: 16px; bottom: 70px; z-index: 3; width: min(380px, calc(100% - 32px)); max-height: calc(100% - 200px); overflow: auto; padding: 22px; border-radius: 28px; background: rgba(255, 255, 255, .86); transform-origin: bottom left; }
.hx-sheet[hidden] { display: none; }
.hx-sheet:not([hidden]) ~ .hx-legend { display: none; }
.hx-sheet.is-in { animation: hxSheetIn .42s var(--ease) both; }
@keyframes hxSheetIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.hx-sheet-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(17, 17, 17, .07); font-size: 1.2rem; line-height: 1; }
.hx-sheet h3 { margin: 12px 0 6px; padding-right: 30px; font-size: 2rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.hx-sheet p { margin: 0 0 14px; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.hx-sheet dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.hx-sheet dt { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-soft); }
.hx-sheet dd { margin: 3px 0 0; font-weight: 750; font-size: 1rem; }
.hx-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-sheet-actions .hx-btn { min-height: 40px; padding: 0 16px; font-size: .86rem; }

.hx-panel { position: absolute; top: 16px; right: calc(var(--asg-pad-x, 20px) + 16px); bottom: 16px; z-index: 2; width: 360px; overflow: auto; padding: 24px; border-radius: 28px; overscroll-behavior: contain; scrollbar-width: thin; }
.hx-pane[hidden] { display: none; }
.hx-pane.is-on { animation: hxSheetIn .38s var(--ease) both; }
.hx-sides { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hx-sides button { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 4px 10px; width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 16px; background: rgba(255, 255, 255, .7); text-align: left; font-weight: 700; font-size: .95rem; transition: transform .3s var(--ease), border-color .2s ease, background-color .2s ease; }
.hx-sides button:active { transform: scale(.98); transition-duration: .06s; }
@media (hover: hover) { .hx-sides button:hover { background: #fff; } }
.hx-sides button.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.hx-sides small { font-size: .8rem; font-weight: 700; color: var(--muted-soft); font-variant-numeric: tabular-nums; }
.hx-sides-guides { grid-column: 2 / 4; font-size: .8rem; font-weight: 550; line-height: 1.4; color: var(--muted); }
.hx-range-label { display: block; margin: 4px 0 8px; font-size: .9rem; }
.hx-range { width: 100%; accent-color: var(--ink); margin: 0 0 18px; }
.hx-rank { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hx-rank li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .78); cursor: pointer; transition: transform .3s var(--ease), background-color .2s ease; }
@media (hover: hover) { .hx-rank li:hover { background: #fff; } }
.hx-rank li:active { transform: scale(.98); transition-duration: .06s; }
.hx-rank-n { font-size: .78rem; font-weight: 800; color: var(--muted-soft); font-variant-numeric: tabular-nums; }
.hx-rank-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.hx-rank-meta { font-size: .8rem; font-weight: 600; color: var(--muted); }
.hx-rank-bar { grid-column: 2 / 4; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.hx-rank-bar i { display: block; height: 100%; border-radius: 2px; background: var(--c, var(--ink)); transition: width .5s var(--ease); }
.hx-empty { padding: 14px; border-radius: 16px; background: #fff; color: var(--muted); font-size: .9rem; }
.hx-ride-pick { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.hx-ride-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-soft); }
.hx-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; font-weight: 650; text-align: left; transition: border-color .2s ease, transform .3s var(--ease); }
.hx-field:active { transform: scale(.98); transition-duration: .06s; }
.hx-field::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .45; }
.hx-field[aria-expanded="true"] { border-color: var(--ink); }
.hx-ride-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.hx-ride-actions .hx-btn-dark { flex: 1; }
.hx-ride-legs { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hx-ride-legs li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .78); font-size: .9rem; font-weight: 550; }
.hx-ride-legs li i { width: 6px; align-self: stretch; border-radius: 3px; background: var(--c); }

/* In-page dropdown (repo rule: never a native select). */
.hx-dd { position: fixed; z-index: 1000; margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(17, 17, 17, .2); font-family: var(--asg-font-body, 'Outfit', system-ui, sans-serif); color: #111; }
.hx-dd li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; cursor: pointer; font-size: .94rem; font-weight: 550; }
.hx-dd li:hover, .hx-dd li[aria-selected="true"] { background: #f6f6f3; }
.hx-dd .hx-dot { width: 9px; height: 9px; }

/* ── Guide cards (bento) ───────────────────────────────────────────── */
.hx-cards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hx-card { position: relative; border-radius: var(--r-card); background: var(--warm); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
@media (hover: hover) { .hx-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17, 17, 17, .1); } }
.hx-card:active { transform: scale(.985); transition-duration: .08s; }
.hx-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.hx-card-art { display: block; aspect-ratio: 400 / 220; background: color-mix(in srgb, var(--c) 6%, var(--warm)); }
.hx-card-art svg { width: 100%; height: 100%; display: block; }
.hx-card-text { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 64px; }
.hx-card-side { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 62%, #000); }
.hx-card-name { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.hx-card-tag { font-size: .93rem; line-height: 1.45; color: var(--muted); }
.hx-card-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.hx-card-lines .hx-line { font-size: .78rem; margin-right: 6px; }
.hx-card-add { position: absolute; left: 22px; bottom: 18px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: .78rem; font-weight: 700; transition: transform .3s var(--ease), background-color .2s ease, color .2s ease; }
.hx-card-add:active { transform: scale(.94); transition-duration: .06s; }
.hx button.hx-card-add.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hx-card.is-feature { grid-column: span 2; grid-row: span 2; background: var(--ink); color: #fff; }
.hx-card.is-feature .hx-card-art { aspect-ratio: 400 / 300; flex: 1; background: #1c1c1c; }
.hx-card.is-feature .hx-card-art path[fill-opacity=".13"] { fill: #fff; fill-opacity: .07; stroke: #1c1c1c; }
.hx-card.is-feature .hx-card-art path[stroke="#fff"] { stroke: #1c1c1c; }
.hx-card.is-feature .hx-card-name { font-size: clamp(2.4rem, 3.6vw, 3.4rem); }
.hx-card.is-feature .hx-card-tag { color: rgba(255, 255, 255, .66); font-size: 1.02rem; max-width: 52ch; }
.hx-card.is-feature .hx-card-side { color: rgba(255, 255, 255, .55); }
.hx-card.is-feature .hx-card-facts { color: rgba(255, 255, 255, .6); }
.hx-card.is-feature .hx-line { color: #fff; }
.hx-card.is-feature .hx-card-add { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.hx-card.is-feature .hx-card-add.is-on { background: #fff; color: var(--ink); }

.hx-compare-scroll { overflow-x: auto; border-top: 1px solid var(--line-strong); }
.hx-compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.hx-compare-table th, .hx-compare-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hx-compare-table thead th { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
.hx-compare-table thead a { color: inherit; text-decoration: none; }
.hx-compare-table tbody th { width: 170px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-soft); }
.hx-compare-x { margin-left: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--warm); font-size: 1rem; line-height: 1; vertical-align: middle; }

.hx-az { columns: 3 260px; column-gap: 48px; border-top: 1px solid var(--line-strong); padding-top: 28px; }
.hx-az-col { break-inside: avoid; margin-bottom: 32px; }
.hx-az-col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.hx-az-col ul { margin: 0; padding: 0; list-style: none; }
.hx-az-col a, .hx-az-btn { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; border: 0; background: none; font-size: .96rem; color: var(--muted); text-decoration: none; text-align: left; transition: color .2s ease; }
.hx-az-col a { color: var(--ink); font-weight: 700; }
.hx-az-tag { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 62%, #000); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (hover: hover) { .hx-az-btn:hover { color: var(--ink); } .hx-az-col a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* ── The one dark moment ───────────────────────────────────────────── */
.hx-final { padding: clamp(80px, 10vw, 140px) 0 0; }
.hx-band { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; border-radius: var(--r-shell); background: var(--ink); color: #fff; padding: clamp(36px, 5vw, 72px); }
.hx-band .hx-eyebrow { color: rgba(255, 255, 255, .5); }
.hx-band .hx-h2 { color: #fff; max-width: 18ch; }
.hx-band-sub { margin: 16px 0 0; max-width: 56ch; font-size: 1.06rem; line-height: 1.6; color: rgba(255, 255, 255, .64); }
.hx-band-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hx-band .asg-btn-dark { background: #fff; color: var(--ink); border-color: #fff; }
.hx-band .asg-btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }

/* ── Guide page ────────────────────────────────────────────────────── */
.hx-crumbs { display: flex; gap: 8px; align-items: center; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-soft); }
.hx-crumbs a { color: inherit; text-decoration: none; }
.hx-crumbs a:hover { color: var(--ink); }
.hx-guide .hx-crumbs span:last-child { color: color-mix(in srgb, var(--c) 65%, #000); }
.hx-art { position: relative; margin: 0; border-radius: var(--r-shell); background: color-mix(in srgb, var(--c) 6%, #f7f6f2); overflow: hidden; aspect-ratio: 640 / 560; }
.hx-art svg { width: 100%; height: 100%; display: block; }
.hx-art figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: .8rem; font-weight: 650; }

.hx-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; padding-top: clamp(16px, 2vw, 24px); }
.hx-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: clamp(176px, 15vw, 228px); padding: clamp(22px, 2.2vw, 30px); border-radius: var(--r-card); background: var(--warm); }
.hx-tile.is-ink { background: var(--ink); color: #fff; }
.hx-tile-label { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--muted-soft); }
.hx-tile.is-ink .hx-tile-label { color: rgba(255, 255, 255, .5); }
.hx-tile-num { margin: 0; font-weight: 800; font-size: clamp(2.8rem, 4.4vw, 4.4rem); line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.hx-tile-num small { margin-left: 6px; font-size: .32em; font-weight: 700; letter-spacing: -.01em; }
.hx-tile-num-sm { font-size: clamp(2rem, 3vw, 2.8rem); }
.hx-tile-sub { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--muted); }
.hx-tile.is-ink .hx-tile-sub { color: rgba(255, 255, 255, .6); }
.hx-tile-sub a { color: var(--ink); font-weight: 700; }
.hx-guide-hero .hx-hero-grid { min-height: clamp(480px, 62svh, 640px); }
.hx-tile-lines { display: flex; flex-direction: column; gap: 8px; }
.hx-line-big { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.hx-line-big::before { content: ''; width: 26px; height: 8px; border-radius: 4px; background: var(--c); }

.hx-toc { position: sticky; top: calc(var(--nav) + 4px); z-index: 30; margin-top: clamp(28px, 3vw, 40px); padding: 10px 0; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.hx-toc-in { display: flex; gap: 4px; max-width: var(--asg-max, 1480px); margin: 0 auto; padding: 0 var(--asg-pad-x, 20px); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.hx-toc-in::-webkit-scrollbar { display: none; }
.hx-toc a { flex: none; padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 650; text-decoration: none; color: var(--muted); transition: background-color .25s var(--ease), color .2s ease; }
@media (hover: hover) { .hx-toc a:hover { color: var(--ink); background: var(--warm); } }
.hx-toc a.is-on { background: var(--ink); color: #fff; }

.hx-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 96px); align-items: start; border-top: 1px solid var(--line-strong); padding-top: clamp(28px, 3vw, 40px); }
.hx-split .hx-h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.hx-prose p { margin: 0 0 18px; font-size: clamp(1.06rem, 1.3vw, 1.2rem); line-height: 1.65; color: rgba(17, 17, 17, .78); text-wrap: pretty; }
.hx-dist { margin-top: 10px; }
.hx-dist ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hx-dist li { border-bottom: 1px solid var(--line); }
.hx-dist-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 72px; align-items: center; gap: 16px; width: 100%; padding: 14px 6px; border: 0; background: transparent; text-align: left; font-size: 1rem; font-weight: 600; transition: background-color .2s ease; }
.hx-dist-row:hover { background: var(--warm); }
.hx-dist-row.is-on { background: color-mix(in srgb, var(--c) 9%, #fff); }
.hx-dist-row strong { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.hx-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hx-bar i { display: block; height: 100%; border-radius: 3px; background: var(--c); }

.hx-places { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hx-place { display: flex; flex-direction: column; gap: 8px; min-height: 190px; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--r-card); background: var(--warm); font-size: .96rem; line-height: 1.5; color: var(--muted); transition: transform .45s var(--ease); }
.hx-place strong { margin-top: auto; color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hx-place-kind { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 62%, #000); }
.hx-place.is-ink { background: var(--ink); color: rgba(255, 255, 255, .64); }
.hx-place.is-ink strong { color: #fff; }
.hx-place.is-ink .hx-place-kind { color: rgba(255, 255, 255, .5); }
.hx-place[hidden] { display: none; }
.hx-place.is-wide { grid-column: span 2; }
.hx-place.is-full { grid-column: 1 / -1; min-height: 170px; }

.hx-homes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hx-home { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--muted); font-size: .92rem; }
.hx-home strong { color: var(--ink); font-size: 1.1rem; font-weight: 750; letter-spacing: -.02em; }
.hx-home-price { margin-top: 6px; color: var(--ink); font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
.hx-home-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--warm); }
.hx-home-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
@media (hover: hover) { .hx-home:hover .hx-home-img img { transform: scale(1.04); } }
.hx-empty-tile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r-card); background: var(--warm); }
.hx-empty-tile p { margin: 0; max-width: 58ch; font-size: 1.06rem; line-height: 1.6; color: rgba(17, 17, 17, .72); }

.hx-posts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hx-posts a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--r-card); border: 1px solid var(--line-strong); text-decoration: none; color: var(--muted); font-size: .94rem; line-height: 1.5; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.hx-posts strong { color: var(--ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.hx-posts .hx-go { margin-top: auto; }
@media (hover: hover) { .hx-posts a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17, 17, 17, .08); } .hx-posts a:hover .hx-go svg { transform: translateX(3px); } }

.hx-next { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hx-next a { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-card); background: var(--warm); overflow: hidden; text-decoration: none; color: inherit; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
@media (hover: hover) { .hx-next a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17, 17, 17, .1); } }
.hx-next a:active { transform: scale(.985); transition-duration: .08s; }
.hx-next-art { display: block; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--c) 7%, var(--warm)); }
.hx-next-art svg { width: 100%; height: 100%; display: block; }
.hx-next-text { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 20px; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.hx-next-text strong { color: var(--ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -.035em; }
.hx-next-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 0 0; font-size: .95rem; font-weight: 600; color: var(--muted); }
.hx-next-more > span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }

.hx-faq { border-top: 1px solid var(--line); }
.hx-faq details { border-bottom: 1px solid var(--line); }
.hx-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(1.06rem, 1.3vw, 1.22rem); font-weight: 700; letter-spacing: -.02em; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--warm); font-size: 1.25rem; font-weight: 500; transition: transform .35s var(--ease), background-color .2s ease; }
.hx-faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
.hx-faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.hx-faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { .hx-faq { interpolate-size: allow-keywords; } }
.hx-faq p { margin: 0 0 22px; max-width: 64ch; font-size: 1.02rem; line-height: 1.65; color: rgba(17, 17, 17, .72); }
.hx-faq a { color: var(--ink); font-weight: 650; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .hx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-next { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hx-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 44px; }
  .dk-stage { --cw: min(72vw, 400px); }
  .hx-art { max-width: 640px; }
  .hx-place.is-wide, .hx-place.is-full { grid-column: auto; }
  .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-split { grid-template-columns: 1fr; gap: 18px; }
  /* the map's panel steps out under it */
  .hx-map-wrap { height: clamp(520px, 72vh, 760px); }
  .hx-panel { position: static; width: auto; max-height: none; margin-top: 12px; padding: 24px; border-radius: var(--r-card); background: var(--warm); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hx-panel .hx-sides button, .hx-panel .hx-rank li, .hx-panel .hx-ride-legs li { background: #fff; }
}
@media (max-width: 880px) {
  .hx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-places, .hx-homes, .hx-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hx-hero { padding-top: 16px; }
  .hx-h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hx-hero-grid { gap: 36px; }
  .hx-sec-head { margin-bottom: 24px; }
  .hx-map-wrap { height: 74svh; min-height: 480px; border-radius: 26px; }
  .hx-stage-guide .hx-map-wrap { height: 56svh; min-height: 380px; }
  .hx-top { top: 12px; left: 12px; width: calc(100% - 24px); }
  .hx-search { height: 46px; }
  .hx-modes { width: 100%; }
  .hx-mode { flex: 1 1 auto; height: 34px; padding: 0 6px; font-size: 13px; }
  .hx-layers { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .hx-layer { flex: 1 1 auto; padding: 0 6px; font-size: 13px; }
  .hx-stage-guide .hx-layers { right: auto; }
  .hx-legend { left: 12px; bottom: 64px; max-width: calc(100% - 24px); padding: 10px 12px; }
  .hx-caption { top: 118px; left: 12px; right: 12px; transform: none; justify-content: center; white-space: normal; text-align: center; }
  .hx-sheet { left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 64%; border-radius: 26px; transform-origin: bottom center; }
  .hx-cards { grid-template-columns: 1fr; }
  .hx-card.is-feature { grid-column: auto; grid-row: auto; }
  .hx-stats { gap: 10px; }
  .hx-tile { min-height: 150px; padding: 20px; }
  .hx-tile-num { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hx-line-big { font-size: 1.1rem; }
  .hx-toc { top: 80px; }
  .hx-places, .hx-homes, .hx-posts { grid-template-columns: 1fr; }
  .hx-place { min-height: 150px; }
  .hx-dist-row { grid-template-columns: minmax(0, 1fr) 64px 60px; gap: 10px; font-size: .95rem; }
  .hx-band .asg-btn { width: 100%; }
  .hx-tip { display: none; }
  .hx-az { columns: 1; }
}

/* ── Accessibility preferences ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hx-rise, .hx-pane.is-on, .hx-sheet.is-in { animation: none; }
  .hx *, .hx *::before, .hx *::after { transition-duration: 0ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .hx-glass, .hx-toc, .hx-art figcaption { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .hx { --muted: rgba(17, 17, 17, .85); --muted-soft: rgba(17, 17, 17, .75); --line: rgba(17, 17, 17, .4); }
  .hx-glass { background: #fff; box-shadow: inset 0 0 0 1.5px #111; }
  .dk-card { box-shadow: 0 0 0 1px var(--line-strong); }
}

/* ── Photos (lib/neighborhoods/photos.ts) ──────────────────────────── */
/* The guide hero: the neighborhood itself, edge to edge in a rounded slab,
   the name in white over a soft fall-off at the bottom. */
.hx-photo-hero { max-width: calc(var(--asg-max, 1480px) + 2 * var(--asg-pad-x, 20px)); margin: 0 auto; padding: 12px var(--asg-pad-x, 20px) 0; }
.hx-photo { position: relative; height: clamp(560px, calc(100svh - var(--nav) - 40px), 880px); border-radius: var(--r-shell); overflow: hidden; background: #d9d6cf; isolation: isolate; }
.hx .hx-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform-origin: 60% 40%; animation: hxDrift 22s cubic-bezier(.25, .1, .25, 1) both; }
@keyframes hxDrift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hx-photo-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .26) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .58) 82%, rgba(0, 0, 0, .7) 100%); }
.hx-photo-copy { position: absolute; z-index: 2; left: clamp(24px, 4vw, 60px); right: clamp(280px, 24vw, 340px); bottom: clamp(26px, 4vw, 60px); color: #fff; }
.hx-photo .hx-h1 { color: #fff; font-size: clamp(3.4rem, 8vw, 8.2rem); line-height: .9; text-shadow: 0 2px 40px rgba(0, 0, 0, .22); }
.hx-photo .hx-lead { margin-top: 18px; color: rgba(255, 255, 255, .9); font-size: clamp(1.1rem, 1.5vw, 1.38rem); text-shadow: 0 1px 16px rgba(0, 0, 0, .3); }
.hx-photo .hx-crumbs { color: rgba(255, 255, 255, .72); }
.hx-photo .hx-crumbs span:last-child { color: #fff; }
.hx-photo .hx-crumbs a:hover { color: #fff; }
.hx-photo .asg-btn-dark { background: #fff; color: var(--ink); border-color: #fff; }
.hx-photo .asg-btn-glass { color: #fff; }
.hx-photo-map { position: absolute; z-index: 2; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); width: clamp(190px, 16vw, 240px); border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 18px 44px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .9); transition: transform .45s var(--ease); }
.hx-photo-map:active { transform: scale(.97); transition-duration: .08s; }
@media (hover: hover) { .hx-photo-map:hover { transform: translateY(-3px); } }
.hx-photo-map svg { display: block; width: 100%; height: auto; background: color-mix(in srgb, var(--c) 7%, #f7f6f2); }
.hx-photo-map > span { display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; font-size: .82rem; font-weight: 700; }
.hx-photo-credit { position: absolute; z-index: 2; top: 16px; right: 20px; margin: 0; max-width: 60%; text-align: right; font-size: .72rem; line-height: 1.4; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.hx-photo-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 2px; }

/* Card art as a photo, with the outline in a corner. */
.hx .has-photo { position: relative; overflow: hidden; background: #d9d6cf; }
.hx .has-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .hx-card:hover .has-photo > img, .hx-next a:hover .has-photo > img { transform: scale(1.045); } }
.hx-badge { position: absolute; right: 12px; bottom: 12px; width: 62px; height: 62px; padding: 5px; border-radius: 18px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.hx-badge svg { display: block; width: 100%; height: 100%; }
.dk-art.has-photo .hx-badge { width: 72px; height: 72px; right: 14px; bottom: 14px; }
.hx-card.is-feature .has-photo .hx-badge { width: 84px; height: 84px; }
.hx-next .hx-badge { width: 46px; height: 46px; border-radius: 13px; right: 10px; bottom: 10px; }

/* Around the neighborhood: the other photos, credited. */
.hx-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: clamp(40px, 5vw, 72px); }
.hx-shot { margin: 0; }
.hx-shot-img { display: block; position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-card); overflow: hidden; background: #d9d6cf; }
.hx .hx-shot-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hx-gallery .hx-shot:only-child { grid-column: 1 / -1; }
.hx-gallery .hx-shot:only-child .hx-shot-img { aspect-ratio: 21 / 9; }
.hx-shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 4px 0; font-size: .8rem; color: var(--muted-soft); }
.hx-shot figcaption strong { color: var(--ink); font-size: .95rem; font-weight: 750; }
.hx-shot figcaption a { color: inherit; }
.hx-credits a { color: inherit; }

@media (max-width: 720px) {
  .hx-photo-hero { padding-top: 6px; }
  .hx-photo { height: 80svh; min-height: 520px; border-radius: 26px; }
  .hx-photo-copy { left: 20px; right: 20px; bottom: 22px; }
  .hx-photo .hx-h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hx-photo .hx-ctas .asg-btn { flex: 1 1 auto; justify-content: center; }
  .hx-photo-map { display: none; }
  .hx-photo-credit { top: 12px; right: 14px; max-width: 80%; }
  .hx-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hx .hx-photo-img { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .hx-photo-map, .hx-badge { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
