:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --line: #d8e3ef;
  --text: #14314c;
  --muted: #68839a;
  --brand: #2296a8;
  --brand-deep: #126e8a;
  --accent: #ff6b2c;
  --shadow-lg: 0 24px 70px rgba(22, 63, 94, 0.12);
  --shadow-md: 0 16px 40px rgba(22, 63, 94, 0.08);
  --radius-xl: 30px;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbfd 0%, #eef4f8 100%);
}

.app-shell {
  max-width: 1480px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(249, 251, 253, 0.84);
  border-bottom: 1px solid rgba(20, 49, 76, 0.06);
}

.main-nav {
  padding: 1rem 0;
}

.brand-mark {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.nav-links .nav-link {
  font-weight: 600;
  color: var(--muted);
}

.landing-hero {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 4rem 3rem 2rem;
  border-radius: 38px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 153, 72, 0.55), transparent 22%),
    radial-gradient(circle at 78% 78%, rgba(255, 166, 48, 0.45), transparent 25%),
    linear-gradient(135deg, #1b9cad 0%, #6ed0d2 48%, #89e0d8 100%);
  box-shadow: var(--shadow-lg);
}

.hero-backdrop {
  position: absolute;
  inset: auto -8% -8% auto;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 130, 44, 0.95) 0%, rgba(255, 130, 44, 0.1) 56%, transparent 60%);
  filter: blur(10px);
  opacity: 0.9;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.hero-copy-block {
  max-width: 660px;
  color: white;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy-block h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.hero-copy-block p {
  max-width: 46ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-search-card,
.market-section,
.sidebar-panel,
.insight-panel,
.station-card,
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero-search-card {
  position: relative;
  padding: 1.15rem;
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1.4fr 1.4fr;
  gap: 1rem;
  align-items: end;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-block label {
  font-size: 0.92rem;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.field-inline {
  grid-column: 1 / span 2;
}

.toggle-check {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 600;
  color: var(--muted);
}

.field-actions {
  grid-column: 3 / span 2;
  display: flex;
  gap: 0.75rem;
  justify-content: end;
}

.form-control,
.form-select {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #d2deeb;
  color: var(--text);
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.form-check-input:focus {
  border-color: rgba(34, 150, 168, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(34, 150, 168, 0.16);
}

.btn {
  border-radius: 14px;
  font-weight: 700;
}

.btn-search-main,
.btn-primary {
  min-height: 52px;
  border-color: var(--accent);
  background: var(--accent);
}

.btn-search-main:hover,
.btn-primary:hover {
  border-color: #f15618;
  background: #f15618;
}

.btn-ghost,
.btn-outline-primary,
.detail-back {
  min-height: 52px;
  border: 1px solid rgba(18, 110, 138, 0.35);
  color: var(--brand-deep);
  background: white;
}

.hero-feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.glass-card {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: rgba(16, 61, 73, 0.16);
  color: white;
  backdrop-filter: blur(14px);
}

.glass-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.glass-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.market-section {
  margin-top: 2rem;
  padding: 1.5rem;
}

.section-tabs {
  display: flex;
  gap: 3rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid #dfe8f0;
  font-weight: 600;
  color: var(--muted);
}

.section-tabs .active {
  color: var(--text);
  font-weight: 800;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.metric-card {
  padding: 1.25rem;
  border-right: 1px solid #edf2f7;
}

.metric-title {
  display: block;
  min-height: 2.6rem;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.metric-change {
  display: inline-flex;
  margin: 0.3rem 0;
  font-weight: 700;
}

.metric-up { color: #eb3d3d; }
.metric-down { color: #229c60; }

.metric-card small {
  display: block;
  color: var(--muted);
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.insight-panel {
  padding: 1.5rem;
}

.insight-header,
.results-header-bar,
.detail-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.insight-header {
  margin-bottom: 1.3rem;
}

.insight-header h2,
.results-header-bar h2,
.sidebar-panel h2,
.sidebar-panel h3,
.detail-panel h2,
.detail-shell h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.insight-header p,
.sidebar-panel p,
.detail-note,
.detail-breadcrumb,
.detail-kicker,
.address-line {
  color: var(--muted);
}

.compact-select {
  min-width: 180px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
}

.brand-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  min-height: 360px;
}

.brand-bar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.brand-bar-track {
  display: flex;
  align-items: end;
  width: 100%;
  height: 260px;
  padding: 0 0.5rem;
  border-bottom: 1px solid #dfe8f0;
}

.brand-bar-fill {
  width: 100%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #318a99 0%, #2b8392 100%);
}

.brand-bar-card strong {
  text-align: center;
  font-size: 0.9rem;
}

.brand-bar-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trend-card {
  padding: 1rem;
  border: 1px solid #e6eef5;
  border-radius: 22px;
}

.trend-card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 700;
}

.trend-svg {
  width: 100%;
  height: 220px;
}

.trend-svg polyline {
  fill: none;
  stroke: #2a8797;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-label-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.results-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.results-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-panel {
  padding: 1.35rem;
}

.results-map,
.station-map {
  min-height: 210px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #d7e6f1;
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #edf2f7;
}

.sidebar-stat span,
.metric-card small,
.brand-bar-card span,
.history-row p {
  color: var(--muted);
}

.sidebar-utility {
  margin-top: 1rem;
}

.tag-row,
.detail-meta-row,
.service-chip-row,
.detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-tag,
.status-pill,
.updated-chip,
.distance-badge,
.service-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: #eef4fa;
  color: #45657d;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-pill.live { background: #dbfff2; color: #0a8c57; }
.distance-badge { background: #eef3ff; color: #2558b1; }
.updated-chip { background: #e9fff5; color: #1b8b62; }
.service-chip { background: #edf3f8; }

.sort-box {
  min-width: 220px;
}

.result-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.station-card {
  padding: 1.2rem 1.3rem;
}

.station-card-meta {
  display: grid;
  grid-template-columns: auto 56px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.brand-badge-circle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffb663, #ff7d45);
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
}

.station-card h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.station-card p {
  margin: 0.2rem 0 0;
}

.station-price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}

.station-price-tile {
  padding: 1rem;
  border-radius: 18px;
  background: #f5f8fb;
  border: 1px solid #e6edf4;
}

.station-price-primary {
  background: linear-gradient(180deg, #ecfbfb, #e4f7f7);
  border-color: #b6e1e4;
}

.station-price-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.station-price-tile strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.station-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.btn-view-more {
  min-width: 140px;
  min-height: 48px;
  background: #d5fbf2;
  color: #157f80;
  border: none;
}

.detail-shell {
  margin-top: 2rem;
}

.detail-kicker {
  margin-top: 0.65rem;
  color: var(--brand-deep);
  font-weight: 700;
}

.detail-shell h1 {
  margin-top: 0.2rem;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-panel {
  padding: 1.5rem;
}

.detail-actions {
  margin-top: 1rem;
}

.action-chip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 160px;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid #a8d9e1;
  background: white;
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.action-chip-primary {
  background: #37a3b0;
  color: white;
  border-color: #37a3b0;
}

.detail-info-grid,
.price-card-grid {
  display: grid;
  gap: 1rem;
}

.detail-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.price-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.price-card-tile {
  padding: 1rem;
  border: 1px solid #deebf3;
  border-radius: 18px;
}

.price-card-tile span {
  display: block;
  color: var(--brand-deep);
  font-weight: 700;
}

.price-card-tile strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 2rem;
  line-height: 1;
}

.detail-verified {
  margin-top: 1rem;
  color: var(--muted);
}

.detail-divider {
  height: 1px;
  margin: 1.5rem 0;
  background: #e5edf4;
}

.detail-history {
  margin-top: 1rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.history-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #edf2f7;
}

.history-values {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 1200px) {
  .hero-grid,
  .insight-grid,
  .results-shell,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .metrics-strip,
  .hero-feature-grid,
  .station-price-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .field-inline,
  .field-actions {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .landing-hero {
    padding: 2rem 1.2rem 1.2rem;
  }

  .metrics-strip,
  .hero-feature-grid,
  .trend-grid,
  .brand-bars,
  .station-price-row,
  .price-card-grid,
  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .search-grid,
  .field-actions,
  .station-card-meta,
  .results-header-bar,
  .detail-topbar,
  .station-card-actions,
  .footer-row,
  .history-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .field-actions .btn,
  .btn-view-more,
  .detail-back,
  .action-chip {
    width: 100%;
  }
}

.functional-hero-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.functional-search-card {
  background: rgba(255, 255, 255, 0.96);
}

.functional-inline-row {
  justify-content: space-between;
  align-items: center;
}

.functional-actions {
  grid-column: 4 / span 2;
}

.compact-results-shell {
  margin-top: 2rem;
}

.empty-state-card {
  text-align: center;
}

.empty-state-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.auto-sync-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #edf2f7;
}

.auto-sync-note strong {
  display: block;
  margin-bottom: 0.35rem;
}

.auto-sync-note p {
  margin: 0;
  color: var(--muted);
}
.form-feedback {
  grid-column: 1 / -1;
  min-height: 1.25rem;
  color: #d33f49;
  font-weight: 700;
  font-size: 0.92rem;
}

.form-feedback.is-visible {
  margin-top: -0.35rem;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.pagination-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid #d8e3ef;
  background: white;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.pagination-link.active {
  border-color: var(--brand);
  background: #e1f6f9;
  color: var(--brand-deep);
}

.pagination-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.comparison-section {
  margin-bottom: 2rem;
}

/* ============================================================
   DRIVON HERO
   ============================================================ */
.drivon-hero {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  border-radius: 38px;
  background: linear-gradient(140deg, #0e6e85 0%, #1a97aa 40%, #2ec4b6 75%, #3dd9c8 100%);
  box-shadow: 0 32px 80px rgba(14, 110, 133, 0.28);
  padding: 3.5rem 3rem 3rem;
}
.drivon-hero__bg-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.drivon-hero__bg-orb--a {
  width: 600px; height: 600px; right: -80px; bottom: -180px;
  background: radial-gradient(circle, rgba(255,107,44,0.7) 0%, transparent 65%);
  filter: blur(8px);
}
.drivon-hero__bg-orb--b {
  width: 340px; height: 340px; left: 30%; top: -120px;
  background: radial-gradient(circle, rgba(255,200,80,0.35) 0%, transparent 70%);
  filter: blur(20px);
}
.drivon-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.drivon-hero__copy { color: white; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.15); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.02em; margin-bottom: 1.4rem;
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2);
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7fffd4; box-shadow: 0 0 6px #7fffd4;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.hero-headline {
  font-size: clamp(2.6rem, 4.5vw, 4.8rem); font-weight: 900;
  line-height: 1.0; letter-spacing: -0.05em; margin: 0 0 1.1rem;
}
.hero-highlight { color: #ffe066; }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.85);
  max-width: 42ch; line-height: 1.65; margin: 0 0 1.8rem;
}
.hero-trust-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.83rem; font-weight: 700; color: white; backdrop-filter: blur(6px);
}

/* --- Search Card --- */
.drivon-search-card {
  background: white; border-radius: 28px; padding: 1.8rem;
  box-shadow: 0 28px 60px rgba(0,0,0,0.18);
}
.search-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.4rem;
}
.search-card-header h2 {
  margin: 0; font-size: 1.2rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text);
}
.search-card-badge {
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: #d4f7ee; color: #0a7a5a;
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.search-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.sf-field { display: flex; flex-direction: column; gap: 0.4rem; }
.sf-field--location { grid-column: 1 / -1; }
.sf-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.sf-required { color: var(--accent); }
.sf-input, .sf-select {
  height: 50px; border-radius: 14px; border: 1.5px solid #dde7f0;
  padding: 0 1rem; font-family: inherit; font-size: 0.96rem; font-weight: 600;
  color: var(--text); background: #f8fafc;
  transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%; box-sizing: border-box; -webkit-appearance: none;
}
.sf-input:focus, .sf-select:focus {
  outline: none; border-color: var(--brand); background: white;
  box-shadow: 0 0 0 3px rgba(34,150,168,0.12);
}
.sf-input::placeholder { color: #aab8c5; font-weight: 500; }
.sf-row-bottom {
  grid-column: 1 / -1; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; margin-top: 0.25rem; flex-wrap: wrap;
}
.sf-toggle {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  font-size: 0.87rem; font-weight: 600; color: var(--muted); user-select: none;
}
.sf-toggle input[type="checkbox"] { display: none; }
.sf-toggle-track {
  width: 38px; height: 22px; border-radius: 11px; background: #dde7f0;
  position: relative; flex-shrink: 0; transition: background .2s;
}
.sf-toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s;
}
.sf-toggle input:checked ~ .sf-toggle-track { background: var(--brand); }
.sf-toggle input:checked ~ .sf-toggle-track::after { transform: translateX(16px); }
.sf-btn-search {
  display: inline-flex; align-items: center; gap: 0.6rem;
  height: 52px; padding: 0 2rem; border-radius: 16px; border: none;
  background: linear-gradient(135deg, #ff7f3f 0%, #ff4f1f 100%);
  color: white; font-family: inherit; font-size: 1rem; font-weight: 800;
  cursor: pointer; box-shadow: 0 6px 20px rgba(255,79,31,.4);
  transition: transform .15s, box-shadow .15s; white-space: nowrap;
}
.sf-btn-search:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,79,31,.45); }
.sf-btn-search:active { transform: translateY(0); }
.sf-feedback {
  grid-column: 1/-1; min-height: 1.1rem;
  color: #d33f49; font-weight: 700; font-size: 0.88rem;
}

/* ============================================================
   FUEL VARIATIONS STRIP
   ============================================================ */
.fuel-variations-section {
  margin-top: 2rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.8rem;
}
.fv-header { margin-bottom: 1.2rem; }
.section-title {
  margin: 0 0 0.25rem; font-size: 1.45rem;
  font-weight: 900; letter-spacing: -0.04em; color: var(--text);
}
.section-sub { margin: 0; color: var(--muted); font-size: 0.92rem; }

.fv-track-wrap { overflow-x: auto; padding-bottom: 0.25rem; }
.fv-track {
  display: flex; gap: 0.75rem;
  min-width: max-content;
}
.fv-card {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.1rem 1.4rem;
  background: #f7fafc; border: 1px solid #e4edf5;
  border-radius: 20px; min-width: 160px;
  transition: box-shadow .15s;
}
.fv-card:hover { box-shadow: var(--shadow-md); }
.fv-fuel-name {
  font-size: 0.82rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 180px;
}
.fv-price {
  font-size: 1.9rem; font-weight: 900; letter-spacing: -0.05em;
  color: var(--text); line-height: 1;
}
.fv-change {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.85rem; font-weight: 700;
}
.fv-change--up   { color: #d63838; }
.fv-change--down { color: #1c9e6a; }
.fv-change--neutral { color: var(--muted); }

/* ============================================================
   DUAL BRAND CHARTS
   ============================================================ */
.dual-charts-section {
  margin-top: 2rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.8rem 2rem;
}
.dual-charts-header { margin-bottom: 1.6rem; }
.dual-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.brand-chart-panel {
  background: #f8fafc; border-radius: 22px;
  padding: 1.2rem 1.2rem 0.5rem;
  border: 1px solid #e8eff6;
  min-width: 0;
}
.bcp-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: 0.75rem; flex-wrap: wrap;
}
.bcp-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.bcp-label--gasolina { background: #fff3e0; color: #b35a00; }
.bcp-label--gasoleo  { background: #e0f2fe; color: #0077aa; }
.bcp-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 700; }
.bcp-min { color: #1c9e6a; }
.bcp-max { color: #d63838; }
.bcp-sep { color: var(--muted); }

.brand-chart {
  display: flex; align-items: flex-end;
  gap: 0.5rem; min-height: 200px; padding: 0 0.25rem;
  overflow-x: auto;
}
.bc-col {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.28rem; flex: 1; min-width: 58px; max-width: 96px;
}
.bc-price {
  font-size: 0.82rem; font-weight: 800; color: var(--text); white-space: nowrap;
}
.bc-unit { font-size: 0.7rem; font-weight: 700; margin-left: 1px; color: var(--muted); }
.bc-bar-wrap { width: 100%; display: flex; align-items: flex-end; }
.bc-bar {
  width: 100%; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #30a8ba 0%, #1b8899 100%);
  transition: height .55s cubic-bezier(.22,.68,0,1.2); min-height: 6px;
}
.bc-col--best .bc-bar  { background: linear-gradient(180deg, #34d9a0 0%, #17a37a 100%); }
.bc-col--best .bc-price { color: #0a7a5a; }
.bc-col--worst .bc-bar  { background: linear-gradient(180deg, #f08080 0%, #c94040 100%); }
.bc-col--worst .bc-price { color: #b93030; }
.bc-label { font-size: 0.76rem; font-weight: 800; color: var(--text); text-align: center; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bc-count { font-size: 0.7rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-align: center; }
.brand-chart-axis {
  height: 2px; background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
  margin: 0 0.25rem 0.75rem; border-radius: 2px;
}

/* ============================================================
   MUNICIPALITY AUTOCOMPLETE DROPDOWN
   ============================================================ */
.municipality-wrapper { position: relative; }
.municipality-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  z-index: 300; background: white; border: 1.5px solid var(--brand);
  border-radius: 18px; box-shadow: 0 20px 50px rgba(14,110,133,0.16);
  max-height: 280px; overflow-y: auto; list-style: none;
  margin: 0; padding: 0.5rem 0; display: none;
}
.municipality-dropdown.is-open { display: block; }
.municipality-dropdown li {
  padding: 0.7rem 1.1rem; cursor: pointer; font-weight: 600;
  font-size: 0.95rem; color: var(--text); border-radius: 12px;
  margin: 0 0.4rem; transition: background .1s;
}
.municipality-dropdown li:hover,
.municipality-dropdown li.is-active { background: #e4f7f9; color: var(--brand-deep); }
.municipality-dropdown li.no-results { color: var(--muted); font-weight: 500; cursor: default; }
.municipality-dropdown li.no-results:hover { background: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .drivon-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .dual-charts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .drivon-hero { padding: 2rem 1.2rem 1.5rem; border-radius: 24px; }
  .hero-headline { font-size: 2.4rem; }
  .search-form-grid { grid-template-columns: 1fr; }
  .sf-field--location { grid-column: 1; }
  .sf-row-bottom { flex-direction: column; align-items: stretch; }
  .sf-btn-search { width: 100%; justify-content: center; }
  .dual-charts-section { padding: 1.2rem; }
}
/* ---- Station brand block ---- */
.detail-brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: #f4f8fb;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.brand-badge-circle--lg {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.detail-brand-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.detail-brand-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.status-pill--brand {
  background: #e8f4ff;
  color: #1a5fa8;
  font-weight: 700;
}
/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal-shell {
  max-width: 780px;
  margin: 3rem auto 4rem;
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--line);
}

.legal-header__meta {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.legal-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.legal-header__sub {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-section {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.9rem;
}

.legal-section p {
  color: #3a5068;
  line-height: 1.75;
  margin: 0 0 0.85rem;
  font-size: 0.97rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-list li {
  padding: 0.9rem 1.1rem;
  background: #f7fafc;
  border-radius: 14px;
  border-left: 3px solid var(--brand);
  color: #3a5068;
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-list li strong {
  color: var(--text);
}

.legal-refs {
  padding-left: 1.4rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-refs li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-section--refs {
  border-bottom: none;
}

.legal-link {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(18,110,138,0.3);
  transition: border-color 0.15s;
}

.legal-link:hover {
  border-color: var(--brand-deep);
}
