/*
  Coastal SD Pros local guides — v4 consumer-marketplace system, 2026-08-10.

  Ported from the owner-approved comp
  design-previews/marketplace-craft-2026-08-10/listing-oceanside.html
  (approval of record in PORT-SPEC-v4-2026-08-10.md). One file owns this
  page type. White page, Inter-only weight hierarchy (the serif face is the
  wordmark and nothing else), coral primary action, amber star rows, sticky
  filter-chips row, Yelp-anatomy result cards, list + live-Google-map split,
  light about band.

  The progressive filter engine is unchanged underneath: radios filtered by
  :has() rules, sorting by CSS `order` reading the generator's per-row ranks,
  the no-JS foot count by a CSS counter. Those selectors are copied from the
  2026-08-06 system verbatim — same input ids, same facet bands.
*/

@font-face {
  font-family: "CSDP Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "CSDP Newsreader";
  src: url("/assets/fonts/newsreader-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --pd-ink: #1a2733;
  --pd-ink-strong: #10202e;
  --pd-navy: #0c2033;
  --pd-white: #ffffff;
  --pd-soft: #f7f7f5;
  --pd-line: #e8eaec;
  --pd-line-strong: #d3d8dc;
  --pd-muted: #5d6772;
  --pd-faint: #8a939c;
  --pd-coral: #d95745;
  --pd-coral-dark: #c24736;
  --pd-teal: #147d80;
  --pd-teal-dark: #0d6265;
  --pd-amber: #f2a33c;
  --pd-focus: #4fc3c0;
  --pd-shell: 1220px;
  --pd-chipbar: 64px;
  --pd-sh-card: 0 1px 2px rgba(16, 32, 46, .06), 0 4px 12px rgba(16, 32, 46, .06);
  --pd-sh-float: 0 3px 10px rgba(16, 32, 46, .1), 0 14px 36px rgba(16, 32, 46, .14);
  --pd-sh-pill: 0 2px 8px rgba(16, 32, 46, .12), 0 8px 28px rgba(16, 32, 46, .1);
  --pd-font: "CSDP Inter", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pd-display: "CSDP Newsreader", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--pd-ink);
  background: var(--pd-white);
  font-family: var(--pd-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(20, 125, 128, .16);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
label,
select,
summary,
a {
  touch-action: manipulation;
}

a {
  color: var(--pd-teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pd-coral-dark);
}

:focus-visible {
  outline: 2px solid var(--pd-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.num {
  font-variant-numeric: tabular-nums;
}

.tc-sr,
.sr-rail__switch {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[data-tc-js-only] {
  display: none;
}

html.js [data-tc-js-only] {
  display: inline;
}

html.js .tc-nojs {
  display: none !important;
}

.pd-shell {
  width: min(calc(100% - 64px), var(--pd-shell));
  margin-inline: auto;
}

.dir-skip {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--pd-white);
  background: var(--pd-ink-strong);
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-150%);
}

.dir-skip:focus {
  transform: translateY(0);
}

/* ============ header ============ */

.pd-header {
  position: relative;
  z-index: 40;
  background: var(--pd-white);
  border-bottom: 1px solid var(--pd-line);
}

.pd-header__inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dir-brand {
  flex: 0 0 auto;
  color: var(--pd-ink-strong);
  font-family: var(--pd-display);
  font-size: 21.5px;
  font-weight: 640;
  letter-spacing: -.012em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.dir-brand:hover {
  color: var(--pd-ink-strong);
}

.csdp-brand__accent {
  color: var(--pd-coral);
}

.dir-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dir-nav a {
  padding: 9px 14px;
  color: var(--pd-ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease-out;
}

.dir-nav a:hover {
  color: var(--pd-ink);
  background: var(--pd-soft);
}

.dir-nav .dir-nav__business {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding-inline: 16px;
  border: 1px solid var(--pd-line-strong);
  font-weight: 640;
  transition: box-shadow 140ms ease-out, border-color 140ms ease-out;
}

.dir-nav .dir-nav__business:hover {
  background: var(--pd-white);
  border-color: var(--pd-ink);
  box-shadow: var(--pd-sh-card);
}

/* ============ search band ============ */

.pd-hero {
  background: var(--pd-white);
}

.pd-band {
  position: relative;
  overflow: hidden;
  background: var(--pd-navy);
}

.pd-hero__visual {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: cover;
  opacity: .8;
}

.pd-trade-plumbing .pd-hero__visual {
  background-image: url("/assets/hero-trades/plumbing.webp");
}

.pd-trade-electrical .pd-hero__visual {
  background-image: url("/assets/hero-trades/electrical.webp");
}

.pd-trade-hvac .pd-hero__visual {
  background-image: url("/assets/hero-trades/hvac.webp");
}

.pd-trade-roofing .pd-hero__visual {
  background-image: url("/assets/hero-trades/roofing.webp");
}

.pd-hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 32, 51, .66) 0%, rgba(12, 32, 51, .5) 55%, rgba(12, 32, 51, .62) 100%);
}

.pd-band__in {
  position: relative;
  padding: 40px 0 66px;
  color: var(--pd-white);
  text-align: center;
}

.pd-band__in h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -.022em;
  line-height: 1.15;
  text-wrap: balance;
}

.pd-band__sub {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15.5px;
}

.pd-band__sub b {
  color: var(--pd-white);
  font-weight: 640;
}

/* Airbnb-style segmented pill */

.pd-pill {
  position: relative;
  /* above the sticky chips bar (z 30) so an open select listbox never slides
     underneath it */
  z-index: 35;
  display: flex;
  align-items: center;
  max-width: 660px;
  margin: -32px auto 0;
  padding: 8px 8px 8px 10px;
  background: var(--pd-white);
  border: 1px solid var(--pd-line);
  border-radius: 999px;
  box-shadow: var(--pd-sh-pill);
}

.pd-pill__seg {
  flex: 1 1 50%;
  min-width: 0;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 140ms ease-out;
}

.pd-pill__seg:hover {
  background: var(--pd-soft);
}

.pd-pill__seg + .pd-pill__seg {
  position: relative;
}

.pd-pill__seg + .pd-pill__seg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--pd-line);
}

