*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,sans-serif;color:#061626;background:#f5f8f9}a{text-decoration:none;color:inherit}:root{--g:#12c957;--gd:#079b3a;--dark:#061626;--muted:#6f7f87;--line:#dfe7e9}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}
.partnerbar{height:34px;display:flex;align-items:center;justify-content:center;background:#04171e;color:#dce8e9;font-size:12px}header{background:#fff;border-bottom:1px solid var(--line)}.head{height:76px;display:flex;align-items:center;justify-content:space-between}.brands{display:flex;align-items:center;gap:18px}.brands i{width:1px;height:38px;background:#dce3e5}.brands img{object-fit:contain}.rapgo{width:112px;height:46px}.duian{width:185px;height:50px}.head-actions{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:800}.head-actions a{padding:12px 15px;border-radius:9px}.head-actions .partner{background:var(--g);color:#fff}
.hero{height:445px;position:relative;background:#062126 url('hero-rapgo-duian-limpo.png') center/cover no-repeat;color:#fff}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,17,24,.48),rgba(0,17,24,.16),rgba(0,17,24,.46))}.hero-in{height:100%;display:flex;align-items:center;justify-content:center;position:relative}.hero-copy{text-align:center;width:min(760px,70%)}.kicker{font-size:11px;font-weight:900;letter-spacing:2px;color:#8ff7b8}.hero h1{font-size:52px;line-height:1.02;margin:12px 0 15px}.hero h1 span{color:#28dc6c}.hero p{font-size:16px;line-height:1.6;margin:0 auto 24px;max-width:720px}.primary{display:inline-flex;padding:14px 20px;background:var(--g);border-radius:10px;font-weight:900}
.trust{background:#fff;border-bottom:1px solid var(--line)}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr)}.trust-grid>div{padding:17px 25px;border-right:1px solid var(--line)}.trust-grid>div:last-child{border:0}.trust b,.trust span{display:block}.trust b{font-size:13px}.trust span{font-size:11px;color:var(--muted);margin-top:4px}
.catalog{padding:60px 0 80px}.catalog-head{display:flex;justify-content:space-between;gap:50px;align-items:end;margin-bottom:22px}.eyebrow{color:#079b3a;font-size:11px;font-weight:900;letter-spacing:2px}.catalog h2{font-size:40px;margin:8px 0 0}.catalog-head p{width:45%;font-size:13px;line-height:1.6;color:var(--muted);margin:0}
.filterbox{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:13px;box-shadow:0 12px 32px rgba(6,22,38,.05)}.filterbox input,.filterbox select,.filterbox button{width:100%;height:45px;border:1px solid #dbe4e7;border-radius:9px;background:#fafcfc;padding:0 12px;font:inherit;font-size:12px}.search{position:relative}.search span{position:absolute;left:12px;top:11px}.search input{padding-left:30px}.filterbox button{cursor:pointer;font-weight:800;background:#eef3f4}.resultline{font-size:12px;color:var(--muted);margin:22px 0 12px}
.vehicle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.car-card{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 8px 24px rgba(6,22,38,.04)}.photo-wrap{height:220px;position:relative;background:#e9eff1}.photo-wrap>img{width:100%;height:100%;object-fit:cover}.badge,.reserved{position:absolute;top:12px;padding:8px 10px;border-radius:999px;font-size:10px;font-weight:900}.badge{left:12px;background:var(--g);color:#fff}.reserved{right:12px;background:#fff3cc;color:#795c00}.car-body{padding:17px}.code{font-size:10px;color:var(--muted);text-transform:uppercase}.car-body h3{font-size:21px;margin:6px 0 3px}.version{font-size:12px;color:var(--muted);min-height:16px}.specs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:16px 0}.specs span{background:#f5f8f9;border-radius:8px;padding:9px;font-size:9px;color:var(--muted)}.specs b{display:block;font-size:11px;color:#061626;margin-bottom:3px}.price small{display:block;color:var(--muted);font-size:10px}.price strong{font-size:24px}.details{width:100%;height:43px;border:0;border-radius:9px;background:#061626;color:#fff;font-weight:900;margin-top:14px;cursor:pointer}.empty{padding:40px;text-align:center;background:#fff;border-radius:15px;color:var(--muted)}
.modal{position:fixed;inset:0;z-index:1000;display:none}.modal.open{display:block}.modal-backdrop{position:absolute;inset:0;background:rgba(1,12,17,.76);backdrop-filter:blur(5px)}.modal-box{position:relative;width:min(1120px,calc(100% - 32px));max-height:92vh;overflow:auto;margin:4vh auto;background:#fff;border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.3)}.modal-close{position:sticky;top:12px;float:right;z-index:4;margin:12px 12px -52px 0;width:40px;height:40px;border:0;border-radius:50%;background:#fff;box-shadow:0 4px 18px #0002;font-size:25px;cursor:pointer}.vehicle-detail{display:grid;grid-template-columns:1.12fr .88fr}.detail-gallery{padding:22px;background:#f0f4f5}.main-photo{height:460px;background:#dfe6e8;border-radius:13px;overflow:hidden}.main-photo img{width:100%;height:100%;object-fit:contain;background:#111}.thumbs{display:flex;gap:8px;overflow:auto;padding-top:10px}.thumbs button{width:84px;height:62px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#fff;flex:none;cursor:pointer}.thumbs img{width:100%;height:100%;object-fit:cover}.detail-info{padding:34px}.detail-code{font-size:11px;color:var(--muted)}.detail-info h2{font-size:34px;margin:7px 0 3px}.detail-version{color:var(--muted)}.rapgo-ok{display:inline-block;background:#eafff1;color:#087b32;padding:8px 10px;border-radius:999px;font-size:11px;font-weight:900;margin-top:12px}.detail-price{font-size:30px;font-weight:900;margin:18px 0}.detail-specs{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.detail-specs div{border:1px solid var(--line);border-radius:9px;padding:10px}.detail-specs small,.detail-specs b{display:block}.detail-specs small{color:var(--muted);font-size:9px}.detail-specs b{font-size:12px;margin-top:3px}.description h4{margin:20px 0 6px}.description p{font-size:12px;line-height:1.6;color:#53636b}.benefits{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0}.benefits span{background:#f0faf4;color:#087b32;padding:7px 9px;border-radius:7px;font-size:10px;font-weight:800}.whatsapp{display:flex;justify-content:center;background:var(--g);color:#fff;padding:15px;border-radius:10px;font-weight:900;margin-top:18px}.no-whatsapp{padding:13px;background:#fff5e6;border-radius:9px;font-size:12px;margin-top:18px}
@media(max-width:900px){.filterbox{grid-template-columns:repeat(2,1fr)}.vehicle-grid{grid-template-columns:repeat(2,1fr)}.vehicle-detail{grid-template-columns:1fr}.main-photo{height:380px}.catalog-head{align-items:start}.hero-copy{width:90%}}
@media(max-width:650px){.wrap{width:calc(100% - 24px)}.head{height:auto;padding:12px 0;gap:10px}.duian{width:130px}.rapgo{width:85px}.head-actions a:first-child{display:none}.partnerbar{font-size:10px}.hero{height:420px}.hero h1{font-size:37px}.hero-copy{width:100%}.trust-grid{grid-template-columns:1fr}.trust-grid>div{border-right:0;border-bottom:1px solid var(--line)}.catalog-head{display:block}.catalog-head p{width:100%;margin-top:12px}.catalog h2{font-size:32px}.filterbox,.vehicle-grid{grid-template-columns:1fr}.main-photo{height:280px}.detail-info{padding:22px}.detail-gallery{padding:14px}}

.seller-contact{margin:18px 0 10px;padding:12px 14px;border:1px solid #dfe9e3;border-radius:12px;background:#f7fbf8}.seller-contact small{display:block;color:#718078;font-size:11px;text-transform:uppercase;font-weight:800;margin-bottom:3px}.seller-contact b{color:#0a3321}

.main-photo{position:relative}.main-photo video,.main-photo iframe{width:100%;height:100%;display:block;background:#111;border:0;object-fit:contain}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:46px;height:46px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#09231c;font-size:34px;line-height:1;cursor:pointer;box-shadow:0 6px 22px #0004}.gallery-arrow:hover{background:#fff}.gallery-arrow.prev{left:14px}.gallery-arrow.next{right:14px}.gallery-count{position:absolute;right:14px;bottom:12px;background:rgba(0,0,0,.65);color:#fff;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800}.thumbs button.active{border-color:var(--g)}.video-thumb{display:flex!important;flex-direction:column;align-items:center;justify-content:center;background:#0b1f1b!important;color:#fff}.video-thumb span{font-size:22px}.video-thumb small{font-size:9px;margin-top:2px}@media(max-width:650px){.gallery-arrow{width:40px;height:40px;font-size:30px}.gallery-arrow.prev{left:8px}.gallery-arrow.next{right:8px}}

/* V3.6.1 - galeria */
.main-photo .gallery-arrow{display:flex;align-items:center;justify-content:center;z-index:20}
.main-photo .gallery-arrow[hidden]{display:none!important}
.main-photo .gallery-count{z-index:20}




/* =========================================================
   RAPGO VEÍCULOS V3.7.1 — CORREÇÃO DO VER DETALHES
   A coluna direita fica larga e fixa; somente ela rola.
   ========================================================= */
.modal{
  padding:22px!important;
  overflow:auto!important;
}

.modal-box{
  width:min(1180px,96vw)!important;
  max-width:1180px!important;
  height:min(780px,92vh)!important;
  max-height:92vh!important;
  display:grid!important;
  grid-template-columns:minmax(0, 1.35fr) minmax(410px, .85fr)!important;
  overflow:hidden!important;
  border-radius:24px!important;
}

.modal-left{
  min-width:0!important;
  width:100%!important;
  padding:24px!important;
  overflow:hidden!important;
  background:#eef3f5!important;
}

.modal-right{
  min-width:410px!important;
  width:100%!important;
  padding:32px 36px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  background:#fff!important;
}

.main-photo{
  width:100%!important;
  height:500px!important;
  min-height:0!important;
  max-height:500px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  position:relative!important;
  background:#111!important;
}

.main-photo img,
.main-photo video,
.main-photo iframe{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:contain!important;
}

.thumbs{
  display:flex!important;
  flex-wrap:nowrap!important;
  width:100%!important;
  max-width:100%!important;
  gap:10px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:10px 0 5px!important;
}

.thumbs > *{
  flex:0 0 88px!important;
  width:88px!important;
  min-width:88px!important;
  height:68px!important;
}

.modal-right .specs{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
}

.modal-right .spec{
  min-width:0!important;
}

.modal-right h2,
.modal-right .price,
.modal-right p,
.modal-right strong,
.modal-right span{
  max-width:100%!important;
}

@media(max-width:980px){
  .modal{
    padding:10px!important;
  }
  .modal-box{
    width:min(760px,98vw)!important;
    height:auto!important;
    max-height:96vh!important;
    grid-template-columns:1fr!important;
    overflow-y:auto!important;
  }
  .modal-left{
    overflow:visible!important;
  }
  .modal-right{
    min-width:0!important;
    overflow:visible!important;
  }
  .main-photo{
    height:min(62vw,480px)!important;
  }
}

/* V3.7.3 — correção definitiva do modal usando as classes reais do catálogo */
.modal{padding:18px!important;overflow:hidden!important}
.modal-box{
  width:min(1180px,calc(100vw - 36px))!important;
  height:min(820px,92vh)!important;
  max-height:92vh!important;
  margin:4vh auto!important;
  overflow:hidden!important;
}
#modalContent{height:100%!important;min-width:0!important}
.vehicle-detail{
  display:grid!important;
  grid-template-columns:minmax(0,1.55fr) minmax(390px,.75fr)!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
.detail-gallery{
  width:auto!important;
  min-width:0!important;
  padding:22px!important;
  overflow:hidden!important;
  background:#f0f4f5!important;
}
.detail-info{
  width:auto!important;
  min-width:390px!important;
  padding:34px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  background:#fff!important;
}
.main-photo{
  width:100%!important;
  height:520px!important;
  min-height:0!important;
  max-height:520px!important;
}
.main-photo img,.main-photo video,.main-photo iframe{
  width:100%!important;height:100%!important;object-fit:contain!important;display:block!important
}
.thumbs{
  width:100%!important;max-width:100%!important;
  display:flex!important;flex-wrap:nowrap!important;
  overflow-x:auto!important;overflow-y:hidden!important
}
.detail-specs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.detail-specs div{min-width:0!important}
.detail-specs b{overflow-wrap:anywhere!important}
@media(max-width:900px){
  .modal{padding:8px!important;overflow:auto!important}
  .modal-box{width:calc(100vw - 16px)!important;height:auto!important;max-height:96vh!important;overflow-y:auto!important}
  #modalContent{height:auto!important}
  .vehicle-detail{grid-template-columns:1fr!important;height:auto!important;overflow:visible!important}
  .detail-info{min-width:0!important;overflow:visible!important}
  .detail-gallery{overflow:visible!important}
  .main-photo{height:min(65vw,460px)!important}
}

/* V3.7.4 — modal corrigido conforme estrutura HTML real */
.modal-box{
  width:min(1220px,calc(100vw - 40px))!important;
  height:min(820px,92vh)!important;
  max-width:1220px!important;
  margin:4vh auto!important;
  overflow:hidden!important;
}
#modalContent{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,2fr) minmax(390px,1fr)!important;
  overflow:hidden!important;
}
.detail-left{
  width:auto!important;
  min-width:0!important;
  padding:22px!important;
  overflow:hidden!important;
  background:#eef3f5!important;
}
.detail-right{
  width:auto!important;
  min-width:390px!important;
  padding:32px 36px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  background:#fff!important;
}
.detail-left .main-photo{
  width:100%!important;
  height:520px!important;
  max-height:520px!important;
  min-height:0!important;
}
.detail-left .main-photo img,
.detail-left .main-photo video,
.detail-left .main-photo iframe{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  display:block!important;
}
.detail-left .thumbs{
  width:100%!important;
  max-width:100%!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
@media(max-width:900px){
  #modalContent{grid-template-columns:1fr!important;height:auto!important;overflow:visible!important}
  .modal-box{height:auto!important;max-height:96vh!important;overflow-y:auto!important}
  .detail-right{min-width:0!important;overflow:visible!important}
  .detail-left{overflow:visible!important}
  .detail-left .main-photo{height:min(65vw,460px)!important}
}


/* =========================================================
   RAPGO VEÍCULOS V3.7.5 — CORREÇÃO FINAL DO MODAL
   CAUSA REAL: .modal-box NÃO pode ser grid.
   O grid pertence exclusivamente a .vehicle-detail.
   ========================================================= */
.modal{
  padding:0!important;
  overflow:hidden!important;
}

.modal-box{
  position:relative!important;
  display:block!important;
  grid-template-columns:none!important;
  width:min(1220px,calc(100vw - 40px))!important;
  max-width:1220px!important;
  height:min(820px,92vh)!important;
  max-height:92vh!important;
  margin:4vh auto!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:22px!important;
  background:#fff!important;
}

.modal-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  float:none!important;
  margin:0!important;
  z-index:50!important;
}

#modalContent{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}

#modalContent > .vehicle-detail{
  display:grid!important;
  grid-template-columns:minmax(0,1.55fr) minmax(390px,.75fr)!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}

#modalContent .detail-gallery{
  width:auto!important;
  min-width:0!important;
  height:100%!important;
  padding:22px!important;
  overflow:hidden!important;
  background:#f0f4f5!important;
}

#modalContent .detail-info{
  width:auto!important;
  min-width:390px!important;
  height:100%!important;
  padding:34px 36px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  background:#fff!important;
}

#modalContent .main-photo{
  width:100%!important;
  height:520px!important;
  min-height:0!important;
  max-height:520px!important;
  position:relative!important;
  overflow:hidden!important;
  border-radius:16px!important;
  background:#111!important;
}

#modalContent .main-photo img,
#modalContent .main-photo video,
#modalContent .main-photo iframe{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:contain!important;
}

#modalContent .thumbs{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:9px!important;
  width:100%!important;
  max-width:100%!important;
  padding:10px 0 4px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}

#modalContent .thumbs button{
  flex:0 0 88px!important;
  width:88px!important;
  min-width:88px!important;
  height:66px!important;
}

#modalContent .detail-specs{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
}

#modalContent .detail-specs > div{
  min-width:0!important;
}

#modalContent .detail-specs b{
  overflow-wrap:break-word!important;
}

@media(max-width:900px){
  .modal{
    overflow:auto!important;
  }
  .modal-box{
    width:calc(100vw - 16px)!important;
    height:auto!important;
    max-height:96vh!important;
    margin:2vh auto!important;
    overflow-y:auto!important;
  }
  #modalContent{
    height:auto!important;
    overflow:visible!important;
  }
  #modalContent > .vehicle-detail{
    grid-template-columns:1fr!important;
    height:auto!important;
    overflow:visible!important;
  }
  #modalContent .detail-gallery,
  #modalContent .detail-info{
    height:auto!important;
    min-width:0!important;
    overflow:visible!important;
  }
  #modalContent .main-photo{
    height:min(65vw,460px)!important;
  }
}
