/* ── CarWashMap Module Styles ─────────────────────────────────────────────
   Restored to CarWashMap's own original visual identity. Source of truth:
   the ported React/Tailwind build this module was completed from
   ("(bimbly.eu candidate) CarWashMap/carwashmap-project-full/client/src",
   see client/src/index.css), which names its own design contract "Road
   Atlas": warm paper background, asphalt-graphite ink text, and Route Lime
   as an operational accent/status signal — Unbounded for display headings,
   Manrope for body text.

   An earlier build pass ("2026-08-27 identity unification") deliberately
   stripped all of this out and made the module fall back to bimbly.eu's
   generic site-wide purple (--brand:#7657ff / --brand2:#9a7dff). That is
   reverted here — CarWashMap gets its own palette back.

   How it's scoped: the palette lives in its own --cwm-* custom properties
   (below) so nothing here ever redefines bimbly's shared --brand/--text/
   --muted/etc. at :root — that would leak into the shared site-wide
   header/nav/footer. Instead, the shared token *names* are re-pointed to
   CarWashMap's palette only inside <main> (which on every car-wash-map
   page contains just this module's own content — the shared header, nav
   and footer all render outside <main>, opened in _shared/header.php and
   closed in _shared/footer.php). That single scoped block is what makes
   bimbly.css-defined shared classes reused here automatically pick up
   CarWashMap's colors instead of bimbly purple, without touching those
   files — and it also covers the handful of inline style="color:var(--muted)"
   attributes used on a few page templates (lead.php, compare.php, report.php,
   wash.php), since they reference the token name, not a hardcoded color.

   Class names for this module's own components use the existing cwm-
   prefix to avoid colliding with other modules.
   ───────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700;800&display=swap');

:root {
  --cwm-radius: 16px;
  --cwm-verified: #22c55e;
  --cwm-warn: #f59e0b;
  --cwm-muted-status: #94a3b8;
  --cwm-danger: #ef4444;

  /* Road Atlas palette */
  --cwm-lime: #c8ff3d;
  --cwm-lime-deep: #9ccd1b;
  --cwm-lime-wash: #e7ff9b;
  --cwm-moss: #6e9210;
  --cwm-moss-dark: #557209;
  --cwm-ink: #20211f;
  --cwm-ink-soft: #5c6058;
  --cwm-paper: #f5f5ed;
  --cwm-paper-deep: #e9eadf;
  --cwm-surface: #fbfbf6;
  --cwm-surface-soft: #eef0e7;
  --cwm-line: #d7d9cf;
  --cwm-shadow: 0 18px 40px rgba(32, 33, 31, .16);
  --cwm-font-display: "Unbounded", sans-serif;
  --cwm-font-sans: "Manrope", Arial, sans-serif;
}

/* Re-point the shared bimbly tokens to CarWashMap's own palette, scoped to
   <main> only — the shared site-header/nav/footer live outside <main> on
   every car-wash-map page and are completely unaffected by this. */
main {
  --brand: var(--cwm-moss);
  --brand2: var(--cwm-lime-deep);
  --text: var(--cwm-ink);
  --muted: var(--cwm-ink-soft);
  --surface: var(--cwm-surface);
  --surface2: var(--cwm-paper-deep);
  --surface-soft: var(--cwm-surface-soft);
  --line: var(--cwm-line);
  --bg: var(--cwm-paper);
  --radius: var(--cwm-radius);
  --shadow: var(--cwm-shadow);
  background: var(--cwm-paper);
  font-family: var(--cwm-font-sans);
  color: var(--cwm-ink);
}
main h1, main h2, main h3 { font-family: var(--cwm-font-display); letter-spacing: -.02em; }

