/* ========================================================================== */
/* 03C — Fleet / Autopark                                                     */
/* Visual source: 03_autopark_cards_and_bottom_sheets.png.                    */
/* Detail panel itself is intentionally deferred to 03D.                      */
/* ========================================================================== */

.fleet {
  scroll-margin-top: calc(var(--header-h) + 16px);
  padding: 46px 0 74px;
}

.fleet__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.fleet__head-copy { max-width: 680px; }

.fleet__eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--c-indigo-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1;
  text-transform: uppercase;
}

.fleet__title {
  margin: 0;
  color: var(--c-slate-950);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.fleet__lead {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--c-slate-500);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.fleet__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.vehicle-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  grid-template-areas:
    "media head"
    "media meta"
    "media footer";
  column-gap: 14px;
  row-gap: 7px;
  align-items: center;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--c-slate-200);
  border-radius: var(--radius-16);
  background: var(--c-white);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .035);
  transition:
    transform 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.vehicle-card:hover {
  border-color: rgba(129,140,248,.46);
  box-shadow: 0 10px 28px rgba(15,23,42,.07);
  transform: translateY(-2px);
}

.vehicle-card:has(.vehicle-card__trigger:focus-visible) {
  border-color: var(--c-indigo-500);
  box-shadow: 0 0 0 3px rgba(79,70,229,.10), 0 10px 28px rgba(15,23,42,.07);
}

.vehicle-card__head {
  grid-area: head;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  align-self: end;
}

.vehicle-card__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--c-slate-900);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-card__badge {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--c-indigo-50);
  color: var(--c-indigo-600);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.vehicle-card__media {
  grid-area: media;
  position: relative;
  min-width: 0;
  height: 112px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff 5%, #f8fafc 58%, #eef2f7 100%);
}

.vehicle-card__media picture,
.vehicle-card__media img {
  width: 100%;
  height: 100%;
}

.vehicle-card__media img {
  object-fit: cover;
  object-position: center;
  transition: transform 260ms var(--ease);
}

.vehicle-card--studio .vehicle-card__media img {
  object-fit: contain;
  padding: 4px;
}

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

