/* Kingdom Funerals — shared stylesheet
   Brand book sections 5–6, 13, 16. Single source of truth. */

:root {
  --paper: #F6F2EA;
  --ink: #1F1B16;
  --ink-soft: #5E544A;
  --rule: #D4C8B2;
  --heather: #5A4A6E;
  --measure: 640px;
  --measure-wide: 880px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px 24px 80px;
}
main.wide {
  max-width: var(--measure-wide);
}
h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}
h1 { font-weight: 600; font-size: 44px; line-height: 1.15; letter-spacing: -0.005em; }
h2 { font-size: 28px; line-height: 1.25; margin-top: 2.4em; margin-bottom: 0.6em; }
h3 { font-size: 22px; line-height: 1.3; margin-top: 1.8em; margin-bottom: 0.4em; }
h4 { font-size: 18px; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--heather); text-decoration-color: var(--heather); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.4em 0;
}

/* Masthead */
.masthead { text-align: center; margin-bottom: 48px; }
.masthead-rule {
  width: 100px;
  height: 1px;
  background: var(--heather);
  margin: 0 auto 24px;
  border: 0;
}
.masthead h1 { margin-bottom: 8px; }
.masthead-tagline {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}
.masthead a.wordmark { text-decoration: none; }
.masthead a.wordmark:hover h1 { color: var(--heather); }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--heather); }

/* Hero / lede */
.lede {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  line-height: 1.55;
  margin-bottom: 1.4em;
}

/* Byline — sits directly below H1 on long-form articles. E-E-A-T signal. */
.byline {
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 8px 0 24px 0;
}
.byline a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.byline a:hover {
  color: var(--heather);
  text-decoration-color: var(--heather);
}

/* Two-path block */
.paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
  margin: 40px 0;
}
.path h2 {
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 500;
}
.path p { margin: 0 0 16px; color: var(--ink); }
.path a.button {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 20px;
  text-decoration: none;
  background: transparent;
  transition: color 120ms, border-color 120ms;
}
.path a.button:hover { color: var(--heather); border-color: var(--heather); }

/* Tables */
table.kf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 17px;
}
table.kf-table th,
table.kf-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.kf-table th {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.price-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}
td.price-value, th.price-col { text-align: right; }

/* Directory cards */
.firm-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.firm-card:last-child { border-bottom: 0; }
.firm-card h3 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 500;
}
.firm-card .firm-meta {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 12px;
}
.firm-card dl.prices {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 14px;
  row-gap: 4px;
  margin: 8px 0 14px;
  font-size: 17px;
}
.firm-card dl.prices dt { color: var(--ink-soft); }
.firm-card dl.prices dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.firm-card .contact {
  font-size: 17px;
  margin: 0 0 6px;
}
.firm-card .contact a.tel {
  color: var(--heather);
  font-weight: 500;
  text-decoration: none;
}
.firm-card .contact a.tel:hover { text-decoration: underline; }
.firm-card .source {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}
.firm-card .stale-note {
  color: var(--ink-soft);
  font-size: 15px;
  font-style: italic;
  margin: 6px 0 0;
}
.firm-card .footnote {
  color: var(--ink-soft);
  font-size: 15px;
  font-style: italic;
  margin: 6px 0 0;
}
.firm-card .reviews {
  margin: 8px 0 4px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.firm-card .reviews .star {
  color: var(--heather);
  font-size: 18px;
}
.firm-card .reviews .review-theme {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 16px;
  font-style: italic;
}
.firm-card .reviews.firm-meta {
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Ownership badges — three classes per Jordan brand audit (2026-05-09).
   Visual restraint: small caps, 13px, paper or soft-tinted backgrounds.
   Sits above the firm name as a quiet ownership signal. */
.kf-badge {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.kf-badge-indie {
  background: var(--paper);
  color: var(--heather);
  border: 1px solid var(--rule);
}
.kf-badge-chain {
  background: #6E665C; /* slate-soft */
  color: var(--paper);
  border: 1px solid #6E665C;
}
.kf-badge-group {
  background: #E8E1D2; /* heather-soft tint on paper */
  color: var(--ink);
  border: 1px solid var(--rule);
}

/* Co-op stale-data note — sits under the price block on Co-op cards
   whose prices are dated 25 April 2024. Quiet, italic, no alarm. */
.firm-card .kf-stale-note {
  margin: 4px 0 8px;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
}

/* Town section heading inside directory */
.town-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  margin: 36px 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 15px;
}

/* Hero on homepage — two paths, big buttons, calm */
.hero {
  margin: 32px 0 36px;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
}
.hero-prompt {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 24px;
  font-weight: 500;
}
.hero-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 0 24px;
}
@media (max-width: 640px) {
  .hero-paths { grid-template-columns: 1fr; }
}
.hero-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
}
.hero-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}
.hero-card p {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex-grow: 1;
}
.hero-card .button-primary {
  display: inline-block;
  background: var(--heather);
  color: var(--paper);
  border: 1.5px solid var(--heather);
  padding: 14px 22px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  transition: filter 120ms;
}
.hero-card .button-primary:hover { filter: brightness(0.92); color: var(--paper); }
.hero-card .button-secondary {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 14px 22px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
}
.hero-card .button-secondary:hover { background: rgba(44, 39, 34, 0.06); }

