:root {
  --bg: #0b0d12;
  --bg-2: #121722;
  --panel: rgba(255,255,255,.05);
  --panel-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.10);
  --text: #f5f7fb;
  --muted: #aab3c2;
  --brand: #ff7a1a;
  --brand-2: #ff9f45;
  --shadow: 0 24px 60px rgba(0,0,0,.35);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255,122,26,.16), transparent 28%),
    radial-gradient(circle at top left, rgba(255,255,255,.06), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, #11151d 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 760px; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11,13,18,.58);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-wrap {
  min-height: 82px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-logo {
  width: 258px;
  height: 78px;
  object-fit: contain;
  object-position: left center;
}
.nav-links { display: flex; gap: 26px; color: var(--muted); font-weight: 500; }
.nav-links a:hover, .link-more:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 18px; border-radius: 999px; font-weight: 700;
  transition: .25s ease; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 16px 35px rgba(255,122,26,.22);
}
.btn-outline {
  background: rgba(255,255,255,.03);
  border-color: var(--border);
  color: var(--text);
}
.btn-dark {
  background: #1d2431;
  color: white;
}
.hero-section { padding: 28px 0 18px; }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center;
}
.eyebrow {
  display: inline-flex; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,122,26,.12); color: #ffb57a; border: 1px solid rgba(255,122,26,.22);
  font-size: .9rem; font-weight: 700; margin-bottom: 18px;
}
.hero-grid h1 { font-size: clamp(2.6rem, 5vw, 5rem); line-height: .97; margin: 0 0 18px; }
.hero-grid p { color: var(--muted); max-width: 680px; font-size: 1.07rem; line-height: 1.7; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
}
.hero-card-glow {
  position: absolute; inset: auto -20% -40% auto; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,122,26,.24), transparent 60%);
}
.hero-card-content {
  position: relative; min-height: 310px; border-radius: 27px; padding: 28px;
  background: linear-gradient(180deg, rgba(17,21,29,.95), rgba(17,21,29,.88));
}
.hero-card-content h3 { margin: 0 0 12px; font-size: 1.35rem; }
.hero-card-content p { margin: 0 0 18px; }
.hero-card-content ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.9; }
.section { padding: 22px 0 40px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 22px;
}
.section-head h2, .page-top h1 { margin: 8px 0 0; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-top { padding: 42px 0 18px; }
.page-top p, .results-line, .footer-text { color: var(--muted); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.car-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.car-image-wrap { position: relative; display: block; }
.car-image { width: 100%; height: 230px; object-fit: cover; background: #111; }
.badge {
  position:absolute;
  top:14px;
  left:14px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:linear-gradient(135deg, rgba(16,20,28,.92), rgba(34,42,56,.84));
  color:#fff;
  backdrop-filter:blur(10px);
  padding:7px 11px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 24px rgba(0,0,0,.22);
}
.badge::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow:0 0 0 4px rgba(255,122,26,.14);
}
.car-body { padding: 18px; }
.car-body h3 { margin: 0 0 10px; font-size: 1.1rem; min-height: 56px; }
.car-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.car-meta span {
  padding: 7px 10px; background: rgba(255,255,255,.05); border-radius: 999px; color: var(--muted); font-size: .9rem;
}
.car-price { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px;
  margin-bottom: 16px;
}
.filters input, .filters select {
  width: 100%; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: white; padding: 14px 14px; outline: none;
}
.filters input::placeholder { color: #8f99ab; }
.results-line { margin-bottom: 16px; }
.vehicle-layout {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; padding: 34px 0 26px;
}
.vehicle-main-image img {
  width: 100%; height: 520px; object-fit: cover; border-radius: 26px; background: #101317;
  border: 1px solid var(--border);
}
.thumb-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px;
}
.thumb-btn {
  padding: 0; border: 1px solid var(--border); background: none; border-radius: 16px; overflow: hidden; cursor: pointer;
}
.thumb-btn img { width: 100%; height: 92px; object-fit: cover; }
.vehicle-panel, .content-card, .empty-box {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow);
}
.vehicle-panel { padding: 24px; height: fit-content; position: sticky; top: 108px; }
.vehicle-panel h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.big-price { font-size: 2rem; font-weight: 800; margin: 16px 0 18px; }
.spec-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px;
}
.spec-grid div {
  padding: 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.spec-grid strong { display: block; font-size: .88rem; color: #cfd6e2; margin-bottom: 6px; }
.spec-grid span { color: var(--muted); }
.info-chip {
  margin-top: 10px; padding: 14px 16px; background: rgba(255,122,26,.08); border: 1px solid rgba(255,122,26,.14);
  border-radius: 18px; color: #ffd9bb;
}
.vehicle-actions {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:18px;
}
.content-card { padding: 24px; }
.content-card p { color: var(--muted); line-height: 1.8; }
.site-footer {
  border-top: 1px solid rgba(255,255,255,.06); margin-top: 34px; padding: 32px 0 44px;
  background: rgba(0,0,0,.14);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 24px; }
.footer-brand,
.footer-contact{
  display:grid;
  gap:10px;
}
.footer-logo {
  width: 230px;
  height: 74px;
  margin-bottom: 12px;
  object-fit: contain;
  object-position: left center;
}
.footer-since{
  margin:2px 0 0;
  color:#ffb173;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.footer-location{
  display:flex;
  align-items:flex-start;
  gap:8px;
  line-height:1.6;
}
.empty-box { padding: 24px; color: var(--muted); }
.bottom-space { padding-bottom: 40px; }
@media (max-width: 980px) {
  .hero-grid, .vehicle-layout, .footer-grid { grid-template-columns: 1fr; }
  .vehicle-panel { position: static; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-wrap { flex-wrap: wrap; justify-content: center; padding: 14px 0; }
  .nav-links { width: 100%; justify-content: center; }
  .nav-cta { width: 100%; }
  .filters { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-main-image img { height: 340px; }
  .spec-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}




.promo-side-card .eyebrow { margin-bottom: 14px; }
.promo-side-card h3 { margin: 0 0 12px; font-size: 1.5rem; }
.compact-actions { margin-top: 18px; }
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.promo-popup.is-visible {
  display: flex;
}
.promo-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
}
.promo-popup-card {
  position: relative;
  z-index: 2;
  width: min(540px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 0;
  background: linear-gradient(180deg, #151922, #0e1118);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  padding: 14px;
}
.promo-popup-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
}
.promo-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px 6px 4px;
}
.promo-main-btn {
  min-width: 190px;
}
.promo-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(13,16,22,.85);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
body.popup-open { overflow: hidden; }
@media (max-width: 640px) {
  .promo-popup {
    padding: 12px;
  }
  .promo-popup-card {
    border-radius: 20px;
    padding: 10px;
  }
}





.state-chip {
  display:inline-flex; padding:8px 12px; border-radius:999px; font-size:.86rem; font-weight:700; margin-bottom:16px;
}
.state-chip.disponible { background: rgba(38,165,98,.14); color:#8ff0b2; border:1px solid rgba(38,165,98,.18); }
.state-chip.reservado { background: rgba(255,162,0,.14); color:#ffd28a; border:1px solid rgba(255,162,0,.18); }
.state-chip.vendido { background: rgba(230,58,80,.14); color:#ffb0bc; border:1px solid rgba(230,58,80,.18); }



/* Fix WhatsApp floating button */


/* Large diagonal states on thumbnails */
.car-image-wrap{
  position: relative;
  overflow: hidden;
}







@media (max-width: 640px){
  
}

/* Patch visual fixes */
.page-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.sold-counter-hero{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  background:rgba(255,122,26,.12);
  border:1px solid rgba(255,122,26,.24);
  color:#ffd3af;
  font-weight:800;
  letter-spacing:.02em;
}
.sold-counter-hero strong{
  font-size:1.55rem;
  color:#fff;
}
.whatsapp-btn, .btn-whatsapp{
  gap:8px;
}
.wa-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:inline-block;
}




.car-image-wrap{position:relative; overflow:hidden;}
@media (max-width: 768px){
  
  .sold-counter-hero strong{font-size:1.2rem;}
}


/* ==== FIX contador vendido ==== */
.catalog-hero{
display:flex;
align-items:center;
justify-content:space-between;
max-width:1180px;
margin:auto;
}

.counter-box{
text-align:right;
}

.counter-number{
font-size:60px;
font-weight:800;
color:#ff7a1a;
}

.counter-label{
font-size:13px;
letter-spacing:3px;
color:#bbb;
}

/* ==== simulador limpio ==== */

.loan-section{
max-width:1180px;
margin:80px auto;
text-align:center;
}

.loan-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
margin-top:40px;
}

.loan-card{
background:rgba(255,255,255,0.03);
border:1px solid rgba(255,255,255,0.08);
padding:30px;
border-radius:18px;
}

.loan-card img{
height:60px;
margin-bottom:20px;
object-fit:contain;
background:transparent;
}

.loan-card button{
background:#ff7a1a;
border:none;
color:white;
padding:12px 24px;
border-radius:8px;
cursor:pointer;
font-weight:700;
}

@media(max-width:900px){

.loan-grid{
grid-template-columns:1fr;
}

.counter-number{
font-size:40px;
}

}


/* ===== contador vendidos ===== */

.catalog-header{
display:flex;
justify-content:space-between;
align-items:center;
max-width:1200px;
margin:auto;
margin-bottom:40px;
}

.sold-counter{text-align:right}

.sold-number{
font-size:64px;
font-weight:800;
color:#ff7a1a;
}

.sold-text{
font-size:12px;
letter-spacing:3px;
color:#bbb;
}

/* ===== simulador ===== */

.loan-section{
margin-top:100px;
padding:60px 0;
text-align:center;
}

.loan-title{
font-size:30px;
margin-bottom:40px;
}

.loan-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
max-width:1000px;
margin:auto;
}

.loan-card{
background:rgba(255,255,255,0.03);
border:1px solid rgba(255,255,255,0.08);
border-radius:20px;
padding:30px;
}

.loan-card img{
height:60px;
object-fit:contain;
margin-bottom:20px;
}

.loan-card button{
background:#ff7a1a;
border:none;
padding:12px 28px;
border-radius:10px;
font-weight:700;
color:white;
cursor:pointer;
}



/* ===== Simulator section refined ===== */
.loan-section{
  padding: 70px 0 90px;
}
.loan-shell{
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 34px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.loan-shell-head{
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}
.loan-title{
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.loan-subtitle{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.loan-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 100%;
  margin: 0;
}
.loan-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
  gap: 18px;
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.loan-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,122,26,.35);
  box-shadow: 0 18px 36px rgba(0,0,0,.24);
}
.loan-card img{
  display: block;
  width: auto;
  max-width: 100%;
  height: 66px;
  object-fit: contain;
  margin: 0;
  background: transparent;
}
.loan-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
}
@media (max-width: 900px){
  .loan-shell{
    padding: 26px 18px;
  }
  .loan-grid{
    grid-template-columns: 1fr;
  }
  .loan-card{
    min-height: auto;
  }
}


.sold-counter{
display:block;
font-size:14px;
letter-spacing:.15em;
color:#ff7a1a;
margin-top:6px;
}

.ribbon-vendido{
position:absolute;
top:12px;
left:-30px;
background:#ff2d2d;
color:white;
padding:6px 40px;
transform:rotate(-45deg);
font-size:12px;
font-weight:700;
}

.btn-consultar{
padding:8px 16px;
font-size:13px;
border-radius:20px;
}





/* --- WhatsApp button sizing fixes --- */
.card-actions { align-items: center; }
.card-actions .btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  padding:9px 14px;
  font-size:14px;
  line-height:1;
  white-space:nowrap;
}
.card-actions .btn-outline .wa-icon,
.vehicle-actions .btn-primary .wa-icon{
  width:16px;
  height:16px;
  flex:0 0 16px;
  margin-right:6px;
}
.vehicle-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.vehicle-actions .btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  padding:12px 18px;
  font-size:15px;
  line-height:1.1;
}
.vehicle-actions .btn-outline{
  width:auto;
}