.vehicle-card__meta {
  grid-area: meta;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  align-self: start;
  color: var(--c-slate-500);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.vehicle-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.vehicle-card__meta-item .icon {
  width: 13px;
  height: 13px;
  color: var(--c-slate-600);
}

.vehicle-card__footer {
  grid-area: footer;
  min-width: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  align-self: start;
}

.vehicle-card__price {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 5px;
  color: var(--c-slate-500);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.vehicle-card__price strong {
  color: var(--c-indigo-600);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}

.vehicle-card__price-unit {
  color: var(--c-slate-500);
  font-size: 9px;
  font-weight: 600;
}

.vehicle-card__details {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 0 8px;
  border: 1px solid var(--c-slate-200);
  border-radius: 9px;
  background: var(--c-white);
  color: var(--c-indigo-600);
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}

.vehicle-card__details .icon { width: 13px; height: 13px; }

.vehicle-card__trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.vehicle-card__trigger:focus { outline: 0; }
.vehicle-card__trigger:focus-visible { outline: 3px solid var(--c-focus); outline-offset: -4px; }

.fleet__note {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--c-slate-500);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.fleet__note .icon {
  width: 16px;
  height: 16px;
  color: var(--c-indigo-600);
}

/* Hidden handoff anchor. 03D attaches the actual responsive detail panel here. */
.vehicle-detail-anchor {
  height: 1px;
  scroll-margin-top: calc(var(--header-h) + 18px);
}

@media (min-width: 520px) and (max-width: 767px) {
  .vehicle-card {
    grid-template-columns: 148px minmax(0, 1fr);
    padding: 14px;
  }
  .vehicle-card__media { height: 124px; }
  .vehicle-card__title { font-size: 18px; }
  .vehicle-card__price strong { font-size: 20px; }
}

@media (min-width: 768px) {
  .fleet { padding: 74px 0 92px; }
  .fleet__head { margin-bottom: 24px; }
  .fleet__eyebrow { font-size: 12px; }
  .fleet__title { font-size: 36px; }
  .fleet__lead { font-size: 14px; }

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

  .vehicle-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 406px;
    padding: 16px;
    border-radius: var(--radius-20);
  }

  .vehicle-card__head {
    width: 100%;
    align-self: auto;
  }

  .vehicle-card__title { font-size: 21px; }
  .vehicle-card__badge { min-height: 25px; font-size: 9.5px; }

  .vehicle-card__media {
    width: 100%;
    height: 224px;
    margin: 10px 0 12px;
    border-radius: var(--radius-16);
  }

  .vehicle-card__meta {
    width: 100%;
    min-height: 28px;
    gap: 8px 14px;
    padding-top: 10px;
    border-top: 1px solid var(--c-slate-100);
    font-size: 10.5px;
  }

  .vehicle-card__meta-item .icon { width: 14px; height: 14px; }

  .vehicle-card__footer {
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    align-items: center;
  }

  .vehicle-card__price { font-size: 10px; }
  .vehicle-card__price strong { font-size: 25px; }
  .vehicle-card__price-unit { font-size: 10px; }

  .vehicle-card__details {
    min-height: 38px;
    padding-inline: 12px;
    border-radius: 10px;
    font-size: 10.5px;
  }
  .vehicle-card__details .icon { width: 15px; height: 15px; }

  .fleet__note { margin-top: 18px; font-size: 11px; }
}

@media (min-width: 1100px) {
  .fleet { padding-top: 78px; }
  .fleet__grid { gap: 18px; }
  .vehicle-card { min-height: 428px; padding: 18px; }
  .vehicle-card__media { height: 236px; }
  .vehicle-card__title { font-size: 22px; }
  .vehicle-card__price strong { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-card,
  .vehicle-card__media img { transition: none; }
}

/* 03C.1 refinement — clean packshots, no visual image tiles. */
.vehicle-card__media {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.vehicle-card__media img,
.vehicle-card--studio .vehicle-card__media img {
  object-fit: contain;
  object-position: center;
  padding: 0;
}

@media (max-width: 767px) {
  .vehicle-card__media {
    height: 116px;
  }
  .vehicle-card__media img {
    transform: scale(1.08);
  }
  .vehicle-card:hover .vehicle-card__media img {
    transform: scale(1.105);
  }
  .vehicle-card__meta {
    gap: 5px 9px;
  }
}

@media (min-width: 768px) {
  .vehicle-card {
    min-height: 382px;
  }
  .vehicle-card__media {
    height: 205px;
    margin: 7px 0 10px;
  }
  .vehicle-card__media img {
    width: 92%;
    margin-inline: auto;
    transform: scale(1.04);
  }
  .vehicle-card:hover .vehicle-card__media img {
    transform: scale(1.065);
  }
  .vehicle-card__meta {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    padding-top: 8px;
  }
  .vehicle-card__meta-item {
    flex: 0 1 auto;
  }
}

@media (min-width: 1100px) {
  .vehicle-card { min-height: 394px; }
  .vehicle-card__media { height: 214px; }
}

/* 03D refinement — cards no longer use duplicated transmission badge. */
.vehicle-card__head { justify-content: flex-start; }

/* ========================================================================== */
/* 03D.1 — explicit booking context between Quick Booking and Fleet           */
/* ========================================================================== */

.fleet-context {
  margin: -4px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--c-indigo-100);
  border-radius: var(--radius-14, 14px);
  background: linear-gradient(180deg, #fbfbff 0%, #f8f9ff 100%);
}

.fleet-context__copy { min-width: 0; }
.fleet-context__label {
  display: block;
  margin-bottom: 3px;
  color: var(--c-indigo-600);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.fleet-context__value {
  display: block;
  color: var(--c-slate-800);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}
.fleet-context__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}
.fleet-context__action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-indigo-600);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.fleet-context__action--muted { color: var(--c-slate-500); }

.vehicle-card__context-total {
  flex-basis: 100%;
  margin-top: 3px;
  color: var(--c-slate-500);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .fleet-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 12px 16px;
  }
  .fleet-context__label { font-size: 10.5px; }
  .fleet-context__value { font-size: 12.5px; }
  .fleet-context__actions { margin-top: 0; }
  .vehicle-card__context-total { font-size: 9.5px; }
}

/* ========================================================================== */
/* 03D.2 — simplified landing-page fleet state                               */
/* ========================================================================== */
.fleet__head { margin-bottom: 18px; }
.fleet__head-copy { max-width: none; }
.fleet__title { margin: 0; }

.vehicle-card__price strong,
.vehicle-card__context-total,
.vehicle-card__details {
  transition: opacity 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}
.vehicle-card.is-price-updated .vehicle-card__price strong,
.vehicle-card.is-price-updated .vehicle-card__context-total {
  animation: fleet-price-pulse 220ms var(--ease);
}
@keyframes fleet-price-pulse {
  0% { opacity: .45; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}

.vehicle-card__details[data-card-action] {
  min-width: 88px;
  justify-content: center;
}

@media (min-width: 768px) {
  .fleet { padding-top: 66px; }
  .fleet__head { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-card.is-price-updated .vehicle-card__price strong,
  .vehicle-card.is-price-updated .vehicle-card__context-total { animation: none; }
}
