/* Aevrino Vehicle Detail — Hero 1
   Dometic-inspired: white canvas, black typography, restrained borders, generous whitespace. */
.av-vehicle-page{background:#fff;color:#111;font-family:Inter,Arial,Helvetica,sans-serif;padding:0 0 56px}
.av-hero{width:100%;background:#fff}
.av-hero-inner{width:min(1160px,calc(100% - 48px));margin:34px auto 0;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);gap:52px;align-items:start}
.av-hero-gallery{min-width:0}
.av-gallery-stage{position:relative;width:100%;height:560px;background:#f3f4f0;overflow:hidden}
.av-hero-image{width:100%;height:100%;display:block;object-fit:contain}
.av-gallery-arrows{position:absolute;right:16px;bottom:14px;display:flex;gap:7px}
.av-gallery-arrows button{width:34px;height:34px;border:0;background:#fff;color:#111;font-size:24px;line-height:30px;cursor:pointer}
.av-thumbnails{display:flex;gap:9px;margin-top:10px;overflow-x:auto;padding-bottom:3px}
.av-thumb{width:72px;height:72px;flex:0 0 72px;padding:0;border:1px solid #dedede;background:#f5f5f2;cursor:pointer;overflow:hidden}
.av-thumb.is-active{border:1.5px solid #111}
.av-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.av-hero-info{padding-top:2px;min-width:0}
.av-rating-row{display:flex;align-items:center;gap:7px;font-size:14px;line-height:20px;color:#111;margin-bottom:12px}
.av-rating-row a{color:#111;text-decoration:underline;text-underline-offset:2px}
.av-stars{color:#f2bd16;letter-spacing:1px;font-size:16px;line-height:1}
.av-brand-line{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.15px;margin-bottom:3px}
.av-brand-line:after{content:'';width:6px;height:6px;background:#159447;border-radius:50%;display:inline-block}
.av-brand-logo{width:20px;height:20px;object-fit:contain}
.av-hero-info h1{font-size:25px;line-height:1.15;letter-spacing:-.35px;margin:0 0 5px;font-weight:800;color:#111}
.av-category{font-size:14px;color:#666;margin:0 0 28px}
.av-price{font-size:22px;line-height:24px;font-weight:800;color:#111;margin-bottom:38px}
.av-colour-label{font-size:13px;line-height:20px;color:#222;margin-bottom:10px}
.av-colour-label strong{font-weight:800}
.av-colours{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:38px}
.av-colour{position:relative;width:30px;height:30px;border:1px solid #d9d9d9;border-radius:3px;padding:0;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.03)}
.av-colour.is-selected{border:1px solid #111;box-shadow:0 0 0 1px #111}
.av-colour span{display:none;position:absolute;inset:0;align-items:center;justify-content:center;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.7);font-size:17px;font-weight:700}
.av-colour.is-selected span{display:flex}
.av-key-specs{border-top:1px solid #dedede;border-bottom:1px solid #dedede}
.av-key-spec{display:flex;align-items:center;gap:10px;min-height:56px;border-bottom:1px solid #e3e3e3}
.av-key-spec:last-child{border-bottom:0}
.av-key-icon{width:25px;text-align:center;font-size:17px;line-height:20px;color:#222;flex:0 0 25px}
.av-key-spec strong{display:block;font-size:15px;line-height:17px;font-weight:800;color:#111}
.av-key-spec small{display:block;font-size:11px;line-height:14px;color:#666;margin-top:0}
.av-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}
.av-button{height:45px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:13px;font-weight:800;letter-spacing:.05px;text-transform:none}
.av-button-primary{background:#111;color:#fff;border:1px solid #111}
.av-button-secondary{background:#fff;color:#111;border:1px solid #111}
.av-button-secondary span{margin-left:8px;font-size:16px}
.av-accordions{margin-top:26px;border-top:1px solid #dedede}
.av-accordions details{border-bottom:1px solid #dedede}
.av-accordions summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:17px 0;font-size:12px;font-weight:800;letter-spacing:.4px}
.av-accordions summary::-webkit-details-marker{display:none}
.av-accordions details>div{font-size:13px;color:#666;line-height:1.55;padding:0 0 17px}
@media(max-width:900px){.av-hero-inner{width:min(720px,calc(100% - 32px));grid-template-columns:1fr;gap:28px}.av-gallery-stage{height:min(70vw,560px)}.av-hero-info{padding-bottom:20px}}
@media(max-width:560px){.av-hero-inner{width:calc(100% - 24px);margin-top:20px}.av-gallery-stage{height:330px}.av-hero-info h1{font-size:23px}.av-price{margin-bottom:26px}.av-colours{margin-bottom:26px}.av-actions{grid-template-columns:1fr}.av-button{height:46px}.av-thumb{width:62px;height:62px;flex-basis:62px}}

/* Gallery refinement — premium automotive / Dometic-style image treatment */
.av-hero-inner{width:min(1280px,calc(100% - 64px));grid-template-columns:minmax(0,1.22fr) minmax(390px,.78fr);gap:42px;margin-top:28px}
.av-gallery-stage{height:auto;aspect-ratio:16 / 9;background:#f3f5f1;border-radius:8px;overflow:hidden;position:relative}
.av-hero-image{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.av-gallery-arrows{position:absolute;inset:0;right:auto;bottom:auto;display:block;pointer-events:none}
.av-gallery-arrows button{position:absolute;top:50%;transform:translateY(-50%);width:50px;height:50px;border-radius:50%;border:0;background:#fff;color:#111;box-shadow:0 2px 10px rgba(0,0,0,.08);font-size:34px;line-height:46px;padding:0;cursor:pointer;pointer-events:auto}
.av-gallery-arrows button:first-child{left:16px}
.av-gallery-arrows button:last-child{right:16px}
.av-thumbnails{display:flex;gap:14px;margin-top:18px;overflow:hidden;padding:0}
.av-thumb{width:calc((100% - 70px) / 6);height:auto;aspect-ratio:1.62 / 1;flex:0 0 calc((100% - 70px) / 6);padding:0;border:1px solid #e1e1e1;border-radius:7px;background:#f5f5f2;cursor:pointer;overflow:hidden}
.av-thumb.is-active{border:2px solid #f04432}
.av-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.av-thumb-more{width:calc((100% - 70px) / 6);height:auto;aspect-ratio:1.62 / 1;flex:0 0 calc((100% - 70px) / 6);border:1px solid #1d252d;border-radius:7px;background:#1d252d;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}
.av-thumb-more span{font-size:20px;line-height:22px;font-weight:800}
.av-thumb-more small{font-size:13px;line-height:18px;margin-top:2px}
.av-thumb-extra[hidden]{display:none}
@media(max-width:900px){.av-hero-inner{width:min(720px,calc(100% - 32px));grid-template-columns:1fr;gap:28px}.av-gallery-stage{height:auto;aspect-ratio:16 / 9}}
@media(max-width:560px){.av-hero-inner{width:calc(100% - 24px);margin-top:20px}.av-gallery-stage{height:auto;aspect-ratio:16 / 10}.av-gallery-arrows button{width:42px;height:42px;font-size:29px;line-height:38px}.av-gallery-arrows button:first-child{left:10px}.av-gallery-arrows button:last-child{right:10px}.av-thumbnails{gap:8px;margin-top:10px}.av-thumb,.av-thumb-more{width:calc((100% - 32px) / 5);flex-basis:calc((100% - 32px) / 5)}}

/* Final gallery arrow stability fix: keep navigation vertically centered inside the image stage. */
.av-hero-gallery .av-gallery-stage > .av-gallery-arrows {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 5 !important;
}
.av-hero-gallery .av-gallery-stage > .av-gallery-arrows > button {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.08) !important;
  font-size: 34px !important;
  line-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  z-index: 6 !important;
}
.av-hero-gallery .av-gallery-stage > .av-gallery-arrows > button:first-child {
  left: 16px !important;
  right: auto !important;
}
.av-hero-gallery .av-gallery-stage > .av-gallery-arrows > button:last-child {
  right: 16px !important;
  left: auto !important;
}
@media(max-width:560px) {
  .av-hero-gallery .av-gallery-stage > .av-gallery-arrows > button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 29px !important;
    line-height: 42px !important;
  }
  .av-hero-gallery .av-gallery-stage > .av-gallery-arrows > button:first-child { left: 10px !important; }
  .av-hero-gallery .av-gallery-stage > .av-gallery-arrows > button:last-child { right: 10px !important; }
}

/* ==========================================================
   VEHICLE DETAIL — SECTION 2: OVERVIEW
   Dometic-inspired clean cards and compact automotive UI.
========================================================== */
.av-overview{
  width:min(1280px,calc(100% - 64px));
  margin:34px auto 0;
  color:#111;
}
.av-detail-tabs{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:0;
  border-bottom:1px solid #e5e7eb;
  margin-bottom:18px;
  overflow-x:auto;
  scrollbar-width:none;
}
.av-detail-tabs::-webkit-scrollbar{display:none}
.av-detail-tabs a{
  position:relative;
  flex:0 0 auto;
  padding:0 20px 12px;
  color:#5b6470;
  text-decoration:none;
  font-size:12px;
  line-height:16px;
  white-space:nowrap;
}
.av-detail-tabs a.is-active{color:#f04432;font-weight:700}
.av-detail-tabs a.is-active::after{
  content:'';
  position:absolute;
  left:16px;
  right:16px;
  bottom:-1px;
  height:2px;
  background:#f04432;
}
.av-overview-grid{
  display:grid;
  grid-template-columns:1.18fr 1fr;
  gap:10px;
  align-items:stretch;
}
.av-overview-card{
  background:#fff;
  border:1px solid #e1e5e9;
  border-radius:7px;
  overflow:hidden;
}
.av-overview-copy{padding:13px 15px 14px}
.av-overview-copy h2,
.av-size-card h2{
  margin:0 0 8px;
  color:#111827;
  font-size:18px;
  line-height:23px;
  font-weight:800;
  letter-spacing:-.25px;
}
.av-overview-copy p{
  margin:0;
  max-width:610px;
  color:#596273;
  font-size:11.5px;
  line-height:1.48;
}
.av-size-card{padding:12px 12px 10px}
.av-size-visual{
  position:relative;
  height:126px;
  margin:0 -1px 7px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.av-size-visual::after{
  content:'';
  position:absolute;
  left:11%;right:11%;bottom:13px;
  border-bottom:1px solid #9aa3af;
}
.av-size-visual img{
  width:86%;height:118px;
  object-fit:contain;
  mix-blend-mode:multiply;
}
.av-dim-height,
.av-dim-length{
  position:absolute;
  color:#667085;
  font-size:9px;
  line-height:12px;
  background:#fff;
  padding:1px 3px;
  z-index:2;
}
.av-dim-height{right:2%;top:33px}
.av-dim-length{left:46%;bottom:1px;transform:translateX(-50%)}
.av-size-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
}
.av-size-stats>div{
  min-width:0;
  padding:8px 5px;
  background:#f8f9fa;
  border-radius:6px;
  text-align:center;
}
.av-size-stats span{
  display:block;
  color:#7a8491;
  font-size:8.5px;
  line-height:12px;
  white-space:nowrap;
}
.av-size-stats strong{
  display:block;
  margin-top:2px;
  color:#202631;
  font-size:10.5px;
  line-height:14px;
  font-weight:800;
  white-space:nowrap;
}
.av-key-features{margin-top:12px}
.av-key-features-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
  padding:0 3px;
}
.av-key-features-head h2{
  margin:0;
  color:#111827;
  font-size:18px;
  line-height:23px;
  font-weight:800;
}
.av-key-features-head a{
  color:#f04432;
  text-decoration:none;
  font-size:10.5px;
  line-height:15px;
  font-weight:700;
}
.av-key-features-head a span{font-size:15px;margin-left:4px}
.av-key-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
}
.av-key-feature-card{
  min-height:62px;
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:9px 8px;
  box-sizing:border-box;
  background:#fff;
  border:1px solid #e1e5e9;
  border-radius:7px;
}
.av-feature-icon{
  width:30px;height:30px;
  flex:0 0 30px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  background:#e9fff5;color:#00a875;
  font-size:16px;font-weight:800;
}
.av-key-feature-card:nth-child(2) .av-feature-icon{background:#edf4ff;color:#2672ff}
.av-key-feature-card:nth-child(3) .av-feature-icon{background:#fff1e8;color:#ff6a21}
.av-key-feature-card:nth-child(4) .av-feature-icon{background:#f3edff;color:#7546d8}
.av-key-feature-card:nth-child(5) .av-feature-icon{background:#fff0ef;color:#e43c35}
.av-key-feature-card:nth-child(6) .av-feature-icon{background:#e9faff;color:#149bc5}
.av-key-feature-card strong{
  display:block;
  color:#202631;
  font-size:10px;
  line-height:13px;
  font-weight:800;
}
.av-key-feature-card p{
  margin:2px 0 0;
  color:#737c89;
  font-size:8.5px;
  line-height:12px;
}
@media(max-width:900px){
  .av-overview{width:min(720px,calc(100% - 32px))}
  .av-overview-grid{grid-template-columns:1fr}
  .av-key-feature-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .av-overview{width:calc(100% - 24px);margin-top:26px}
  .av-detail-tabs{justify-content:flex-start}
  .av-detail-tabs a{padding-left:13px;padding-right:13px;font-size:11px}
  .av-overview-copy h2,.av-size-card h2,.av-key-features-head h2{font-size:17px}
  .av-size-stats{grid-template-columns:repeat(2,1fr)}
  .av-key-feature-grid{grid-template-columns:1fr}
}


/* Final white-canvas fix: prevent the first hero margin from collapsing
   through the page and exposing the global body background. */
.av-vehicle-page{
  background:#fff !important;
  padding-top:28px !important;
}
.av-hero{
  background:#fff !important;
}
.av-hero-inner{
  margin-top:0 !important;
}


/* Main hero image lightbox */
.av-hero-image{
  cursor:zoom-in;
}
.av-hero-modal{
  position:fixed;
  inset:0;
  z-index:11000;
}
.av-hero-modal[hidden]{
  display:none !important;
}
.av-hero-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,12,18,.82);
  backdrop-filter:blur(4px);
}
.av-hero-modal-dialog{
  position:relative;
  z-index:1;
  width:min(1280px,calc(100% - 48px));
  height:min(820px,calc(100% - 48px));
  margin:24px auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
  border-radius:12px;
  background:#fff;
  box-shadow:0 24px 90px rgba(0,0,0,.4);
}
.av-hero-modal-media{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px 64px 8px;
  background:#fff;
}
.av-hero-modal-media img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
}
.av-hero-modal-close{
  position:absolute;
  top:12px;
  right:14px;
  z-index:5;
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:rgba(16,24,40,.82);
  color:#fff;
  font:26px/40px Arial,sans-serif;
  cursor:pointer;
}
.av-hero-modal-arrow{
  position:absolute;
  top:50%;
  z-index:4;
  width:46px;
  height:46px;
  margin-top:-23px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dfe3e8;
  border-radius:50%;
  background:#fff;
  color:#101828;
  box-shadow:0 3px 14px rgba(16,24,40,.14);
  font:32px/42px Arial,sans-serif;
  cursor:pointer;
}
.av-hero-modal-arrow.prev{left:16px}
.av-hero-modal-arrow.next{right:16px}
.av-hero-modal-caption{
  flex:0 0 48px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#475467;
  font-size:13px;
  font-weight:600;
  border-top:1px solid #eef0f2;
}
body.av-hero-modal-open{
  overflow:hidden;
}
@media(max-width:700px){
  .av-hero-modal-dialog{
    width:calc(100% - 20px);
    height:calc(100% - 20px);
    margin:10px auto;
    border-radius:8px;
  }
  .av-hero-modal-media{
    padding:52px 46px 8px;
  }
  .av-hero-modal-arrow{
    width:38px;
    height:38px;
    margin-top:-19px;
    font-size:28px;
    line-height:34px;
  }
  .av-hero-modal-arrow.prev{left:8px}
  .av-hero-modal-arrow.next{right:8px}
}
