.used-cars-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.used-cars-eyebrow {
  margin: 0 0 14px;
  color: #db033b;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.used-cars-hero {
  min-height: 610px;
  display: flex;
  align-items: center;
  padding: 92px 0;
  background: linear-gradient(90deg, rgba(17, 24, 34, .94) 0%, rgba(17, 24, 34, .75) 52%, rgba(17, 24, 34, .18) 100%),
    var(--used-cars-hero-image, url('../img/JPG/usedcars.jpg')) center 58% / cover;
}

.used-cars-hero__content h1 {
  max-width: 790px;
  margin: 0 0 22px;
  color: #ffffff;
  font-family: var(--font-2);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
}

.used-cars-hero__content > p:not(.used-cars-eyebrow) {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  line-height: 1.75;
}

.used-cars-hero__actions {
  margin: 34px 0 0;
  gap: 12px;
}

.used-cars-hero__actions .site-nav-button,
.used-cars-hero__actions .site-nav-icon {
  min-height: 56px;
}

.used-cars-hero__actions .site-nav-button {
  padding: 15px 24px;
  font-size: 16px;
}

.used-cars-hero__actions .site-nav-icon {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  border-color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08) !important;
  color: #ffffff !important;
}

.used-cars-hero__actions .site-nav-icon:hover,
.used-cars-hero__actions .site-nav-icon:focus {
  background: #ffffff !important;
  color: #db033b !important;
}

.used-cars-inventory {
  padding: 96px 0;
  background: #ffffff;
}

.used-cars-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 46px;
}

.used-cars-heading h2,
.used-cars-visit h2 {
  margin: 0;
  color: #172333;
  font-family: var(--font-2);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 900;
}

.used-cars-heading > p,
.used-cars-visit p:not(.used-cars-eyebrow) {
  margin: 0;
  color: #536170;
  font-size: 17px;
  line-height: 1.7;
}

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

.vehicle-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 35, 51, .1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(23, 35, 51, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.vehicle-card:hover {
  border-color: rgba(219, 3, 59, .32);
  box-shadow: 0 28px 64px rgba(23, 35, 51, .15);
  transform: translateY(-6px);
}

.vehicle-card__media {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #eef2f5;
}

.vehicle-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.vehicle-card__media .carousel-control-prev,
.vehicle-card__media .carousel-control-next {
  width: 40px;
  height: 40px;
  top: auto;
  bottom: 16px;
  border-radius: 50%;
  background: #db033b;
  opacity: 1;
}

.vehicle-card__media .carousel-control-prev { left: 16px; }
.vehicle-card__media .carousel-control-next { left: 64px; right: auto; }

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

.vehicle-card__status {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 11px;
  border-radius: 7px;
  background: #db033b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.vehicle-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.vehicle-card__brand {
  margin: 0 0 5px;
  color: #db033b;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.vehicle-card h3 {
  margin: 0 0 24px;
  color: #172333;
  font-family: var(--font-2);
  font-size: 30px;
  font-weight: 900;
}

.vehicle-card__title-row {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.vehicle-card__price {
  color: #db033b;
  font-size: 17px;
  white-space: nowrap;
}

.vehicle-card__description {
  margin: -10px 0 20px;
  color: #536170;
  line-height: 1.65;
}

.vehicle-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #e6ebef;
  border-radius: 8px;
  background: #e6ebef;
}

.vehicle-card__specs > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 13px;
  background: #ffffff;
}

.vehicle-card__specs i {
  grid-row: 1 / 3;
  align-self: center;
  color: #db033b;
  font-size: 15px;
}

.vehicle-card__specs small {
  color: #7a8591;
  font-size: 11px;
  font-weight: 700;
}

.vehicle-card__specs strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #172333;
  font-size: 12px;
  line-height: 1.35;
}

.vehicle-card__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e6ebef;
}

.vehicle-contact-button {
  min-width: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 8px;
  border: 1px solid #db033b;
  border-radius: 8px;
  background: #ffffff;
  color: #db033b;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, color .2s ease, background-color .2s ease, border-color .2s ease;
}

.vehicle-contact-button--primary {
  background: #db033b;
  color: #ffffff;
}

.vehicle-contact-button--whatsapp {
  border-color: #db033b;
  color: #db033b;
}

.vehicle-contact-button:hover,
.vehicle-contact-button:focus {
  background: #db033b;
  color: #ffffff;
  transform: translateY(-2px);
}

.vehicle-contact-button--primary:hover,
.vehicle-contact-button--primary:focus {
  border-color: #b80231;
  background: #b80231;
}

.vehicle-contact-button--whatsapp:hover,
.vehicle-contact-button--whatsapp:focus {
  border-color: #db033b;
  background: #db033b;
  color: #ffffff;
}

.used-cars-empty {
  grid-column: 1 / -1;
  padding: 54px 28px;
  border: 1px solid rgba(23, 35, 51, .1);
  border-radius: 12px;
  background: #f6f9fb;
  text-align: center;
}

.used-cars-empty > i {
  color: #db033b;
  font-size: 42px;
}

.used-cars-empty h3 {
  margin: 14px 0 8px;
  color: #172333;
  font-family: var(--font-2);
  font-weight: 900;
}

.used-cars-empty .site-nav-actions {
  justify-content: center;
  margin: 24px 0 0;
}

.used-cars-visit {
  padding: 88px 0;
  background: #f6f9fb;
}

.used-cars-visit__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 46px;
  align-items: center;
}

.used-cars-visit__inner > div:first-child {
  max-width: 720px;
}

.used-cars-visit h2 {
  margin-bottom: 16px;
}

.used-cars-visit__actions {
  margin: 0;
}

@media (max-width: 1199.98px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .used-cars-container {
    width: min(100% - 36px, 1240px);
  }

  .used-cars-hero {
    min-height: 560px;
    padding: 76px 0;
    background-position: 42% center;
  }

  .used-cars-hero__content h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .used-cars-hero__content > p:not(.used-cars-eyebrow) {
    font-size: 16px;
  }

  .used-cars-hero__actions,
  .vehicle-card__actions,
  .used-cars-visit__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .used-cars-hero__actions .site-nav-button,
  .used-cars-hero__actions .dropdown,
  .used-cars-hero__actions .site-nav-icon,
  .vehicle-card__actions .site-nav-button,
  .vehicle-card__actions .dropdown,
  .vehicle-card__actions .site-nav-icon,
  .used-cars-visit__actions .site-nav-button,
  .used-cars-visit__actions .dropdown,
  .used-cars-visit__actions .site-nav-icon {
    width: 100%;
    border-radius: 9px;
  }

  .used-cars-inventory,
  .used-cars-visit {
    padding: 72px 0;
  }

  .used-cars-heading,
  .used-cars-visit__inner,
  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .used-cars-heading {
    gap: 22px;
    margin-bottom: 34px;
  }

  .vehicle-card__media {
    height: 280px;
  }

  .vehicle-card__body {
    padding: 22px 18px;
  }

  .vehicle-card__title-row {
    min-height: 0;
  }

  .used-cars-visit__inner {
    gap: 30px;
  }
}

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