/* keep sold counter subtle */
.sold-counter-box{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:none;
}

/* ===== FIX BOTON CONSULTAR ===== */

.card-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

/* botón consultar */
.card-actions .btn-outline{
    width:auto !important;
    padding:8px 12px !important;
    font-size:14px !important;
    display:inline-flex !important;
    align-items:center;
    gap:6px;
}

/* icono whatsapp */
.card-actions .wa-icon{
    width:16px;
    height:16px;
    flex-shrink:0;
}

/* evita que el botón se estire */
.card-actions a{
    flex:0 0 auto;
}

/* SAFE FINAL BADGES OVERRIDE */



/* ===== FIX FINAL RESERVADO + VENDIDO ===== */

.car-image-wrap{
  overflow: hidden;
}

/* VENDIDO */


/* RESERVADO (igual que vendido pero naranja) */

/* ===== FIX FINAL PC + MOBILE ===== */

@media (min-width: 0px){

  

  

}
/* ===== CLEAN BADGES ===== */
.car-image-wrap{
  position: relative;
  overflow: hidden;
}

.state-badge{
  position:absolute;
  top:16px;
  left:-42px;
  width:154px;
  padding:8px 0;
  text-align:center;
  color:#fff;
  font-weight:900;
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  transform:rotate(-45deg);
  transform-origin:center;
  z-index:9;
  border-radius:999px;
  box-shadow:0 14px 30px rgba(0,0,0,.3);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(6px);
}