.pd-pill__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--pd-ink-strong);
}

.pd-pill__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pd-pill__value select {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--pd-ink);
  background: transparent;
  border: 0;
  font-size: 14.5px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline-offset: 4px;
}

/* select-menu.js injects its own chevron button; hide the decorative caret
   so enhanced segments don't show two arrows */
.pd-pill__seg:has(.ui-select) .pd-pill__caret {
  display: none;
}

.pd-pill__caret {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--pd-faint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pd-pill__go {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  min-width: 48px;
  padding: 0 22px;
  margin-left: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--pd-coral);
  color: var(--pd-white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms ease-out, transform 120ms ease-out;
}

.pd-pill__go:hover {
  background: var(--pd-coral-dark);
  transform: scale(1.02);
}

.pd-pill__go:active {
  transform: scale(.98);
}

.pd-pill__ic {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* trust strip */

.pd-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  margin: 18px auto 0;
  padding: 0 20px 26px;
}

.pd-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pd-muted);
  font-size: 13px;
  font-weight: 560;
}

.pd-trust b {
  color: var(--pd-ink);
  font-weight: 700;
}

.pd-trust__ic {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--pd-teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ filter chips row (the rail, restyled) ============ */

.pd-filter-scrim {
  display: none;
}

.sr-rail__bar {
  display: none;
}

.sr-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sr-group--search {
  display: none;
}

.sr-rail {
  flex: 1 1 100%;
  position: sticky;
  top: 0;
  z-index: 30;
  min-width: 0;
  background: var(--pd-white);
  border-bottom: 1px solid var(--pd-line);
}

.sr-rail__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
}

.sr-drop {
  position: relative;
}

.sr-drop__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  background: var(--pd-white);
  border: 1px solid var(--pd-line-strong);
  border-radius: 999px;
  color: var(--pd-ink);
  font-size: 13.5px;
  font-weight: 620;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out, background-color 140ms ease-out;
}

.sr-drop__chip::-webkit-details-marker {
  display: none;
}

.sr-drop__chip:hover {
  border-color: var(--pd-ink);
  box-shadow: var(--pd-sh-card);
}

