:root{
  --header-h: 86px;
  --quickbar-h-desktop: 92px;
  --quickbar-h-mobile: 64px;

  --blue: #0b2f86;
  --blue2: #062764;

  --muted: rgba(255,255,255,.78);
  --radius: 26px;
  --shadow: 0 18px 45px rgba(0,0,0,.35);

  --maxw: 1280px;
  --gap: 28px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* RESET */
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; width:100%; }
body{ font-family: var(--font); background:#f7f7f7; overflow:hidden; }

/* ================= HEADER ================= */
.site-header{
  height: var(--header-h);
  background:#fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: relative;
  z-index: 10000;
  overflow: visible;
}

.header-inner{
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px 0 144px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

@media (max-width: 1024px){
  .header-inner{ padding: 0 22px; }
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  position: absolute;
  left: 0;
  top: 0;
  width: 122px;
  padding: 8px 0 18px;
  background:#fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
  z-index: 1;
}
.brand-logo{ height:108px; width:108px; display:block; }

@media (max-width: 1024px){
  .brand{
    position: static;
    background: transparent;
    padding: 0 10px;
    box-shadow: none;
    width: auto;
    justify-content: flex-start;
  }
  .brand-logo{ height:66px; width:auto; }
}

.main-nav{
  display:flex;
  gap: 36px;
  justify-content: center;
  flex: 1;
  align-items: center;
}

.nav-item{ display:flex; align-items:center; position: relative; }

.nav-link{
  font-weight: 800;
  font-size: 18px;
  color:#000;
  text-decoration: none;
  text-underline-offset: 6px;
}

/* OWNERS dropdown */
.has-dropdown > .nav-link{
  cursor: pointer;
}
.has-dropdown > .nav-link::after{
  content: "";
  display: inline-block;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  transition: transform .15s ease;
}
.has-dropdown.is-open > .nav-link::after{
  transform: rotate(180deg);
}
.nav-dropdown{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 1000;
}
.has-dropdown.is-open > .nav-dropdown,
.has-dropdown:hover > .nav-dropdown{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a{
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown a:hover{
  background: #f2f2f2;
  color: #0b3b86;
}

.nav-link.is-active{
  text-decoration: none;
  box-shadow: inset 0 -3px 0 #000;
  padding-bottom: 2px;
}

.header-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Socials */
.socials{
  display:flex;
  gap: 12px;
  align-items:center;
}

.social{
  width: 34px;
  height: 34px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  color:#0b2f86;
  text-decoration:none;
  font-size: 18px;
}
.social:hover{ background: rgba(11,47,134,.08); }

/* ================= BURGER ================= */
.menu-btn{
  display:none; /* tablet/mobile only */
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  position: relative;
}

.menu-btn span{
  position: absolute;
  left: 11px;
  right: 11px;
  height: 3px;
  background: #0b2f86;
  border-radius: 3px;
  transition: transform .18s ease, top .18s ease, opacity .18s ease;
}
.menu-btn span:nth-child(1){ top: 15px; }
.menu-btn span:nth-child(2){ top: 22px; }
.menu-btn span:nth-child(3){ top: 29px; }

.menu-btn.is-open span:nth-child(1){ top: 22px; transform: rotate(45deg); }
.menu-btn.is-open span:nth-child(2){ opacity: 0; }
.menu-btn.is-open span:nth-child(3){ top: 22px; transform: rotate(-45deg); }

/* Mobile dropdown */
.mobile-menu{
  display:none;
  position:absolute;
  top: var(--header-h);
  left:0;
  right:0;
  background:#fff;
  border-bottom: 1px solid rgba(0,0,0,.12);
  padding: 14px 18px;
  z-index: 10001;
  max-height: calc(100vh - var(--header-h));
  overflow:auto;
}
.mobile-menu.is-open{ display:block; }

.mobile-link{
  display:block;
  padding: 12px 6px;
  font-weight: 900;
  color:#000;
  text-decoration:none;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.mobile-link:last-child{ border-bottom:none; }

.mobile-section-title{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #0b2f86;
  padding: 6px 6px 10px;
}

.mobile-divider{
  height: 1px;
  background: rgba(0,0,0,.12);
  margin: 12px 0;
}

/* ================= FULL SCREEN MEGA MENU ================= */
.mega-panel{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  width: 100vw;
  background: #f2f2f2;
  border-top: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
  z-index: 20000;

  display: none; /* opened by JS */
}

.mega-panel.is-open{
  display:block;
}

.mega-panel-header{
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 22px 6px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.mega-panel-title{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #07304c;
}

.mega-close{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  display:grid;
  place-items:center;
}

.mega-close:hover{
  background: rgba(0,0,0,.05);
}

.mega-panel-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px 30px;

  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 34px 32px;
  align-items:start;
  justify-items:center;
}

.mega-card{
  display:flex;
  flex-direction: column;
  align-items:center;
  text-decoration:none;
  color:#07304c;
  padding: 8px 10px 10px;
  border-radius: 12px;
  width: 100%;
  max-width: 150px;
}

.mega-card:hover{
  background: rgba(0,0,0,.04);
}

.mega-card img{
  width: 120px;
  height: 70px;
  object-fit: contain;
  display:block;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
}

.mega-card span{
  margin-top: 12px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-align:center;
}

/* Hide mega menu on tablet/mobile */
@media (max-width: 1024px){
  .mega-panel{ display:none !important; }
}

/* ================= QUICKBAR ================= */
.quickbar{
  position: fixed;
  left:0;
  right:0;
  bottom:0;
  height: var(--quickbar-h-desktop);
  z-index: 9999;
  background: linear-gradient(0deg, var(--blue2), var(--blue));
  display:grid;
  grid-template-columns: repeat(8, 1fr);
  border-top: 1px solid rgba(255,255,255,.22);
}

.quick-item{
  color:#fff;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-weight: 800;
  text-align:center;
  padding: 10px 8px;
  border-right: 1px solid rgba(255,255,255,.28);
}
.quick-item:last-child{ border-right:none; }
.quick-item i{ font-size: 26px; opacity:.95; }
.quick-item span{ font-size: 14px; letter-spacing:.2px; }

/* ================= MOBILE SLIM QUICKBAR ================= */
.quickbar-mobile{
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 9999;
  background: linear-gradient(0deg, var(--blue2), var(--blue));
  border-top: 1px solid rgba(255,255,255,.22);
  grid-template-columns: repeat(4, 1fr);
  transition: transform 220ms ease;
  will-change: transform;
}
.quickbar-mobile.is-hidden{
  transform: translateY(110%);
}
.quickbar-mobile .qbm-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  padding: 8px 4px;
  border-right: 1px solid rgba(255,255,255,.22);
  background: none;
  border-top: none;
  border-bottom: none;
  border-left: none;
  cursor: pointer;
  font-family: inherit;
}
.quickbar-mobile .qbm-item:last-child{ border-right: none; }
.quickbar-mobile .qbm-item i{ font-size: 22px; line-height: 1; }
.quickbar-mobile .qbm-item span{
  font-size: 11px;
  letter-spacing: .2px;
  line-height: 1.1;
}

/* ================= MOBILE QUICKBAR — MORE SHEET ================= */
.qb-sheet-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 10000;
  pointer-events: none;
  transition: background 220ms ease;
  display: none;
}
.qb-sheet-backdrop.is-open{
  background: rgba(0,0,0,.5);
  pointer-events: auto;
  display: block;
}
.qb-sheet{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  background: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -18px 45px rgba(0,0,0,.35);
  transform: translateY(110%);
  transition: transform 240ms ease-out;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: none;
}
.qb-sheet.is-open{
  transform: translateY(0);
  display: block;
}
.qb-sheet-handle{
  width: 44px;
  height: 4px;
  background: #d0d3d8;
  border-radius: 999px;
  margin: 10px auto 6px;
}
.qb-sheet-list{
  list-style: none;
  margin: 0;
  padding: 6px 0 14px;
}
.qb-sheet-list li{
  border-top: 1px solid #eef0f3;
}
.qb-sheet-list li:first-child{ border-top: none; }
.qb-sheet-list a{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  color: #1a1f2c;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  min-height: 56px;
}
.qb-sheet-list a i:first-child{
  font-size: 20px;
  color: var(--blue);
  width: 24px;
  text-align: center;
  flex: 0 0 24px;
}
.qb-sheet-list a span{ flex: 1 1 auto; }
.qb-sheet-list a .chev{
  font-size: 14px;
  color: #9aa0aa;
}

/* ================= RESPONSIVE ================= */

/* Tablet + mobile */
@media (max-width: 1024px){
  body{ overflow:auto; }
  .main-nav{ display:none; }
  .menu-btn{ display:block; }
  .header-right > .socials{ display: none; }
}

@media (min-width: 1025px){
  .mobile-socials{ display: none; }
}

/* Mobile */
@media (max-width: 768px){
  .quickbar{ display: none; }
  .quickbar-mobile{ display: grid; }
}

/* ================= HOME FEED ================= */
body.page-home{ background: #eef0f4; }
.page-home .home-feed{
  position: relative;
  padding: 0 clamp(20px, 4vw, 48px) calc(var(--quickbar-h-desktop) + 20px);
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 768px){
  .page-home .home-feed{
    padding-bottom: calc(var(--quickbar-h-mobile) + 20px);
  }
}

/* MORE DEALS SCROLLER */
.page-home .home-more-deals{
  margin: 40px 0 32px;
}

/* Centered editorial section heading + subtitle */
.page-home .home-deals-head{
  text-align: center;
  margin: 0 0 22px;
}
.page-home .home-section-title{
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f2b3c;
}
.page-home .home-section-sub{
  margin: 6px 0 0;
  color: #555;
  font-size: 14px;
}

/* SEE ALL DEALS pill below the scroller */
.page-home .home-deals-cta-row{
  display: flex;
  justify-content: center;
  margin: 22px 0 8px;
}
.page-home .home-deals-cta-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 2px solid #0f2b3c;
  background: #fff;
  color: #0f2b3c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.page-home .home-deals-cta-btn:hover{
  background: #0f2b3c;
  color: #fff;
}

/* Legacy classes kept (used by other touchpoints maybe); muted styling */
.page-home .section-label{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.page-home .section-label .see-all{
  color: #0a2766;
  text-decoration: none;
  font-size: 11px;
}
.page-home .more-deals-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-home .more-deals-track{
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  padding: 0 0 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-home .more-deals-track::-webkit-scrollbar{ display: none; }
.page-home .more-deals-arrow{
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #0a2766;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  font-family: inherit;
  padding: 0;
}
.page-home .more-deals-arrow:hover{ background: #f5f6f8; }
.page-home .more-deals-arrow:disabled{ opacity: 0; pointer-events: none; }
@media (min-width: 1024px){
  .page-home .more-deals-arrow{ display: grid; }
  .page-home .more-deals-wrap{ gap: 14px; }
}
.page-home .deal-mini{
  flex: 0 0 auto;
  width: 200px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  padding: 8px;
  cursor: pointer;
  transition: box-shadow .2s ease;
}
.page-home .deal-mini:hover{
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
}
.page-home .deal-mini-img{
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
}
@media (min-width: 1024px){
  .page-home .home-more-deals{ margin: 8px 0 22px; }
  .page-home .section-label{ padding: 0 0 12px; font-size: 13px; }
  .page-home .section-label .see-all{ font-size: 13px; }
  .page-home .more-deals-track{ padding: 0 0 12px; gap: 18px; }
  .page-home .deal-mini{ width: 280px; }
  .page-home .deal-mini-img{ height: 240px; }
}

/* PRE-OWNED + FINANCE WIDE CARDS */
.page-home .home-wide-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 4px 0 14px;
}
.page-home .wide-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.page-home .wide-card .wc-img{
  width: 56px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  flex: 0 0 auto;
}
.page-home .wide-card .wc-img-preowned{
  background: linear-gradient(135deg, #1a2b5e, #0a2766);
}
.page-home .wide-card .wc-img-finance{
  background: linear-gradient(135deg, #e85d2c, #b94018);
}
.page-home .wide-card .wc-text{
  flex: 1;
  display: flex;
  flex-direction: column;
}
.page-home .wide-card .wc-title{
  font-size: 14px;
  font-weight: 800;
  color: #0a2766;
}
.page-home .wide-card .wc-sub{
  font-size: 11px;
  color: #6b7280;
  margin-top: 1px;
}
.page-home .wide-card .wc-go{
  font-size: 22px;
  color: #b94018;
  font-weight: 800;
  line-height: 1;
}
@media (min-width: 769px){
  .page-home .home-wide-cards{
    grid-template-columns: 1fr 1fr;
    margin: 4px 0 22px;
  }
}
@media (min-width: 1024px){
  .page-home .wide-card{ padding: 18px 20px; gap: 18px; }
  .page-home .wide-card .wc-img{ width: 72px; height: 56px; font-size: 24px; }
  .page-home .wide-card .wc-title{ font-size: 17px; }
  .page-home .wide-card .wc-sub{ font-size: 13px; }
}

/* ================= HOME PROMO BANNERS (Pre-Owned + Finance, side-by-side) =================
   Reuse .jimny-hero internals so typography and CTA match the rest of the
   site. Two cards sit in a 2-column grid that lives inside .home-feed (so
   the quickbar clearance still applies). Stacks on mobile. */
.page-home .home-promo-pair{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}
.page-home .home-promo-hero{
  width: 100%;
  height: clamp(300px, 34vw, 420px);
  min-height: 0;
  margin: 0;
  border-radius: 4px;
}
.page-home .home-promo-hero .jimny-hero-overlay{
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.20) 0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,0,0,0.80) 100%
  );
}
.page-home .home-promo-hero .jimny-hero-content{
  padding: clamp(18px, 2.4vw, 32px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.page-home .home-promo-hero .jimny-hero-left{
  display: flex;
  flex-direction: column;
}
.page-home .home-promo-hero .home-promo-title{
  font-size: clamp(1.3rem, 2vw, 2rem);
  letter-spacing: .04em;
}
.page-home .home-promo-hero .jimny-hero-meta{
  font-size: clamp(11px, 1vw, 14px);
}
.page-home .home-preowned-hero{
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}
.page-home .home-finance-hero{
  background-image: url('assets/specials/Finance.jpg');
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px){
  .page-home .home-promo-pair{
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 22px;
  }
  .page-home .home-promo-hero{
    height: auto;
    min-height: 320px;
  }
  .page-home .home-promo-hero .jimny-hero-content{
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .page-home .home-promo-hero .jimny-hero-actions{ width: 100%; }
  .page-home .home-promo-hero .jimny-hero-btn{ width: 100%; }
}

/* ================= HOME HERO SLIDER ================= */
.page-home .home-hero{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: min(70vh, 620px);
  min-height: 420px;
  overflow: hidden;
  background: #0a2766;
}
.page-home .home-hero-track{
  position: absolute;
  inset: 0;
}
.page-home .home-hero-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.page-home .home-hero-slide.is-active{
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.page-home .home-hero-slide.jimny-hero{
  /* override the static height of .jimny-hero from the showroom pages */
  height: 100%;
  min-height: 0;
}

/* Arrows */
.page-home .home-hero-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  font-family: inherit;
  padding: 0;
}
.page-home .home-hero-arrow:hover{ background: rgba(0,0,0,.65); }
.page-home .home-hero-prev{ left: 22px; }
.page-home .home-hero-next{ right: 22px; }

/* Dots */
.page-home .home-hero-dots{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.page-home .home-hero-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  padding: 0;
  cursor: pointer;
}
.page-home .home-hero-dot.is-active{ background: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .page-home .home-hero-slide{ transition: none; }
}

/* Mobile */
@media (max-width: 768px){
  .page-home .home-hero{ min-height: 520px; }
  .page-home .home-hero-arrow{ display: none; }
  /* Tighten the inner content for mobile inside .page-home only */
  .page-home .home-hero-slide .jimny-hero-content{ padding: 22px 18px 60px; }
  .page-home .home-hero-slide .jimny-from{ font-size: 14px; }
  .page-home .home-hero-slide .jimny-price{ font-size: 28px; }
  .page-home .home-hero-slide .jimny-hero-meta{ font-size: 11px; line-height: 1.35; }
  .page-home .home-hero-slide .jimny-hero-btn{ width: 100%; }
  .page-home .home-hero-slide .hero-model-logo{ max-width: 120px; }
}

/* ================= EXCLUSIVE DEALS (Mockup Layout) ================= */

/* ================= DEALS PAGE ================= */
.page-deals{
  background: #fff;
}

.page-home{
  background: #f2f3f5;
}

/* Hero */
.deals-hero{
  background-image: url('assets/specials/Finance.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}

/* White intro + grid section */
.deals-section{
  background: #fff;
  padding: 60px 40px calc(var(--quickbar-h-desktop) + 60px);
}

/* Cross-nav between Exclusive Deals / Service Specials / Parts Specials */
.specials-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto 32px;
}
.specials-nav-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 22px;
  border: 2px solid #0f2b3c;
  background: #fff;
  color: #0f2b3c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, color .2s, transform .15s;
}
.specials-nav-btn:hover{
  background: #0f2b3c;
  color: #fff;
}
.specials-nav-btn.is-active{
  background: #0f2b3c;
  color: #fff;
  pointer-events: none;
}
@media (max-width: 768px){
  .specials-nav{ gap: 8px; margin-bottom: 24px; }
  .specials-nav-btn{ padding: 10px 14px; font-size: 11.5px; letter-spacing: .06em; }
}

.deals-intro-text{
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 17px;
  line-height: 1.65;
  color: #444;
}

/* 4-column grid */
.deals-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* deal tile */
.deal-tile{
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: 10px;
  transition: box-shadow .2s;
}

.deal-tile:hover{
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
}

.deal-tile img{
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #ffffff;
  display: block;
}

/* ================= DEAL MODAL ================= */
.deal-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40000;
}

.deal-modal.is-open{
  display: block;
}

.deal-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.87);
}

.deal-modal-card{
  position: relative;
  width: 80vw;
  height: 80vh;
  margin: calc(var(--header-h) + 20px) auto 0;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,.55);
}

.deal-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
}

.deal-modal-body{
  display: grid;
  /* Image takes all remaining space, form is a fixed-width side rail —
     same proportion as the used-car detail page (.pod-body uses 1fr 360px). */
  grid-template-columns: 1fr 400px;
  height: 100%;
}

.deal-modal-left{
  background: #0f2b3c;
  display: flex;
  align-items: flex-start;     /* top-align so it lines up with the form */
  justify-content: center;
  padding: 22px;               /* match the right column's top padding */
}

.deal-modal-left img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
}

/* Right column = the same navy "Enquire about…" card pattern as the
   used-car detail page (pod-enquiry). Header is the envelope-icon row;
   the form itself sits on a white inner card. */
.deal-modal-right{
  display: flex;
  flex-direction: column;
  background: #0f2b3c;
  color: #fff;
  padding: 22px 22px 0;
  gap: 6px;
}
/* The two pod-* classes (head + sub) come from the preowned-detail page
   and are reused here for visual parity. Tighten margin so they hug. */
.deal-modal-right .pod-enquiry-head{
  margin-bottom: 4px;
}
.deal-modal-right .pod-enquiry-sub{
  margin: 0 0 14px;
}

/* Tablet */
@media (max-width: 1024px){
  .deals-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px){
  .deals-section{
    padding: 40px 16px calc(var(--quickbar-h-mobile) + 40px);
  }
  .deals-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .deal-modal-card{
    width: 94vw;
    height: auto;
    max-height: calc(100vh - var(--header-h) - 24px);
    margin: calc(var(--header-h) + 14px) auto 10px;
    display: flex;
    flex-direction: column;
  }
  .deal-modal-body{
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    flex: 1;
    min-height: 0;
    overflow-y: auto;          /* whole modal body scrolls on mobile */
    -webkit-overflow-scrolling: touch;
  }
  .deal-modal-left{
    max-height: 38vh;          /* cap the image so the form is reachable */
    padding: 12px;
  }
  .deal-modal-left img{
    max-height: 34vh;
  }
  .deal-modal-right{
    overflow: visible;         /* let the body do the scrolling */
    padding: 18px 16px 0;
  }
  .deal-form-scroll{
    flex: 0 0 auto;
    overflow: visible;         /* not the scroll container on mobile */
    padding: 0 0 20px;
  }
  .deal-td-form{ padding: 14px 16px 18px; }
  .deal-modal-right .po-form-success{
    padding: 28px 18px 32px;
  }
}

/* ================= IMAGE LIGHTBOX (service / parts specials) ================= */
.image-lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40000;
}
.image-lightbox.is-open{ display: block; }
.image-lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
}
.image-lightbox-card{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px);
}
.image-lightbox-card img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 25px 70px rgba(0,0,0,.55);
}
.image-lightbox-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #0f2b3c;
  z-index: 3;
  transition: background .2s;
}
.image-lightbox-close:hover{ background: #fff; }
@media (max-width: 768px){
  .image-lightbox-card{ padding: 60px 16px 24px; }
  .image-lightbox-close{ top: 12px; right: 12px; width: 40px; height: 40px; font-size: 16px; }
}

/* ================= PRE-OWNED PAGE (ADD-ON) ================= */

/* IMPORTANT: your base CSS has body{ overflow:hidden; } which will hide scrolling on desktop.
   For pre-owned page, add class="page-preowned" on <body> and this will allow scrolling. */
body.page-preowned{
  overflow: auto;
  background: #0b0b0b;
  color: #fff;
}

/* Page wrapper spacing (keeps content above the fixed quickbar) */
.page-preowned .preowned-main{
  max-width: 1400px;
  margin: 0 auto;
  padding: 42px 22px calc(var(--quickbar-h-desktop) + 30px);
}

@media (max-width: 768px){
  .page-preowned .preowned-main{
    padding-bottom: calc(var(--quickbar-h-mobile) + 30px);
  }
}

/* Title styling */
.page-preowned .preowned-title{
  font-size: 44px;
  font-weight: 900;
  margin: 0 0 8px 0;
  text-transform: uppercase;
}
.page-preowned .preowned-subtitle{
  margin: 0 0 18px 0;
  color: rgba(255,255,255,.78);
}

/* ================= GRID FIX (THIS IS THE MAIN FIX) =================
   Your PHP outputs <li class="... mg__tile ...">.
   Those items are likely stacking because old theme styles expect another grid wrapper.
   We force a real grid and kill absolute/float stacking. */

/* If your <ul> has a class, use it. If not, wrap your <li> list in <ul class="used-grid"> */
.page-preowned ul.used-grid{
  margin: 24px 0 0 0;
  padding: 0;
  list-style: none;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}

/* If you don't want to change HTML, you can also set the parent container to used-grid.
   Example: <ul class="used-grid"> ... </ul> is recommended. */

@media (max-width: 1200px){
  .page-preowned ul.used-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px){
  .page-preowned ul.used-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .page-preowned ul.used-grid{ grid-template-columns: 1fr; }
}

/* Kill stacking rules that commonly cause "only 1 item visible" */
.page-preowned .mg__tile,
.page-preowned .tile,
.page-preowned .tile__outer{
  position: relative !important;
  float: none !important;
}
/* =========================
   PRE-OWNED PAGE STYLES
   (for pre-owned.php)
========================= */

/* Ensure this page can scroll even if other pages lock scrolling */
body.page-preowned{
  overflow-x: hidden;
  overflow-y: auto;
  background:#053045;
  color:#fff;
}

/* Main content wrapper */
.page-preowned .preowned-main{
  max-width: 1400px;
  margin: 0 auto;
  padding: 34px 18px;

  /* IMPORTANT: keep last row above fixed quickbar */
  padding-bottom: calc(var(--quickbar-h-desktop, 86px) + 28px);
}

@media (max-width: 768px){
  .page-preowned .preowned-main{
    padding-bottom: calc(var(--quickbar-h-mobile, 118px) + 28px);
  }
}

/* Intro */
.page-preowned .preowned-intro h1{
  margin: 0 0 8px 0;
  font-size: 44px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.page-preowned .preowned-intro p{
  margin: 0 0 18px 0;
  color: rgba(255,255,255,.78);
  font-size: 15px;
}

/* GRID: this makes sure ALL vehicles display */
.page-preowned .preowned-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;

  /* kill any inherited float/absolute stacking from older styles */
  position: relative;
}

@media (max-width: 1200px){
  .page-preowned .preowned-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px){
  .page-preowned .preowned-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px){
  .page-preowned .preowned-grid{
    grid-template-columns: 1fr;
  }
}

/* Card */
.page-preowned .used-card{
  background:#fff;
  color:#111;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d7d7d7;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  display:flex;
  flex-direction: column;
  min-height: 560px;
}

/* Top heading area */
.page-preowned .used-head{
  text-align:center;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #e6e6e6;
}

.page-preowned .used-head h3{
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.page-preowned .used-badge{
  display:inline-block;
  color:#fff;
  font-weight: 900;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 3px;
}

.page-preowned .used-price{
  margin-top: 6px;
  font-weight: 900;
  font-size: 16px;
}

/* Image */
.page-preowned .used-image{
  background:#fff;
}

.page-preowned .used-image img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display:block;
}

/* Body */
.page-preowned .used-body{
  padding: 14px;
  flex: 1;
}

.page-preowned .used-body strong{
  display:block;
  margin-bottom: 4px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .3px;
}

/* Specs table */
.page-preowned .used-specs{
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.page-preowned .used-specs td{
  padding: 7px 0;
  border-bottom: 1px solid #ededed;
}

.page-preowned .used-specs td:first-child{
  width: 45%;
  font-weight: 900;
}

/* Footer CTA */
.page-preowned .used-footer{
  padding: 14px;
  border-top: 1px solid #e6e6e6;
  text-align:center;
}

.page-preowned .used-btn{
  display:inline-block;
  background:#0d2f5a;
  color:#fff;
  font-weight: 900;
  padding: 10px 22px;
  border-radius: 3px;
}
.page-preowned .used-btn:hover{
  opacity:.9;
}




/* =========================
   PRE-OWNED FILTERS (compact)
========================= */
.page-preowned .filters{
  margin-top: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 12px;
}

.page-preowned .filters-row{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.page-preowned .filters-field label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.85);
  margin-bottom: 6px;
}

.page-preowned .filters-field select,
.page-preowned .filters-field input{
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
  color: #fff;
  padding: 0 10px;
  outline: none;
}

.page-preowned .filters-field select option{
  color: #111;
}

.page-preowned .filters-actions{
  display:flex;
  justify-content:flex-end;
}

.page-preowned .filter-btn{
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  background: #00a599;
  color: #FFF;
  font-weight: 900;
  cursor: pointer;
}

.page-preowned .filters-meta{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}

/* Responsive: stack filters neatly on smaller screens */
@media (max-width: 1200px){
  .page-preowned .filters-row{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-preowned .filters-actions{
    justify-content: flex-start;
  }
}
@media (max-width: 520px){
  .page-preowned .filters-row{
    grid-template-columns: 1fr;
  }
}

/* ================================
   SHOWROOM (NEW CARS) – JIMNY 5 DOOR
   ================================ */

.page-showroom .showroom-main{
  background:#d8d7d7;
}

/* HERO */
.showroom-hero{
  position:relative;
  width:100%;
  min-height: clamp(240px, 45vh, 520px);
  overflow:hidden;
  background:#111;
}

.showroom-hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.95;
  transform:scale(1.01);
}

.showroom-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.05));
}

