:root {
  --bg: #121212;
  --bg-alt: #1b1b1b;
  --bg-soft: #1d1d1d;
  --panel: #262626;
  --panel-alt: #2a2a2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-soft: #f1f5f9;
  --text-dim: #c7ccd3;
  --muted: #9ca3af;
  --accent: #ff1212;
  --accent-dark: #d60000;
  --accent-soft: rgba(220, 38, 38, 0.12);
  --header-bg: rgba(10, 10, 10, 0.94);
  --button-light-bg: #ffffff;
  --button-light-text: #111111;
  --nav-text: #c8c8c8;
  --overlay-dark: rgba(0, 0, 0, 0.45);
  --font-family-base: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --radius-panel: 24px;
  --radius-soft: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family-base);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, textarea, select { font: inherit; }
svg { display: block; width: 100%; height: 100%; }
.wrap { width: min(1260px, calc(100% - 48px)); margin: 0 auto; }
.muted { color: var(--muted); }

.button, .button-secondary, .button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.button:hover, .button-secondary:hover, .button-light:hover { transform: translateY(-1px); }
.button {
  background: var(--accent);
  color: #fff;
}
.button:hover { background: var(--accent-dark); }
.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.button-light {
  background: #fff;
  color: #111;
}
.text-link, .text-button {
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
}
.danger { color: #fda4af; }
.eyebrow {
  display: inline-block;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, .94);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex: 0 0 auto;
}
.main-nav, .admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.nav-link, .admin-link, .admin-ghost-link {
  padding: 10px 0;
  color: #c8c8c8;
  font-size: 1rem;
}
.nav-link.is-active, .admin-link.is-active { color: var(--accent); }
.nav-admin { color: #9ca3af; }

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy-block > *,
.featured-head > *,
.collection-hero-inner > *,
.contact-hero-inner > *,
.about-hero-inner > *,
.cta-inner > * {
  opacity: 0;
  transform: translateY(22px);
  animation: riseIn .7s ease-out forwards;
}

.hero-copy-block > *:nth-child(2),
.featured-head > *:nth-child(2),
.collection-hero-inner > *:nth-child(2),
.contact-hero-inner > *:nth-child(2),
.about-hero-inner > *:nth-child(2),
.cta-inner > *:nth-child(2) {
  animation-delay: .12s;
}

.hero-copy-block > *:nth-child(3),
.featured-head > *:nth-child(3),
.collection-hero-inner > *:nth-child(3),
.contact-hero-inner > *:nth-child(3),
.about-hero-inner > *:nth-child(3),
.cta-inner > *:nth-child(3) {
  animation-delay: .22s;
}

.hero-copy-block > *:nth-child(4),
.featured-head > *:nth-child(4),
.collection-hero-inner > *:nth-child(4),
.contact-hero-inner > *:nth-child(4),
.about-hero-inner > *:nth-child(4),
.cta-inner > *:nth-child(4) {
  animation-delay: .3s;
}

.home-hero {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  min-height: inherit;
}
.hero-copy-block {
  padding: 90px 0 90px;
  margin-left: clamp(0px, 18vw, 320px);
}
.home-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(3.4rem, 6.5vw, 5.9rem);
  line-height: .95;
  font-weight: 800;
}
.hero-copy {
  max-width: 720px;
  margin: 0;
  color: #d1d5db;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
}
.hero-actions { margin-top: 34px; }
.hero-button { min-width: 250px; }

