@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Work+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* ─── Surfaces ──────────────────────────────────────────────── */
  --paper:          #F6F3EF;
  --paper-soft:     #FAF9F5;
  --surface:        #FFFFFF;
  --surface-strong: #EAE4DE;
  --surface-promo:  #EAE4DE;

  /* ─── Text ──────────────────────────────────────────────────── */
  --ink:       #212121;
  --ink-deep:  #1E1C1A;
  --muted:     #585858;
  --muted-alt: #989898;
  --text-dark: #444444;

  /* ─── Borders ───────────────────────────────────────────────── */
  --line:        #DEDEDE;
  --line-strong: #000000;

  /* ─── Accent ────────────────────────────────────────────────── */
  --accent:      #FFCD00;
  --accent-deep: #e6b800;
  --accent-soft: rgba(255, 205, 0, 0.14);

  /* ─── State ─────────────────────────────────────────────────── */
  --success: #1a7a4a;
  --warning: #a55f20;
  --danger:  rgb(225, 0, 58);

  /* ─── Shadows ───────────────────────────────────────────────── */
  --shadow-soft: none;
  --shadow-card: none;

  /* ─── Geometry ──────────────────────────────────────────────── */
  --radius-xl: 4px;
  --radius-lg: 4px;
  --radius-md: 4px;
  --radius-sm: 4px;
  --radius-pill: 24px;
  --content-max: 1260px;

  /* ─── Fonts ─────────────────────────────────────────────────── */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Work Sans', system-ui, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

/* ─── Shell ──────────────────────────────────────────────────── */
.shell {
  width: min(var(--content-max), calc(100% - 2rem));
  margin: 0 auto;
}

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  height: 64px;
}

.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

/* ─── Brand ──────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #000000;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-copy { display: grid; gap: 0.1rem; min-width: 0; }
.brand-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
  font-family: var(--font-body);
}
.brand-copy span { color: var(--muted); font-size: 0.78rem; }

/* ─── Nav ────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.site-nav button {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.35rem 0.6rem;
  background: none;
  border: 0;
  transition: color 0.1s;
}

.site-nav a:hover,
.site-nav button:hover { color: #000000; }

/* ─── Hero sections ──────────────────────────────────────────── */
.hero,
.page-context {
  padding: 4rem 0 2.5rem;
}

.hero-grid,
.page-context-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.9fr);
  align-items: start;
}

/* ─── Hero copy block / panels ───────────────────────────────── */
.hero-copy-block,
.atlas-panel,
.filter-rail,
.lead-drawer-card,
.map-panel,
.profile-panel,
.guide-card,
.compare-modal-card,
.search-results,
.page-context-copy,
.profile-section,
.empty-state {
  border: 1px solid var(--line);
  background: #FFFFFF;
  box-shadow: none;
}

.hero-copy-block,
.page-context-copy {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

/* ─── Atlas label (micro uppercase) ─────────────────────────── */
.atlas-label {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  font-weight: 700;
  color: #000000;
}

.page-context-copy h1 {
  max-width: 16ch;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
}

.hero-copy,
.page-context-copy p {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ─── Panels ─────────────────────────────────────────────────── */
.hero-panel,
.map-panel,
.profile-panel,
.filter-rail,
.profile-section,
.empty-state {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.hero-panel h2,
.map-panel h2,
.profile-panel h2,
.profile-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.panel-metrics,
.summary-stack,
.lead-benefits,
.profile-facts {
  display: grid;
  gap: 0.75rem;
}

/* ─── Chips / metric chips ───────────────────────────────────── */
.metric-chip,
.summary-chip,
.signal-chip,
.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-deep);
  font-size: 0.83rem;
  font-weight: 500;
  border: 1px solid var(--line);
}

.panel-metrics .metric-chip,
.summary-stack .metric-chip {
  width: 100%;
  justify-content: space-between;
  background: #FFFFFF;
}

/* ─── Search panel ───────────────────────────────────────────── */
.search-panel { margin-top: 1.4rem; }

.search-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.search-input-row {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.search-input-row input,
.filter-search,
.filter-select {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border: 1px solid var(--line);
  border-right: none;
  background: #FFFFFF;
  color: var(--ink);
  padding: 0 1rem;
  height: 40px;
  font-size: 0.875rem;
}

.search-input-row input:focus,
.filter-search:focus,
.filter-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.search-input-row input::placeholder { color: var(--muted-alt); }

.search-hint,
.why-line,
.footer-meta,
.source-note,
.profile-section p,
.profile-section li,
.map-panel p,
.hero-panel p,
.empty-state p {
  color: var(--muted);
}

.search-hint { font-size: 0.78rem; margin-top: 0.5rem; }

.search-results {
  margin-top: 0.6rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.search-results[hidden] { display: none; }

.search-result-link {
  display: grid;
  gap: 0.08rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
}

.search-result-link:first-child { border-top: 0; }
.search-result-link:hover { background: var(--accent-soft); }

.search-result-type {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-result-label { font-size: 0.93rem; font-weight: 600; }
.search-result-subtitle { color: var(--muted); font-size: 0.8rem; }

/* ─── Section scaffolding ────────────────────────────────────── */
.section-block  { padding: 1.5rem 0 0; }
.toned-block    { padding: 2rem 0; background: var(--paper-soft); }

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #000000;
}

.section-heading p:last-child { max-width: 58ch; margin: 0; color: var(--text-dark); }

.section-heading-inline {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.85fr);
  align-items: end;
}

/* ─── Cloud tags (cities / departments) ─────────────────────── */
.cities-cloud,
.departements-cloud,
.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.city-cloud-tag,
.departement-cloud-tag,
.footer-city-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-deep);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.city-cloud-tag:hover,
.departement-cloud-tag:hover,
.footer-city-link:hover {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: #000000;
}

.city-cloud-tag span,
.departement-cloud-tag span {
  color: var(--muted-alt);
  font-size: 0.72rem;
}

/* ─── Feature / step / guide / trust grids ───────────────────── */
.principles-grid,
.steps-grid,
.guide-grid,
.trust-grid {
  display: grid;
  gap: 1rem;
}

.principles-grid,
.steps-grid,
.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-card,
.step-card,
.guide-card,
.trust-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #FFFFFF;
  transition: border-color 0.12s ease;
}