.state-badge.vendido{
  background:linear-gradient(135deg, #b31217, #e5383b);
}

.state-badge.reservado{
  background:linear-gradient(135deg, #d97706, #ff9f1a);
}

@media (max-width: 760px){
  .state-badge{
    top:12px;
    left:-34px;
    width:124px;
    padding:7px 0;
    font-size:.6rem;
    letter-spacing:.16em;
  }
}

/* ===== CLEAN WHATSAPP ===== */
.whatsapp-float{
  position:fixed;
  bottom:20px;
  right:20px;
  width:60px;
  height:60px;
  border-radius:50%;
  background:#25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 20px rgba(0,0,0,.4);
  z-index:9999;
}

/* ===== Header refresh ===== */
body.nav-open{
  overflow:hidden;
}

.site-header{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter:blur(18px);
  background:rgba(8,11,16,.78);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 14px 34px rgba(0,0,0,.14);
}

.nav-wrap{
  position:relative;
  min-height:88px;
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  align-items:center;
  gap:20px;
}

.brand{
  display:inline-flex;
  align-items:center;
}

.brand-logo{
  width:176px;
  height:auto;
}

.nav-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-width:0;
}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:1;
  min-width:0;
  margin:0 auto;
  padding:8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:999px;
  color:var(--muted);
  font-size:.96rem;
  font-weight:600;
  white-space:nowrap;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
  border:1px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible{
  color:var(--text);
  background:rgba(255,255,255,.05);
  outline:none;
}

.nav-link.is-active{
  color:var(--text);
  background:rgba(255,122,26,.14);
  border-color:rgba(255,122,26,.26);
  box-shadow:0 10px 24px rgba(255,122,26,.12);
}

.nav-cta{
  flex:0 0 auto;
  white-space:nowrap;
}

.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  width:48px;
  height:48px;
  padding:0;
  border:none;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.nav-toggle span{
  width:20px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transition:transform .2s ease, opacity .2s ease;
}

.nav-toggle.is-open span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2){
  opacity:0;
}