.section { padding: 74px 0; }
.featured-section { background: var(--bg-alt); }
.featured-head {
  text-align: center;
  margin-bottom: 50px;
}
.featured-head h2 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 800;
}
.featured-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.featured-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.vehicle-card {
  overflow: hidden;
  background: var(--panel);
}
.vehicle-image-link {
  display: block;
  overflow: hidden;
  background: #111;
}
.vehicle-card img {
  aspect-ratio: 1 / .76;
  object-fit: cover;
  transition: transform .45s ease, filter .3s ease, opacity .3s ease;
}
.vehicle-image-link:hover img,
.vehicle-image-link:focus-visible img {
  transform: scale(1.06);
  filter: brightness(1.08);
}
.vehicle-card-body { padding: 22px 24px 24px; }
.vehicle-topline, .vehicle-bottom, .panel-head, .table-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-topline {
  color: var(--accent);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.home-topline strong {
  color: #fff;
  font-size: 1.32rem;
  font-weight: 600;
}
.vehicle-card-home h3 {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 800;
}
.vehicle-bottom strong {
  font-size: 1.32rem;
  font-weight: 600;
}
.home-specs {
  margin: 0 0 24px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.discover-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.features-strip {
  background: #0f0f0f;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.feature-item {
  text-align: center;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  color: var(--accent);
  background: rgba(220, 38, 38, .1);
  border-radius: 999px;
}
.feature-icon svg { width: 32px; height: 32px; }
.feature-item h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}
.feature-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta-banner {
  padding: 70px 0 90px;
  background-size: cover;
  background-position: center;
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
}
.cta-inner p {
  margin: 0 0 34px;
  font-size: 1.05rem;
  color: #e5e7eb;
}

.page-hero {
  padding: 64px 0 50px;
  background: #171717;
}
.page-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}
.filters, .form-grid {
  display: grid;
  gap: 18px;
}
.collection-hero {
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.collection-hero-inner {
  text-align: center;
  padding: 72px 0;
}
.collection-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 800;
}
.collection-hero p {
  margin: 0;
  color: #c7ccd3;
  font-size: 1.32rem;
  font-weight: 500;
}
.filter-bar {
  background: #1d1d1d;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.filter-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  min-height: 86px;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #a3a3a3;
  background: transparent;
  border: 0;
}
.filter-toggle.is-active {
  color: #fff;
}
.filter-icon {
  width: 26px;
  height: 26px;
  color: currentColor;
  margin-right: 0;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  background: #2a2a2a;
  color: #d1d5db;
  font-weight: 700;
}
.filter-pill.is-active {
  background: var(--accent);
  color: #fff;
}
.advanced-filters {
  display: none;
  padding: 0 0 26px;
}
.advanced-filters.is-open {
  display: block;
}
.advanced-filters-form {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(220px, 280px);
  gap: 18px;
  align-items: end;
}
.advanced-select {
  display: block;
}
.advanced-select select,
.advanced-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
}
.advanced-select select {
  padding-top: 0;
  padding-bottom: 0;
}
.advanced-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.advanced-checkbox span {
  margin: 0;
}
.vehicles-showcase {
  background: #0c0c0c;
  padding-top: 60px;
}
.results-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.results-label {
  margin: 0;
  color: #c7ccd3;
  font-size: 1rem;
  font-weight: 600;
}
.vehicles-grid {
  gap: 32px;
}
.vehicle-card-listing {
  background: #202020;
  display: flex;
  flex-direction: column;
}
.listing-topline {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.listing-topline strong {
  color: #fff;
  font-size: 1.32rem;
  font-weight: 600;
}
.vehicle-card-listing h3 {
  margin: 0 0 26px;
  font-size: 1.08rem;
  font-weight: 800;
}
.vehicle-card-listing .vehicle-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.listing-bottom {
  margin-top: auto;
}
.listing-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.listing-specs span {
  display: block;
  margin-bottom: 8px;
  color: #8d8d8d;
  font-size: .92rem;
}
.listing-specs strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.listing-button {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
}
.detail-page {
  background: #101010;
  min-height: 60vh;
}
.detail-breadcrumb {
  margin-bottom: 24px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 30px;
}
.detail-gallery,
.detail-summary-card,
.detail-panel {
  background: #1d1d1d;
  border: 1px solid rgba(255,255,255,.07);
}
.detail-main-image {
  position: relative;
  overflow: hidden;
}
.detail-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}
.detail-main-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  transition: transform .25s ease;
}
.detail-image-button:hover img {
  transform: scale(1.02);
}
.detail-zoom-indicator {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.detail-image-button:hover .detail-zoom-indicator {
  opacity: 1;
}
.detail-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  border: 0;
  color: rgba(255,255,255,.9);
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-nav span {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  text-indent: -9999px;
  overflow: hidden;
}
.detail-nav-prev {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,.08));
}
.detail-nav-next {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,.42), rgba(0,0,0,.08));
}
.detail-nav-prev span {
  border-right: 18px solid rgba(255,255,255,.92);
}
.detail-nav-next span {
  border-left: 18px solid rgba(255,255,255,.92);
}
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.detail-thumb {
  position: relative;
  padding: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: transparent;
  cursor: pointer;
}
.detail-thumb.is-active {
  border-color: rgba(220, 38, 38, .6);
}
.detail-thumb img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.detail-thumb-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.detail-summary-card,
.detail-panel {
  padding: 28px;
}
.detail-kicker {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.detail-summary h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.02;
}
.detail-price {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.detail-summary-text {
  margin: 0 0 24px;
  color: #bfc5cd;
  line-height: 1.6;
}
.detail-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.detail-highlight-grid div,
.detail-spec-item {
  padding: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.detail-highlight-grid span,
.detail-spec-item span {
  display: block;
  margin-bottom: 6px;
  color: #9197a0;
  font-size: .9rem;
}
.detail-highlight-grid strong,
.detail-spec-item strong {
  font-size: 1rem;
  color: #fff;
}
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-primary-button,
.detail-secondary-button {
  min-height: 52px;
}
.detail-secondary-button {
  border-radius: 0;
}
.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.detail-panel h2 {
  margin: 0 0 22px;
  font-size: 1.5rem;
}
.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.detail-description {
  color: #d3d7de;
  line-height: 1.8;
  white-space: normal;
}
.detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.94);
}
.detail-lightbox[hidden] {
  display: none;
}
.detail-lightbox img {
  max-width: min(92vw, 1600px);
  max-height: 88vh;
  object-fit: contain;
}
.detail-lightbox-close,
.detail-lightbox-nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(0,0,0,.22);
  cursor: pointer;
}
.detail-lightbox-close {
  top: 22px;
  right: 24px;
  width: 52px;
  height: 52px;
  font-size: 2rem;
}
.detail-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 120px;
  font-size: 1.7rem;
}
.detail-lightbox-prev {
  left: 20px;
}
.detail-lightbox-next {
  right: 20px;
}
body.lightbox-open {
  overflow: hidden;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 42px;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  background: #1d1d1d;
  color: #d1d5db;
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
}
.pagination-link.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.empty-state {
  margin-top: 20px;
  padding: 48px 24px;
  text-align: center;
  background: #171717;
  border: 1px solid rgba(255,255,255,.06);
}
.empty-state h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}
.empty-state p {
  margin: 0;
  color: #b2b7be;
}
.filters {
  grid-template-columns: repeat(3, minmax(0, 220px));
  align-items: end;
  margin-bottom: 28px;
}
label span {
  display: block;
  margin-bottom: 8px;
  color: #d4d4d8;
  font-size: 14px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 14px 16px;
}
select option,
select optgroup {
  background: #1b1b1b;
  color: #ffffff;
}
textarea { resize: vertical; min-height: 120px; }
.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.contact-grid, .footer-grid, .header-row, .admin-grid {
  display: grid;
  gap: 24px;
}
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.contact-hero-inner {
  text-align: center;
  padding: 70px 0;
}
.contact-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(3rem, 4.8vw, 4.3rem);
}
.contact-hero p {
  margin: 0;
  color: #d6d9de;
  font-size: 1.15rem;
}
.contact-page {
  background: #0d0d0d;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: start;
}
.contact-form-card {
  background: #1d1d1d;
  padding: 28px 30px;
}
.contact-form-card h2,
.contact-info-card h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 3vw, 3rem);
}
.contact-form {
  display: grid;
  gap: 22px;
}
.contact-form label span {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  border-radius: 0;
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,.08);
}
.contact-submit {
  width: 100%;
  margin-top: 4px;
}
.contact-info-card {
  padding: 6px 0 0;
}
.contact-intro {
  margin: 0 0 34px;
  color: #aab1b9;
  font-size: 1.1rem;
  line-height: 1.7;
}
.contact-info-list {
  display: grid;
  gap: 26px;
}
.contact-info-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(220, 38, 38, .12);
  border-radius: 999px;
}
.contact-icon svg,
.contact-map-icon svg {
  width: 22px;
  height: 22px;
}
.contact-info-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.contact-info-item p {
  margin: 0 0 6px;
  color: #b9c0c8;
  line-height: 1.5;
}
.contact-map-card {
  margin-top: 34px;
  min-height: 215px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #1d1d1d;
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.contact-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 215px;
  border: 0;
  display: block;
  filter: grayscale(.15) saturate(.9) brightness(.88);
}
.contact-map-card.is-link {
  color: inherit;
  text-decoration: none;
}
.contact-map-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(8,8,8,.18) 0%, rgba(8,8,8,.42) 100%);
  transition: background .25s ease, opacity .25s ease;
}
.contact-map-card.is-link:hover .contact-map-overlay,
.contact-map-card.is-link:focus-visible .contact-map-overlay {
  background: linear-gradient(180deg, rgba(8,8,8,.12) 0%, rgba(8,8,8,.28) 100%);
}
.contact-map-overlay span:last-child {
  color: #f1f5f9;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.contact-map-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  color: #8f8f8f;
}
.contact-map-card p {
  margin: 0;
  color: #7f8791;
}
.panel, .login-card, .stat-card, .hero-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}
.panel, .login-card, .hero-panel { padding: 28px; }
.site-footer {
  padding: 52px 0 0;
  background: #1d1d1d;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 36px;
}
.site-footer h3 {
  margin: 0 0 18px;
  font-size: 1.05rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-social-col {
  text-align: right;
}
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 12px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text-dim);
}
.footer-social-link:hover {
  color: var(--accent);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 24px 0 34px;
}
.footer-html p { margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hero-copy-block > *,
  .featured-head > *,
  .collection-hero-inner > *,
  .contact-hero-inner > *,
  .about-hero-inner > *,
  .cta-inner > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(220,38,38,.18), transparent 28%), #0f0f10;
}
.login-card { width: min(520px, 100%); }
.flash {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.flash.success { background: rgba(22, 163, 74, 0.12); color: #bbf7d0; }
.flash.error { background: rgba(239, 68, 68, 0.12); color: #fecaca; }

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-sidebar {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.96);
}
.admin-nav-title {
  margin: 24px 0 10px;
  color: #81858d;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
}
.admin-user { margin: 28px 0 18px; color: var(--muted); }
.admin-main { padding: 32px; }
.admin-topbar { margin-bottom: 24px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vehicle-editor-layout { grid-template-columns: minmax(0, 1.1fr) minmax(520px, 0.9fr); }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }
.checkbox-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 52px;
  align-self: end;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}
.checkbox-row span {
  margin: 0;
}
.form-actions { display: flex; justify-content: flex-end; }
.table-wrap { overflow: auto; }
.admin-vehicle-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.featured-star {
  color: #facc15;
  font-size: 1rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(250, 204, 21, .28);
}
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
th {
  color: #d4d4d8;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-nav {
  display: grid;
  gap: 10px;
}
.admin-link,
.admin-ghost-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.04);
  color: #d7d9de;
}
.admin-link.is-active {
  background: rgba(220, 38, 38, .18);
  border-color: rgba(220, 38, 38, .32);
  color: #fff;
}
.admin-ghost-link {
  margin-top: 10px;
}
.image-manager {
  display: grid;
  gap: 16px;
}
.image-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.image-manager-head span {
  display: block;
  margin-bottom: 6px;
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 700;
}
.image-upload-button {
  min-height: 44px;
  padding: 0 18px;
}
.image-dropzone {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  color: #c3c8d0;
  text-align: center;
}
.image-dropzone.is-active {
  border-color: rgba(220, 38, 38, .6);
  background: rgba(220, 38, 38, .08);
}
.image-upload-feedback {
  min-height: 20px;
}
.image-upload-feedback.is-error {
  color: #fecaca;
}
.image-sort-hint {
  font-size: 13px;
}
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.image-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  cursor: grab;
}
.image-card.is-dragging {
  opacity: .55;
}
.image-card.is-drop-target {
  border-color: rgba(220, 38, 38, .55);
}
.image-card-preview img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.image-card-meta {
  display: grid;
  gap: 4px;
}
.image-card-meta strong {
  font-size: .92rem;
}
.image-card-meta span {
  color: #9ba1aa;
  font-size: 12px;
  word-break: break-all;
}
.image-remove-button {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #fca5a5;
  cursor: pointer;
}
.about-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.about-hero-inner {
  text-align: center;
  padding: 68px 0;
}
.about-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 4.6vw, 4.2rem);
}
.about-page {
  background: #0f0f10;
}
.about-content-card {
  padding: 34px;
  background: #1d1d1d;
  border: 1px solid rgba(255,255,255,.07);
}
.about-content-card .richtext {
  color: #d6d9df;
  line-height: 1.9;
  font-size: 1.06rem;
}
.check-list {
  margin: 0;
  padding-left: 18px;
  color: #e4e4e7;
  line-height: 1.9;
}

