/* ============================================================
   SELECT DEALERS R5WF — Premium Stylesheet
   Design System: clean white UI
   ============================================================ */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  color-scheme: light;
  /* Color palette — white theme */
  --bg-primary:    #ffffff;
  --bg-secondary:  #fcfafa;
  --bg-tertiary:   #f4f5f7;
  --bg-card:       #ffffff;
  --bg-glass:      rgba(255,255,255,0.82);

  --text-primary:  #0a0c10;
  --text-secondary:#4a5568;
  --text-muted:    #8a94a6;

  --brand:         #C21D20;
  --brand-light:   #a90c0c1e;
  --brand-dark:    #C21D20;

  --gold:          #c9922f;
  --gold-light:    #fff8ec;
  --gold-glow:     rgba(201,146,47,0.20);

  --success:       #0a8754;
  --success-light: #e6f7f0;

  --border:        rgba(10,12,16,0.09);
  --border-strong: rgba(10,12,16,0.18);

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:     0 24px 64px rgba(0,0,0,0.16);

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-full:   9999px;

  --font-display:  'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body:     'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --transition:    all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 64px;
  --nav-float-top: 14px;
  --nav-float-gutter: clamp(16px, 4vw, 28px);
  --section-gap: 56px;
}

/* ── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

img { max-width: 100%; display: block; }
a   { color: var(--brand); text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── 3. TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ── 4. LAYOUT UTILITIES ───────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* Ancoras: compensar header fixo flutuante */
#busca,
#mapa,
#aplicadores,
#como-funciona,
#depoimentos,
#seja-aplicador {
  scroll-margin-top: calc(var(--nav-float-top) + var(--nav-h) + 20px);
}

/* ── 5. NAVIGATION — barra flutuante (não ocupa 100% da largura) ─ */
.nav {
  position: fixed;
  top: var(--nav-float-top);
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 var(--nav-float-gutter);
  pointer-events: none;
  background: transparent;
  transition: var(--transition-slow);
}

.nav.scrolled .nav__inner {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
}

.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: min(1100px, 100%);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 18px 0 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.nav__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav__logo-tagline {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 1px solid var(--border-strong);
  line-height: 1.25;
  max-width: 7.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav__links a:hover { color: var(--text-primary); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── 6. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 63, 63, 0.28), 0 0 0 0 rgba(0,87,255,0);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 43, 43, 0.36);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 11px 16px;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-tertiary); }

.btn-gold {
  background: linear-gradient(135deg, #c9922f, #e8b44a);
  color: #fff;
  box-shadow: 0 2px 12px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── 7. HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-float-top) + var(--nav-h) + 20px);
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,87,255,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(201,146,47,0.05) 0%, transparent 60%),
    var(--bg-primary);
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 0%, transparent 70%);
  z-index: 0;
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero__eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-light);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--success-light); }
  50%       { box-shadow: 0 0 0 5px var(--success-light); }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s 0.35s forwards;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.65s forwards;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 60px;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

.hero__stat-item {
  text-align: center;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 2px;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
}

/* ── 8. SEARCH BAR ─────────────────────────────────────────── */
.search-section {
  padding: var(--section-gap) 0 48px;
  position: relative;
  z-index: 10;
}

.search-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: var(--transition);
}

.search-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.search-field svg { color: var(--text-muted); flex-shrink: 0; }

.search-field input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  width: 100%;
}

.search-field input::placeholder { color: var(--text-muted); }

.search-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  min-width: 180px;
}

.search-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

/* ── 9. MAP ─────────────────────────────────────────────────── */
.map-section.section-sm {
  padding-top: 28px;
  padding-bottom: 80px;
}

.map-section h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
  margin-top: 0;
}

.map-section p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.65;
  max-width: 52ch;
}

.map-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  position: relative;
}

#map {
  height: 500px;
  width: 100%;
  z-index: 1;
}

.map-locate-btn {
  position: absolute;
  bottom: 80px;
  right: 12px;
  z-index: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--brand);
}
.map-locate-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Leaflet overrides */
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border);
}
.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-tip-container { margin-top: -1px; }

/* ── 10. SECTION HEADER ────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── 11. DEALER CARDS ──────────────────────────────────────── */
.dealers-section { background: var(--bg-secondary); }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.results-count strong {
  color: var(--text-primary);
  font-weight: 700;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
}
.pill:hover, .pill.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.pill.active-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.dealers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ── DEALER CARD ── */
.dealer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(12px);
}

.dealer-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dealer-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) !important;
}

