/* Vehicle details (desktop + shared) */

.vehicle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 24px;
  align-items: start;
}

.vehicle-hero__price {
	color: var(--brand);
	font-weight: 900;
}

.vehicle-hero__dot {
	opacity: .6;
	margin: 0 10px;
}

/* Vehicle page uses the shared page-hero, but without the right-side image */
.desktop-vehicle .page-hero--vehicle .page-hero__grid {
  grid-template-columns: 1fr;
}

.desktop-vehicle .page-hero--vehicle .page-hero__lead {
  max-width: 78ch;
}


.vehicle-gallery {
  overflow: hidden;
}

.vehicle-carousel {
  position: relative;
}

.vehicle-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.vehicle-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.vehicle-carousel__track {
  display: flex;
  width: 100%;
}

.vehicle-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.vehicle-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  height: 44px;
  width: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.50);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.vehicle-carousel__btn:hover {
  background: rgba(0, 0, 0, 0.62);
}

.vehicle-carousel__btn:disabled {
  opacity: .35;
  cursor: default;
}

.vehicle-carousel__btn--prev { left: 14px; }
.vehicle-carousel__btn--next { right: 14px; }

.vehicle-carousel__meta {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.vehicle-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: clamp(320px, 48vh, 520px);
  background: #0b0f19;
}

.vehicle-media::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  filter: blur(22px);
  transform: scale(1.08);
  opacity: .9;
}

.vehicle-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.05), rgba(10, 14, 18, 0.18));
}

.vehicle-media__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.vehicle-thumbs {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.vehicle-thumbs::-webkit-scrollbar {
  display: none;
}

.vehicle-thumb {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
	flex: 0 0 auto;
	width: 86px;
	scroll-snap-align: start;
}

.vehicle-thumb.is-active {
	outline: 2px solid rgba(238, 46, 43, 0.55);
	outline-offset: 2px;
}

.vehicle-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(11, 15, 25, 0.86);
  display: block;
  transition: transform .15s ease;
}

.vehicle-thumb:hover img {
  transform: scale(1.03);
}

.vehicle-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-kv span {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.vehicle-kv strong {
  display: block;
  font-size: 15px;
}

.vehicle-sticky {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.vehicle-sidebar__title {
	font-size: 20px;
	font-weight: 950;
	letter-spacing: -0.01em;
}

.vehicle-sidebar__sub {
	margin: 8px 0 0;
}

.vehicle-sideactions {
  display: grid;
  gap: 10px;
}

.vehicle-sections {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.vehicle-section-card .card__body {
  padding: 20px;
}

.vehicle-specs--full {
  margin-top: 14px;
}

.vehicle-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(11, 15, 25, 0.03);
  border: 1px solid rgba(11, 15, 25, 0.08);
}

.vehicle-fact {
  display: grid;
  gap: 4px;
}

.vehicle-fact strong {
  font-weight: 900;
}

.vehicle-details-block {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(11, 15, 25, 0.02);
  border: 1px solid rgba(11, 15, 25, 0.08);
}

.vehicle-details-block summary {
  cursor: pointer;
  font-weight: 900;
}

.vehicle-h2 {
  margin: 18px 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
}

.vehicle-specs > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.vehicle-specs > div:nth-child(-n+2) {
  border-top: 0;
}

.vehicle-specs > div:nth-child(2n+1) {
  border-left: 0;
}

.vehicle-specs span {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(91, 102, 122, 0.9);
}

.vehicle-specs strong {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.vehicle-features {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vehicle-features li {
  color: rgba(20, 26, 32, 0.86);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .vehicle-media {
    height: clamp(260px, 55vw, 440px);
  }

  .vehicle-carousel__btn { display: none; }
}

@media (max-width: 900px) {
  .vehicle-layout {
    grid-template-columns: 1fr;
  }

  .vehicle-sticky {
    position: static;
  }
}