.principle-card:hover,
.step-card:hover,
.guide-card:hover,
.trust-card:hover {
  border-color: #ACACAC;
}

.principle-card h3,
.step-card h3,
.guide-card h3,
.trust-card h3,
.business-heading h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #000000;
}

.principle-card p,
.step-card p,
.guide-card p,
.trust-card p {
  font-size: 0.875rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.6;
}

.step-index {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── Directory shell ────────────────────────────────────────── */
.directory-shell { padding: 0 0 2rem; }

.breadcrumbs {
  padding: 1rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}
.breadcrumbs a { color: #000000; font-weight: 600; }

/* ─── Hero actions row ───────────────────────────────────────── */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  height: 40px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
}
.button-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.button-primary-lg {
  padding: 12px 24px;
  height: auto;
  font-size: 0.9rem;
}

.button-secondary {
  background: #FFFFFF;
  border-color: #000000;
  color: #000000;
}
.button-secondary:hover {
  background: #000000;
  color: #FFFFFF;
}

.button-ghost {
  background: transparent;
  border-color: #000000;
  color: #000000;
}
.button-ghost:hover {
  background: #000000;
  color: #FFFFFF;
}

.button-dark {
  background: #444444;
  border-color: #444444;
  color: #FFFFFF;
}
.button-dark:hover { background: #000000; border-color: #000000; }

/* ─── Filter rail ────────────────────────────────────────────── */
.filter-rail {
  position: sticky;
  top: 64px;
  z-index: 25;
  margin-top: 1.25rem;
}

.filter-rail-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.6fr);
}

.filter-stack { display: grid; gap: 0.65rem; }

.filter-row,
.toggle-row,
.active-filters,
.results-head,
.lead-actions,
.business-footer,
.business-topline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── Toggle/category pills ──────────────────────────────────── */
.toggle-pill,
.category-pill,
.active-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 6px 12px;
  height: 32px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.1s ease, border-color 0.1s ease;
}

.toggle-pill:hover,
.category-pill:hover {
  border-color: #ACACAC;
  background: var(--paper);
}

.toggle-pill[aria-pressed='true'],
.category-pill.is-active,
.active-filter-pill {
  color: #000000;
  border-color: var(--accent-deep);
  background: var(--accent);
}

/* ─── Directory layout ───────────────────────────────────────── */
.directory-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.85fr);
  gap: 1.2rem;
  align-items: start;
  margin-top: 1rem;
}

.results-column,
.map-column,
.profile-column,
.sidebar-column {
  min-width: 0;
}

.results-head {
  justify-content: space-between;
  padding: 0.2rem 0 0.7rem;
}

