/*
 * Vehicle detail page — calm, product-first visual system.
 * Uses the shared Apple-inspired type and spacing tokens while keeping
 * the site's own dark-blue palette and restrained product surfaces.
 */

.vehicle-body{
  --vehicle-ink:#172127;
  --vehicle-muted:#68757d;
  --vehicle-line:#dfe7e9;
  --vehicle-canvas:#f2f6f6;
  --vehicle-surface:#fff;
  --vehicle-soft:#edf5f5;
  --vehicle-mint:#edf5f8;
  --vehicle-accent:#198fc8;
  --vehicle-accent-deep:#126d92;
  --vehicle-blue:#21a0d8;
  --vehicle-radius-lg:24px;
  --vehicle-radius-md:16px;
  --vehicle-shadow:0 18px 52px rgba(26,52,61,.075);
  background:var(--vehicle-canvas);
}

.vehicle-body main{
  background:
    radial-gradient(circle at 88% 6%,rgba(25,143,200,.09),transparent 28%),
    linear-gradient(180deg,#f7f9f9 0,var(--vehicle-canvas) 34%,#f4f7f7 100%);
}

.vehicle-page{
  width:min(1320px,calc(100% - 48px));
  padding:24px 0 72px;
}

.vehicle-page .breadcrumbs{
  margin-bottom:20px;
}

.vehicle-page .breadcrumbs ol{
  gap:8px;
}

.vehicle-page .breadcrumbs a,
.vehicle-page .breadcrumbs span{
  color:#7b878e;
  font-size:12px;
  line-height:18px;
}

.vehicle-heading{
  margin:0 0 24px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  gap:32px;
}

.vehicle-heading__badges{
  margin-bottom:12px;
  gap:8px;
}

.vehicle-chip{
  min-height:32px;
  padding:0 12px;
  border:0;
  border-radius:999px;
  background:#e9eff0;
  color:#526168;
  font-size:11px;
  line-height:14px;
  font-weight:600;
}

.vehicle-chip--stock{
  background:#edf5f8;
  color:#386b82;
}

.vehicle-heading h1{
  color:var(--vehicle-ink);
  font-size:clamp(34px,3.1vw,44px);
  font-weight:650;
  line-height:1.08;
  letter-spacing:-.038em;
}

.vehicle-heading__copy>p{
  margin-top:10px;
  color:var(--vehicle-muted);
  font-size:15px;
  line-height:22px;
}

.vehicle-heading__copy>p span{
  margin-inline:8px;
  color:#a8b2b7;
}

.vehicle-heading__actions{
  gap:8px;
}

.vehicle-tool{
  min-width:138px;
  height:48px;
  min-height:48px;
  padding:0 16px;
  border:1px solid var(--vehicle-line);
  border-radius:14px;
  background:rgba(255,255,255,.88);
  box-shadow:0 8px 24px rgba(29,52,59,.035);
  color:#53636b;
  gap:10px;
}

.vehicle-tool b{
  font-size:13px;
  line-height:18px;
  font-weight:600;
}

.vehicle-tool .favorite-heart,
.vehicle-tool .compare-icon{
  width:20px!important;
  height:20px!important;
}

.vehicle-tool.car-favorite[aria-pressed="true"]{
  border-color:#f1d2d6;
  background:#fff7f8;
}

.vehicle-tool.car-compare[aria-pressed="true"]{
  border-color:#c9e0e7;
  background:#f0f8fa;
}

.vehicle-heading__utilities{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:8px;
}

.vehicle-heading__utilities .vehicle-tool{
  flex:0 0 auto;
  width:140px;
  min-width:140px;
  height:44px;
  min-height:44px;
  padding:0 14px;
  border:1px solid #dbe4e6;
  border-radius:12px;
  background:rgba(255,255,255,.82);
  color:#66777f;
  box-shadow:0 7px 20px rgba(29,52,59,.035);
  gap:8px;
}

.vehicle-heading__utilities .vehicle-tool b{
  display:block;
  font-size:12px;
  line-height:16px;
  font-weight:550;
}

.vehicle-heading__utilities .vehicle-tool .favorite-heart,
.vehicle-heading__utilities .vehicle-tool .compare-icon{
  width:20px!important;
  height:20px!important;
}

.vehicle-heading__utilities .vehicle-tool.car-favorite[aria-pressed="true"]{
  border-color:#efd9dc;
  background:#fff7f8;
}

.vehicle-heading__utilities .vehicle-tool.car-compare[aria-pressed="true"]{
  border-color:#cfe1e6;
  background:#f0f8fa;
}

.vehicle-stage{
  grid-template-columns:minmax(0,1fr) 400px;
  gap:24px;
  align-items:start;
}

.vehicle-stage__main{
  gap:0;
}

.vehicle-gallery{
  padding:12px;
  border:1px solid rgba(218,228,230,.9);
  border-radius:var(--vehicle-radius-lg);
  background:var(--vehicle-surface);
  box-shadow:var(--vehicle-shadow);
}

.vehicle-gallery__main{
  border:0;
  border-radius:18px;
  background:#e9eeee;
  isolation:isolate;
}

.vehicle-gallery__main::after{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.34);
}