.nav-toggle.is-open span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px){
  .nav-wrap{
    gap:14px;
  }

  .nav-links{
    gap:4px;
    padding:6px;
  }

  .nav-link{
    padding:10px 12px;
    font-size:.92rem;
  }
}

@media (max-width: 860px){
  .nav-wrap{
    grid-template-columns:minmax(0, 1fr) auto;
    min-height:78px;
    padding:14px 0;
  }

  .brand-logo{
    width:208px;
    height:64px;
  }

  .nav-toggle{
    display:inline-flex;
    width:58px;
    height:58px;
    border-radius:22px;
    background:rgba(255,255,255,.06);
    box-shadow:0 14px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.05);
  }

  .nav-panel{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    padding:16px;
    border-radius:24px;
    background:rgba(10,13,19,.97);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 24px 60px rgba(0,0,0,.34);
  }

  .nav-panel.is-open{
    display:flex;
  }

  .nav-links{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:0;
    border:none;
    background:none;
    box-shadow:none;
  }

  .nav-link{
    width:100%;
    border-radius:16px;
    padding:13px 16px;
  }

  .nav-cta{
    width:100%;
  }
}

@media (min-width: 861px){
  body.nav-open{
    overflow:auto;
  }

  .nav-panel{
    display:flex !important;
  }
}