.results-head h2 { font-size: 1.5rem; }
.results-head p { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* ─── Business list & card ───────────────────────────────────── */
.business-list,
.profile-sections {
  display: grid;
  gap: 0.65rem;
}

.business-card {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  transition: border-color 0.12s ease;
}

.business-card:hover { border-color: #ACACAC; }
.business-card.is-hidden { display: none; }

.business-rank { display: grid; gap: 0.25rem; align-content: start; }

.rank-number {
  color: #000000;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-display);
}

.rank-label {
  color: var(--muted-alt);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.business-main,
.business-heading {
  display: grid;
  gap: 0.3rem;
}

.business-heading a:hover { text-decoration: underline; }

.business-meta {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.business-snippet {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ─── Signal row & chips ─────────────────────────────────────── */
.signal-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.signal-chip.is-strong {
  background: #000000;
  border-color: #000000;
  color: #FFFFFF;
}

.signal-chip.is-soft {
  color: #000000;
  background: var(--accent);
  border-color: var(--accent-deep);
}

/* ─── Button inline variant ──────────────────────────────────── */
.button-inline { padding: 6px 12px; height: 32px; font-size: 0.8rem; }

/* ─── Map panel ──────────────────────────────────────────────── */
.map-panel,
.profile-panel {
  position: sticky;
  top: calc(64px + 3.5rem);
}

.map-shell {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

#map,
#profile-map {
  width: 100%;
  min-height: 420px;
}

/* ─── Lead drawer ────────────────────────────────────────────── */
.lead-drawer { margin-top: 1rem; }
.lead-drawer[hidden] { display: none; }

.lead-drawer-card {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.lead-copy h2 { font-size: 1.5rem; margin-bottom: 0.55rem; }

.lead-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.lead-benefit {
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink);
  font-weight: 500;
}

.lead-widget-shell {
  min-width: 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--line);
}

/* ─── Guide section ──────────────────────────────────────────── */
.guide-section { margin-top: 1rem; }

.guide-section .guide-grid,
.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ─── Empty state ────────────────────────────────────────────── */
.empty-state {
  margin-top: 1rem;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.72);
}

/* ─── Profile hero ───────────────────────────────────────────── */
.profile-hero { position: relative; overflow: hidden; }

.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(0,0,0,0.85), rgba(0,0,0,0.5)),
    var(--hero-image, linear-gradient(110deg, rgba(0,0,0,0.5), rgba(0,0,0,0.7)));
  background-size: cover;
  background-position: center;
}

.profile-hero .shell { position: relative; z-index: 1; }

.profile-hero .page-context-copy {
  background: rgba(0,0,0,0.5);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.12);
}

.profile-hero .page-context-copy p,
.profile-hero .page-context-copy .atlas-label,
.profile-hero .page-context-copy .summary-chip {
  color: rgba(255,255,255,0.82);
}

