/* Excel Auto Industries — multi-page static site */
:root {
  --navy: #0b1220;
  --navy-2: #121a2b;
  --charcoal: #1a2336;
  --slate: #2a3548;
  --muted: #8b97ab;
  --text: #e8edf5;
  --text-dark: #1a2336;
  --white: #ffffff;
  --accent: #c8102e;
  --accent-hover: #a50d25;
  --accent-soft: rgba(200, 16, 46, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1100px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nav-open { overflow: hidden; }

main { flex: 1; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.container.narrow { width: min(100% - 2rem, 720px); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  z-index: 60;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b0a1e);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.logo-mark.small { width: 36px; height: 36px; font-size: 0.7rem; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.logo-text strong {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 60;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(11, 18, 32, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 55;
}
.nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav a {
  display: block;
  padding: 0.85rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover,
.nav a.is-active {
  color: var(--white);
  text-decoration: none;
}
.nav a.is-active { color: var(--accent); }

.header-cta { flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(380px, 62vh, 560px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(200, 16, 46, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(40, 80, 160, 0.2), transparent 50%),
    linear-gradient(160deg, #0b1220 0%, #151f35 45%, #0e1628 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}
.hero-content { position: relative; padding: 4rem 0 3.5rem; }
.hero-sm { min-height: 0; }
.hero-sm .hero-content { padding: 3rem 0 2.5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow a { color: var(--muted); }
.eyebrow a:hover { color: var(--accent); }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--white);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt {
  background: var(--navy-2);
  border-block: 1px solid var(--border);
}
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--white);
}
.lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.section p { color: var(--muted); }
.section-intro { margin-bottom: 2rem; max-width: 36rem; }
.center .section-intro { margin-inline: auto; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-head .section-intro { margin-bottom: 0; }

/* Offer cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: rgba(200, 16, 46, 0.35);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.95rem; color: var(--muted); }

/* Visit */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.visit-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-block h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8a9a; /* brighter than accent for WCAG on navy */
  margin-bottom: 0.5rem;
}
.info-block p, .info-block a { color: var(--text); font-size: 1.05rem; }
.info-block a:hover { color: var(--accent); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.hours-table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 1rem 0.35rem 0;
}
.hours-table td {
  text-align: right;
  color: var(--text);
  font-weight: 600;
  padding: 0.35rem 0;
}

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--charcoal);
  min-height: 280px;
  box-shadow: var(--shadow);
}
.map-wrap::before {
  content: "Map · 8010 NE Highway 99";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 0;
}
.map-wrap iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  background: transparent;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin: 0.5rem 0 1.25rem;
}
.contact-note { font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #070c16;
  padding: 2.25rem 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-brand strong { display: block; color: var(--white); font-size: 0.95rem; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.copyright { font-size: 0.82rem; color: var(--muted); }

/* Vehicle cards */
.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.vehicle-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vehicle-card:hover {
  border-color: rgba(200, 16, 46, 0.35);
  transform: translateY(-2px);
}
.vehicle-card-media {
  position: relative;
  display: block;
  background: var(--navy-2);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  text-decoration: none;
}
.vehicle-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.vehicle-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.vehicle-card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.vehicle-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}
.vehicle-price-lg { font-size: 1.75rem; margin-bottom: 0.75rem; }
.vehicle-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.vehicle-meta li::before {
  content: "·";
  margin-right: 0.85rem;
  color: var(--slate);
}
.vehicle-meta li:first-child::before { content: none; margin: 0; }
.vehicle-card-body .btn { align-self: flex-start; margin-top: auto; }

.badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  max-width: calc(100% - 1.5rem);
  line-height: 1.3;
}
.badge-sample {
  background: rgba(200, 16, 46, 0.92);
  color: var(--white);
}
.badge-status {
  left: auto;
  right: 0.75rem;
  background: rgba(26, 35, 54, 0.92);
  color: var(--text);
  border: 1px solid var(--border);
}
.sample-note {
  background: var(--accent-soft);
  border: 1px solid rgba(200, 16, 46, 0.35);
  color: var(--text) !important;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* Filters */
.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter-field select,
.filter-field input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--navy);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.filter-field select:focus,
.filter-field input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(200, 16, 46, 0.45);
  outline-offset: 1px;
}
.filter-actions {
  display: flex;
  align-items: end;
  gap: 0.75rem;
}
.inventory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.empty-state h1, .empty-state h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.empty-state p { margin-bottom: 1.5rem; color: var(--muted); }

/* Vehicle detail */
.vehicle-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--charcoal);
  aspect-ratio: 16 / 10;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px;
  height: 48px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--charcoal);
  cursor: pointer;
}
.gallery-thumb.is-active,
.gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.vehicle-info h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--white);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.specs-table th,
.specs-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.specs-table th {
  color: var(--muted);
  font-weight: 500;
  width: 40%;
}
.specs-table td { color: var(--text); font-weight: 600; }