.vehicle-gallery .gallery-main{
  aspect-ratio:4/3;
  border-radius:18px;
  object-fit:cover;
  transition:opacity 220ms ease,filter 220ms ease,transform 420ms cubic-bezier(.2,.7,.2,1);
}

.vehicle-gallery .gallery-main.is-changing{
  opacity:.52;
  filter:saturate(.92);
  transform:scale(1.004);
}

.vehicle-gallery .offer-ribbon{
  top:16px;
  left:16px;
  height:30px;
  padding:0 12px;
  border-radius:8px;
  background:rgba(20,33,40,.9);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  letter-spacing:.025em;
}

.vehicle-gallery .offer-ribbon--program{
  background:linear-gradient(135deg,rgba(24,73,94,.96),rgba(25,143,200,.96));
}

.vehicle-gallery__controls{
  inset:0;
  height:auto;
  border:0;
  background:transparent;
  display:block;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  pointer-events:none;
}

.vehicle-gallery__controls button{
  position:absolute;
  top:0;
  bottom:0;
  width:58px;
  height:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#fff;
  opacity:.78;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  box-shadow:none;
  transform:none;
  transition:opacity 180ms ease,background 180ms ease;
  pointer-events:auto;
}

.vehicle-gallery__controls button:first-child{
  left:0;
  border-radius:18px 0 0 18px;
  background:linear-gradient(90deg,rgba(8,15,19,.24),rgba(8,15,19,0));
}

.vehicle-gallery__controls button:last-child{
  right:0;
  border-radius:0 18px 18px 0;
  background:linear-gradient(270deg,rgba(8,15,19,.24),rgba(8,15,19,0));
}

.vehicle-gallery__controls button>span{
  width:11px;
  height:11px;
  border-width:0 0 2px 2px;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.72));
}

.vehicle-gallery__controls>span{
  position:absolute;
  right:16px;
  bottom:16px;
  min-width:42px;
  height:30px;
  padding:0 8px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:999px;
  background:rgba(18,28,34,.68);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  pointer-events:none;
}

.vehicle-gallery .gallery-thumbs{
  margin-top:12px;
  padding:2px 0;
  gap:8px;
  cursor:grab;
  user-select:none;
  scrollbar-width:none;
}

.vehicle-gallery .gallery-thumbs.is-dragging{
  cursor:grabbing;
  scroll-behavior:auto;
}

.vehicle-gallery .gallery-thumbs img{
  pointer-events:none;
  -webkit-user-drag:none;
  user-select:none;
}

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

.vehicle-gallery__thumb-rail{
  height:14px;
  margin:4px 4px 0;
  position:relative;
  cursor:pointer;
  touch-action:none;
}