.sr-drop__ic,
.sr-drop__caret {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--pd-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-drop[open] > .sr-drop__chip .sr-drop__caret {
  transform: rotate(180deg);
}

/* a chip whose group holds a non-default choice renders filled */

.sr-drop:has(#sr-rating-47:checked) > .sr-drop__chip,
.sr-drop:has(#sr-rating-49:checked) > .sr-drop__chip,
.sr-drop:has(#sr-reviews-50:checked) > .sr-drop__chip,
.sr-drop:has(#sr-reviews-100:checked) > .sr-drop__chip,
.sr-drop:has(#sr-locality-north-county:checked) > .sr-drop__chip,
.sr-drop:has(#sr-locality-san-diego:checked) > .sr-drop__chip,
.sr-drop:has(#sr-sort-rating:checked) > .sr-drop__chip,
.sr-drop:has(#sr-sort-reviews:checked) > .sr-drop__chip,
.sr-drop:has(#sr-sort-name:checked) > .sr-drop__chip {
  background: var(--pd-ink-strong);
  border-color: var(--pd-ink-strong);
  color: var(--pd-white);
}

.sr-drop:has(#sr-rating-47:checked) > .sr-drop__chip svg,
.sr-drop:has(#sr-rating-49:checked) > .sr-drop__chip svg,
.sr-drop:has(#sr-reviews-50:checked) > .sr-drop__chip svg,
.sr-drop:has(#sr-reviews-100:checked) > .sr-drop__chip svg,
.sr-drop:has(#sr-locality-north-county:checked) > .sr-drop__chip svg,
.sr-drop:has(#sr-locality-san-diego:checked) > .sr-drop__chip svg,
.sr-drop:has(#sr-sort-rating:checked) > .sr-drop__chip svg,
.sr-drop:has(#sr-sort-reviews:checked) > .sr-drop__chip svg,
.sr-drop:has(#sr-sort-name:checked) > .sr-drop__chip svg {
  stroke: rgba(255, 255, 255, .8);
}

/* the option sheet each chip discloses */

.sr-drop > .sr-group {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 45;
  width: 300px;
  padding: 10px;
  background: var(--pd-white);
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  box-shadow: var(--pd-sh-float);
}

.sr-drop--sort > .sr-group {
  left: auto;
  right: 0;
}

.sr-drop .sr-group__legend {
  display: block;
  padding: 8px 8px 6px;
  color: var(--pd-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ed-appliedset,
.sr-applied,
.sr-list,
.bc__badges,
.sr-opts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-opts {
  display: grid;
  gap: 2px;
}

.sr-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 8px;
}

.sr-opt:hover,
.sr-opt:has(.sr-opt__input:checked) {
  background: var(--pd-soft);
}

.sr-opt__input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: none;
  accent-color: var(--pd-teal);
}

.sr-opt__label {
  flex: 1 1 auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  cursor: pointer;
}

.sr-opt:has(.sr-opt__input:checked) .sr-opt__label {
  font-weight: 700;
}

.sr-opt__count {
  color: var(--pd-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tc-hint {
  margin: 6px 8px 8px;
  color: var(--pd-muted);
  font-size: 12px;
}

.tc-control {
  min-width: 0;
}

.tc-label {
  display: block;
  margin-bottom: 6px;
  color: var(--pd-muted);
  font-size: 12px;
  font-weight: 700;
}

.tc-select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: var(--pd-white);
  border: 1px solid var(--pd-line-strong);
  border-radius: 8px;
}

.sr-rail__foot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tc-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 640;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease-out, background-color 140ms ease-out, box-shadow 140ms ease-out;
}

.tc-btn--primary {
  color: var(--pd-white);
  background: var(--pd-coral);
  border: 1px solid var(--pd-coral);
}

.tc-btn--primary:hover {
  background: var(--pd-coral-dark);
  border-color: var(--pd-coral-dark);
}

.tc-btn--quiet {
  color: var(--pd-ink);
  background: var(--pd-white);
  border: 1px solid var(--pd-line-strong);
}

.tc-btn--quiet:hover {
  color: var(--pd-ink);
  border-color: var(--pd-ink);
  box-shadow: var(--pd-sh-card);
}

.sr-rail__meta {
  margin-left: auto;
  color: var(--pd-muted);
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}

.sr-rail__nojs {
  flex: 1 1 100%;
  margin: 0 0 10px;
  color: var(--pd-muted);
  font-size: 12px;
}

/* ============ results split ============ */

.pd-results-shell {
  padding-bottom: 0;
}

.sr-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.sr-results {
  flex: 1 1 0;
  min-width: 0;
  padding: 22px 28px 60px 0;
}

.sr-results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.sr-results__headings h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -.016em;
  line-height: 1.2;
}

.sr-results__meta {
  margin: 3px 0 0;
  color: var(--pd-faint);
  font-size: 12.5px;
}

.sr-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--pd-muted);
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}

.sr-count__value {
  color: var(--pd-ink);
  font-weight: 700;
}

.sr-applied {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sr-applied:not(:has(.sr-applied__item)) {
  margin-top: 0;
}

.sr-applied__item {
  display: none;
}

.sr-layout:has(#sr-rating-47:checked) .sr-applied__item--rating-47,
.sr-layout:has(#sr-rating-49:checked) .sr-applied__item--rating-49,
.sr-layout:has(#sr-reviews-50:checked) .sr-applied__item--reviews-50,
.sr-layout:has(#sr-reviews-100:checked) .sr-applied__item--reviews-100,
.sr-layout:has(#sr-locality-north-county:checked) .sr-applied__item--locality-north-county,
.sr-layout:has(#sr-locality-san-diego:checked) .sr-applied__item--locality-san-diego,
.sr-layout:has(#sr-sort-rating:checked) .sr-applied__item--sort-rating,
.sr-layout:has(#sr-sort-reviews:checked) .sr-applied__item--sort-reviews,
.sr-layout:has(#sr-sort-name:checked) .sr-applied__item--sort-name {
  display: inline-flex;
}

.sr-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  color: var(--pd-teal-dark);
  background: rgba(20, 125, 128, .09);
  border: 1px solid rgba(20, 125, 128, .28);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 640;
  cursor: pointer;
}

.sr-chip__x {
  font-size: 15px;
  line-height: 1;
}

.tc-live {
  min-height: 0;
  margin: 0;
}

/* the advertising disclosure, rendered as the quiet line above the list */

.ed-sponsored {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 14px 0 0;
}

.ed-sponsored__head {
  display: contents;
}

.ed-sponsored__label {
  margin: 0;
  color: var(--pd-faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ed-sponsored__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--pd-faint);
  font-size: 12.5px;
}

.ed-sponsored__ic {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: var(--pd-teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ result cards ============ */

.sr-list {
  display: grid;
  counter-reset: sr-shown;
  margin-top: 6px;
  border-bottom: 1px solid var(--pd-line);
}

.sr-list > [data-sr-item] {
  counter-increment: sr-shown;
  scroll-margin-top: 84px;
}

.sr-list.is-collapsed > [data-sr-item]:nth-child(n + 9) {
  display: none;
}

.sr-layout:has(#sr-sort-rating:checked) .sr-list:not([data-sr-sorted]) > [data-sr-item] {
  order: var(--sr-k-rating, 0);
}

.sr-layout:has(#sr-sort-reviews:checked) .sr-list:not([data-sr-sorted]) > [data-sr-item] {
  order: var(--sr-k-reviews, 0);
}

.sr-layout:has(#sr-sort-name:checked) .sr-list:not([data-sr-sorted]) > [data-sr-item] {
  order: var(--sr-k-name, 0);
}

/* the published-order number is presentation for the published order only:
   any non-default sort hides it rather than showing a stale ranking */

.sr-layout:has(#sr-sort-rating:checked) .bc__idx,
.sr-layout:has(#sr-sort-reviews:checked) .bc__idx,
.sr-layout:has(#sr-sort-name:checked) .bc__idx {
  display: none;
}

.bc {
  min-width: 0;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 12px;
  border-top: 1px solid var(--pd-line);
  border-radius: 0;
  transition: background-color 140ms ease-out;
}

.bc:hover,
.bc:focus-within {
  background: var(--pd-soft);
}

.bc:target {
  background: var(--pd-soft);
  box-shadow: inset 3px 0 0 var(--pd-teal);
}

.bc__thumb {
  position: relative;
  width: 128px;
  height: 128px;
  overflow: hidden;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  background: linear-gradient(105deg, #dcedf3 0%, #dcedf3 14%, #eef1ec 14.5%, #eef1ec 100%);
}

.bc__roads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: #cfd6da;
}

/* The real OSM standard-layer tile (wave 2.1). Fetched at build time to
   /assets/map-thumbs/<cid>.png; nothing is drawn on it — the pin below is
   the overlay. object-fit keeps the 256px tile square in the 128/92px box. */
.bc__tile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The pin tip lands on --pin-x/--pin-y — the business's actual position
   inside its tile, written per-row by build-guide-pages.mjs and clamped so
   the pin never clips the rounded thumb edge. Schematic thumbs default to
   dead center, where the position claims nothing. */
.bc__pin {
  position: absolute;
  left: var(--pin-x, 50%);
  top: var(--pin-y, 50%);
  width: 22px;
  height: 22px;
  transform: translate(-50%, -90%) rotate(-45deg);
  border-radius: 50% 50% 50% 4px;
  background: var(--pd-coral);
  box-shadow: 0 2px 6px rgba(16, 32, 46, .3);
}

.bc__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--pd-white);
}

.bc__body {
  min-width: 0;
}

.bc__name {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.3;
  text-wrap: pretty;
}

.bc__name a {
  color: var(--pd-ink-strong);
  text-decoration: none;
}

.bc__name a:hover {
  color: var(--pd-ink-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bc__idx {
  color: var(--pd-faint);
  font-weight: 640;
}

.bc__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 6px 0 0;
  font-size: 14px;
}

.bc__stars {
  display: inline-flex;
  gap: 1px;
}

.bc__stars svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: var(--pd-amber);
}

.bc__rating-value {
  color: var(--pd-ink);
  font-weight: 700;
}

.bc__reviews {
  color: var(--pd-muted);
  font-weight: 560;
}

.bc__reviews:hover {
  color: var(--pd-teal-dark);
}

.bc__captured {
  color: var(--pd-faint);
  font-size: 12px;
}

.bc__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.bc__badges {
  display: contents;
}

.bc__badge,
.bc__locality {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4.5px 10px;
  border-radius: 7px;
  background: var(--pd-soft);
  color: var(--pd-muted);
  font-size: 12.5px;
  font-weight: 620;
}

.bc__scope::after {
  content: " · ";
  white-space: pre;
  color: var(--pd-line-strong);
}

.bc__record {
  margin-top: 12px;
}

.bc__record-toggle {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pd-muted);
  font-size: 12.5px;
  font-weight: 640;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.bc__record-toggle:hover {
  color: var(--pd-teal-dark);
}

.bc__record-toggle::-webkit-details-marker {
  display: none;
}

.bc__record-toggle::after {
  content: "+";
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.bc__record[open] .bc__record-toggle::after {
  content: "−";
}

.bc__record-toggle .bc__ic {
  display: none;
}

.bc__ic {
  width: 14.5px;
  height: 14.5px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bc__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 12px 0 0;
  padding: 14px 16px;
  background: var(--pd-soft);
  border-radius: 12px;
}

.bc__fact {
  min-width: 0;
  padding: 8px 14px 8px 0;
}

.bc__fact--wide {
  grid-column: 1 / -1;
}

.bc__term,
.bc__value,
.bc__blank {
  margin: 0;
}

.bc__term {
  color: var(--pd-muted);
  font-size: 11px;
  font-weight: 700;
}

.bc__value,
.bc__blank {
  margin-top: 3px;
  color: var(--pd-ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.bc__blank {
  color: var(--pd-muted);
}

.bc__inclusion,
.bc__evidence,
.bc__unknowns,
.bc__advisory {
  margin: 10px 0 0;
  color: var(--pd-muted);
  font-size: 12px;
  line-height: 1.55;
}

.bc__inclusion-term,
.bc__evidence-term,
.bc__unknowns-term {
  margin-right: 7px;
  color: var(--pd-ink);
  font-weight: 700;
}

.bc__photo img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.bc__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
}

.bc__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pd-ink);
  font-size: 14px;
  font-weight: 660;
  text-decoration: none;
  white-space: nowrap;
}

.bc__action--call {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--pd-line-strong);
  border-radius: 10px;
  background: var(--pd-white);
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out, transform 120ms ease-out;
}

.bc__action--call:hover {
  color: var(--pd-ink);
  border-color: var(--pd-ink);
  box-shadow: var(--pd-sh-card);
}

.bc__action--call:active {
  transform: scale(.98);
}

.bc__action--call .bc__ic {
  stroke: var(--pd-teal);
}

.bc__action--call .bc__action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.bc__action--call .bc__action-detail {
  white-space: nowrap;
}

.bc__action--profile,
.bc__action:not(.bc__action--call) {
  color: var(--pd-ink);
  font-weight: 640;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  padding: 0 6px;
  min-height: 40px;
}

.bc__action:not(.bc__action--call):hover {
  color: var(--pd-teal-dark);
}

.bc__action--profile .bc__ic {
  display: none;
}

.bc__action:not(.bc__action--call) .bc__ic {
  width: 13px;
  height: 13px;
  stroke: var(--pd-muted);
}

.bc__action:not(.bc__action--call) .bc__action-detail {
  display: none;
}

.bc__action--absent {
  color: var(--pd-faint);
  text-decoration: none;
  font-weight: 560;
}

.bc__action--call.bc__action--absent {
  border-style: dashed;
  border-color: var(--pd-line);
}

/* show more + list furniture */

.pd-show-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  min-height: 46px;
  margin: 26px auto 0;
  padding: 0 24px;
  color: var(--pd-ink);
  background: var(--pd-white);
  border: 1px solid var(--pd-line-strong);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 660;
  cursor: pointer;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}

.pd-show-all:hover {
  border-color: var(--pd-ink);
  box-shadow: var(--pd-sh-card);
}

.pd-show-all__ic {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pd-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 0;
  padding: 20px 22px;
  background: var(--pd-white);
  border: 1px solid var(--pd-line);
  border-radius: 16px;
  box-shadow: var(--pd-sh-card);
}

.pd-banner__ic {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(217, 87, 69, .1);
  color: var(--pd-coral);
}

.pd-banner__ic svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pd-banner__body {
  flex: 1;
  min-width: 0;
}

.pd-banner__body h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.pd-banner__body p {
  margin: 3px 0 0;
  color: var(--pd-muted);
  font-size: 13.5px;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 660;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease-out, transform 120ms ease-out;
}

.pd-btn--coral {
  flex: none;
  color: var(--pd-white);
  background: var(--pd-coral);
  box-shadow: 0 6px 16px -6px rgba(217, 87, 69, .55);
}

.pd-btn--coral:hover {
  background: var(--pd-coral-dark);
  transform: translateY(-1px);
}

.pd-btn--coral:active {
  transform: translateY(0) scale(.98);
}

.sr-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--pd-line);
}

.ed-pager__status {
  margin: 0;
  color: var(--pd-faint);
  font-size: 12.5px;
}

.sr-foot__count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html:not(.js) .sr-foot__count {
  font-size: 0;
}

html:not(.js) .sr-foot__count::after {
  content: counter(sr-shown);
  font-size: 12.5px;
}

.dg-tool-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px solid var(--pd-line);
  border-bottom: 1px solid var(--pd-line);
  font-size: 13px;
}

.dg-tool-strip > span {
  color: var(--pd-ink);
  font-weight: 700;
}

.dg-tool-strip a {
  color: var(--pd-ink);
  font-weight: 600;
  text-decoration-color: var(--pd-line-strong);
}

.dg-tool-strip a:hover {
  color: var(--pd-teal-dark);
}

.dg-disclosure {
  margin: 16px 0 0;
  color: var(--pd-faint);
  font-size: 12px;
  line-height: 1.6;
}

/* ODbL attribution for the card map thumbs — small, muted, one per page,
   next to the list disclosure. The link must stay readable, not decorative. */
.dg-osm-attrib {
  margin: 4px 0 0;
  color: var(--pd-faint);
  font-size: 11.5px;
  line-height: 1.6;
}

.dg-osm-attrib a {
  color: var(--pd-muted);
}

.dg-disclosure a {
  color: var(--pd-muted);
}

.ed-empty,
.dg-state {
  margin-top: 18px;
  padding: 24px 26px;
  background: var(--pd-soft);
  border: 1px solid var(--pd-line);
  border-radius: 16px;
}

.ed-empty__mark {
  display: none;
}

.ed-empty__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.012em;
}

.ed-empty__body {
  margin: 8px 0 0;
  color: var(--pd-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.ed-empty__actions {
  margin: 16px 0 0;
}

/* ============ CSS-first filtering (engine, unchanged) ============ */

.sr-layout:has(#sr-rating-47:checked) [data-sr-item][data-sr-rating-band="45"],
.sr-layout:has(#sr-rating-49:checked) [data-sr-item][data-sr-rating-band="45"],
.sr-layout:has(#sr-rating-49:checked) [data-sr-item][data-sr-rating-band="47"],
.sr-layout:has(#sr-reviews-50:checked) [data-sr-item][data-sr-review-band="15"],
.sr-layout:has(#sr-reviews-100:checked) [data-sr-item][data-sr-review-band="15"],
.sr-layout:has(#sr-reviews-100:checked) [data-sr-item][data-sr-review-band="50"],
.sr-layout:has(#sr-locality-north-county:checked) [data-sr-item][data-sr-locality="san-diego"],
.sr-layout:has(#sr-locality-san-diego:checked) [data-sr-item][data-sr-locality="north-county"] {
  display: none;
}

.sr-empty {
  margin-top: 24px;
}

.sr-layout:has(#sr-rating-45:checked):has(#sr-reviews-15:checked):has(#sr-locality-all:checked) .sr-results:has(.sr-list > [data-sr-item]) .sr-empty,
.sr-layout:has(#sr-rating-45:checked):has(#sr-reviews-15:checked):has(#sr-locality-north-county:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="north-county"]) .sr-empty,
.sr-layout:has(#sr-rating-45:checked):has(#sr-reviews-15:checked):has(#sr-locality-san-diego:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="san-diego"]) .sr-empty,
.sr-layout:has(#sr-rating-45:checked):has(#sr-reviews-50:checked):has(#sr-locality-all:checked) .sr-results:has(.sr-list > [data-sr-item]:is([data-sr-review-band="50"],[data-sr-review-band="100"])) .sr-empty,
.sr-layout:has(#sr-rating-45:checked):has(#sr-reviews-50:checked):has(#sr-locality-north-county:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="north-county"]:is([data-sr-review-band="50"],[data-sr-review-band="100"])) .sr-empty,
.sr-layout:has(#sr-rating-45:checked):has(#sr-reviews-50:checked):has(#sr-locality-san-diego:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="san-diego"]:is([data-sr-review-band="50"],[data-sr-review-band="100"])) .sr-empty,
.sr-layout:has(#sr-rating-45:checked):has(#sr-reviews-100:checked):has(#sr-locality-all:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-review-band="100"]) .sr-empty,
.sr-layout:has(#sr-rating-45:checked):has(#sr-reviews-100:checked):has(#sr-locality-north-county:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="north-county"][data-sr-review-band="100"]) .sr-empty,
.sr-layout:has(#sr-rating-45:checked):has(#sr-reviews-100:checked):has(#sr-locality-san-diego:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="san-diego"][data-sr-review-band="100"]) .sr-empty,
.sr-layout:has(#sr-rating-47:checked):has(#sr-reviews-15:checked):has(#sr-locality-all:checked) .sr-results:has(.sr-list > [data-sr-item]:is([data-sr-rating-band="47"],[data-sr-rating-band="49"])) .sr-empty,
.sr-layout:has(#sr-rating-47:checked):has(#sr-reviews-15:checked):has(#sr-locality-north-county:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="north-county"]:is([data-sr-rating-band="47"],[data-sr-rating-band="49"])) .sr-empty,
.sr-layout:has(#sr-rating-47:checked):has(#sr-reviews-15:checked):has(#sr-locality-san-diego:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="san-diego"]:is([data-sr-rating-band="47"],[data-sr-rating-band="49"])) .sr-empty,
.sr-layout:has(#sr-rating-47:checked):has(#sr-reviews-50:checked):has(#sr-locality-all:checked) .sr-results:has(.sr-list > [data-sr-item]:is([data-sr-rating-band="47"],[data-sr-rating-band="49"]):is([data-sr-review-band="50"],[data-sr-review-band="100"])) .sr-empty,
.sr-layout:has(#sr-rating-47:checked):has(#sr-reviews-50:checked):has(#sr-locality-north-county:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="north-county"]:is([data-sr-rating-band="47"],[data-sr-rating-band="49"]):is([data-sr-review-band="50"],[data-sr-review-band="100"])) .sr-empty,
.sr-layout:has(#sr-rating-47:checked):has(#sr-reviews-50:checked):has(#sr-locality-san-diego:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="san-diego"]:is([data-sr-rating-band="47"],[data-sr-rating-band="49"]):is([data-sr-review-band="50"],[data-sr-review-band="100"])) .sr-empty,
.sr-layout:has(#sr-rating-47:checked):has(#sr-reviews-100:checked):has(#sr-locality-all:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-review-band="100"]:is([data-sr-rating-band="47"],[data-sr-rating-band="49"])) .sr-empty,
.sr-layout:has(#sr-rating-47:checked):has(#sr-reviews-100:checked):has(#sr-locality-north-county:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="north-county"][data-sr-review-band="100"]:is([data-sr-rating-band="47"],[data-sr-rating-band="49"])) .sr-empty,
.sr-layout:has(#sr-rating-47:checked):has(#sr-reviews-100:checked):has(#sr-locality-san-diego:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="san-diego"][data-sr-review-band="100"]:is([data-sr-rating-band="47"],[data-sr-rating-band="49"])) .sr-empty,
.sr-layout:has(#sr-rating-49:checked):has(#sr-reviews-15:checked):has(#sr-locality-all:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-rating-band="49"]) .sr-empty,
.sr-layout:has(#sr-rating-49:checked):has(#sr-reviews-15:checked):has(#sr-locality-north-county:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="north-county"][data-sr-rating-band="49"]) .sr-empty,
.sr-layout:has(#sr-rating-49:checked):has(#sr-reviews-15:checked):has(#sr-locality-san-diego:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="san-diego"][data-sr-rating-band="49"]) .sr-empty,
.sr-layout:has(#sr-rating-49:checked):has(#sr-reviews-50:checked):has(#sr-locality-all:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-rating-band="49"]:is([data-sr-review-band="50"],[data-sr-review-band="100"])) .sr-empty,
.sr-layout:has(#sr-rating-49:checked):has(#sr-reviews-50:checked):has(#sr-locality-north-county:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="north-county"][data-sr-rating-band="49"]:is([data-sr-review-band="50"],[data-sr-review-band="100"])) .sr-empty,
.sr-layout:has(#sr-rating-49:checked):has(#sr-reviews-50:checked):has(#sr-locality-san-diego:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="san-diego"][data-sr-rating-band="49"]:is([data-sr-review-band="50"],[data-sr-review-band="100"])) .sr-empty,
.sr-layout:has(#sr-rating-49:checked):has(#sr-reviews-100:checked):has(#sr-locality-all:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-rating-band="49"][data-sr-review-band="100"]) .sr-empty,
.sr-layout:has(#sr-rating-49:checked):has(#sr-reviews-100:checked):has(#sr-locality-north-county:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="north-county"][data-sr-rating-band="49"][data-sr-review-band="100"]) .sr-empty,
.sr-layout:has(#sr-rating-49:checked):has(#sr-reviews-100:checked):has(#sr-locality-san-diego:checked) .sr-results:has(.sr-list > [data-sr-item][data-sr-locality="san-diego"][data-sr-rating-band="49"][data-sr-review-band="100"]) .sr-empty {
  display: none;
}

/* ============ map panel ============ */

.sr-map {
  flex: 0 0 min(42%, 512px);
  position: sticky;
  top: var(--pd-chipbar);
  align-self: flex-start;
  height: calc(100dvh - var(--pd-chipbar));
  min-height: 480px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.dg-map-mobilebar {
  display: none;
}

.cm {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(100deg, #cfe6ef 0%, #cfe6ef 12%, #edf0ea 12.6%, #edf0ea 100%);
}

.cm__frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: block;
  border: 0;
}

.cm__note {
  position: absolute;
  left: 50%;
  top: 14px;
  z-index: 2;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 14px;
  transform: translateX(-50%);
  background: var(--pd-white);
  border-radius: 999px;
  box-shadow: var(--pd-sh-card);
  color: var(--pd-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.cm__open {
  position: absolute;
  right: 12px;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  background: var(--pd-white);
  border-radius: 999px;
  box-shadow: var(--pd-sh-card);
  color: var(--pd-ink);
  font-size: 13px;
  font-weight: 640;
  text-decoration: none;
}

.cm__open:hover {
  color: var(--pd-teal-dark);
  box-shadow: var(--pd-sh-float);
}

/* ============ about band ============ */

.pd-method {
  background: var(--pd-soft);
  border-top: 1px solid var(--pd-line);
}

.pd-method__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 90px);
  padding-block: 52px;
}

.pd-kicker {
  margin: 0 0 10px;
  color: var(--pd-teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dg-answer__primary h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.016em;
  line-height: 1.25;
}

.dg-answer__primary > p:last-child {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--pd-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.dg-answer__facts-title {
  margin: 0 0 14px;
  font-size: 14.5px;
  font-weight: 700;
}

.dg-answer__facts {
  display: grid;
  gap: 16px;
  margin: 0;
}

.dg-answer__facts dt {
  color: var(--pd-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.dg-answer__facts dd {
  margin: 3px 0 0;
  color: var(--pd-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.dg-answer__cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
  padding-top: 26px;
  border-top: 1px solid var(--pd-line);
}

.dg-answer__cta p {
  margin: 0;
  color: var(--pd-ink);
  font-size: 14.5px;
  font-weight: 600;
}

.dg-answer__cta .pd-btn--coral {
  margin-left: auto;
}

.dg-answer__plain {
  color: var(--pd-ink);
  font-size: 13.5px;
  font-weight: 640;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dg-answer__plain:hover {
  color: var(--pd-teal-dark);
}

/* ============ related-pages panel (per-hub curated links) ============ */

.dg-related {
  display: block;
  margin: 34px auto;
  padding: 18px 20px;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  background: var(--pd-white);
  box-shadow: var(--pd-sh-card);
}

.dg-related__label {
  display: block;
  margin: 0 0 10px;
  color: var(--pd-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dg-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dg-related__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--pd-line-strong);
  border-radius: 999px;
  color: var(--pd-ink);
  font-size: 13.5px;
  font-weight: 620;
  text-decoration: none;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}

.dg-related__links a:hover {
  color: var(--pd-ink);
  border-color: var(--pd-ink);
  box-shadow: var(--pd-sh-card);
}

/* ============ footer ============ */

.pd-footer {
  background: var(--pd-white);
  border-top: 1px solid var(--pd-line);
}

.dir-footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}

.dir-footer__left {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
}

.dir-brand--footer {
  color: var(--pd-ink-strong);
  font-size: 17px;
}

.dir-brand--footer:hover {
  color: var(--pd-ink-strong);
}

.dir-footer__tag {
  color: var(--pd-faint);
  font-size: 12.5px;
}

.pd-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.pd-footer nav a {
  color: var(--pd-muted);
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
}

.pd-footer nav a:hover {
  color: var(--pd-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ mobile furniture ============ */

.pd-float-map,
.pd-sticky-cta {
  display: none;
}

/* ============ tablet: list only + floating map pill ============ */

@media (max-width: 1080px) {
  .sr-results {
    /* flex-basis 0 never forces a wrap: with the map column hidden below
       1080px the results section lands on the rail's flex line at width 0.
       A 100% basis puts it on its own full-width line. */
    flex: 1 1 100%;
    padding-right: 0;
  }

  .sr-map {
    position: fixed;
    z-index: 150;
    inset: 0;
    flex: none;
    top: 0;
    height: auto;
    min-height: 0;
    display: none;
    background: var(--pd-white);
  }

  .sr-map:target,
  .sr-map.is-dialog-open {
    display: flex;
  }

  body.sr-map-open {
    overflow: hidden;
  }

  .dg-map-mobilebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px calc(14px + 0px);
    color: var(--pd-white);
    background: var(--pd-navy);
  }

  .dg-map-mobilebar strong {
    font-size: 14.5px;
    font-weight: 700;
  }

  .dg-map-mobilebar a {
    color: var(--pd-white);
    font-weight: 640;
    font-size: 13.5px;
  }

  .cm {
    flex: 1 1 auto;
  }

  .cm__open {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .pd-float-map {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 120;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--pd-ink-strong);
    color: var(--pd-white);
    font-size: 14.5px;
    font-weight: 660;
    line-height: 1;
    text-decoration: none;
    box-shadow: var(--pd-sh-float);
  }

  .pd-float-map:hover {
    color: var(--pd-white);
  }

  .pd-float-map__ic {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.sr-map-open .pd-float-map {
    display: none;
  }
}

/* ============ mobile ============ */

@media (max-width: 720px) {
  .pd-shell {
    width: calc(100% - 36px);
  }

  .pd-header__inner {
    min-height: 58px;
  }

  .dir-nav a {
    display: none;
  }

  .dir-nav .dir-nav__business {
    display: inline-flex;
    min-height: 44px;
    margin-left: 0;
  }

  .pd-band__in {
    padding: 30px 0 58px;
  }

  .pd-band__in h1 {
    font-size: 25px;
  }

  .pd-band__sub {
    font-size: 14px;
  }

  .pd-pill {
    flex-wrap: wrap;
    max-width: none;
    margin: -30px 18px 0;
    padding: 8px;
    border-radius: 18px;
  }

  .pd-pill__seg {
    flex: 1 1 100%;
    padding: 9px 14px;
    border-radius: 12px;
  }

  .pd-pill__seg + .pd-pill__seg::before {
    left: 14px;
    right: 14px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .pd-pill__go {
    width: 100%;
    height: 46px;
    margin: 8px 0 0;
  }

  .pd-trust {
    gap: 6px 14px;
    margin-top: 14px;
  }

  .pd-trust span {
    font-size: 12px;
  }

  /* chips row scrolls horizontally; option sheets become bottom sheets */

  .sr-rail__body {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 11px 0;
  }

  .sr-rail__body::-webkit-scrollbar {
    display: none;
  }

  .sr-drop {
    position: static;
    flex: none;
  }

  .sr-drop__chip {
    height: 44px;
  }

  .tc-btn {
    min-height: 44px;
  }

  .sr-rail__foot {
    flex: none;
  }

  .sr-rail__meta,
  .sr-rail__nojs {
    display: none;
  }

  .sr-drop > .sr-group {
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 160;
    width: auto;
    max-height: 62dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 16px;
    box-shadow: 0 -6px 20px rgba(16, 32, 46, .16), var(--pd-sh-float);
  }

  .sr-opt {
    min-height: 44px;
  }

  .sr-results {
    padding: 14px 0 84px;
  }

  .sr-results__head {
    align-items: start;
  }

  .sr-count {
    white-space: normal;
    text-align: right;
  }

  .bc {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 2px;
  }

  .bc__thumb {
    width: 92px;
    height: 92px;
  }

  .bc__name {
    font-size: 16px;
  }

  .bc__acts {
    margin-top: 12px;
  }

  .bc__action--call {
    flex: 1 1 auto;
    height: 44px;
    justify-content: center;
  }

  .bc__action:not(.bc__action--call) {
    min-height: 44px;
  }

  .bc__facts {
    grid-template-columns: 1fr;
  }

  .bc__fact--wide {
    grid-column: auto;
  }

  .pd-banner {
    flex-wrap: wrap;
    padding: 18px;
  }

  .pd-banner .pd-btn--coral {
    width: 100%;
  }

  .pd-btn {
    min-height: 48px;
  }

  .sr-foot {
    display: grid;
    gap: 6px;
  }

  .dg-tool-strip {
    align-items: flex-start;
  }

  .dg-tool-strip > span {
    flex-basis: 100%;
  }

  .pd-method__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 40px;
  }

  .dg-answer__cta .pd-btn--coral {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .dir-footer__grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .dir-footer__left {
    flex-direction: column;
    gap: 6px;
  }

  .pd-footer nav {
    justify-content: flex-start;
  }

  .pd-float-map {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .pd-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    display: flex;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--pd-white);
    border-top: 1px solid var(--pd-line);
  }

  .pd-sticky-cta .pd-btn--coral {
    width: 100%;
    min-height: 48px;
  }

  body.sr-map-open .pd-sticky-cta {
    display: none;
  }
}

@media (max-width: 420px) {
  .pd-shell {
    width: calc(100% - 28px);
  }

  .pd-pill {
    margin-inline: 14px;
  }

  .bc__acts {
    align-items: stretch;
    flex-direction: column;
  }

  .bc__action--call {
    width: 100%;
  }
}

/* ============ reduced motion + print ============ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .pd-header,
  .pd-pill,
  .pd-trust,
  .sr-rail,
  .pd-filter-scrim,
  .sr-map,
  .pd-show-all,
  .pd-banner,
  .pd-float-map,
  .pd-sticky-cta,
  .dg-answer__cta,
  .pd-footer {
    display: none !important;
  }

  .pd-band {
    background: #fff;
  }

  .pd-hero__visual,
  .pd-hero__wash {
    display: none;
  }

  .pd-band__in {
    padding: 24px 0;
    color: #000;
    text-align: left;
  }

  .pd-band__sub,
  .pd-band__sub b {
    color: #000;
  }

  .sr-list.is-collapsed > [data-sr-item]:nth-child(n + 9) {
    display: grid;
  }

  .bc {
    break-inside: avoid;
  }
}

/* ===========================================================================
   AIRBNB CARD LAYER — owner-directed 2026-08-20 ("use airbnb").
   The results list flips from flat hairline rows to floating media cards:
   the real OSM tile becomes the card visual, flush against the card's left
   edge (top edge on mobile); cards separate with whitespace, sit on a
   1px line + whisper shadow, and lift on hover (interaction-only motion,
   reduced-motion guarded). Every filter/sort/audit contract is untouched —
   this layer restyles the same markup and deliberately sits at the end of
   the file so it wins every earlier equal-specificity rule, including the
   720px inline-thumb block above.
   ======================================================================== */

.sr-list {
  border-bottom: 0;
  row-gap: 16px;
  margin-top: 12px;
}

.bc {
  grid-template-columns: clamp(168px, 30%, 212px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border: 1px solid var(--pd-line);
  border-top: 1px solid var(--pd-line);
  border-radius: 16px;
  background: var(--pd-white);
  overflow: clip;
  box-shadow: 0 1px 2px rgba(16, 32, 46, .05);
  transition: box-shadow 180ms ease-out, transform 180ms ease-out, border-color 180ms ease-out;
}

.bc:hover,
.bc:focus-within {
  background: var(--pd-white);
  border-color: var(--pd-line-strong);
  box-shadow: 0 3px 10px rgba(16, 32, 46, .09), 0 14px 36px rgba(16, 32, 46, .12);
  transform: translateY(-2px);
}

.bc:target {
  background: var(--pd-white);
  box-shadow: inset 3px 0 0 var(--pd-teal), 0 1px 2px rgba(16, 32, 46, .05);
}

.bc__thumb {
  width: 100%;
  height: 100%;
  min-height: 208px;
  border: 0;
  border-right: 1px solid var(--pd-line);
  border-radius: 0;
}

.bc__body {
  padding: 18px 20px 16px;
}

.bc__name {
  font-size: 17px;
  letter-spacing: -.012em;
}

.bc__acts {
  margin-top: 14px;
}

.bc__action--call {
  border-radius: 12px;
}

@media (max-width: 720px) {
  .bc {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .bc__thumb {
    width: 100%;
    height: 176px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--pd-line);
  }

  .bc__body {
    padding: 15px 16px 14px;
  }

  .sr-list {
    row-gap: 13px;
  }
}

@media (max-width: 420px) {
  /* Airbnb layer: the call pill spans the card, the quiet links share one
     row beneath it — not a full-width stack of underlines. */
  .bc__acts {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 22px;
  }

  .bc__action--call {
    flex: 1 1 100%;
    width: auto;
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc:hover,
  .bc:focus-within {
    transform: none;
  }
}

/* ===========================================================================
   REAL-PIN LAYER — owner-directed 2026-08-20 ("real Google Maps pins").
   The CSS rotated-square pin reads homemade next to the Google embeds on
   the same page. Replaced with the classic map-pin teardrop as a crisp
   inline SVG (Google-red body, dark core, hairline edge), tip landing
   exactly on the row's --pin-x/--pin-y coordinate, with a soft ground
   shadow. OSM tiles get a light saturation lift so the thumbs sit closer
   to the embed's palette; the schematic fallback softens to warm paper
   with white roads — still clearly not a real tile, by contract.
   ======================================================================== */

.bc__pin {
  width: 27px;
  height: 40px;
  transform: translate(-50%, -96%);
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cpath d='M12 .8C5.9.8 1 5.7 1 11.8c0 3.4 1.6 6.9 3.6 10 2.9 4.6 6.5 8.9 7.4 12.4.9-3.5 4.5-7.8 7.4-12.4 2-3.1 3.6-6.6 3.6-10C23 5.7 18.1.8 12 .8z' fill='%23EA4335'/%3E%3Cpath d='M12 .8C5.9.8 1 5.7 1 11.8c0 3.4 1.6 6.9 3.6 10 2.9 4.6 6.5 8.9 7.4 12.4.9-3.5 4.5-7.8 7.4-12.4 2-3.1 3.6-6.6 3.6-10C23 5.7 18.1.8 12 .8z' fill='none' stroke='%23A52714' stroke-opacity='.55' stroke-width='.9'/%3E%3Ccircle cx='12' cy='11.8' r='4.4' fill='%237B231C'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  box-shadow: none;
  filter: drop-shadow(0 3px 2.5px rgba(16, 32, 46, .34));
}

.bc__pin::after {
  display: none;
}

.bc__tile {
  filter: saturate(1.12) contrast(1.04);
}

.bc__thumb {
  background: linear-gradient(105deg, #d9ebf2 0%, #d9ebf2 14%, #efece4 14.5%, #efece4 100%);
}

.bc__roads {
  stroke: #ffffff;
}

/* Pin/crop alignment fix (owner screenshot 2026-08-20: edge-clipped pins on
   tall cards). The Airbnb card stretched the square OSM tile with
   object-fit: cover, so the pin's tile-fraction no longer matched the
   visible crop — pins drifted to the card edge. Setting object-position to
   the SAME pin fractions makes the geometry exact for any box aspect:
   with cover, an image point at fraction f aligned at position f% sits at
   exactly f% of the box — so the pin lands on its true map point and the
   business's location always stays in frame. */
.bc__tile {
  object-position: var(--pin-x, 50%) var(--pin-y, 50%);
}