/* Forms */
.form-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-field .hint { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-actions { margin-top: 0.5rem; }
.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.form-success {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(40, 160, 90, 0.12);
  border: 1px solid rgba(40, 160, 90, 0.35);
  color: var(--text);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* 404 */
.page-404 {
  text-align: center;
  padding: 5rem 0;
}
.page-404 h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-field.full { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    background: transparent;
    border: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0;
    border: 0;
    font-size: 0.9rem;
  }
  .header-inner { gap: 1.5rem; }
  .nav { margin-left: auto; margin-right: 0.5rem; }
  .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: repeat(5, 1fr) auto; align-items: end; }
  .visit-grid { grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
  .map-wrap iframe { height: 100%; min-height: 320px; }
  .vehicle-layout { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .two-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 419px) {
  .logo-text { display: none; }
  .hero-actions .btn,
  .contact-actions .btn { width: 100%; white-space: normal; }
}

/* --- Competitive upgrade additions --- */
.demo-banner {
  background: #7a1020;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  position: sticky;
  top: 0;
  z-index: 70;
}
.demo-banner a { color: #fff; text-decoration: underline; }
body.has-demo-banner .site-header { top: 32px; }

.mobile-sticky-bar {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(7, 12, 22, 0.96);
  border-top: 1px solid var(--border);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
}
.mobile-sticky-bar .btn { flex: 1; padding: 0.75rem 0.5rem; font-size: 0.9rem; }
body { padding-bottom: 0; }
@media (max-width: 899px) {
  body { padding-bottom: 72px; }
}
@media (min-width: 900px) {
  .mobile-sticky-bar { display: none; }
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 0.5rem;
  max-width: 720px;
}
.quick-search .btn { width: 100%; }
@media (min-width: 700px) {
  .quick-search {
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
  }
  .quick-search .btn { width: auto; }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.cta-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .cta-strip { grid-template-columns: repeat(3, 1fr); }
}
.cta-tile {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.cta-tile h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.05rem; }
.cta-tile p { margin-bottom: 1rem; }

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  flex-wrap: wrap;
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.icon-btn.is-on { color: var(--accent); border-color: rgba(200,16,46,0.45); }

.badge-new {
  left: auto; right: 0.75rem;
  background: #1f6b3a;
  color: #fff;
}
.badge-sold {
  left: auto; right: 0.75rem;
  background: #333;
  color: #ddd;
  border: 1px solid var(--border);
}
.vehicle-card.is-sold { opacity: 0.72; }
.vehicle-card.is-sold .vehicle-card-media img { filter: grayscale(0.35); }

.gallery-main { position: relative; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 3;
}
.gallery-nav.prev { left: 0.6rem; }
.gallery-nav.next { right: 0.6rem; }

.compare-bar {
  position: sticky;
  bottom: 72px;
  z-index: 40;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.compare-bar[hidden] {
  display: none !important;
}
@media (min-width: 900px) {
  .compare-bar { bottom: 1rem; }
}

.compare-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--border);
  padding: 0.65rem;
  vertical-align: top;
  text-align: left;
}
.compare-table img { border-radius: 8px; }

.faq details {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}
.faq details p { margin-top: 0.65rem; color: var(--muted); }

.reviews-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}

.neighborhood p { margin-bottom: 1rem; }
.doc-fee-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.35rem 0 0.75rem;
}

.similar-strip { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.similar-strip h2 { margin-bottom: 1.25rem; color: #fff; }

.filters.filters-wide { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .filters.filters-wide { grid-template-columns: repeat(6, 1fr) auto; }
}
.saved-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover {
  border-color: rgba(200,16,46,0.45);
  color: #fff;
  text-decoration: none;
}
.card-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.35rem;
}
.card-highlights span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}
.highlight-list {
  margin: 0 0 1rem 1.1rem;
  color: var(--muted);
}
.highlight-list li { margin-bottom: 0.35rem; }
.finder-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--charcoal);
}
.out-of-town-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* National-round patterns: process, price transparency, gallery count, policies */
.process-steps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.25rem;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}
.process-step h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}
.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.price-breakdown {
  margin: 0.25rem 0 1rem;
}
.clear-pricing-note,
.price-extras-note,
.doc-fee-note,
.policy-block {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0;
  line-height: 1.45;
}
.policy-block {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  margin: 0.75rem 0;
}
.price-notes-slot:empty,
.policy-slot:empty,
[data-inspection]:empty,
[data-satisfaction]:empty,
[data-clear-pricing]:empty,
[data-price-extras]:empty {
  display: none;
}
.gallery-count {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}
.buy-steps-mini {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.buy-steps-mini p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.recent-block {
  margin: 2rem 0 1rem;
}

.saved-toggle { margin-top: 1rem; }
.saved-toggle input[type="checkbox"] { width: auto; height: auto; margin: 0; padding: 0; }