.vehicle-gallery__thumb-rail::before{
  content:"";
  position:absolute;
  inset:5px 0;
  border-radius:999px;
  background:rgba(91,112,122,.14);
}

.vehicle-gallery__thumb-rail>span{
  width:44px;
  height:4px;
  position:absolute;
  z-index:1;
  left:0;
  top:5px;
  border-radius:999px;
  background:linear-gradient(90deg,#567786,var(--vehicle-accent));
  box-shadow:0 2px 7px rgba(25,143,200,.18);
  transition:width 180ms ease,transform 180ms cubic-bezier(.2,.7,.2,1);
  will-change:transform;
}

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

.vehicle-gallery .gallery-thumbs button{
  width:96px;
  height:72px;
  flex:0 0 96px;
  border:2px solid transparent;
  border-radius:12px;
  background:#e9eeee;
  opacity:.58;
  box-shadow:none;
}

.vehicle-gallery .gallery-thumbs button.active{
  border-color:var(--vehicle-accent);
  box-shadow:0 0 0 3px rgba(25,143,200,.12);
  opacity:1;
}

.vehicle-gallery__foot{
  min-height:52px;
  margin-top:8px;
  padding:0 4px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#69767d;
  font-size:12px;
  line-height:18px;
}

.vehicle-gallery__foot>span{
  gap:8px;
}

.vehicle-gallery__pin,
.vehicle-gallery__clock{
  width:18px;
  height:18px;
}

.vehicle-purchase{
  top:calc(var(--program-banner-height) + 84px);
  padding:24px;
  border:1px solid rgba(218,228,230,.92);
  border-radius:var(--vehicle-radius-lg);
  background:rgba(255,255,255,.96);
  box-shadow:var(--vehicle-shadow);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}

body:not(.has-program-banner) .vehicle-purchase{
  top:84px;
}

@media (min-width:981px){
  .vehicle-purchase{
    position:sticky;
    top:calc(var(--program-banner-height) + 84px)!important;
  }

  body:not(.has-program-banner) .vehicle-purchase{
    top:84px!important;
  }
}

.vehicle-purchase__top{
  min-height:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:#738087;
  font-size:12px;
  line-height:16px;
}

.vehicle-purchase__top>b{
  height:26px;
  padding:0 9px;
  border-radius:999px;
  background:#edf5f8;
  color:#386b82;
  font-size:10px;
}

.vehicle-purchase__price{
  margin:8px 0 16px;
  grid-template-columns:auto 1fr;
  align-items:baseline;
  gap:4px 12px;
}

.vehicle-purchase__price strong{
  color:var(--vehicle-ink);
  font-size:34px;
  line-height:40px;
  font-weight:650;
  letter-spacing:-.035em;
}

.vehicle-purchase__price s{
  justify-self:start;
  color:#8d989e;
  font-size:13px;
}

.vehicle-purchase__price small{
  color:#386b82;
  font-size:11px;
  line-height:16px;
}

.vehicle-finance{
  padding:16px 0 12px;
  border:0;
  border-top:1px solid #e3eaec;
  border-bottom:1px solid #e3eaec;
  border-radius:0;
  background:transparent;
}

.vehicle-finance>div{
  align-items:baseline;
  flex-direction:row;
  justify-content:space-between;
  gap:12px;
}

.vehicle-finance>div span{
  color:#65757d;
  font-size:12px;
  line-height:16px;
}

.vehicle-finance>div strong{
  color:#20323b;
  font-size:18px;
  line-height:24px;
  white-space:nowrap;
}

.vehicle-finance ul{
  margin-top:7px;
  padding:0;
  border:0;
  gap:0;
  color:#7b878d;
}

.vehicle-finance li{
  min-height:0;
  padding:0;
  border-radius:0;
  background:transparent;
  font-size:11px;
  line-height:16px;
}

.vehicle-finance li+li::before{
  content:"·";
  margin:0 7px;
  color:#a7b0b5;
}

.vehicle-finance button{
  min-height:36px;
  margin-top:5px;
  border:0;
  color:#24647f;
  font-size:12px;
  font-weight:600;
  text-align:left;
}

.vehicle-credit-terms{
  margin-top:2px;
  color:#6f7b81;
  font-size:11px;
  line-height:16px;
}

.vehicle-credit-terms summary{
  width:100%;
  min-height:40px;
  border:0;
  color:#5c6a71;
}

.vehicle-purchase__actions{
  margin-top:12px;
  gap:8px;
}

.vehicle-purchase__actions .button{
  min-height:52px;
  border-radius:14px;
  font-size:13px;
  line-height:18px;
  font-weight:650;
}

.vehicle-purchase__actions .button.primary{
  border:0;
  background-color:var(--vehicle-accent);
  background-image:linear-gradient(120deg,#15242c,var(--vehicle-accent));
  background-repeat:no-repeat;
  overflow:hidden;
  box-shadow:0 12px 24px rgba(22,91,124,.18);
}

.vehicle-purchase__actions .button.secondary{
  border-color:#d7e0e3;
  background:#fff;
  color:#26343a;
}

.vehicle-quick-specs{
  margin-top:18px;
  padding:0;
  grid-template-columns:1fr 1fr;
  gap:0;
  border:0;
  border-top:1px solid #e3eaec;
  border-bottom:1px solid #e3eaec;
}

.vehicle-quick-specs>div{
  min-height:64px;
  padding:11px 0;
  border:0;
  border-radius:0;
  background:transparent;
  justify-content:center;
}

.vehicle-quick-specs>div:nth-child(odd){
  padding-right:12px;
  border-right:1px solid #e3eaec;
}

.vehicle-quick-specs>div:nth-child(even){
  padding-left:12px;
}

.vehicle-quick-specs>div:nth-child(-n+2){
  border-bottom:1px solid #e3eaec;
}

.vehicle-quick-specs dt{
  color:#7b878d;
  font-size:11px;
  line-height:16px;
}

.vehicle-quick-specs dd{
  margin-top:5px;
  color:#26343a;
  font-size:13px;
  line-height:18px;
}

.vehicle-trust{
  margin-top:16px;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:6px;
}

.vehicle-trust>span{
  height:28px;
  padding:0;
  border-radius:0;
  background:transparent;
  color:#386b82;
  font-size:11px;
  line-height:16px;
}

.vehicle-trust>span:nth-child(n+2){
  background:transparent;
  color:#496a78;
}

.vehicle-purchase__contact{
  margin-top:18px;
  padding-top:18px;
  border-top-color:#e5ebed;
}

.vehicle-purchase__contact span{
  color:#758188;
  font-size:12px;
  line-height:16px;
}

.vehicle-purchase__contact a{
  color:#1d2d34;
  font-size:14px;
  line-height:20px;
}

.vehicle-tabs{
  margin-top:24px;
}

.vehicle-tabs__nav{
  width:min(560px,100%);
  padding:4px;
  border:0;
  border-radius:16px;
  background:#e7eeee;
  gap:4px;
}

.vehicle-tabs__nav button{
  min-height:48px;
  padding:0 20px;
  border:0;
  border-radius:12px;
  color:#5e6d74;
  font-size:13px;
  line-height:18px;
  font-weight:600;
}

.vehicle-tabs__nav button[aria-selected="true"]{
  border:0;
  background:#fff;
  color:#20323b;
  box-shadow:0 5px 16px rgba(32,61,67,.09);
}

.vehicle-tabs .vehicle-section{
  margin-top:20px;
}

.vehicle-section{
  padding:28px;
  border:1px solid rgba(218,228,230,.9);
  border-radius:var(--vehicle-radius-lg);
  background:#fff;
  box-shadow:0 14px 42px rgba(26,52,61,.055);
}

.vehicle-section__head{
  margin-bottom:24px;
  grid-template-columns:1fr;
  gap:8px;
}

.vehicle-section__head .eyebrow{
  margin-bottom:6px;
  color:#247ca5;
}

.vehicle-section__head h2,
.equipment__head h2{
  color:var(--vehicle-ink);
  font-size:28px;
  line-height:34px;
  letter-spacing:-.025em;
}

.vehicle-specifications__grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  border:0;
  border-radius:0;
  background:transparent;
  overflow:visible;
}

.vehicle-specifications__grid>div{
  min-height:96px;
  padding:18px;
  border:0!important;
  border-radius:14px;
  background:#f3f6f6;
}

.vehicle-specifications__grid dt{
  color:#7a878d;
  font-size:12px;
  line-height:16px;
}

.vehicle-specifications__grid dd{
  margin-top:8px;
  color:#26343a;
  font-size:14px;
  line-height:20px;
}

.vehicle-stage__main .equipment__grid{
  grid-template-columns:1fr;
  gap:0;
  border:1px solid #e2e9eb;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}

.vehicle-section .equipment__group,
.vehicle-stage__main .equipment__group:nth-child(odd),
.vehicle-stage__main .equipment__group:nth-child(n+3){
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}

.vehicle-section .equipment__group+.equipment__group{
  border-top:1px solid #e7edef;
}

.vehicle-section .equipment__title{
  min-height:60px;
  margin:0;
  padding:0 18px;
  transition:background-color 180ms ease,color 180ms ease;
}

.vehicle-section .equipment__title>span{
  display:none;
}

.equipment__title h3{
  color:#26343a;
  font-size:15px;
  line-height:20px;
  font-weight:600;
}

.vehicle-section .equipment__title>small{
  color:#8a959b;
  font-size:11px;
  line-height:16px;
}

.vehicle-section .equipment__title>i{
  width:8px;
  height:8px;
  margin-left:12px;
  display:block;
}

.vehicle-section .equipment__group ul{
  margin:0;
  padding:12px 18px 18px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 24px;
  overflow:hidden;
  transform-origin:top;
}

.vehicle-section .equipment__group[open]>.equipment__title{
  background:#f8fafb;
}

.vehicle-section .equipment__group.is-animating{
  overflow:hidden;
}

.vehicle-section .equipment__title:active{
  background:#f0f5f6;
}

.vehicle-section .equipment__group li{
  color:#59676e;
  font-size:13px;
  line-height:19px;
}

.vehicle-section .equipment__group li>span{
  width:16px;
  height:16px;
  margin-top:1px;
  border:0;
  border-radius:0;
  background-color:#5b8396!important;
  -webkit-mask:url("/assets/images/icon-equipment-check.png?v=1") center/contain no-repeat;
  mask:url("/assets/images/icon-equipment-check.png?v=1") center/contain no-repeat;
  mix-blend-mode:normal;
}

.vehicle-dealer{
  min-height:260px;
  margin-top:24px;
  padding:36px;
  border-radius:var(--vehicle-radius-lg);
  background:
    radial-gradient(circle at 92% 18%,rgba(35,145,198,.24),transparent 30%),
    linear-gradient(125deg,#111b21 0,#18333f 52%,#102631 100%);
  box-shadow:0 24px 58px rgba(19,46,59,.18);
  gap:32px;
}

.vehicle-dealer::after{
  right:-180px;
  bottom:-220px;
  width:500px;
  height:500px;
  border-color:rgba(111,190,226,.16);
}

.vehicle-dealer .eyebrow{
  color:#8bc8e2;
}

.vehicle-dealer h2{
  font-size:28px;
  line-height:34px;
}

.vehicle-dealer__copy>p:last-child{
  margin-top:10px;
  color:#bfd0d7;
  font-size:13px;
  line-height:19px;
}

.vehicle-dealer__details{
  gap:12px;
}

.vehicle-dealer__details>div{
  grid-template-columns:110px minmax(0,1fr);
  gap:14px;
}

.vehicle-dealer__details span{
  color:#92aeb9;
  font-size:12px;
  line-height:18px;
}

.vehicle-dealer__details b,
.vehicle-dealer__details a{
  color:#fff;
  font-size:13px;
  line-height:18px;
}

.vehicle-dealer>.button{
  min-height:50px;
  padding-inline:22px;
  border:0;
  border-radius:14px;
  background:#fff;
  color:#1d3039;
  font-size:13px;
  font-weight:650;
}

.vehicle-related{
  width:min(1320px,calc(100% - 48px));
  padding-top:8px;
}

.vehicle-related .section-head{
  margin-bottom:24px;
}

.vehicle-related .section-head h2{
  font-size:28px;
  line-height:34px;
}

.vehicle-related .car-visual__link{
  position:relative;
  display:block;
  overflow:hidden;
}

.vehicle-related .car-gallery-frame{
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  z-index:1;
  opacity:0;
  visibility:hidden;
  object-fit:cover;
  pointer-events:none;
  transition:none;
  will-change:opacity;
}

.vehicle-related .car-gallery-frame.is-active{
  opacity:1;
  visibility:visible;
}

.vehicle-related .car-gallery-frame.is-incoming{
  z-index:2;
  opacity:0;
  visibility:visible;
  transition:opacity 260ms cubic-bezier(.2,.7,.2,1);
}

.vehicle-related .car-gallery-frame.is-incoming.is-active{
  opacity:1;
}

@media (min-width:761px) and (hover:hover){
  .vehicle-gallery__controls button{
    opacity:0;
  }

  .vehicle-gallery__main:hover .vehicle-gallery__controls button,
  .vehicle-gallery__controls button:focus-visible{
    opacity:1;
  }

  .vehicle-tool:hover{
    border-color:#c9d8db;
    background:#fff;
    box-shadow:0 12px 26px rgba(29,52,59,.075);
    transform:translateY(-1px);
  }

  .vehicle-gallery .gallery-thumbs button:hover{
    border-color:#a7beb7;
    opacity:.9;
  }

  .vehicle-gallery__controls button:first-child:hover{
    background:linear-gradient(90deg,rgba(8,15,19,.38),rgba(8,15,19,0));
  }

  .vehicle-gallery__controls button:last-child:hover{
    background:linear-gradient(270deg,rgba(8,15,19,.38),rgba(8,15,19,0));
  }

  .vehicle-heading__utilities .vehicle-tool:hover{
    border-color:#d7e2e5;
    background:rgba(255,255,255,.9);
    color:var(--vehicle-accent-deep);
    box-shadow:0 8px 20px rgba(29,52,59,.06);
    transform:none;
  }

  .vehicle-purchase__actions .button.primary:hover{
    border:0;
    background-color:#147faf;
    background-image:linear-gradient(120deg,#111d24,#147faf);
    box-shadow:0 15px 30px rgba(22,91,124,.24);
  }

  .vehicle-purchase__actions .button.secondary:hover{
    border-color:#cad8db;
    background:#edf3f3;
  }

  .vehicle-tabs__nav button:not([aria-selected="true"]):hover{
    border:0;
    background:rgba(255,255,255,.52);
    color:#263e3a;
  }

  .vehicle-specifications__grid>div{
    transition:background-color 220ms ease,transform 260ms cubic-bezier(.2,.72,.2,1),box-shadow 260ms ease;
  }

  .vehicle-specifications__grid>div:hover{
    background:#f7fafa;
    box-shadow:0 12px 24px rgba(32,60,66,.06);
    transform:translateY(-2px);
  }
}

@media (min-width:761px) and (prefers-reduced-motion:no-preference){
  .vehicle-heading,
  .vehicle-gallery,
  .vehicle-purchase,
  .vehicle-tabs,
  .vehicle-dealer{
    animation:vehicle-surface-enter 480ms cubic-bezier(.2,.72,.2,1) both;
  }

  .vehicle-gallery{animation-delay:50ms}
  .vehicle-purchase{animation-delay:110ms}
  .vehicle-tabs{animation-delay:150ms}
  .vehicle-dealer{animation-delay:190ms}
}

@keyframes vehicle-surface-enter{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

@media (max-width:1100px){
  .vehicle-stage{
    grid-template-columns:minmax(0,1fr) 360px;
  }

  .vehicle-purchase{
    padding:20px;
  }

  .vehicle-dealer{
    grid-template-columns:minmax(240px,1fr) minmax(340px,1fr);
  }

  .vehicle-dealer>.button{
    grid-column:1/-1;
    width:max-content;
  }
}

@media (max-width:980px){
  .vehicle-page{
    width:min(760px,calc(100% - 40px));
  }

  .vehicle-stage{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
  }

  .vehicle-stage__main{
    display:contents;
  }

  .vehicle-gallery{order:1}
  .vehicle-purchase{order:2;position:relative;top:auto}
  .vehicle-tabs{order:3}

  .vehicle-dealer{
    grid-template-columns:1fr;
  }

  .vehicle-dealer>.button{
    grid-column:auto;
  }
}

@media (max-width:760px){
  .vehicle-page{
    width:calc(100% - 32px);
    padding:16px 0 48px;
  }

  .vehicle-page .breadcrumbs{
    margin-bottom:16px;
    overflow:hidden;
  }

  .vehicle-page .breadcrumbs ol{
    flex-wrap:nowrap;
    overflow:hidden;
    white-space:nowrap;
  }

  .vehicle-page .breadcrumbs li:last-child{
    min-width:0;
    overflow:hidden;
  }

  .vehicle-page .breadcrumbs__current{
    max-width:none;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .vehicle-heading{
    margin-bottom:4px;
    align-items:flex-start;
    flex-direction:column;
    gap:16px;
  }

  .vehicle-heading__badges{
    margin-bottom:10px;
  }

  .vehicle-chip{
    min-height:30px;
    padding-inline:11px;
  }

  .vehicle-heading h1{
    font-size:30px;
    line-height:34px;
    letter-spacing:-.035em;
  }

  .vehicle-heading__copy>p{
    margin-top:8px;
    font-size:14px;
    line-height:20px;
  }

  .vehicle-heading__actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .vehicle-heading__utilities{
    margin-top:6px;
    gap:14px;
  }

  .vehicle-heading__utilities .vehicle-tool{
    width:auto;
    min-width:44px;
    height:44px;
    padding:0 2px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    gap:7px;
  }

  .vehicle-heading__utilities .vehicle-tool.car-favorite[aria-pressed="true"],
  .vehicle-heading__utilities .vehicle-tool.car-compare[aria-pressed="true"]{
    border:0;
    background:transparent;
  }

  .vehicle-tool{
    width:100%;
    min-width:0;
    height:48px;
    padding-inline:12px;
    border-radius:12px;
  }

  .vehicle-tool b{
    font-size:12px;
  }

  .vehicle-gallery{
    padding:8px;
    border-radius:20px;
  }

  .vehicle-gallery__main{
    margin-inline:0;
    border-radius:14px;
  }

  .vehicle-gallery .gallery-main{
    aspect-ratio:4/3;
    border-radius:14px;
  }

  .vehicle-gallery .offer-ribbon{
    top:12px;
    left:12px;
    height:28px;
    padding-inline:10px;
    border-radius:7px;
  }

  .vehicle-gallery__controls{
    inset:0;
  }

  .vehicle-gallery__controls button{
    display:none;
  }

  .vehicle-gallery__controls>span{
    right:12px;
    bottom:12px;
    min-width:38px;
    height:28px;
    padding-inline:7px;
  }

  .vehicle-gallery .gallery-thumbs{
    margin:10px 0 0;
    padding:2px 0;
  }

  .vehicle-gallery__thumb-rail{
    margin-top:3px;
  }

  .vehicle-gallery .gallery-thumbs button{
    width:84px;
    height:63px;
    flex-basis:84px;
    border-radius:10px;
  }

  .vehicle-gallery__foot{
    min-height:0;
    margin-top:6px;
    padding:10px 12px;
    border-radius:12px;
    background:#f4f7f8;
    display:grid;
    grid-template-columns:auto auto;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    color:#5e6d75;
  }

  .vehicle-gallery__foot>span{
    gap:6px;
    white-space:nowrap;
  }

  .vehicle-gallery__pin,
  .vehicle-gallery__clock{
    width:16px;
    height:16px;
  }

  .vehicle-purchase{
    padding:20px 16px;
    border-radius:20px;
  }

  .vehicle-purchase__price{
    margin-bottom:16px;
  }

  .vehicle-purchase__price strong{
    font-size:30px;
    line-height:36px;
  }

  .vehicle-finance{
    padding:16px 0 12px;
    border-radius:0;
  }

  .vehicle-finance>div strong{
    font-size:19px;
    line-height:25px;
  }

  .vehicle-purchase__actions .button{
    min-height:52px;
  }

  .vehicle-quick-specs{
    gap:0;
  }

  .vehicle-quick-specs>div{
    min-height:64px;
  }

  .vehicle-purchase__contact{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

  .vehicle-tabs{
    margin-top:0;
  }

  .vehicle-tabs__nav{
    position:static;
    width:100%;
    padding:4px;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(31,58,64,.08);
  }

  body:not(.has-program-banner) .vehicle-tabs__nav{
    top:var(--mobile-header-offset);
  }

  .vehicle-tabs__nav button{
    min-height:48px;
    padding-inline:10px;
    border-radius:10px;
    font-size:12px;
  }

  .vehicle-tabs .vehicle-section{
    margin-top:14px;
  }

  .vehicle-section{
    padding:20px 16px;
    border-radius:20px;
  }

  .vehicle-section__head{
    margin-bottom:18px;
  }

  .vehicle-section__head h2,
  .equipment__head h2{
    font-size:24px;
    line-height:30px;
  }

  .vehicle-specifications__grid{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .vehicle-specifications__grid>div{
    min-height:88px;
    padding:14px;
    border-radius:12px;
  }

  .vehicle-specifications__grid dt{
    font-size:11px;
    line-height:15px;
  }

  .vehicle-specifications__grid dd{
    margin-top:6px;
    font-size:13px;
    line-height:18px;
  }

  .vehicle-stage__main .equipment__grid{
    grid-template-columns:1fr;
  }

  .vehicle-section .equipment__group,
  .vehicle-stage__main .equipment__group:nth-child(odd),
  .vehicle-stage__main .equipment__group:nth-child(n+3){
    padding:0;
    border-radius:0;
  }

  .vehicle-section .equipment__title{
    min-height:56px;
    padding:0 14px;
  }

  .vehicle-section .equipment__group ul{
    margin-top:0;
    padding:12px 14px 16px;
    grid-template-columns:1fr;
    gap:9px;
  }

  .vehicle-dealer{
    min-height:0;
    margin-top:16px;
    padding:24px 20px;
    border-radius:20px;
    gap:22px;
  }

  .vehicle-dealer h2{
    font-size:24px;
    line-height:30px;
  }

  .vehicle-dealer__details>div{
    grid-template-columns:1fr;
    gap:2px;
  }

  .vehicle-dealer>.button{
    width:100%;
  }

  .vehicle-related{
    width:calc(100% - 32px);
    padding-top:0;
  }

  .vehicle-related .section-head{
    margin-bottom:18px;
  }

  .vehicle-related .section-head h2{
    font-size:24px;
    line-height:30px;
  }
}

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

  .vehicle-purchase__price s{
    grid-column:1;
  }
}

@media (max-width:350px){
  .vehicle-gallery__foot{
    grid-template-columns:1fr;
    justify-content:start;
    gap:7px;
  }
}

@media (prefers-reduced-motion:reduce){
  .vehicle-heading,
  .vehicle-gallery,
  .vehicle-purchase,
  .vehicle-tabs,
  .vehicle-dealer{
    animation:none!important;
  }
}