/* Value-score legend — under the map */
.value-legend-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
}
.value-legend-row .legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.85), 0 1px 3px rgba(0,0,0,0.2);
}

/* Filter chips */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  position: relative;
  transition: border-color 120ms;
}
.chip:hover { border-color: var(--ink-soft); }
.chip[aria-pressed="true"] {
  border-color: var(--heather);
}
.chip[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--heather);
}
.chip[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Search input */
.search-wrap {
  margin: 18px 0 8px;
}
.search-wrap label {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
input.search-input {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  padding: 8px 0;
  outline: none;
}
input.search-input::placeholder { color: var(--ink-soft); }
input.search-input:focus {
  border-bottom: 2px solid var(--heather);
  padding-bottom: 7px;
}

/* Postcode field */
.postcode-wrap {
  margin: 14px 0 8px;
}
.postcode-wrap label {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
input.postcode-input {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  padding: 6px 0;
  outline: none;
  width: 200px;
}
input.postcode-input:focus { border-bottom: 2px solid var(--heather); }
.postcode-note {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 4px 0 0;
}

/* Sort dropdown */
.sort-wrap {
  margin: 8px 0 18px;
}
.sort-wrap label {
  font-size: 15px;
  color: var(--ink-soft);
  margin-right: 8px;
}
select.sort-select {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  padding: 4px 22px 4px 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%235E544A' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px 6px;
}

/* Showing-X-of-Y line */
.result-count {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 18px;
}

/* Map */
#map {
  width: 100%;
  height: 360px;
  margin: 18px 0 8px;
  border: 1px solid var(--rule);
  background: #ECE7DA;
}
.map-legend {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 6px 0 18px;
}
.kf-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--heather);
  border: 1px solid var(--paper);
  box-sizing: border-box;
}

/* FAQ block — service pages and dedicated /faq/ page */
.faq { margin: 32px 0; }
.faq dl { margin: 0; }
.faq dt {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 1.6em;
}
.faq dt:first-of-type { margin-top: 0.6em; }
.faq dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.65;
}
.faq dd + dd { margin-top: 0.8em; }
.faq h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 19px;
  margin: 1.8em 0 0.4em;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .faq dt { font-size: 20px; }
  .faq dd { font-size: 18px; }
}

/* Glossary */
.glossary { margin: 32px 0; }
.glossary dt {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  margin-top: 1em;
}
.glossary dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 17px;
}

/* Trust / disclaimer block */
.trust-block,
.disclaimer-block {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  margin-top: 48px;
}
.trust-block p,
.disclaimer-block p { margin: 0 0 1em; }

/* Footer */
footer.kf-footer {
  border-top: 1px solid var(--rule);
  margin-top: 56px;
  padding-top: 24px;
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
}
footer.kf-footer p { margin: 0 0 6px; }