.profile-hero .summary-chip {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.profile-section h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* ─── Info / nearby / notes lists ───────────────────────────── */
.info-list, .nearby-list, .notes-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li,
.nearby-list a,
.notes-list li {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.nearby-list a:hover { background: var(--accent-soft); }

/* ─── Compare bar & modal ────────────────────────────────────── */
.compare-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: none;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.compare-bar.is-visible { display: flex; }

.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
}

.compare-modal.is-open { display: grid; place-items: center; }

.compare-modal-card {
  width: min(960px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.compare-table th {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-close { margin-left: auto; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  background: #000000;
  border-top: none;
}

.site-footer .brand-copy strong { color: #FFFFFF; }
.site-footer .brand-copy span   { color: rgba(255,255,255,0.5); }

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.7fr));
  align-items: start;
}

.footer-meta {
  color: #BDBDBD;
  font-size: 0.85rem;
  margin-top: 0.65rem;
}

.footer-links-block { display: grid; gap: 0.5rem; }
.footer-links-block .atlas-label { color: rgba(255,255,255,0.4); }

.footer-links-block a {
  color: #BDBDBD;
  font-size: 0.86rem;
}
.footer-links-block a:hover { color: #FFFFFF; text-decoration: underline; }

.footer-cities-wrap { margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; }

.footer-city-link {
  background: transparent;
  border-color: rgba(255,255,255,0.18);
  color: #BDBDBD;
}
.footer-city-link:hover { background: var(--accent); border-color: var(--accent-deep); color: #000000; }

.site-footer .footer-meta { color: rgba(255,255,255,0.35); }

/* ─── Leaflet overrides ──────────────────────────────────────── */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 4px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.leaflet-popup-content { color: var(--ink); }

/* ─── Section rule motif ─────────────────────────────────────── */
.section-rule {
  display: block;
  height: 1px;
  background: var(--line);
  margin: 2.5rem 0;
  border: 0;
}

/* ─── Dark hero variant ──────────────────────────────────────── */
.hero-dark {
  background: #000000;
  color: #FFFFFF;
}

.hero-dark .hero-copy-block,
.hero-dark .page-context-copy {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: #FFFFFF;
}

.hero-dark .hero-copy,
.hero-dark .page-context-copy p,
.hero-dark .search-hint {
  color: rgba(255,255,255,0.62);
}

.hero-dark .atlas-label { color: var(--accent); }
.hero-dark h1, .hero-dark h2 { color: #FFFFFF; }

.hero-dark .search-input-row input,
.hero-dark .filter-search {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  color: #FFFFFF;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.hero-dark .search-input-row input::placeholder { color: rgba(255,255,255,0.32); }
.hero-dark .search-input-row input:focus { outline-color: var(--accent); }

.hero-dark .search-results {
  background: rgba(10,10,10,0.97);
  border-color: rgba(255,255,255,0.12);
}

.hero-dark .search-result-link:hover { background: rgba(255,205,0,0.1); }

.hero-dark .button-secondary {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
  color: #FFFFFF;
}

.hero-dark .lead-benefit {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}

.hero-dark .hero-panel {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #FFFFFF;
}

.hero-dark .hero-panel p { color: rgba(255,255,255,0.65); }
.hero-dark .hero-panel h2 { color: #FFFFFF; }

.hero-dark .lead-widget-shell {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

/* ─── Stats strip ────────────────────────────────────────────── */
.metric-chip strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: #000000;
}

/* ─── Decision rail ──────────────────────────────────────────── */
.decision-rail {
  position: sticky;
  top: 64px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 1rem;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  margin: 0 calc(-1 * (100vw - min(var(--content-max), calc(100% - 2rem))) / 2);
  padding-left: max(1rem, calc((100vw - var(--content-max)) / 2 + 1rem));
  padding-right: max(1rem, calc((100vw - var(--content-max)) / 2 + 1rem));
}

.decision-rail .filter-search {
  width: auto;
  min-width: 180px;
  flex: 1 1 180px;
  padding: 0 0.9rem;
  border-radius: var(--radius-md);
  border-right: 1px solid var(--line);
}

.decision-rail .filter-select {
  width: auto;
  padding: 0 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  height: 36px;
  flex-shrink: 0;
}

.decision-rail-right {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}

.rail-count { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

/* ─── Hero form column ───────────────────────────────────────── */
.hero-form-column { min-width: 0; }

/* ─── Lead sticky trigger (mobile) ──────────────────────────── */
.lead-sticky-trigger {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #000000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid var(--accent-deep);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 0.12s ease;
}

.lead-sticky-trigger:hover { background: var(--accent-deep); }

/* ─── Trust legend ───────────────────────────────────────────── */
.trust-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.trust-legend-block {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.trust-legend-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.trust-legend-label.is-verified  { color: var(--success); }
.trust-legend-label.is-estimated { color: var(--warning); }
.trust-legend-items { color: var(--muted); font-size: 0.82rem; }

/* ─── Off-vertical badge ─────────────────────────────────────── */
.off-vertical-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #FFF3CD;
  border: 1px solid #e6b800;
  color: #7a5200;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ─── Mobile utility ─────────────────────────────────────────── */
.hide-mobile { display: inline-flex; }

/* ─── Responsive: 1080px ─────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid,
  .page-context-grid,
  .directory-layout,
  .profile-layout,
  .lead-drawer-card,
  .section-heading-inline,
  .guide-section .guide-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .profile-panel,
  .filter-rail { position: static; }

  .lead-benefits,
  .principles-grid,
  .steps-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Responsive: 780px ──────────────────────────────────────── */
@media (max-width: 780px) {
  .shell { width: min(var(--content-max), calc(100% - 1rem)); }

  .shell-header {
    height: auto;
    padding: 0.75rem 0;
  }

  .site-header { height: auto; }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
  }

  .hide-mobile { display: none; }

  .hero, .page-context { padding-top: 2.5rem; }

  .hero-copy-block,
  .page-context-copy,
  .hero-panel,
  .filter-rail,
  .profile-section,
  .map-panel,
  .profile-panel,
  .empty-state {
    padding: 1rem;
  }

  h1 { max-width: none; }

  .search-input-row,
  .hero-actions,
  .business-topline,
  .business-footer,
  .filter-row,
  .lead-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-row input {
    border-radius: var(--radius-md);
    border-right: 1px solid var(--line);
  }

  .search-input-row .button {
    border-radius: var(--radius-md);
    height: 40px;
  }

  .filter-rail-grid { grid-template-columns: 1fr; }

  .business-card { grid-template-columns: 1fr; }

  .business-rank {
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
  }

  #map, #profile-map { min-height: 300px; }

  .compare-bar {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    justify-content: space-between;
  }

  .lead-sticky-trigger { display: flex; }
}
