/* Modal de informações completas - branco e preto */
.vehicle-modal{background:#fff!important;color:#15171b!important;border:1px solid #e3e5e8!important;box-shadow:0 30px 90px rgba(0,0,0,.60)}
.vehicle-modal .modal-body{background:#fff!important;color:#15171b!important}
.vehicle-modal .modal-body h2,.vehicle-modal .modal-body h3{color:#111318!important}
.vehicle-modal .modal-details{color:#555e69!important}
.vehicle-modal .modal-price{color:#111318!important}
.vehicle-modal .modal-description{color:#303740!important;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.vehicle-modal .modal-close{background:#fff!important;color:#111318!important;border:1px solid #d5d8de!important;box-shadow:0 2px 12px rgba(0,0,0,.18)}
.vehicle-modal .modal-actions .button-primary{background:linear-gradient(135deg,#232830,#101216)!important;color:#fff!important}
.vehicle-modal .vehicle-gallery-controls{background:#f4f5f7!important;border-bottom:1px solid #e2e4e7!important}
.vehicle-modal .gallery-thumb{background:#e8eaed!important}
.vehicle-modal .gallery-thumb.active{border-color:#242a33!important}
.vehicle-modal .vehicle-gallery-controls .gallery-arrow{background:#242830!important;color:#fff!important;border-color:#454c55!important}
.vehicle-modal .vehicle-gallery-controls .gallery-counter{background:rgba(18,21,26,.83)!important;color:#fff!important}
@media(max-width:520px){.vehicle-modal .modal-body{padding:22px!important}.vehicle-modal .modal-body h2{font-size:27px!important}}

/* Descrição em preto com texto branco, preservando o restante do modal branco. */
.vehicle-modal .modal-body .modal-description{background:#080a0d!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #262a30!important;border-radius:14px!important;padding:18px!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;line-height:1.7!important}

/* Card aberto: fundo branco somente nos detalhes do veículo.
   A lista de outros veículos permanece com seu tema escuro. */
.vehicle-modal,
.vehicle-modal #modalContent,
.vehicle-modal .modal-body {
  background:#fff!important;
  background-image:none!important;
  color:#15171b!important;
}
.vehicle-modal .modal-body h2,
.vehicle-modal .modal-body h3,
.vehicle-modal .modal-price {color:#111318!important;-webkit-text-fill-color:#111318!important}
.vehicle-modal .modal-details {color:#535b65!important}
.vehicle-modal .modal-body .modal-description {
  background:#fff!important;
  background-image:none!important;
  color:#303740!important;
  -webkit-text-fill-color:#303740!important;
  border-color:#e2e4e8!important;
}
.vehicle-modal .vehicle-gallery-controls {background:#fff!important}
.vehicle-modal .modal-close {background:#fff!important;color:#111318!important}

/* Detalhes claros mesmo em navegadores com estilos antigos em cache. */
html body dialog#vehicleModal.vehicle-modal,html body dialog#vehicleModal.vehicle-modal #modalContent,html body dialog#vehicleModal.vehicle-modal .modal-body{background:#fff!important;background-image:none!important;color:#15171b!important}
html body dialog#vehicleModal.vehicle-modal .modal-description{background:#080a0d!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body dialog#vehicleModal.vehicle-modal .modal-share{background:#f1f2f4!important;color:#15171b!important;border:1px solid #d4d7dc!important}

/* Correção específica da janela aberta do veículo, inclusive no Safari iOS. */
html body dialog#vehicleModal[open],html body dialog#vehicleModal[open] #modalContent,html body dialog#vehicleModal[open] .modal-body,html body dialog#vehicleModal[open] .vehicle-gallery-controls{background-color:#fff!important;background-image:none!important;color:#111318!important;color-scheme:light!important}
html body dialog#vehicleModal[open] .modal-body h2,html body dialog#vehicleModal[open] .modal-body h3,html body dialog#vehicleModal[open] .modal-price{color:#111318!important;-webkit-text-fill-color:#111318!important}
html body dialog#vehicleModal[open] .modal-details{color:#4b5563!important;-webkit-text-fill-color:#4b5563!important}
html body dialog#vehicleModal[open] .modal-description{background:#fff!important;background-image:none!important;color:#303740!important;-webkit-text-fill-color:#303740!important;border-color:#e2e4e8!important}
html body dialog#vehicleModal[open] .modal-close{background:#f1f2f4!important;color:#111318!important}