/* Small price overview table on homepage */
.price-overview {
  border: 1px solid var(--rule);
  padding: 16px 18px;
  margin: 24px 0;
}
.price-overview h3 {
  font-size: 18px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 18px; line-height: 1.7; }
  main { padding: 36px 18px 60px; }
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .lede { font-size: 19px; }
  #map { height: 180px; }
  .firm-card dl.prices { grid-template-columns: max-content 1fr; }
}

/* Print */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  main { max-width: none; padding: 0; }
  .masthead-rule, hr { background: #888; }
  #map, .filter-row, .search-wrap, .postcode-wrap, .sort-wrap, .map-legend,
  .print-trigger, .paths, .skip-map, footer.kf-footer .no-print {
    display: none !important;
  }
  .firm-card {
    page-break-inside: avoid;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
  }
  .firm-card h3 { font-size: 13pt; }
  a { color: #000; text-decoration: none; }
  a.tel::after { content: ""; }
  .town-heading { font-size: 11pt; margin-top: 16pt; }
}

/* Print trigger */
.print-trigger {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  padding: 6px 14px;
  cursor: pointer;
  margin: 8px 0;
}
.print-trigger:hover { border-color: var(--ink); color: var(--ink); }

/* =====================================================================
   Sticky compact nav strip — added 2026-05-09
   Spec referenced "warm-oat" and "slate" — palette has no such vars,
   so this section uses --paper (warm parchment) and --ink-soft (warm
   slate-brown) as the closest existing brand tokens. Spec also named
   Sora + Atkinson Hyperlegible fonts; only Source Sans 3 + Source
   Serif 4 are actually loaded, so the fallback chain ends at system-ui.
   ===================================================================== */
body { padding-top: 56px; }

.kf-nav-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 56px;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(94, 84, 74, 0.3);
}
.kf-nav-inner {
  max-width: var(--measure-wide);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kf-nav-wordmark {
  font-family: 'Sora', 'Source Sans 3', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.kf-nav-wordmark:hover,
.kf-nav-wordmark:focus {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--heather);
  text-underline-offset: 4px;
}
.kf-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}
.kf-nav-links .kf-nav-link {
  font-family: 'Atkinson Hyperlegible', 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.kf-nav-links .kf-nav-link:hover,
.kf-nav-links .kf-nav-link:focus {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--heather);
  text-underline-offset: 4px;
}
.kf-nav-link.active {
  text-decoration: underline;
  text-decoration-color: var(--heather);
  text-underline-offset: 4px;
}
.kf-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0 4px;
  height: 44px;
  font-family: 'Atkinson Hyperlegible', 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}
.kf-nav-toggle:hover { color: var(--heather); }

.kf-nav-drawer {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid rgba(94, 84, 74, 0.3);
  padding: 0 24px;
  transition: opacity 160ms ease;
}
.kf-nav-drawer.open {
  display: block;
}
.kf-nav-drawer .kf-nav-link {
  display: flex;
  align-items: center;
  height: 56px;
  font-family: 'Atkinson Hyperlegible', 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 84, 74, 0.15);
}
.kf-nav-drawer .kf-nav-link:last-child { border-bottom: 0; }
.kf-nav-drawer .kf-nav-link:hover,
.kf-nav-drawer .kf-nav-link:focus {
  text-decoration: underline;
  text-decoration-color: var(--heather);
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .kf-nav-links { display: none; }
  .kf-nav-toggle { display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .kf-nav-drawer { transition: none; }
}

@media print {
  .kf-nav-strip, .kf-nav-drawer { display: none !important; }
  body { padding-top: 0; }
}

/* Reusable contacts panel — useful contacts for bereaved readers */
.contacts-panel {
  background: var(--paper);
  border: 1px solid var(--ink-soft);
  padding: 24px;
  margin: 48px 0;
}
.contacts-panel h2 {
  margin: 0 0 8px;
}
.contacts-lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contacts-list li {
  margin-bottom: 16px;
  line-height: 1.6;
}
.contacts-list li:last-child {
  margin-bottom: 0;
}
.contacts-list li strong {
  display: block;
}
.contacts-list .office-list {
  list-style: none;
  padding: 8px 0 0 0;
  margin: 0;
}
.contacts-list .office-list li {
  margin-bottom: 4px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* =====================================================================
   /find/ tool — filter-first directory page
   Two-column on desktop (filter rail + results), stacked on mobile.
   Filter UI and behavioural rules per KINGDOM-BRAND.md §4 + §17.
   ===================================================================== */
.find-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 880px) {
  .find-layout { grid-template-columns: 1fr; gap: 24px; }
}

.find-filters {
  border: 1px solid var(--rule);
  padding: 18px 20px 24px;
  background: var(--paper);
}
@media (min-width: 881px) {
  .find-filters { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; }
}
.find-filters h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.find-filter-group { margin: 0 0 22px; border-top: 1px solid var(--rule); padding-top: 16px; }
.find-filter-group:first-of-type { border-top: 0; padding-top: 0; }
.find-filter-group h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.find-filter-group h3 .toggle-caret {
  font-size: 14px;
  color: var(--ink-soft);
  transition: transform 160ms;
}
.find-filter-group.collapsed h3 .toggle-caret { transform: rotate(-90deg); }
.find-filter-group.collapsed .find-filter-body { display: none; }
.find-filter-group .group-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 6px 0 10px;
  line-height: 1.5;
}