/* ===== Compact gallery and filters ===== */
.filter-toggle{
  gap:10px;
}

.filter-toggle::after{
  content:'+';
  font-size:1.15rem;
  line-height:1;
}

.filter-toggle.is-open::after{
  content:'-';
}

.filter-shell[open] .filter-toggle::after{
  content:'-';
}

.filter-shell[open] .filter-panel{
  display:block;
}

.filter-shell summary{
  list-style:none;
  cursor:pointer;
}

.filter-shell summary::-webkit-details-marker{
  display:none;
}

.filter-shell summary::marker{
  display:none;
}

.filter-form-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.vehicle-gallery-shell{
  min-width:0;
}

.vehicle-main-stage{
  position:relative;
  padding:16px;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
  touch-action:pan-y;
}

.gallery-count-pill{
  position:absolute;
  top:28px;
  left:28px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:64px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(5,7,11,.62);
  border:1px solid rgba(255,255,255,.1);
  color:#fff;
  font-size:.9rem;
  font-weight:700;
  backdrop-filter:blur(8px);
}

.gallery-arrow{
  position:absolute;
  top:50%;
  z-index:3;
  width:48px;
  height:48px;
  border:none;
  border-radius:999px;
  background:rgba(5,7,11,.62);
  color:#fff;
  cursor:pointer;
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(8px);
  box-shadow:0 12px 24px rgba(0,0,0,.22);
}

.gallery-arrow span{
  font-size:2rem;
  line-height:1;
  margin-top:-2px;
}

.gallery-arrow-prev{
  left:28px;
}

.gallery-arrow-next{
  right:28px;
}

.vehicle-main-image{
  overflow:hidden;
  border-radius:22px;
}

.vehicle-main-image img{
  width:100%;
  height:540px;
  object-fit:cover;
  background:#101317;
  border:1px solid var(--border);
  border-radius:22px;
}

.thumb-strip{
  display:flex;
  gap:10px;
  margin-top:12px;
  padding:4px 2px 0;
  overflow-x:auto;
  scrollbar-width:thin;
}

.thumb-strip::-webkit-scrollbar{
  height:8px;
}

.thumb-strip::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:999px;
}

.thumb-btn{
  flex:0 0 auto;
  width:86px;
  height:64px;
  padding:0;
  border:1px solid rgba(255,255,255,.08);
  background:none;
  border-radius:16px;
  overflow:hidden;
  cursor:pointer;
  opacity:.72;
  transition:transform .2s ease, opacity .2s ease, border-color .2s ease;
}