/* Select Dealer card */
.dealer-card.is-select {
  border-color: rgba(201,146,47,0.3);
}
.dealer-card.is-select::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #f0c060, var(--gold));
  background-size: 200% 100%;
  animation: shimmer-line 2.5s linear infinite;
}

@keyframes shimmer-line {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.dealer-card.is-select:hover {
  border-color: rgba(201,146,47,0.5);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(201,146,47,0.15);
}

/* Cidade disponível card */
.dealer-card.is-available {
  background: linear-gradient(135deg, var(--bg-card), var(--brand-light));
  border-style: dashed;
  border-color: rgba(0,87,255,0.25);
}

/* ── CARD INTERNALS ── */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.card-avatar.gold {
  background: linear-gradient(135deg, var(--gold), #f0c060);
}

.card-info { flex: 1; }

.card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-location {
  font-size: 0.8375rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--gold-light);
  border: 1px solid rgba(201,146,47,0.25);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--gold-glow);
}

.card-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  padding: 2px 0;
}

.card-contact-item:hover { color: var(--brand); }

.card-contact-item svg { flex-shrink: 0; color: var(--text-muted); }
.card-contact-item:hover svg { color: var(--brand); }

.card-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Available city card */
.available-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.available-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}

.available-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── SKELETON LOADING ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-line { height: 14px; }
.skeleton-title { height: 20px; width: 70%; }
.skeleton-short { height: 12px; width: 45%; }
.skeleton-actions { display: flex; gap: 8px; }
.skeleton-btn { height: 34px; flex: 1; border-radius: var(--radius-full); }

/* ── 12. LOAD MORE ─────────────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ── 13. HOW IT WORKS ──────────────────────────────────────── */
.how-section { background: var(--bg-primary); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--brand), var(--border));
  display: none;
}

@media (min-width: 768px) {
  .steps-grid::before { display: block; }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--brand);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── 14. TESTIMONIALS ──────────────────────────────────────── */
.testimonials-section { background: var(--bg-secondary); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.author-vehicle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── 15. CTA SECTION ───────────────────────────────────────── */
.cta-section {
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(0,87,255,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,87,255,0.22);
}
.btn-white:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,87,255,0.28);
}

.btn-outline-white {
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-card);
}
.btn-outline-white:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
}

/* ── 16. FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.92;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer__links a:hover { color: var(--brand); }

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── 17. MAP POPUP ─────────────────────────────────────────── */
.map-popup {
  padding: 16px;
  min-width: 220px;
  font-family: var(--font-body);
}

.popup-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #0a0c10;
  margin-bottom: 4px;
}

.popup-city {
  font-size: 0.8rem;
  color: #8a94a6;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.popup-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #0057ff;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 12px;
}

.popup-actions {
  display: flex;
  gap: 6px;
}

.popup-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.775rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.popup-btn-primary {
  background: #0057ff;
  color: #fff;
}
.popup-btn-primary:hover { background: #0040cc; }

.popup-btn-secondary {
  background: #f0f2f5;
  color: #0a0c10;
}
.popup-btn-secondary:hover { background: #e0e4eb; }

.popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff8ec;
  border: 1px solid rgba(201,146,47,0.2);
  color: #c9922f;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ── 18. MOBILE STICKY CTA ─────────────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
}

/* ── 19. ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 20. CUSTOM MARKER ─────────────────────────────────────── */
.custom-marker {
  width: 32px; height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-icon-svg {
  width: 34px;
  height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* ── 21. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta .btn-ghost { display: none; }
  .nav__logo-tagline { display: none; }

  .hero__stats { gap: 16px; }

  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .search-field { width: 100%; }
  .search-select { width: 100%; }

  #map { height: 380px; }

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

  .mobile-cta { display: flex; gap: 10px; }

  body { padding-bottom: 80px; }

  .steps-grid { gap: 16px; }
  .testimonials-grid { gap: 16px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { gap: 16px; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__stat-divider { display: none; }
  .hero__stats { gap: 20px; flex-wrap: wrap; }
  .card-actions { flex-direction: column; }
}

/* ── 22. NO RESULTS ────────────────────────────────────────── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
}

.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { font-size: 1.2rem; margin-bottom: 8px; }
.no-results p { color: var(--text-muted); }

/* ── 23. LEAFLET CLUSTER OVERRIDE ──────────────────────────── */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(0,87,255,0.15) !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-family: var(--font-body) !important;
}

/* Select cluster */
.marker-cluster-gold div {
  background: var(--gold) !important;
}

/* ── 24. TRUST BAR ─────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 8px;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 48px);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-item svg { color: var(--brand); }