@media (max-width: 1080px) {
  .featured-grid,
  .features-grid,
  .footer-grid,
  .contact-grid,
  .contact-layout,
  .vehicle-editor-layout,
  .two-cols,
  .stats-grid,
  .advanced-filters-form,
  .detail-layout,
  .detail-content-grid,
  .detail-highlight-grid,
  .detail-actions {
    grid-template-columns: 1fr;
  }
  .hero-copy-block { margin-left: 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .image-manager-head { flex-direction: column; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 1260px); }
  .header-row, .filters, .form-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 14px; }
  .home-hero { min-height: 78vh; background-position: 64% center; }
  .home-hero h1 { font-size: 3rem; }
  .hero-copy-block { padding: 56px 0 60px; }
  .featured-head h2, .cta-inner h2 { font-size: 2.4rem; }
  .collection-hero h1 { font-size: 2.6rem; }
  .filter-bar-inner {
    flex-wrap: wrap;
    align-items: stretch;
    min-height: auto;
    overflow-x: visible;
    padding: 14px 0 10px;
    gap: 10px;
  }
  .filter-pill,
  .filter-toggle {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }
  .filter-toggle {
    flex: 0 0 42px;
  }
  .advanced-filters {
    padding: 10px 0 22px;
  }
  .advanced-select,
  .advanced-select select,
  .advanced-checkbox {
    width: 100%;
  }
  .listing-specs { grid-template-columns: 1fr; }
  .detail-spec-grid,
  .detail-thumbs { grid-template-columns: 1fr 1fr; }
  .results-bar { justify-content: flex-start; }
  .section { padding: 54px 0; }
  .admin-main { padding: 18px; }
  .panel, .login-card, .hero-panel { padding: 20px; }
}

