/* finddentist.co.uk — refreshed visual system (v2, 2026-05-21)
   Direction: editorial / trust-first. UK audience.
   Typography: Inter sans + Fraunces serif for display only.
   Palette: Oxford-ish navy primary, warm off-white surface, signal status colours. */

:root {
  --c-bg:        #f7f5f2;
  --c-bg-deep:   #efeae3;
  --c-surface:   #ffffff;
  --c-surface-2: #fbfaf8;
  --c-ink:       #0b1623;
  --c-ink-2:     #1f2a3a;
  --c-muted:     #5b6878;
  --c-muted-2:   #8a94a3;
  --c-line:      #e6e2da;
  --c-line-soft: #efece6;
  --c-primary:   #0b3a5c;   /* Oxford navy */
  --c-primary-2: #082c47;
  --c-accent:    #c9521b;   /* warm rust — for editorial accent only */
  --c-yes:       #136c44;
  --c-yes-bg:    #e9f5ee;
  --c-warn:      #93530c;
  --c-warn-bg:   #fcf2dd;
  --c-no:        #8c1c1c;
  --c-no-bg:     #f9eaea;
  --c-unknown:   #5b6878;
  --c-unknown-bg:#eef0f4;
  --c-info:      #1d4978;
  --c-info-bg:   #e8f0f9;

  --shadow-sm:   0 1px 1px rgba(11,22,35,.04), 0 1px 2px rgba(11,22,35,.04);
  --shadow-md:   0 4px 14px rgba(11,22,35,.06), 0 1px 3px rgba(11,22,35,.04);
  --shadow-lg:   0 12px 32px rgba(11,22,35,.08);

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;

  --f-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-ink);
  font-feature-settings: 'ss01', 'cv11';
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 780px; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-2); text-decoration: underline; text-underline-offset: 3px; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 32px 0; }

::selection { background: var(--c-primary); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; }
.brand {
  font-size: 21px; font-weight: 700;
  letter-spacing: -.025em;
  color: var(--c-ink);
  display: inline-flex; align-items: baseline; gap: 1px;
}
.brand:hover { text-decoration: none; }
.brand-mark   { color: var(--c-ink); }
.brand-mark-2 { color: var(--c-primary); }
.brand-tld    { color: var(--c-muted-2); font-weight: 500; font-size: 16px; margin-left: 1px; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--c-ink-2); font-weight: 500; font-size: 15px;
  position: relative; padding: 6px 0;
}
.main-nav a:hover { color: var(--c-primary); text-decoration: none; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--c-primary);
  transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -200px, rgba(11,58,92,.08), transparent 60%),
    radial-gradient(900px 500px at -10% 80%, rgba(201,82,27,.06), transparent 60%),
    linear-gradient(180deg, #fbfaf7 0%, #f4ede2 100%);
  border-bottom: 1px solid var(--c-line);
  padding: 84px 0 92px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,58,92,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,58,92,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--c-primary); background: rgba(11,58,92,.07);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px; letter-spacing: .01em;
}
.hero .eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-yes); box-shadow: 0 0 0 4px rgba(19,108,68,.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(19,108,68,.18); }
  50%     { box-shadow: 0 0 0 7px rgba(19,108,68,.06); }
}
.hero h1 {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  color: var(--c-ink);
  font-variation-settings: 'opsz' 96;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}