/* Mobile: collapse groups by default */
@media (max-width: 880px) {
  .find-filter-group .find-filter-body { display: none; }
  .find-filter-group.expanded .find-filter-body { display: block; }
  .find-filter-group.expanded h3 .toggle-caret { transform: rotate(0deg); }
  .find-filter-group h3 .toggle-caret { transform: rotate(-90deg); }
}

/* Checkbox + radio rows — older audience friendly tap targets */
.find-check-list { list-style: none; margin: 0; padding: 0; }
.find-check-list li { margin: 0; }
.find-check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  min-height: 40px;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.4;
}
.find-check-list input[type="checkbox"],
.find-check-list input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--heather);
  flex-shrink: 0;
  cursor: pointer;
}
.find-check-list label:hover { color: var(--heather); }

/* Postcode + distance row */
.find-postcode-input {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  padding: 8px 0;
  outline: none;
  margin-bottom: 12px;
}
.find-postcode-input:focus { border-bottom: 2px solid var(--heather); }
.find-distance-select {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  padding: 6px 22px 6px 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%235E544A' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px 6px;
}
.find-postcode-msg {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 6px 0 0;
  font-style: italic;
}

/* Price-range slider — twin native ranges, heather track */
.find-price-range { margin-top: 6px; }
.find-price-range-row {
  position: relative;
  height: 28px;
  margin: 4px 0 8px;
}
.find-price-range-row input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.find-price-range-row input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
}
.find-price-range-row input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
}
.find-price-range-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-top: -9px;
  pointer-events: auto;
  cursor: grab;
}
.find-price-range-row input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: auto;
  cursor: grab;
}
.find-price-range-label {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}

/* Reset button */
.find-reset-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink-soft);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  padding: 10px 18px;
  cursor: pointer;
  width: 100%;
}
.find-reset-btn:hover { border-color: var(--ink); color: var(--ink); }

/* Results column */
.find-results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.find-result-count {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}
.find-result-count strong { font-weight: 600; }
.find-sort-wrap label {
  font-size: 15px;
  color: var(--ink-soft);
  margin-right: 8px;
}
.find-sort-wrap select {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  padding: 4px 22px 4px 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%235E544A' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px 6px;
}

.find-empty {
  border: 1px dashed var(--rule);
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  margin: 18px 0;
}
.find-empty p { margin: 0 0 14px; font-size: 17px; }

/* Emergency alert — only on the orientation page */
.alert-emergency {
  border-left: 4px solid var(--heather);
  background: var(--paper);
  padding: 24px;
  margin: 24px 0;
}
.alert-emergency h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.alert-emergency p {
  margin: 0 0 8px;
}
.alert-emergency p:last-child {
  margin-bottom: 0;
}