.showroom-hero-inner{
  position:relative;
  z-index:2;
  height:100%;
  max-width:1200px;
  margin:0 auto;
  padding: clamp(18px, 3vw, 34px);
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:24px;
}

.showroom-hero-car{
  flex: 0 1 520px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}

.showroom-hero-car img{
  width:min(520px, 60vw);
  height:auto;
  display:block;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,.35));
}

.showroom-hero-price{
  flex: 0 0 auto;
  background: rgba(44, 104, 170, .75);
  color:#fff;
  padding:14px 18px;
  border-radius:8px;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  display:flex;
  align-items:baseline;
  gap:10px;
}

.showroom-hero-price span{
  font-size:18px;
  opacity:.95;
}

.showroom-hero-price strong{
  font-size:28px;
  font-weight:800;
  letter-spacing:.3px;
}

/* SECTION */
.showroom-section{
  background: #f2f3f5;
  padding: 18px 40px 140px; /* bottom padding so quickbar never hides content */
}

.showroom-section > .models-heading,
.showroom-section > .jimny-from,
.showroom-section > .jimny-price,
.showroom-section > .model-grid,
.showroom-section > .model-disclaimer{
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

/* Row wrapping "SPECS & MODELS" heading + compare FAB */
.models-heading{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

/* When the FAB is relocated into .models-heading, override fixed positioning */
.models-heading .compare-fab{
  position: static;
  bottom: auto;
  right: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  margin-bottom: 10px; /* vertically align with base of MODELS text */
}

.showroom-title{
  font-size:22px;
  font-weight:800;
  margin: 10px 0 14px;
}

/* GRID */
.model-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
}

/* CARD */
.model-card{
  background:#fff;
  border:1px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  border-radius:3px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 520px;
}

.model-card-top{
  padding:12px 14px 8px;
  border-bottom:1px solid #f0f0f0;
  position:relative;
}

.model-share{
  font-size:13px;
  color:#2c2c2c;
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}

.model-car-img{
  width:100%;
  height:160px;
  object-fit:contain;
  display:block;
  margin: 4px 0 8px;
}

.model-price{
  font-size:18px;
  font-weight:800;
  margin-bottom:10px;
}

.model-price strong{
  font-weight:900;
}

.model-name{
  font-size:16px;
  font-weight:900;
  margin: 0 0 6px;
  text-transform:uppercase;
}

.model-specs{
  padding: 12px 25px 10px;
  margin:0;
  list-style: disc;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#111;
  font-size:14px;
  line-height:1.25;
  flex:1;
}

.model-actions{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 12px 14px 14px;
  border-top:1px solid #f0f0f0;
}

/* Bottom action group (Test Drive / View Offers) — stacked navy blocks */
.model-card > .model-actions{
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

.model-card > .model-actions .model-action{
  width: 100%;
}

.model-action{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 3px;
  background: #0f2b3c;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s ease;
}

.model-action:hover{
  background: #173c54;
  text-decoration: none;
}

.model-bottom-buttons{
  display:flex;
  gap:10px;
  padding: 0 14px 14px;
}

.model-blue-btn{
  flex:1;
  background:#0b3b86;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  padding:10px 12px;
  border-radius:0;
  text-align:center;
  font-size:14px;
}

.model-disclaimer{
  margin-top: 56px;
  padding: 32px 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
  color: #999;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.model-disclaimer p{
  margin: 0 0 8px;
}
.model-disclaimer p:last-child{
  margin-bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 1100px){
  .model-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .showroom-hero-inner{ justify-content:center; }
}

@media (max-width: 760px){
  .showroom-hero-inner{
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:10px;
    padding:16px;
  }

  .showroom-hero-price{
    order:2;
    width:100%;
    justify-content:center;
  }

  .showroom-hero-car{
    order:1;
    width:100%;
  }

  .showroom-hero-car img{
    width:min(520px, 92vw);
  }

  .model-grid{ grid-template-columns: 1fr; }
  .model-car-img{ height:180px; }
}

/* ===============================
   JIMNY HERO (EXACT STYLE)
   =============================== */

.jimny-hero{
  position: relative;
  width: 100%;
  height: min(70vh, 620px);
  min-height: 420px;
  overflow: hidden;
  background: #000;
}

.jimny-hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-model-logo{
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: 0;
  z-index: 3;
  height: clamp(32px, 5vw, 56px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.jimny-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.75) 100%
  );
}

.jimny-hero-content{
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px);
  height: 100%;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.jimny-hero-left{
  color: #fff;
  max-width: 520px;
}

.jimny-from{
  display: block;
  font-size: 14px;
  letter-spacing: 1.5px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.jimny-price{
  display: block;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 10px;
}

.jimny-hero-meta{
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.8;
  max-width: 520px;
}

/* CTA buttons */
.jimny-hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.jimny-hero-btn{
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #fff;
  color: #fff;
  transition: all .25s ease;
  text-align: center;
  white-space: nowrap;
}

.jimny-hero-btn.primary{
  background: transparent;
}

.jimny-hero-btn.secondary{
  background: transparent;
}

.jimny-hero-btn:hover{
  background: #fff;
  color: #000;
}

/* ===============================
   MOBILE
   =============================== */
@media (max-width: 768px){
  .jimny-hero{
    height: auto;
    min-height: 520px;
  }

  .jimny-hero-content{
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .jimny-hero-actions{
    width: 100%;
  }

  .jimny-hero-btn{
    width: 100%;
  }
}

/* ---- FIX: allow page to scroll ---- */
html, body{
  height: auto;
  overflow-y: auto;
}

/* if any global full-screen wrappers exist, don't lock scrolling */
body{
  overflow-x: hidden;
}

/* make sure hero doesn't trap the page */
.jimny-hero{
  position: relative;
  overflow: hidden; /* ok for hero */
}

/* IMPORTANT: if you have a main wrapper forcing 100vh, override it */
.page-preowned main,
.page-deals main,
.page-showroom main,
main{
  min-height: auto;
}

/* SHOWROOM INTRO — heading + paragraph + 3-image gallery */
.showroom-intro{
  background: #f2f2f2;
  padding: 56px 40px 0;
}
.showroom-intro-heading{
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 24px;
}
.showroom-intro-text{
  max-width: 860px;
  margin: 0 auto 48px;
  font-size: 15px;
  line-height: 1.7;
  color: #222;
}
.showroom-gallery{
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 520px;
}
.showroom-gallery figure{
  position: relative;
  margin: 0;
  overflow: hidden;
}
.showroom-gallery figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showroom-gallery figure figcaption{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.showroom-gallery-large{
  grid-row: 1 / 3;
}
@media(max-width:900px){
  .showroom-intro{ padding: 40px 20px 0; }
  .showroom-gallery{ grid-template-columns: 1fr 1fr; height: 380px; }
}
@media(max-width:600px){
  .showroom-intro{ padding: 32px 16px 0; }
  .showroom-gallery{
    grid-template-columns: 1fr;
    grid-template-rows: 260px 200px 200px;
    height: auto;
  }
  .showroom-gallery-large{ grid-row: auto; }
}


/* COLOUR PICKER */
.colour-picker{
  background: #fff;
  padding: 56px 40px 48px;
  text-align: center;
}
.colour-picker-heading{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 36px;
}
.colour-picker-preview{
  max-width: 800px;
  margin: 0 auto;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.colour-picker-img{
  width: 100%;
  height: 460px;
  object-fit: contain;
  display: block;
  transition: opacity .22s ease;
}
.colour-picker-img.cp-fade{
  opacity: 0;
}
.colour-picker-name{
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #111;
  margin: 20px 0 26px;
}
.colour-picker-swatches{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.colour-swatch{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  outline: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
  padding: 0;
}
.colour-swatch:hover{
  transform: scale(1.12);
  box-shadow: 0 4px 10px rgba(0,0,0,.28);
}
.colour-swatch.is-active{
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111, 0 4px 10px rgba(0,0,0,.2);
}
@media(max-width:600px){
  .colour-picker{ padding: 36px 20px 36px; }
  .colour-picker-img{ height: 280px; }
  .colour-swatch{ width: 38px; height: 38px; }
}

/*SHARING CARDS*/

/* Share button */
.share-btn{
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Share modal */
.share-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.share-modal.is-open{ display: block; }

.share-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.share-modal-panel{
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.share-close{
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.share-title{
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 16px;
}

.share-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.share-action{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  background: #f8f8f8;
  color: #111;
  cursor: pointer;
}

.share-action.whatsapp{ background: #25D366; border-color: #25D366; color: #fff; }
.share-action.facebook{ background: #1877F2; border-color: #1877F2; color: #fff; }
.share-action.copy{ background: #111; border-color: #111; color: #fff; }

/* =========================
   SHARE MODAL – CLEAN OUTLINE STYLE
   ========================= */

.share-modal {
  background: #00000069;
  border-radius: 14px;
  padding-bottom: 6px;
}

.share-modal-header {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid #eee;
}

.share-modal-body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
}

/* Outline buttons */
.share-action {
  width: 100%;
  background: #fff;
  color: #000;
  border: 1.5px solid #000;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s ease, transform .12s ease, opacity .12s ease;
}

.share-action i {
  font-size: 16px;
}

/* Hover */
.share-action:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

/* Active */
.share-action:active {
  transform: translateY(0);
  opacity: 0.9;
}

/* Remove old colour styles if present */
.share-action.whatsapp,
.share-action.facebook,
.share-action.copy {
  background: #fff !important;
  color: #000 !important;
}

/* =========================================
   FINANCE CALCULATOR MODAL
========================================= */

.calc-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;

  /* blur + darker tint (page behind) */
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.calc-overlay.is-open{ display:flex; }

.calc-modal{
  width: min(980px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

.calc-modal-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px 18px 10px;
  border-bottom: 1px solid #e9e9e9;
}

.calc-kicker{
  font-size: 13px;
  font-weight: 700;
  color: #1aa6a9; /* teal */
  letter-spacing: .2px;
}

.calc-title{
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.calc-close{
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
}

.calc-close:hover{ background:#f2f2f2; }

.calc-modal-body{ padding: 14px 18px 18px; }

.calc-price-row{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 12px;
  border-bottom: 2px solid #18a058; /* green line like screenshot */
  margin-bottom: 18px;
}

.calc-price-label{
  font-weight: 800;
  color: #1aa6a9;
  font-size: 14px;
}

.calc-price-value{
  font-size: 22px;
  color: #7a7a7a;
  font-weight: 300;
}

.calc-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
}

.calc-left, .calc-right{ min-width:0; }

.calc-field{
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
}

.calc-field-top{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.calc-label{
  font-weight: 800;
  color: #1b1b1b;
  font-size: 15px;
}

.calc-field-value{
  font-weight: 900;
  color: #0f172a;
  font-size: 18px;
}

.calc-range{
  width: 100%;
  accent-color: #1aa6a9;
}

.calc-helper{
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #6b7280;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.calc-select-wrap{
  position: relative;
  display:inline-block;
  width: 130px;
}

.calc-select{
  width: 100%;
  padding: 10px 34px 10px 12px;
  border: 0;
  border-bottom: 2px solid #1aa6a9;
  font-weight: 900;
  font-size: 16px;
  background: #fff;
  outline: none;
}

.calc-caret{
  position:absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color:#0f172a;
}

.calc-result-top{
  padding: 10px 0 14px;
  border-bottom: 1px solid #ececec;
}

.calc-result-label{
  font-weight: 900;
  font-size: 18px;
  color: #1b1b1b;
  margin-bottom: 6px;
}

.calc-result-amount{
  font-weight: 900;
  font-size: 56px;
  color: #0b3b86; /* light teal like screenshot */
  line-height: 1;
}

.calc-big-r{ font-size: 28px; vertical-align: 18px; margin-right: 6px; }
.calc-cents{ font-size: 24px; vertical-align: 18px; margin-left: 4px; }

.calc-bar{
  margin-top: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1aa6a9 0%, #6ad5d7 45%, #0b3b86 75%, #0b3b86 100%);
}

.calc-breakdown{ padding: 14px 0 0; }

.calc-row{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color:#6b7280;
}

.calc-row strong{
  color:#1aa6a9;
  font-size: 16px;
}

.calc-orange{ color:#0b3b86 !important; }

.calc-footnote{
  margin-top: 12px;
  font-size: 12px;
  color:#8a8a8a;
  line-height: 1.35;
}

.calc-disclaimer{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
  font-size: 11px;
  color: #8a8a8a;
  line-height: 1.45;
}
.calc-disclaimer p{
  margin: 0 0 8px;
}
.calc-disclaimer p:last-child{
  margin-bottom: 0;
}

.calc-cta{
  margin-top: 14px;
  width: 100%;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .4px;
  padding: 14px 16px;
  border-radius: 999px;
  color: #fff;
  background: #0b3b86;
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.calc-cta:hover{ filter: brightness(.96); }

/* Calculator button next to Share */
.calc-btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.calc-btn:hover{ background:#f6f6f6; }

/* Mobile */
@media (max-width: 860px){
  .calc-grid{ grid-template-columns: 1fr; }
  .calc-modal{ max-height: 90vh; }
  .calc-result-amount{ font-size: 46px; }
}

/* =========================
   STANDALONE FINANCE CALCULATOR PAGE
========================= */
.finance-hero{
  background-image: url('assets/specials/Finance.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}
.sell-trade-hero{
  background-image: url('assets/hero-bg.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}
.fc-section{
  background: #f4f5f7;
  padding: 40px 20px calc(var(--quickbar-h-desktop) + 56px);
}
/* The vehicle dropdown must fit names like "Super Carry" / "Grand Vitara",
   so override the narrow 130px default used by the modal's term selector. */
.fc-vehicle-row .calc-select-wrap{
  display: block;
  width: 100%;
}
.fc-card{
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
  overflow: hidden;
}
.fc-header{
  padding: 22px 24px 14px;
  border-bottom: 1px solid #e9e9e9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fc-subhead{
  margin: 4px 0 0;
  color: #666;
  font-size: 14px;
}
.fc-vehicle-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 4px 0 18px;
  border-bottom: 2px solid #18a058;
  margin-bottom: 18px;
}
.fc-field{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fc-price-input-wrap{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f8f8f8;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  transition: border-color .18s, background .18s;
}
.fc-price-input-wrap:focus-within{
  border-color: #1aa6a9;
  background: #fff;
}
.fc-price-prefix{
  color: #1aa6a9;
  font-weight: 800;
  font-size: 18px;
}
.fc-price-input{
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  letter-spacing: .02em;
  text-align: right;
  width: 100%;
}
@media (max-width: 720px){
  .fc-section{ padding: 32px 14px calc(var(--quickbar-h-mobile) + 40px); }
  .fc-vehicle-row{ grid-template-columns: 1fr; gap: 14px; }
  .fc-price-input{ font-size: 18px; }
}

/* =========================
   NAVIGATE ANIMATION OVERLAY
========================= */
.nav-anim{
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.nav-anim.is-open{
  opacity: 1;
  visibility: visible;
}

.nav-anim__tint{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-anim__content{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
}

.nav-anim__plane{
  font-size: 64px;
  color: #fff;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
  transform: translateX(-35vw) translateY(10vh) rotate(-10deg) scale(1);
  opacity: 0;
}

.nav-anim__text{
  color: rgba(255,255,255,.92);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 30px;
}

/* Animate the plane “leaving the page” */
.nav-anim.is-open .nav-anim__plane{
  animation: planeTakeoff 1.4s cubic-bezier(.18,.9,.12,1) forwards;
}

@keyframes planeTakeoff{
  0%{
    opacity: 0;
    transform: translateX(-45vw) translateY(18vh) rotate(-14deg) scale(.95);
  }

  12%{
    opacity: 1;
  }

  40%{
    transform: translateX(-10vw) translateY(-6vh) rotate(6deg) scale(1.05);
  }

  70%{
    transform: translateX(20vw) translateY(-22vh) rotate(14deg) scale(1.1);
    opacity: 1;
  }

  100%{
    opacity: 0;
    transform: translateX(75vw) translateY(-45vh) rotate(22deg) scale(1.15);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .nav-anim__plane,
  .nav-anim.is-open .nav-anim__plane{
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .quickbar-mobile,
  .qb-sheet,
  .qb-sheet-backdrop{
    transition: none !important;
  }
}

/* ================================
   NAVIGATE TO DEALER – DEPARTURE FX
================================ */

/* when overlay is open, give the page a subtle push-back */
body.nav-anim-lock main,
body.nav-anim-lock .site-header{
  transform: scale(.985);
  filter: blur(1.5px) brightness(.85);
  transition: transform .35s ease, filter .35s ease;
  transform-origin: center;
}

/* Plane contrail */
.nav-anim__trail{
  position: absolute;
  width: 260px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.65),
    rgba(255,255,255,0)
  );
  opacity: 0;
  filter: blur(.6px);
  pointer-events: none;
  transform: translateX(-45vw) translateY(18vh) scaleX(.4);
}

/* Animate contrail with plane */
.nav-anim.is-open .nav-anim__trail{
  opacity: 1;
  animation: trailFly 1.4s cubic-bezier(.18,.9,.12,1) forwards;
}

@keyframes trailFly{
  0%{
    opacity: 0;
    transform: translateX(-45vw) translateY(18vh) scaleX(.4);
  }

  15%{
    opacity: .9;
  }

  45%{
    transform: translateX(-10vw) translateY(-6vh) scaleX(.8);
  }

  70%{
    opacity: .6;
    transform: translateX(20vw) translateY(-22vh) scaleX(1.05);
  }

  100%{
    opacity: 0;
    transform: translateX(75vw) translateY(-45vh) scaleX(1.3);
  }
}

/* =========================================================
   MODELS & SPECS PAGE
   All rules scoped to body.page-models so they don't override
   the global .model-card used on showroom pages.
========================================================= */
body.page-models{
  overflow: auto;
}

.page-models .models-main{
  min-height: calc(100vh - var(--header-h));
  background: #fff;
}

/* hero — uses jimny-hero pattern with custom bg */
.page-models .models-hero{
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* light body section — own bottom padding clears the fixed quickbar */
.page-models .models-section{
  background: #f2f2f2;
  padding: 56px 32px calc(var(--quickbar-h-desktop) + 40px);
}

@media (max-width: 900px){
  .page-models .models-section{
    padding: 36px 16px calc(var(--quickbar-h-mobile) + 40px);
  }
}
.page-models .models-section-inner{
  max-width: 1280px;
  margin: 0 auto;
}
.page-models .models-section-title{
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 28px;
}

/* filter pills — light/white with navy active */
.page-models .models-filters{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 36px;
  max-width: 100%;
}

.page-models .models-pill{
  border: 1px solid #d0d4d8;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  user-select: none;
  white-space: nowrap;
}

.page-models .models-pill:hover{
  background: #f5f5f5;
  border-color: #0f2b3c;
}

.page-models .models-pill.is-active{
  background: #0f2b3c;
  color: #fff;
  border-color: #0f2b3c;
}

/* grid */
.page-models .models-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px){
  .page-models .models-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px){
  .page-models .models-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .page-models .models-grid{ grid-template-columns: 1fr; }
}

/* cards */
.page-models .model-card{
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  text-decoration: none;
  color: #111;
  display: flex;
  flex-direction: column;
  min-height: auto;
  transition: transform .18s ease, box-shadow .18s ease;
}

.page-models .model-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.page-models .model-card-media{
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  padding: 14px 12px 10px;
  overflow: hidden;
}

.page-models .model-card-media .model-vehicle-logo{
  width: auto;
  height: 36px;
  max-width: 60%;
  margin: 0 0 6px 0;
  object-fit: contain;
  flex: 0 0 auto;
}

.page-models .model-card-media img:not(.model-vehicle-logo){
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  flex: 1 1 auto;
  min-height: 0;
}

.page-models .model-card-body{
  padding: 14px 16px 14px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-models .model-tags{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.page-models .model-tag{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  background: #f2f2f2;
  color: #0f2b3c;
}

.page-models .model-name{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: #111;
}

.page-models .model-from{
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-weight: 900;
  margin: 0 0 12px;
  color: #0f2b3c;
}

.page-models .model-from small{
  font-size: 12px;
  font-weight: 700;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.page-models .model-from span{
  font-size: 18px;
}

.page-models .model-cta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 3px;
  background: #0f2b3c;
  color: #fff;
  margin-top: 12px;
  transition: background .15s ease;
}

.page-models .model-card:hover .model-cta{
  background: #173c54;
}

.page-models .model-cta i{
  opacity: 1;
}

/* =========================================
   COMPARE UI
========================================= */

/* compare button next to share/calculator */
.compare-add-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}

.compare-add-btn:hover{
  transform: translateY(-1px);
}

.compare-add-btn.is-active{
  background: #111;
  color: #fff;
}

.compare-add-btn i{
  font-size: 14px;
}

/* floating compare button */
.compare-fab{
  position: fixed;
  right: 16px;
  bottom: 92px; /* keep above quickbar */
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(20,20,20,.92);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  cursor: pointer;
}

.compare-fab.is-visible{
  display: inline-flex;
}

.compare-count{
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00a599;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 0 6px;
}

/* toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 92px; /* above quickbar */
  transform: translateX(-50%);
  background: rgba(20,20,20,.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.is-showing{
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

/* modal overlay */
.compare-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* show */
.compare-modal.is-open{
  display: flex;
}

/* blur background */
html.compare-lock,
body.compare-lock{
  overflow: hidden;
}

body.compare-lock main,
body.compare-lock .site-header{
  filter: blur(3px) brightness(.78);
  transform: scale(.985);
  transition: transform .25s ease, filter .25s ease;
}

/* modal panel */
.compare-modal__panel{
  width: min(1100px, 100%);
  max-height: min(80vh, 720px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.compare-modal__header{
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.compare-modal__title{
  font-weight: 900;
  font-size: 16px;
}

.compare-modal__close{
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
}

.compare-modal__body{
  padding: 14px 16px 16px;
  overflow: auto;
}

.compare-modal__hint{
  font-weight: 700;
  color: #666;
  margin-bottom: 12px;
}

/* compare table */
.compare-scroll{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #eee;
  border-radius: 14px;
}

.compare-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px; /* forces horizontal scroll on small devices */
}

.compare-table th,
.compare-table td{
  border-bottom: 1px solid #eee;
  padding: 12px 12px;
  vertical-align: top;
}

.compare-table thead th{
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 2;
}

.compare-first{
  width: 170px;
}

.compare-cat{
  font-weight: 900;
  color: #111;
  background: #fff;
}

.compare-list{
  margin: 0;
  padding-left: 16px;
}

.compare-muted{
  color: #999;
}

.compare-colhead{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-name{
  font-weight: 900;
}

.compare-remove{
  align-self: flex-start;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.compare-footnote{
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

/* mobile tweaks */
@media (max-width: 640px){
  .compare-fab{ right: 12px; }
  .compare-modal__panel{ max-height: 86vh; }
  .compare-first{ width: 140px; }
}

/* ===== Model card action bar (Share / Calculator / Compare) ===== */
.model-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
}

.action{
  font-size: 13px;          /* ↓ from default */
  letter-spacing: .2px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #111;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.action i{
  font-size: 13px;
}

.action:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.18);
}

.action:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

/* Share becomes compact icon button */
.action--icon{
  width: 38px;
  height: 38px;
}

/* Pills fill the row nicely */
.action--pill{
  padding: 0 12px;          /* ↓ horizontal padding */
  gap: 6px;                 /* tighter icon-text spacing */
}

/* Color accents (modern, subtle) */
.action--calc{
  background: linear-gradient(180deg, rgba(255,196,77,.22), rgba(255,196,77,.12));
  border-color: rgba(255,196,77,.55);
}

.action--compare{
  background: linear-gradient(180deg, rgba(0,165,153,.18), rgba(0,165,153,.10));
  border-color: rgba(0,165,153,.45);
}

/* When compare is active (already added) */
.compare-add-btn.is-active{
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

/* Make text never break awkwardly */
.action span{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Accessibility helper */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Extra-small screens */
@media (max-width: 420px){
  .action{
    font-size: 12px;
  }

  .action--pill{
    padding: 0 10px;
  }

  .action i{
    font-size: 12px;
  }
}

/* =========================
   HERO VIDEO PLAY BUTTON
========================= */
.hero-play{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.9);
  background: rgba(0,0,0,.25);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.hero-play:hover{
  background: rgba(0,0,0,.35);
  transform: translate(-50%,-50%) scale(1.02);
}

.hero-play__label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-play__ring{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  display: grid;
  place-items: center;
  position: relative;
}

/* Triangle drawn inside the ring so grid place-items centers it */
.hero-play__ring::before{
  content: "";
  width: 0; height: 0;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px; /* optical shift — triangle's visual centre sits right of its bounding-box centre */
}

.hero-play__icon{ display: none; }

@media (max-width: 520px){
  .hero-play{
    top: auto;
    bottom: 16px;
    transform: translateX(-50%);
    padding: 8px 12px;
    gap: 7px;
  }
  .hero-play:hover{ transform: translateX(-50%) scale(1.02); }
  .hero-play__ring{ width: 32px; height: 32px; }
  .hero-play__ring::before{
    border-left-width: 9px;
    border-top-width: 6px;
    border-bottom-width: 6px;
    margin-left: 2px;
  }
  .hero-play__label{ font-size: 11px; }
}

/* =========================
   VIDEO MODAL
========================= */
.video-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.video-modal.is-open{ display: block; }

.video-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal__panel{
  position: relative;
  width: min(980px, 92vw);
  margin: 9vh auto 0;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.video-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
}

.video-modal__frame{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile spacing */
@media (max-width: 520px){
  .video-modal__panel{
    width: 94vw;
    margin-top: 12vh;
    border-radius: 14px;
  }
}

/* =========================
   BROCHURES PAGE
   All rules scoped to body.page-brochures so they don't leak.
========================= */

.page-brochures .brochures-main{
  min-height: calc(100vh - var(--header-h));
  background: #fff;
}

.page-brochures .brochures-hero{
  background-image: url('assets/brochures/main.png');
  background-size: cover;
  background-position: center;
}

.page-brochures .brochures-section{
  background: #f2f2f2;
  padding: 56px 32px calc(var(--quickbar-h-desktop) + 40px);
}
.page-brochures .brochures-section-inner{
  max-width: 1280px;
  margin: 0 auto;
}
.page-brochures .brochures-section-title{
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 12px;
}
.page-brochures .brochures-section-intro{
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  color: #444;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px){
  .page-brochures .brochures-section{
    padding: 36px 16px calc(var(--quickbar-h-mobile) + 40px);
  }
}

/* grid */
.bro-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px){
  .bro-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px){
  .bro-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .bro-grid{ grid-template-columns: 1fr; }
}

/* cards — mirrors .page-models .model-card */
.page-brochures .bro-card{
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.page-brochures .bro-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* media area: logo on top, car render fills remaining height */
.page-brochures .bro-card-media{
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  padding: 14px 12px 10px;
  overflow: hidden;
}

.page-brochures .bro-card-logo{
  width: auto;
  height: 36px;
  max-width: 60%;
  margin: 0 0 6px 0;
  object-fit: contain;
  flex: 0 0 auto;
}

.page-brochures .bro-card-img{
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  flex: 1 1 auto;
  min-height: 0;
}

/* body */
.page-brochures .bro-card-body{
  padding: 14px 16px 14px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-brochures .bro-card-name{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #111;
}

/* stacked navy action blocks — same as .model-action */
.page-brochures .bro-card__actions{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding: 0;
  border-top: 0;
  background: transparent;
}

.page-brochures .bro-card__actions a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 3px;
  background: #0f2b3c;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s ease;
}

.page-brochures .bro-card__actions a:hover{
  background: #173c54;
}

.page-brochures .bro-card__actions a > span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-brochures .bro-card__actions a > span i{
  font-size: 13px;
}

/* PDF MODAL (brochure page) */
.pdf-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.pdf-modal.is-open{ display: flex; }

.pdf-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.pdf-modal__panel{
  position: relative;
  width: 90vw;
  height: 90vh;
  max-width: 1400px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-modal__header{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #0f2b3c;
  color: #fff;
  flex-shrink: 0;
}

.pdf-modal__title{
  flex: 1;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pdf-modal__action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: transparent;
  border: 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.pdf-modal__action:hover{ background: rgba(255,255,255,.12); }
.pdf-modal__action i{ font-size: 15px; }

.pdf-modal__frame{
  flex: 1;
  width: 100%;
  border: 0;
  background: #f2f2f2;
}

@media (max-width: 600px){
  .pdf-modal__panel{
    width: 96vw;
    height: 94vh;
    border-radius: 0;
  }
}

/* ===== Test Drive Page ===== */
.page-test-drive .page-head{
  padding: 34px 0 12px;
  text-align: center;
}

.page-test-drive .page-title{
  margin: 0 0 8px;
  letter-spacing: .5px;
}

.page-test-drive .page-subtitle{
  margin: 0;
  opacity: .8;
}

.tdform{
  min-height: 520px; /* keeps layout stable while form loads */
}

.tdform-loading{
  margin-top: 14px;
  font-size: 14px;
  opacity: .7;
  display: none;
}

/* =========================
   TEST DRIVE: allow scroll past fixed quickbar
========================= */

/* Adjust this if your quickbar is taller */
:root{
  --quickbar-h: 92px;
}

/* Give pages a bottom buffer so content isn't hidden behind fixed quickbar */
.page{
  padding-bottom: calc(var(--quickbar-h) + env(safe-area-inset-bottom, 0px));
}

/* If your <main> isn't using .page on some pages, keep this as backup */
main{
  padding-bottom: calc(var(--quickbar-h) + env(safe-area-inset-bottom, 0px));
}

/* =========================
   Form pages: allow scroll past fixed quickbar (mobile)
   (Stops submit button being hidden)
========================= */

/* Wrapper used on service/test-drive pages */
.std-page{
  min-height: 100vh;
}



.std-page-head{
  margin-bottom: 14px;
  text-align: center;
}

.std-page-title{
  margin: 0 0 6px;
  letter-spacing: .08em;
}

.std-page-subtitle{
  margin: 0;
  opacity: .8;
}

/* IMPORTANT: add room under the form for the fixed quickbar */
.std-form-mount{
  position: relative;
}

/* On mobile the quickbar is fixed at bottom, so we add padding-bottom */
@media (max-width: 900px){
  .std-page-inner{
    padding-bottom: 140px; /* enough space to reach Submit */
  }
}

/* If your quickbar is taller on very small screens */
@media (max-width: 420px){
  .std-page-inner{
    padding-bottom: 170px;
  }
}

/* =========================
   SERVICE PAGE
========================= */

.svc-main{
  min-height: 100vh;
}

.svc-hero{
  background-image: url('assets/service/service-hero.jpg') !important;
}

.svc-section{
  background: #f2f2f2;
  padding: 28px 32px calc(var(--quickbar-h-desktop) + 40px);
}
.svc-section:has(+ .svc-block-row-section){
  padding-bottom: 28px;
}

/* Two-column layout: form + sidebar */
.std-page-body{
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: start;
}

.std-page-sidebar{
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 80px;
}

.svc-block{
  display: block;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
}
.svc-block:hover{
  transform: translateY(-3px);
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}

.svc-block-img{
  height: 90px;
  background-size: cover;
  background-position: center;
  background-color: #b0bec5;
}

.svc-block-label{
  background: #0f2b3c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 9px 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: underline;
}

@media (max-width: 900px){
  .svc-section{
    padding: 20px 16px calc(var(--quickbar-h-mobile) + 40px);
  }
  .svc-section:has(+ .svc-block-row-section){
    padding-bottom: 20px;
  }
  .std-page-body{
    grid-template-columns: 1fr;
  }
  .std-page-sidebar{
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px){
  .std-page-sidebar{
    grid-template-columns: 1fr;
  }
}

/* =========================
   INFO PAGES (Peace of Mind, Vehicle Care, Genuine Parts)
========================= */

.info-hero{
  background-size: cover;
  background-position: center;
}
.page-peace-of-mind .info-hero{
  background-image: url('assets/service/peace-of-mind.jpg');
}
.page-vehicle-care .info-hero{
  background-image: url('assets/service/vehicle-care.jpg');
}
.page-genuine-parts .info-hero{
  background-image: url('assets/service/genuine-parts.jpg');
}
.page-legal-disclaimer .info-hero,
.page-paia .info-hero,
.page-copyright .info-hero{
  background-image: url('assets/contact/contact.jpg');
}
/* Legal pages: content column matches the hero content width/alignment
   (1400px max, same clamp side-padding) instead of the 860px cap. */
.page-legal-disclaimer .info-section,
.page-paia .info-section,
.page-copyright .info-section{
  padding-left: 0;
  padding-right: 0;
}
.page-legal-disclaimer .info-content,
.page-paia .info-content,
.page-copyright .info-content{
  max-width: 1400px;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* ── Legal information block (contact page) ──────────────────────── */
.legal-info-section{
  background: #fff;
  padding: 48px 32px 8px;
  text-align: center;
}
.legal-info-section h2{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 24px;
}
.legal-links{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}
.legal-link-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #0f2b3c;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 12px 24px;
  border: 2px solid #0f2b3c;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.legal-link-btn:hover{
  background: #0f2b3c;
  color: #fff;
}

/* ── PAIA PDF download button (paia.html) ───────────────────────── */
.legal-pdf{
  text-align: center;
  margin: 8px 0 0;
}
.legal-pdf-btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0f2b3c;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 14px 28px;
  border: 2px solid #0f2b3c;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.legal-pdf-btn:hover{
  background: #0f2b3c;
  color: #fff;
}

.info-section{
  background: #f2f2f2;
  padding: 56px 32px 64px;
}
.info-content{
  max-width: 860px;
  margin: 0 auto;
  color: #222;
  font-size: 15px;
  line-height: 1.7;
}
.info-content > h2{
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 24px;
}
.info-content > h3{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f2b3c;
  margin: 28px 0 10px;
}
.info-content > p{
  margin: 0 0 16px;
}
.info-content ol,
.info-content ul{
  margin: 0 0 16px;
  padding-left: 22px;
}
.info-content li{
  margin-bottom: 10px;
}
.info-content li > strong{
  color: #0f2b3c;
}
.info-closing{
  text-align: center;
  font-style: italic;
  margin: 32px auto 0;
  max-width: 700px;
  color: #444;
}

/* Cross-nav row (Peace Of Mind / Vehicle Care / Genuine Parts / How To Library)
   Reuses .svc-block styling but lays the four blocks out horizontally. */
.svc-block-row-section{
  background: #fff;
  padding: 40px 32px calc(var(--quickbar-h-desktop) + 40px);
}
.svc-block-row{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.svc-block-row .svc-block-img{
  height: 140px;
}
.svc-block-row .svc-block.is-current{
  pointer-events: none;
  opacity: .55;
}
@media (max-width: 900px){
  .info-section{
    padding: 36px 16px 48px;
  }
  .svc-block-row-section{
    padding: 28px 16px calc(var(--quickbar-h-mobile) + 40px);
  }
  .svc-block-row{
    grid-template-columns: 1fr 1fr;
  }
  .svc-block-row .svc-block-img{
    height: 110px;
  }
}
@media (max-width: 480px){
  .svc-block-row{
    grid-template-columns: 1fr;
  }
}

/* =========================
   BANKING PAGE (password-gated PDF)
========================= */
.banking-section{
  background: #fff;
  padding: 64px 32px calc(var(--quickbar-h-desktop) + 56px);
  min-height: calc(100vh - var(--quickbar-h-desktop));
}
.banking-content{
  max-width: 1100px;
  margin: 0 auto;
}
.banking-content > h2{
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f2b3c;
  margin: 0 0 12px;
}
.banking-sub{
  text-align: center;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 48px;
}
.banking-gate{
  margin: 0 auto 32px;
}
.banking-label{
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0f2b3c;
  margin: 0 0 14px;
}
.banking-input{
  display: block;
  width: 100%;
  background: #ececec;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 18px 22px;
  font-size: 16px;
  letter-spacing: .15em;
  color: #0f2b3c;
  outline: none;
  transition: border-color .2s, background .2s;
}
.banking-input:focus{
  border-color: #0f2b3c;
  background: #fff;
}
.banking-msg{
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #b00020;
  min-height: 18px;
}
.banking-msg.is-error{ color: #b00020; }
.banking-gate.is-unlocked .banking-input{
  border-color: #0a7d2c;
  background: #f1faf3;
}
.banking-pdf-wrap{
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.banking-pdf-wrap[hidden]{ display: none; }
.banking-pdf{
  width: 100%;
  height: min(80vh, 900px);
  border: 1px solid #ddd;
  background: #f5f5f5;
}
.banking-download{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #0f2b3c;
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s;
}
.banking-download:hover{ background: #1a4863; }
@media (max-width: 768px){
  .banking-section{
    padding: 40px 16px calc(var(--quickbar-h-mobile) + 40px);
  }
  .banking-content > h2{ margin-bottom: 8px; }
  .banking-sub{ margin-bottom: 32px; font-size: 14px; }
  .banking-input{ padding: 14px 16px; font-size: 15px; }
  .banking-pdf{ height: 70vh; }
}

/* =========================
   FINANCE PAGE FULLSCREEN
========================= */

.finance-full{
  padding-bottom: 140px; /* prevent quickbar overlap */
}

.finance-embed{
  margin-top: 24px;
  width: 100%;
  height: calc(100vh - 260px);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.finance-embed iframe{
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile adjustments */
@media (max-width: 900px){
  .finance-embed{
    height: calc(100vh - 220px);
  }
}

@media (max-width: 420px){
  .finance-full{
    padding-bottom: 170px;
  }
}

/* =========================
   BEHIND THE SCENES (BTS)
========================= */

/* Hero */
.bts-hero{
  background-image: url('assets/bts/main.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Grey content section */
.bts-section{
  background: #f2f2f2;
  padding: 60px 40px calc(var(--quickbar-h-desktop) + 60px);
}

/* Unified split card */
.bts-feature{
  display: grid;
  grid-template-columns: 380px 1fr;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0,0,0,.14);
  min-height: 520px;
}

/* Left: navy info panel */
.bts-info-panel{
  background: #0f2b3c;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.bts-pill{
  display: inline-flex;
  align-self: flex-start;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 7px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 24px;
}

.bts-info-heading{
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}

.bts-info-text{
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.bts-info-nav{
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.bts-arrow{
  width: 42px;
  height: 42px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.bts-arrow:hover{
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
}

.bts-dots{
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.bts-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.4);
  background: transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.bts-dot.is-active{
  background: #fff;
  border-color: #fff;
}

/* Right: gallery canvas */
.bts-canvas{
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
}
.bts-canvas > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}

/* Gradient overlay with dots + arrows */
.bts-canvas-ui{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
}

.bts-gdots{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.bts-gdot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  transition: background .15s;
}
.bts-gdot.is-active{
  background: #fff;
  border-color: #fff;
}

.bts-canvas-arrows{
  display: flex;
  gap: 8px;
}

.bts-garrow{
  width: 44px;
  height: 44px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: background .15s;
  backdrop-filter: blur(4px);
}
.bts-garrow:hover{
  background: rgba(0,0,0,.65);
}

/* Responsive */
@media (max-width: 980px){
  .bts-section{
    padding: 40px 16px calc(var(--quickbar-h-mobile) + 40px);
  }
  .bts-feature{
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .bts-canvas{
    aspect-ratio: 16/9;
    min-height: 260px;
  }
  .bts-info-panel{
    padding: 28px 24px;
  }
  .bts-info-heading{
    font-size: 20px;
  }
}


/* =========================
   CONTACT PAGE
========================= */

/* Section title — matches showroom-intro-heading */
.contact-section-title{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: #111;
  margin: 0 0 40px;
}

/* ① Quick contact strip */
.contact-strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.contact-strip-card{
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 36px 48px;
  border-right: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  transition: background .18s;
}
.contact-strip-card:last-child{ border-right: none; }
.contact-strip-card:hover{ background: #f7f7f7; }
.contact-strip-icon{
  width: 48px;
  height: 48px;
  background: #0f2b3c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.contact-strip-label{
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 5px;
}
.contact-strip-value{
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: #111;
}

/* ② Departments */
.contact-depts{
  background: #f2f2f2;
  padding: 64px 40px;
}
.contact-depts-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}
.contact-dept-card{
  background: #0f2b3c;
  border-radius: 3px;
  padding: 32px 24px 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.contact-dept-icon{
  width: 50px;
  height: 50px;
  background: #fff;
  color: #0f2b3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.contact-dept-name{
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 4px;
}
.contact-dept-link{
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 3px 0;
  transition: color .15s;
  word-break: break-all;
}
.contact-dept-link i{ color: #fff; font-size: .78rem; flex-shrink: 0; }
.contact-dept-link:hover{ color: #fff; }

/* ③ Trading Hours */
.contact-hours{
  background: #fff;
  padding: 64px 40px;
}
.contact-hours-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-hours-block{
  background: #f2f2f2;
  border-radius: 3px;
  padding: 30px 28px;
}
.contact-hours-dept{
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #0f2b3c;
  margin: 0 0 18px;
}
.contact-hours-table{
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.contact-hours-table td{
  padding: 9px 0;
  border-bottom: 1px solid #e2e2e2;
  color: #333;
}
.contact-hours-table tr:last-child td{ border-bottom: none; }
.contact-hours-table td:first-child{ color: #666; }
.contact-hours-table td:last-child{ font-weight: 700; text-align: right; color: #111; }

/* ④ Map & Address */
.contact-map-section{
  background: #f2f2f2;
}
.contact-map-wrap{
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: stretch;
}
.contact-map-embed{
  height: 500px;
}
.contact-map-embed iframe{
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.contact-map-info{
  background: #0f2b3c;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-address-block{
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-address-block > i{
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.contact-address-block > div{
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}
.contact-address-block strong{
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  margin-bottom: 4px;
}
.contact-directions-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #0f2b3c;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 3px;
  transition: background .15s;
}
.contact-directions-btn:hover{ background: #f0f0f0; }
.contact-social-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-social-link{
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.contact-social-link:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* ⑤ Contact Form */
.contact-form-section{
  background: #fff;
  padding: 64px 40px 100px;
  text-align: center;
}
.contact-form-sub{
  color: #666;
  font-size: .95rem;
  margin: -24px 0 32px;
}

/* Responsive */
@media(max-width: 1000px){
  .contact-depts-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 820px){
  .contact-map-wrap{ grid-template-columns: 1fr; }
  .contact-map-embed{ height: 300px; }
  .contact-depts{ padding: 48px 20px; }
  .contact-hours{ padding: 48px 20px; }
  .contact-form-section{ padding: 48px 20px 80px; }
}
@media(max-width: 700px){
  .contact-strip{ grid-template-columns: 1fr; }
  .contact-strip-card{ border-right: none; border-bottom: 1px solid #e8e8e8; padding: 24px 28px; }
  .contact-strip-card:last-child{ border-bottom: none; }
}
@media(max-width: 600px){
  .contact-depts-grid{ grid-template-columns: 1fr; }
  .contact-hours-grid{ grid-template-columns: 1fr; }
  .contact-map-info{ padding: 36px 24px; }
}



/* =========================================
   PRE-OWNED LISTING (preowned.html)
========================================= */
.preowned-hero{
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

.preowned-section{
  background: #f4f5f7;
  padding: 40px clamp(16px, 3vw, 40px) calc(var(--quickbar-h-desktop) + 56px);
}
.preowned-layout{
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.preowned-filters{
  background: #0f2b3c;
  color: #fff;
  border-radius: 6px;
  padding: 22px;
  position: sticky;
  top: 24px;
}
.preowned-filters-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.preowned-filters-head h2{
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.preowned-clear{
  background: transparent;
  border: 0;
  color: #1aa6a9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.filter-group{
  margin-bottom: 16px;
}
.filter-group label{
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 6px;
}
.filter-group input[type="search"],
.filter-group input[type="number"],
.filter-group select{
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.filter-group input:focus,
.filter-group select:focus{
  border-color: #1aa6a9;
}
.filter-group select option{ color: #111; }
.filter-range .range-row{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.filter-range .range-row span{ color: rgba(255,255,255,.55); font-size: 12px; }

.pill-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill-row .pill{
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pill-row .pill:hover{ background: rgba(255,255,255,.14); }
.pill-row .pill.is-active{
  background: #fff;
  border-color: #fff;
  color: #0f2b3c;
}

/* Results column */
.preowned-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.preowned-count-block{ display: flex; flex-direction: column; gap: 2px; }
.preowned-count{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f2b3c;
}
.preowned-count #preownedCountNum{ color: #1aa6a9; }
.preowned-synced{
  margin: 0;
  font-size: 12px;
  color: #777;
  font-style: italic;
}
.preowned-synced:empty{ display: none; }
.preowned-sort{
  display: flex;
  align-items: center;
  gap: 10px;
}
.preowned-sort label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #555;
}
.preowned-sort select{
  padding: 9px 36px 9px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  color: #0f2b3c;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #0f2b3c 50%),
                    linear-gradient(135deg, #0f2b3c 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Grid + cards */
.preowned-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.po-card{
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: box-shadow .2s, transform .15s;
}
.po-card:hover{
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.po-card-img{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  overflow: hidden;
}
.po-card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.po-card-noimg{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #b0b0b0;
  font-size: 40px;
}
.po-card-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  background: #1aa6a9;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
}
.po-card-body{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.po-card-price-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.po-card-price{
  font-size: 20px;
  font-weight: 800;
  color: #0f2b3c;
}
.po-card-pm{
  font-size: 12px;
  color: #777;
  white-space: nowrap;
}
.po-card-name{
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
  min-height: 38px;
}
.po-card-specs{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #555;
}
.po-card-specs li{
  background: #f4f5f7;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: .02em;
}
.po-card-cta{
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1aa6a9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.po-card-cta i{ transition: transform .15s; }
.po-card:hover .po-card-cta i{ transform: translateX(3px); }

/* Empty + error states */
.preowned-empty{
  background: #fff;
  border: 1px dashed #d4d4d4;
  border-radius: 6px;
  padding: 48px 20px;
  text-align: center;
  color: #555;
}
.preowned-empty i{ font-size: 32px; color: #b0b0b0; margin-bottom: 12px; }
.preowned-empty h3{ margin: 0 0 6px; color: #0f2b3c; }
.po-load-error{
  background: #fff;
  border: 1px solid #f3d3d3;
  color: #a23131;
  padding: 24px;
  border-radius: 6px;
  text-align: center;
}
.link-btn{
  background: 0;
  border: 0;
  padding: 0;
  color: #1aa6a9;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Pagination */
.preowned-pagination{
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.po-page{
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid #d6d6d6;
  background: #fff;
  color: #0f2b3c;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.po-page:hover{ background: #f4f5f7; }
.po-page.is-active{
  background: #0f2b3c;
  border-color: #0f2b3c;
  color: #fff;
  pointer-events: none;
}
.po-page.is-disabled{ opacity: .35; pointer-events: none; }
.po-ellipsis{
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: #999;
}

/* Mobile responsive */
@media (max-width: 960px){
  .preowned-layout{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .preowned-filters{
    position: static;
  }
}
@media (max-width: 768px){
  .preowned-section{
    padding: 24px 14px calc(var(--quickbar-h-mobile) + 40px);
  }
  .preowned-grid{
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }
  .po-card-price{ font-size: 17px; }
  .po-card-name{ font-size: 13px; min-height: 36px; }
}


/* =========================================
   PRE-OWNED DETAIL (preowned-detail.html)
========================================= */
.pod-state{
  max-width: 800px;
  margin: 80px auto;
  padding: 0 24px calc(var(--quickbar-h-desktop) + 40px);
  text-align: center;
}
.pod-state h1{ margin: 12px 0; color: #0f2b3c; }
.pod-state p{ color: #555; margin-bottom: 24px; }
.pod-loading p{
  color: #888;
  font-size: 14px;
  margin-top: 40px;
}

.pod-detail{
  max-width: 1400px;
  margin: 0 auto;
  /* The brand box overhangs ~48px below the in-flow header — just enough
     padding-top to clear that and breathe a little. */
  padding: 60px clamp(14px, 2.5vw, 40px) calc(var(--quickbar-h-desktop) + 48px);
}

/* Title bar */
.pod-title-bar{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 24px;
}
.pod-title h1{
  margin: 0 0 6px;
  font-size: clamp(20px, 2.6vw, 30px);
  color: #0f2b3c;
}
.pod-pill-row{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pod-pill-row li{
  background: #f4f5f7;
  color: #444;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}
.pod-price-block{ text-align: right; }
.pod-price{
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #d92b2b;
}
.pod-monthly{
  font-size: 13px;
  color: #777;
  margin-top: 2px;
}

/* Body grid */
.pod-body{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.pod-main{ min-width: 0; }

/* Gallery */
.pod-gallery{
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 12px;
}
.pod-gallery-main{
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f4f5f7;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pod-gallery-main img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pod-gallery-thumbs{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
}
.pod-thumb{
  padding: 0;
  border: 2px solid transparent;
  background: #f4f5f7;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transition: border-color .15s;
}
.pod-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pod-thumb:hover{ border-color: #d0d0d0; }
.pod-thumb.is-active{ border-color: #1aa6a9; }

/* Section titles */
.pod-section-title{
  margin: 28px 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: #0f2b3c;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Dealer Comments — quote-style block with a teal left accent */
.pod-notes{
  background: #fff;
  border: 1px solid #e8e8e8;
  border-left: 4px solid #1aa6a9;
  border-radius: 6px;
  padding: 18px 22px;
}
.pod-notes[hidden]{ display: none; }
.pod-notes-title{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.pod-notes-title i{
  color: #1aa6a9;
  font-size: 14px;
}
.pod-notes-text{
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  white-space: pre-wrap;
}

/* Overview tiles — 8 tiles, denser grid */
.pod-overview{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.pod-overview-tile{
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}
.pod-overview-tile i{
  color: #1aa6a9;
  font-size: 20px;
  margin-bottom: 6px;
}
.pod-overview-label{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #888;
  text-transform: uppercase;
}
.pod-overview-val{
  font-size: 14px;
  font-weight: 700;
  color: #0f2b3c;
  margin-top: 2px;
}

/* Features */
.pod-features{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}
.pod-features li{
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pod-features li i{ color: #1aa6a9; font-size: 11px; }

/* Side rail */
.pod-side{
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pod-enquiry{
  background: #0f2b3c;
  color: #fff;
  border-radius: 6px;
  padding: 18px;
}
.pod-enquiry-head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.pod-enquiry-head h3{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.pod-enquiry-head i{ color: #1aa6a9; }
.pod-enquiry-sub{
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin: 0 0 12px;
}
/* ── Native enquiry form (replaced the JotForm iframe) ──────────────── */
.po-form{
  background: #fff;
  border-radius: 4px;
  padding: 18px 18px 20px;
  margin: 0;
}
.po-form-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* 2-column layout used by the full-page test-drive form */
.po-form-grid-2col{
  grid-template-columns: 1fr 1fr;
}
.po-form-grid-2col .po-form-row-full{ grid-column: 1 / -1; }

/* ── Mobile-friendly form tweaks ──
   - 2-column grids collapse to single column
   - Tighter outer padding (form sits closer to screen edges)
   - 16px font-size on inputs prevents iOS auto-zoom on focus
   - Submit button gains a little extra tap-target height
   - Radio rows wrap so Yes/No don't squash */
@media (max-width: 640px){
  .po-form-grid-2col{ grid-template-columns: 1fr; }
  .po-form{ padding: 18px 16px 20px; }
  .po-form-row input,
  .po-form-row select,
  .po-form-row textarea{ font-size: 16px; }
  .po-form-submit{ padding: 15px 18px; font-size: 14px; }
  .po-form-radio-row{ flex-wrap: wrap; gap: 12px 22px; }
  .td-form-container{ padding-left: 0; padding-right: 0; }
  .contact-form-section{ padding-left: 12px; padding-right: 12px; }
  .svc-section .std-page-form{ padding: 0 12px; }
}

/* Native select styled to match the .po-form inputs */
.po-form-select-wrap{
  position: relative;
}
.po-form-row select{
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 36px 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #0f2b3c;
  background: #f4f5f7;
  border: 1px solid #e1e3e6;
  border-radius: 4px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.po-form-row select:focus{
  border-color: #1aa6a9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,166,169,.15);
}
.po-form-row select:invalid{ color: #888; }
.po-form-select-caret{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #0f2b3c;
  font-size: 12px;
}
.po-form-row{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.po-form-row label{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f2b3c;
}
.po-required{ color: #d92b2b; }
.po-form-row input{
  padding: 10px 12px;
  font-size: 14px;
  color: #0f2b3c;
  background: #f4f5f7;
  border: 1px solid #e1e3e6;
  border-radius: 4px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-family: inherit;
}
.po-form-row input:focus{
  border-color: #1aa6a9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,166,169,.15);
}
.po-form-row input[readonly]{
  color: #555;
  background: #ececef;
  cursor: not-allowed;
}
/* Red borders only after the user has actually interacted with the field
   (modern browsers — :user-invalid) OR after a failed submit attempt (the
   form gets .is-submitted added by JS, which lights up :invalid for every
   required field that's still empty). */
.po-form-row input:user-invalid,
.po-form-row select:user-invalid,
.po-form-row textarea:user-invalid{
  border-color: #d92b2b;
}
.po-form.is-submitted .po-form-row input:invalid,
.po-form.is-submitted .po-form-row select:invalid,
.po-form.is-submitted .po-form-row textarea:invalid{
  border-color: #d92b2b;
}

.po-form-consent{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
  cursor: pointer;
}
.po-form-consent input[type="checkbox"]{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #1aa6a9;
  cursor: pointer;
}

.po-form-disclaimer{
  font-size: 11px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 14px;
}
.po-form-disclaimer .po-form-legal-link{
  color: #1aa6a9;
  text-decoration: underline;
}

.po-form-submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  background: #0f2b3c;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.po-form-submit:hover{ background: #1a4863; }
.po-form-submit:active{ transform: translateY(1px); }
.po-form-submit:disabled{ opacity: .6; cursor: progress; transform: none; }
.po-form-submit i{ font-size: 12px; }

.po-form-error{
  background: #fdecec;
  border: 1px solid #f5b7b7;
  color: #a23131;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 12px;
}
.po-form-error[hidden]{ display: none; }

/* Section heading inside a multi-section .po-form (e.g. service booking) */
.po-form-section-title{
  margin: 4px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1aa6a9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f2b3c;
}
.po-form-section-title + .po-form-grid + .po-form-section-title{
  margin-top: 22px;
}
.po-form-grid + .po-form-section-title{
  margin-top: 22px;
}

/* Yes / No radio row used by the shuttle-service field */
.po-form-radio-row{
  display: flex;
  gap: 22px;
  margin-top: 4px;
}
.po-form-radio{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #0f2b3c;
}
.po-form-radio input[type="radio"]{
  width: 18px;
  height: 18px;
  accent-color: #1aa6a9;
  cursor: pointer;
}

/* Smaller inline disclaimer that sits next to/under a field (e.g. shuttle) */
.po-form-inline-disclaimer{
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  background: #f4f5f7;
  border-left: 3px solid #1aa6a9;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
}

/* Service-page form layout — sits inside .std-page-form */
.svc-form{
  width: 100%;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  padding: clamp(20px, 3vw, 36px);
}
.svc-form-success{
  padding: clamp(28px, 4vw, 44px);
}

/* Contact-page form layout — sits inside .contact-form-section */
.contact-form{
  width: 100%;
  margin: 0;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  padding: clamp(20px, 3vw, 36px);
}
.contact-form-success{
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
}

/* Native <textarea> shares the same look as inputs/selects */
.po-form-row textarea{
  width: 100%;
  resize: vertical;
  min-height: 110px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #0f2b3c;
  background: #f4f5f7;
  border: 1px solid #e1e3e6;
  border-radius: 4px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.po-form-row textarea:focus{
  border-color: #1aa6a9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,166,169,.15);
}

/* Full-page test-drive / sell-trade form container — spans the content
   column with the same horizontal padding as other content sections. */
.td-form-container{
  width: 100%;
  max-width: var(--maxw, 1280px);
  margin: 0 auto;
  padding: 30px clamp(16px, 3vw, 40px) 80px;
}
.td-form{
  width: 100%;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  padding: clamp(20px, 3vw, 36px);
}
.td-form-success{
  width: 100%;
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
}

/* Deal-modal: scrollable form panel inside the navy right column. The
   white inner card (.po-form) sits inside, matching the pod-enquiry
   layout from the used-car detail page. */
.deal-form-scroll{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 22px;
  background: transparent;
}
.deal-td-form{
  padding: 16px 18px 20px;
  border-radius: 4px;
}
.deal-modal-right .po-form-success{
  margin: 0;
}

/* Thank-you panel (replaces the form on success) */
.po-form-success{
  background: #fff;
  border-radius: 4px;
  padding: 28px 22px;
  text-align: center;
  color: #0f2b3c;
}
.po-form-success[hidden]{ display: none; }
.po-form-success i{
  color: #18a058;
  font-size: 40px;
  margin-bottom: 10px;
}
.po-form-success h4{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}
.po-form-success p{
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}
.pod-finance-link{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 14px;
  background: #1aa6a9;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s;
  cursor: pointer;
}
.pod-finance-link:hover{ background: #15898b; }

/* Stock meta card */
.pod-meta-card{
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 16px 18px;
}
.pod-meta-card h3{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f2b3c;
}
.pod-meta{
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 13px;
}
.pod-meta dt{ color: #888; font-weight: 600; }
.pod-meta dd{ color: #0f2b3c; font-weight: 700; margin: 0; text-align: right; }

/* Back button rows (top + foot) — matches the CI outlined-pill pattern */
.pod-back-row{
  margin: 0 0 18px;
}
.pod-foot{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e8e8e8;
}
.pod-back-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 2px solid #0f2b3c;
  background: #fff;
  color: #0f2b3c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, color .2s, transform .15s;
}
.pod-back-btn:hover{
  background: #0f2b3c;
  color: #fff;
}
.pod-back-btn:hover i{ transform: translateX(-3px); }
.pod-back-btn i{ transition: transform .15s; }

/* Detail mobile */
@media (max-width: 960px){
  .pod-body{
    grid-template-columns: 1fr;
  }
  .pod-side{
    position: static;
  }
}
@media (max-width: 768px){
  .pod-detail{ padding: 22px 14px calc(var(--quickbar-h-mobile) + 32px); }
  .pod-title-bar{ flex-direction: column; align-items: flex-start; }
  .pod-price-block{ text-align: left; }
}