/* ── Account / sub-nav bar ────────────────────────────────────────────────── */

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.cwm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px; padding: 12px 20px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: .95rem;
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}
.cwm-btn-primary { background: var(--cwm-lime); color: var(--cwm-ink); border-color: var(--cwm-lime-deep); }
.cwm-btn-primary:hover { background: var(--cwm-lime-deep); }
.cwm-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.cwm-btn-ghost { background: transparent; border-color: var(--line, #d7d9cf); color: var(--text, #20211f); }
.cwm-btn-ghost:hover { background: var(--surface-soft, #eef0e7); }
.cwm-btn-sm { padding: 8px 14px; font-size: .82rem; }
.cwm-btn-full { width: 100%; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.cwm-card { background: var(--surface, #fbfbf6); border: 1px solid var(--line, #d7d9cf); border-radius: var(--cwm-radius); padding: 20px 22px; margin-bottom: 18px; }
.cwm-card-title { font-family: var(--cwm-font-display); letter-spacing: -.01em; font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }

/* ── Search / filter form ─────────────────────────────────────────────────── */
.cwm-search-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.cwm-search-input, .cwm-select, .cwm-input, textarea.cwm-input {
  border: 1px solid var(--line, #d7d9cf); border-radius: 12px; padding: 12px 16px;
  font-size: 1rem; background: var(--surface, #fbfbf6); color: var(--text, #20211f);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cwm-search-input:focus, .cwm-select:focus, .cwm-input:focus { outline: none; border-color: var(--brand, #6e9210); box-shadow: 0 0 0 3px rgba(200,255,61,.35); }
.cwm-search-input { flex: 1 1 240px; }
.cwm-filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.cwm-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.cwm-checks label { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--surface-soft, #eef0e7); border: 1px solid var(--line, #d7d9cf); border-radius: 10px; font-size: .82rem; }
.cwm-checks input { width: auto; margin: 0; }
.cwm-form-label { display: block; color: var(--muted, #5c6058); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }

/* ── Layout: finder + map ─────────────────────────────────────────────────── */
.cwm-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(360px, 1.2fr); gap: 24px; align-items: start; }
.cwm-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; flex-wrap: wrap; }
.cwm-view-switch { display: flex; border: 1px solid var(--line, #d7d9cf); border-radius: 10px; overflow: hidden; }
.cwm-view-switch button { padding: 7px 12px; border: 0; background: transparent; color: var(--muted, #5c6058); font-size: .78rem; font-weight: 700; cursor: pointer; }
.cwm-view-switch button.is-active { background: var(--cwm-lime); color: var(--cwm-ink); }
.cwm-near-label { font-size: .78rem; color: var(--brand, #6e9210); font-weight: 700; display: none; }
.cwm-near-label.is-visible { display: inline; }

.cwm-map-area { position: sticky; top: 12px; min-height: 420px; border-radius: var(--cwm-radius); overflow: hidden; border: 1px solid var(--line, #d7d9cf); background: var(--surface2, #e9eadf); }
.cwm-map { height: 100%; min-height: 420px; }
.cwm-map-empty { display: grid; place-items: center; min-height: 420px; padding: 30px; text-align: center; color: var(--muted, #5c6058); }
.cwm-map-empty h3 { margin: 0 0 8px; color: var(--text, #20211f); }
.cwm-map-note { position: absolute; z-index: 500; right: 12px; bottom: 12px; max-width: 240px; padding: 8px 10px; background: var(--surface, #fbfbf6); border: 1px solid var(--line, #d7d9cf); border-radius: 10px; font-size: .72rem; color: var(--muted, #5c6058); }
.cwm-pin { display: grid; place-items: center; width: 26px; height: 26px; color: var(--cwm-ink); background: var(--cwm-lime); border: 1px solid var(--cwm-lime-deep); border-radius: 50% 50% 50% 2px; font-size: .68rem; font-weight: 900; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(32,33,31,.18); }
.cwm-pin span { transform: rotate(45deg); }
.leaflet-popup-content { font-size: .82rem; }
.leaflet-popup-content b { font-size: .92rem; }

/* ── Location cards ───────────────────────────────────────────────────────── */
.cwm-cards { display: grid; gap: 10px; }
.cwm-wash-card { position: relative; padding: 14px 16px; background: var(--surface, #fbfbf6); border: 1px solid var(--line, #d7d9cf); border-radius: var(--cwm-radius); transition: box-shadow .18s ease, transform .18s ease; }
.cwm-wash-card.is-near { border-color: var(--brand, #6e9210); }
.cwm-wash-card:hover { box-shadow: var(--shadow, 0 18px 40px rgba(32,33,31,.16)); }
.cwm-wash-card h3 { margin: 6px 0 3px; font-size: 1.05rem; }
.cwm-wash-card h3 a { text-decoration: none; color: inherit; }
.cwm-wash-card h3 a:hover { color: var(--brand, #6e9210); }
.cwm-wash-card p { margin: 0; color: var(--muted, #5c6058); font-size: .82rem; }
.cwm-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line, #d7d9cf); }
.cwm-card-meta b { font-size: .95rem; }
.cwm-signal { color: var(--cwm-warn); font-size: .74rem; font-weight: 700; }
.cwm-card-actions { display: flex; gap: 10px; margin-top: 10px; }
.cwm-card-actions a, .cwm-card-actions button { border: 0; background: transparent; color: var(--brand, #6e9210); font-size: .78rem; font-weight: 700; cursor: pointer; padding: 0; }
.cwm-empty { padding: 18px; border: 1px dashed var(--line, #d7d9cf); border-radius: var(--cwm-radius); color: var(--muted, #5c6058); line-height: 1.65; }

/* ── Feature pills ────────────────────────────────────────────────────────── */
.cwm-features { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cwm-features span { padding: 4px 8px; background: var(--surface-soft, #eef0e7); color: var(--muted, #5c6058); font-size: .7rem; font-weight: 700; border-radius: 8px; }

/* ── Status badges ────────────────────────────────────────────────────────── */
.cwm-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700;
  color: #fff; background: var(--badge-color, var(--cwm-muted-status)); white-space: nowrap;
}

/* ── Price rows / facts grid ──────────────────────────────────────────────── */
.cwm-price-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 12px 0; border-top: 1px solid var(--line, #d7d9cf); }
.cwm-price-row:first-of-type { border-top: 0; }
.cwm-price-row b { font-size: .9rem; }
.cwm-price-row small { display: block; color: var(--muted, #5c6058); font-size: .74rem; }
.cwm-price-amount { font-weight: 800; font-size: 1.05rem; }
.cwm-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line, #d7d9cf); margin-top: 12px; }
.cwm-facts div { padding: 12px 0; border-bottom: 1px solid var(--line, #d7d9cf); }
.cwm-facts span { display: block; color: var(--muted, #5c6058); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cwm-facts b { display: block; margin-top: 4px; font-size: .92rem; }

/* ── Compare table ────────────────────────────────────────────────────────── */
.cwm-compare-table { width: 100%; border-collapse: collapse; }
.cwm-compare-table th, .cwm-compare-table td { padding: 12px 14px; border: 1px solid var(--line, #d7d9cf); font-size: .88rem; vertical-align: top; }
.cwm-compare-table th { background: var(--surface2, #e9eadf); font-family: var(--cwm-font-display); font-weight: 600; letter-spacing: -.01em; }

/* ── Alerts / forms ───────────────────────────────────────────────────────── */
.cwm-alert { border-radius: 12px; padding: 12px 16px; font-size: .88rem; margin: 14px 0; }
.cwm-alert-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.cwm-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.cwm-alert-info    { background: var(--surface-soft, #eef0e7); color: var(--muted, #5c6058); border: 1px solid var(--line, #d7d9cf); }
.cwm-form-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.cwm-form-field label { font-weight: 600; font-size: .88rem; }
.cwm-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cwm-form-row > .cwm-form-field { flex: 1 1 200px; }
.cwm-consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted, #5c6058); margin: 10px 0; }
/* Honeypot field — off-screen, never shown to real visitors, always empty for them */
.cwm-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Compare floating bar ─────────────────────────────────────────────────── */
.cwm-compare-bar {
  position: fixed; z-index: 1200; right: 17px; bottom: 17px; display: none;
  align-items: center; gap: 11px; padding: 12px 16px; background: var(--text, #20211f);
  color: #fff; border-radius: 12px; box-shadow: var(--shadow, 0 18px 40px rgba(32,33,31,.16));
}
.cwm-compare-bar.is-visible { display: flex; }
.cwm-compare-bar a { padding: 7px 12px; background: var(--cwm-lime); color: var(--cwm-ink); border-radius: 8px; font-size: .78rem; font-weight: 700; text-decoration: none; }

/* ── Preloader (async form submit) ───────────────────────────────────────── */
.cwm-spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: cwm-spin .7s linear infinite;
  vertical-align: -3px; margin-inline-end: 6px;
}
@keyframes cwm-spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* ── Pre-footer CTA ───────────────────────────────────────────────────────── */
.cwm-prefooter { background: var(--surface2, #e9eadf); border-top: 1px solid var(--line, #d7d9cf); padding: 40px 0; margin-top: 40px; }
.cwm-prefooter-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cwm-prefooter-copy { max-width: 560px; }
.cwm-prefooter-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand, #6e9210); margin: 0 0 6px; }
.cwm-prefooter-copy h2 { margin: 0 0 8px; font-size: 1.4rem; }
.cwm-prefooter-lead { color: var(--muted, #5c6058); margin: 0; font-size: .92rem; line-height: 1.6; }
.cwm-prefooter-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Responsive: verified at 375 / 414px ─────────────────────────────────── */
@media (max-width: 900px) {
  .cwm-layout { grid-template-columns: 1fr; }
  .cwm-map-area { position: static; order: -1; }
}
@media (max-width: 480px) {
  .cwm-search-form { flex-direction: column; }
  .cwm-search-input { flex: 1 1 auto; width: 100%; }
  .cwm-filters-grid, .cwm-checks { grid-template-columns: 1fr 1fr; }
  .cwm-compare-table { display: block; overflow-x: auto; white-space: nowrap; }
  .cwm-form-row { flex-direction: column; }
  .cwm-prefooter { padding: 28px 0; }
  .cwm-prefooter-copy h2 { font-size: 1.2rem; }
}

/* RTL */
[dir="rtl"] .cwm-spinner { margin-inline-end: 0; margin-inline-start: 6px; }
[dir="rtl"] .cwm-pin { transform: rotate(45deg); }
[dir="rtl"] .cwm-pin span { transform: rotate(-45deg); }


/* layout-fix-2026-09-29 (screenshot review) */
.hero-section.cwm-hero-section{padding-top:clamp(28px, 5vw, 56px)}
/* cwm-badge-contrast (2026-09-29): white on #22c55e was 2.3:1 */
.cwm-badge[style*="#22c55e"]{color:#0b2e17}