/* Theme override layer */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family-base);
}
.site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
}
.nav-link, .admin-link, .admin-ghost-link {
  color: var(--nav-text);
}
.nav-admin,
.muted,
.contact-intro,
.featured-head p,
.results-label,
.collection-hero p,
.cta-inner p,
.hero-copy,
.contact-info-item p,
.contact-map-card p {
  color: var(--text-dim);
}
.eyebrow,
.text-link,
.text-button,
.brand-mark,
.contact-icon,
.feature-icon,
.detail-kicker {
  color: var(--accent);
}
.button {
  background: var(--accent);
}
.button:hover {
  background: var(--accent-dark);
}
.button-secondary {
  background: var(--line);
  color: var(--text);
}
.button-light {
  background: var(--button-light-bg);
  color: var(--button-light-text);
}
.featured-section,
.filter-bar,
.page-hero,
.site-footer,
.contact-map-card,
.about-content-card,
.detail-gallery,
.detail-summary-card,
.detail-panel,
.contact-form-card,
.vehicle-card-listing,
.vehicle-card,
.admin-sidebar,
.collection-hero,
.contact-page,
.about-page {
  border-color: var(--line);
}
.featured-section,
.filter-bar,
.page-hero,
.site-footer,
.contact-map-card,
.about-content-card,
.detail-gallery,
.detail-summary-card,
.detail-panel,
.contact-form-card,
.vehicle-card-listing,
.vehicle-card,
.admin-sidebar,
.contact-map-card,
.about-content-card {
  background: var(--bg-soft);
}
.features-strip,
.vehicles-showcase,
.about-page,
.detail-page {
  background: var(--bg);
}
.filter-pill,
.contact-form input,
.contact-form textarea,
.contact-form select,
.advanced-select select,
.advanced-checkbox,
.admin-link,
.admin-ghost-link {
  background: var(--panel-alt);
  border-color: var(--line);
}
.contact-icon,
.feature-icon {
  background: var(--accent-soft);
}
.panel,
.login-card,
.stat-card,
.hero-panel {
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.admin-link,
.admin-ghost-link {
  border-radius: var(--radius-soft);
}