.thumb-btn:hover{
  opacity:1;
  transform:translateY(-2px);
}

.thumb-btn.is-active{
  opacity:1;
  border-color:rgba(255,122,26,.45);
  box-shadow:0 10px 22px rgba(255,122,26,.18);
}

.thumb-btn img{
  width:100%;
  height:100%;
  object-fit:cover;
}

@media (max-width: 980px){
  .vehicle-main-image img{
    height:460px;
  }
}

@media (max-width: 720px){
  .page-top{
    padding:20px 0 10px;
  }

  .page-top .eyebrow{
    margin-bottom:12px;
    padding:6px 10px;
    font-size:.8rem;
  }

  .cards-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
  }

  .car-card{
    border-radius:18px;
  }

  .car-image{
    height:150px;
  }

  .badge{
    top:10px;
    left:10px;
    gap:6px;
    padding:6px 9px;
    font-size:.58rem;
    letter-spacing:.12em;
  }
  .badge::before{
    width:6px;
    height:6px;
    box-shadow:0 0 0 3px rgba(255,122,26,.12);
  }

  .state-badge{
    font-size:18px;
    letter-spacing:2px;
    padding:10px 0;
  }

  .car-body{
    padding:12px;
  }

  .car-body h3{
    min-height:auto;
    margin-bottom:8px;
    font-size:.92rem;
    line-height:1.25;
  }

  .car-meta{
    gap:6px;
    margin-bottom:10px;
  }

  .car-meta span{
    padding:5px 8px;
    font-size:.74rem;
  }

  .car-price{
    margin-bottom:10px;
    font-size:1.08rem;
  }

  .card-actions{
    gap:8px;
  }

  .card-actions .btn-dark,
  .card-actions .btn-outline{
    width:100%;
    padding:10px 12px !important;
    font-size:.82rem !important;
  }

  .vehicle-layout{
    gap:18px;
    padding:18px 0 18px;
  }

  .vehicle-main-stage{
    padding:12px;
    border-radius:22px;
  }

  .gallery-count-pill{
    top:20px;
    left:20px;
    min-width:56px;
    padding:6px 10px;
    font-size:.82rem;
  }

  .gallery-arrow{
    width:42px;
    height:42px;
  }

  .gallery-arrow-prev{
    left:18px;
  }

  .gallery-arrow-next{
    right:18px;
  }

  .vehicle-main-image img{
    height:320px;
    border-radius:18px;
  }

  .thumb-btn{
    width:72px;
    height:54px;
    border-radius:12px;
  }

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

  .state-chip{
    margin-bottom:12px;
    padding:7px 11px;
    font-size:.78rem;
  }

  .vehicle-panel h1{
    margin-bottom:8px;
    font-size:clamp(1.55rem, 7.4vw, 2.1rem);
    line-height:1.06;
  }

  .big-price{
    margin:10px 0 12px;
    font-size:1.75rem;
  }

  .spec-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .spec-grid div{
    padding:10px 11px;
    border-radius:14px;
  }

  .spec-grid strong{
    margin-bottom:3px;
    font-size:.72rem;
  }

  .spec-grid span{
    font-size:.88rem;
    line-height:1.22;
  }

  .info-chip{
    margin-top:8px;
    padding:10px 12px;
    border-radius:14px;
    font-size:.9rem;
    line-height:1.32;
  }

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

  .vehicle-actions .btn-primary,
  .vehicle-actions .btn-outline{
    width:100%;
    justify-content:center;
    padding:12px 14px;
    font-size:.94rem;
  }

  .content-card{
    padding:16px 15px;
    border-radius:18px;
  }

  .content-card h2{
    margin:0 0 10px;
    font-size:clamp(1.55rem, 6vw, 1.9rem);
  }

  .content-card p{
    font-size:.92rem;
    line-height:1.5;
  }

  .filter-form-actions{
    width:100%;
  }

  .filter-form-actions .btn{
    flex:1 1 0;
  }
}