.hero h1 .accent {
  color: var(--c-primary);
  font-style: italic;
  font-variation-settings: 'opsz' 144;
}
.hero .lead {
  font-size: 18px;
  color: var(--c-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.search-form {
  max-width: 580px; margin: 0 auto;
  display: flex; gap: 6px;
  background: #fff; padding: 6px;
  border-radius: 14px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--c-line);
}
.search-form input[type=text],
.search-form input[type=email] {
  flex: 1;
  border: 0;
  font-size: 16px;
  font-family: var(--f-sans);
  padding: 14px 18px;
  outline: none;
  background: transparent;
  color: var(--c-ink);
}
.search-form input::placeholder { color: var(--c-muted-2); }
.search-form button {
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  font-family: var(--f-sans);
  font-size: 15px;
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  cursor: pointer;
  letter-spacing: -.005em;
  transition: background .15s ease, transform .12s ease;
}
.search-form button:hover { background: var(--c-primary-2); }
.search-form button:active { transform: translateY(1px); }
.hero-meta {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--c-muted);
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span::before { content: '✓'; color: var(--c-yes); font-weight: 700; font-size: 14px; }

/* ---------- Section primitives ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--alt   { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }

.section-title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -.01em;
  margin: 0 0 12px;
  text-align: center;
  color: var(--c-ink);
}
.section-sub {
  text-align: center;
  color: var(--c-muted);
  max-width: 620px;
  margin: 0 auto 48px;
  font-size: 16.5px;
  line-height: 1.6;
}

/* ---------- Value cards ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.value-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.value-card:hover {
  border-color: #d8d2c5;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.value-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(11,58,92,.08), rgba(11,58,92,.04));
  color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.value-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--c-ink);
}
.value-card p { margin: 0; color: var(--c-muted); font-size: 15px; line-height: 1.55; }

/* ---------- City chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--c-ink);
  transition: all .15s ease;
}
.chip:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: rgba(11,58,92,.04);
  text-decoration: none;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 0 16px; }
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 4px rgba(11,58,92,.08);
}
.step h4 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.step p  { color: var(--c-muted); margin: 0; font-size: 15px; line-height: 1.55; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .005em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .85;
}
.badge-yes     { background: var(--c-yes-bg);     color: var(--c-yes);     border-color: rgba(19,108,68,.18); }
.badge-no      { background: var(--c-no-bg);      color: var(--c-no);      border-color: rgba(140,28,28,.18); }
.badge-warn    { background: var(--c-warn-bg);    color: var(--c-warn);    border-color: rgba(147,83,12,.18); }
.badge-unknown { background: var(--c-unknown-bg); color: var(--c-unknown); border-color: rgba(91,104,120,.18); }
.badge-info    { background: var(--c-info-bg);    color: var(--c-info);    border-color: rgba(29,73,120,.18); }
.badge-verified {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border-color: rgba(6,95,70,.25);
  font-weight: 700;
}
.badge-verified::before { background: #065f46; opacity: 1; }

/* ---------- Dentist cards ---------- */
.dentist-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dentist-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 22px 24px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.dentist-card:hover { box-shadow: var(--shadow-md); border-color: #d8d2c5; transform: translateY(-1px); }
.dentist-card-head {
  display: flex; justify-content: space-between; gap: 14px;
  align-items: flex-start; margin-bottom: 14px;
}
.dentist-card-title h3 {
  margin: 0 0 4px;
  font-size: 18px; font-weight: 600;
  letter-spacing: -.01em;
}
.dentist-card-title h3 a { color: var(--c-ink); }
.dentist-card-title h3 a:hover { color: var(--c-primary); text-decoration: none; }
.dentist-card-title .addr { margin: 0; font-size: 13.5px; color: var(--c-muted); }
.dentist-distance {
  background: rgba(11,58,92,.07); color: var(--c-primary);
  font-weight: 600; font-size: 13px;
  padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(11,58,92,.12);
}
.dentist-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dentist-card-foot {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--c-line-soft);
  font-size: 14px;
}
.dentist-phone { font-weight: 600; color: var(--c-ink); }
.dentist-phone:hover { color: var(--c-primary); text-decoration: none; }
.dentist-web { color: var(--c-muted); }
.dentist-web:hover { color: var(--c-primary); }
.dentist-detail { margin-left: auto; font-weight: 600; color: var(--c-primary); }

/* ---------- Filter chips ---------- */
.filter-bar { padding-top: 6px; }
.filter-chip {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--c-ink-2);
  transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }
.filter-chip.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.filter-chip.active:hover { background: var(--c-primary-2); color: #fff; }

/* ---------- Stat cards (city) ---------- */
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-ink);
}
.stat-label { font-size: 12.5px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; font-weight: 500; }

