.vehicle-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(24, 28, 60, .06);
  transition: transform .28s ease, box-shadow .28s ease;
}

.vehicle-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 45px rgba(24, 28, 60, .13);
}

.vehicle-card[hidden] { display: none; }

.vehicle-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.52 / 1;
  background: #e7e9ef;
}

.vehicle-image-link { display: block; width: 100%; height: 100%; }

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.vehicle-card:hover .vehicle-image img { transform: scale(1.035); }

.vehicle-gallery-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(4, 4, 63, .78);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background .2s ease, transform .2s ease;
}
.vehicle-gallery-arrow:hover { background: var(--brand); transform: translateY(-50%) scale(1.06); }
.vehicle-gallery-arrow.previous { left: 12px; }
.vehicle-gallery-arrow.next { right: 12px; }
.vehicle-gallery-count {
  position: absolute;
  z-index: 4;
  right: 13px;
  bottom: 12px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(4,4,63,.76);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}

.vehicle-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 7px 11px;
  color: var(--brand);
  background: rgba(255,255,255,.92);
  border-radius: 5px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vehicle-tag.featured { color: var(--brand-deep); background: var(--cyan); }

.vehicle-info { padding: 23px; }
.vehicle-heading { display: grid; gap: 18px; }
.vehicle-kicker {
  color: var(--cyan-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.vehicle-info h3 {
  margin-top: 4px;
  color: var(--brand-deep);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.vehicle-info h3 a:hover { color: var(--brand); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.vehicle-version { margin-top: 5px; color: var(--muted); font-size: 13px; }
.vehicle-price { color: var(--brand); font-family: var(--display); font-size: 28px; font-weight: 900; letter-spacing: -.035em; line-height: 1; }

.vehicle-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  padding: 15px 0;
  border-block: 1px solid var(--line-light);
}
.vehicle-specs div { min-width: 0; padding: 0 10px; border-right: 1px solid var(--line-light); }
.vehicle-specs div:first-child { padding-left: 0; }
.vehicle-specs div:last-child { padding-right: 0; border-right: 0; }
.vehicle-specs dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.vehicle-specs dd { margin-top: 3px; overflow: hidden; color: #343747; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.vehicle-inquiry {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 0 3px;
  color: var(--brand);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.vehicle-inquiry span:last-child { width: 32px; height: 32px; display: grid; place-items: center; color: var(--white); background: var(--brand); border-radius: 50%; transition: transform .2s ease, background .2s ease; }
.vehicle-inquiry:hover span:last-child { background: var(--cyan-deep); transform: translateX(3px); }

.vehicle-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #777b8e;
  background:
    linear-gradient(135deg, transparent 49.5%, rgba(8,6,111,.07) 49.5% 50.5%, transparent 50.5%),
    #e9ebf1;
  background-size: 32px 32px;
}
.vehicle-image-placeholder span { padding: 8px 12px; background: rgba(255,255,255,.82); border-radius: 4px; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

.vehicle-track.is-empty { grid-template-columns: 1fr; }
.inventory-empty {
  grid-column: 1 / -1;
  min-height: 360px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 48px 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.inventory-empty > span { width: 64px; height: 64px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 50%; font-family: var(--display); font-size: 22px; font-weight: 900; }
.inventory-empty h3 { max-width: 700px; margin-top: 22px; color: var(--brand-deep); font-family: var(--display); font-size: clamp(34px, 4vw, 52px); font-weight: 900; letter-spacing: -.045em; line-height: 1.05; }
.inventory-empty p { max-width: 570px; margin-top: 13px; color: var(--muted); }
.inventory-empty .button { margin-top: 24px; }
.inventory-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.inventory-empty-actions .button { margin-top: 0; }

.contact-form.is-submitting { opacity: .62; pointer-events: none; }
.contact-form .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .vehicle-info { padding: 20px; }
  .vehicle-info h3 { font-size: 27px; }
}

@media (max-width: 620px) {
  .vehicle-info { padding: 22px; }
  .vehicle-info h3 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-card,
  .vehicle-image img,
  .vehicle-inquiry span:last-child,
  .vehicle-gallery-arrow { transition: none; }
}