/* ---------- Static prose ---------- */
.prose {
  font-size: 17px;
  line-height: 1.72;
  color: var(--c-ink-2);
}
.prose h2 {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -.01em;
  margin: 38px 0 14px;
  color: var(--c-ink);
}
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.prose p  { margin: 0 0 16px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose ul li { margin: 6px 0; }
.prose a  { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose em { font-style: italic; color: var(--c-muted); }
.prose strong { font-weight: 600; color: var(--c-ink); }

/* Report form */
.radio-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  cursor: pointer;
  font-size: 15px;
}
.radio-row input { margin: 0; accent-color: var(--c-primary); }

/* ---------- Detail page ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.contact-row {
  padding: 16px 20px;
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--c-line-soft);
}
.contact-row:last-child { border-bottom: 0; }
.contact-label { font-size: 12px; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-value { color: var(--c-ink); font-weight: 500; font-size: 15px; }
.contact-row a.contact-value { color: var(--c-primary); }
.contact-row a.contact-value:hover { text-decoration: underline; }

.availability-table {
  width: 100%; border-collapse: collapse;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.availability-table td { padding: 16px 20px; border-bottom: 1px solid var(--c-line-soft); font-size: 15px; }
.availability-table tr:last-child td { border-bottom: 0; }
.availability-table tr td:last-child { text-align: right; }

.report {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r); padding: 16px 18px;
  margin-bottom: 10px;
}
.report-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.report-head strong { color: var(--c-ink); font-weight: 600; }
.report-time { color: var(--c-muted); }
.report-status { font-size: 14px; color: var(--c-ink-2); margin-bottom: 4px; }
.report-comment { font-size: 14.5px; color: var(--c-ink-2); margin: 8px 0 0; line-height: 1.55; }
.report-cta { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--c-primary); }

.aside-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.aside-card h3 { font-family: var(--f-serif); font-weight: 600; }

.nearby-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.nearby-row:last-child { border-bottom: 0; padding-bottom: 0; }
.nearby-row:hover { text-decoration: none; }
.nearby-name { color: var(--c-ink); font-weight: 600; font-size: 14px; }
.nearby-meta { color: var(--c-muted); font-size: 12px; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: #c9d2dc;
  margin-top: 96px;
  padding: 64px 0 28px;
  font-size: 14.5px;
}
.site-footer hr { border-top-color: rgba(255,255,255,.08); margin: 36px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 7px 0; }
.site-footer ul a { color: #c9d2dc; font-size: 14px; }
.site-footer ul a:hover { color: #fff; text-decoration: none; }
.site-footer strong { color: #fff; font-size: 19px; font-family: var(--f-serif); font-weight: 600; letter-spacing: -.01em; }
.site-footer > .container > div:first-child p { color: #97a3b3; margin: 10px 0 0; line-height: 1.55; max-width: 320px; }

.attribution {
  font-size: 11.5px !important;
  color: #6e7a8a !important;
  text-align: center;
  margin: 0 !important;
  letter-spacing: .02em;
}
.copy { text-align: center; font-size: 12.5px; color: #6e7a8a; margin: 8px 0 0; }

/* ---------- Map ---------- */
.fd-map {
  height: 420px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: #e8e3da;
  position: relative;
  z-index: 0;
}
.fd-map--small { height: 220px; }
.fd-map:focus-within { box-shadow: 0 0 0 3px rgba(11,58,92,.18), var(--shadow-md); }

/* ---------- Results split layout (Zillow-style) ---------- */
.results-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  /* Fixed height so list can scroll independently */
  height: calc(100vh - 200px);
  min-height: 580px;
  max-height: 820px;
}
.results-map-col {
  height: 100%;
  min-height: 0;
}
.results-map-col .fd-map {
  height: 100% !important;
  margin: 0;
}
.results-list-col {
  height: 100%;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  /* Soft fade at top + bottom edges */
  mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  scrollbar-width: thin;
  scrollbar-color: #c2c8d0 transparent;
}
.results-list-col::-webkit-scrollbar { width: 8px; }
.results-list-col::-webkit-scrollbar-track { background: transparent; }
.results-list-col::-webkit-scrollbar-thumb {
  background: #c2c8d0;
  border-radius: 999px;
}
.results-list-col::-webkit-scrollbar-thumb:hover { background: #9aa3ad; }
.results-list-col .dentist-grid { gap: 12px; padding: 2px 0; }
.results-list-col .dentist-card { padding: 18px 20px 14px; }
.results-list-col .dentist-card-title h3 { font-size: 16.5px; }

@media (max-width: 980px) {
  .results-split {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .results-map-col { height: auto; }
  .results-map-col .fd-map { height: 320px !important; }
  .results-list-col {
    height: auto;
    overflow: visible;
    padding-right: 0;
    mask-image: none; -webkit-mask-image: none;
  }
}

/* Leaflet attribution toned down to fit our visual */
.leaflet-control-attribution {
  font-size: 10.5px !important;
  background: rgba(255,255,255,.85) !important;
}
.leaflet-control-attribution a { color: var(--c-muted) !important; }

@media (max-width: 760px) {
  .fd-map { height: 320px; }
  .fd-map--small { height: 180px; }
}

/* ---------- Detail layout helpers ---------- */
@media (max-width: 900px) {
  .section .container[style*="2fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16.5px; }
  .value-grid { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 14px; }
  .search-form { flex-direction: column; padding: 10px; gap: 8px; }
  .search-form button { padding: 14px; }
  .section { padding: 56px 0; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .dentist-card { padding: 18px 18px 16px; }
}
@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
