/* PortalCar v1.9.6 — corrección de fotografías + buscador móvil.
   Mantiene todas las imágenes originales. Para ver 100% de la imagen usa el visor al hacer clic. */
/* En tarjetas: encuadre consistente, priorizando la zona donde normalmente está el auto. */
.car-image,.featured-card-image,.similar-photo,.compare-head-photo{background:#eaf1f5!important;overflow:hidden}
.car-image{height:190px!important;aspect-ratio:auto!important;min-height:0!important}
.featured-card-image{height:190px!important;aspect-ratio:auto!important;min-height:0!important}
.car-image img,.featured-card-image img,.similar-photo img,.compare-head-photo img{
 width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 73%!important;
 display:block;
}
/* Galería: fotografía grande limitada, miniaturas proporcionadas y sin espacio sobrante. */
.detail-gallery-layout{
 display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(185px,.72fr)!important;
 gap:8px!important;align-items:stretch!important;padding:8px!important;min-width:0;
}
.detail-main-photo{
 position:relative;height:340px!important;min-height:0!important;min-width:0!important;
 padding:0!important;overflow:hidden!important;background:#e5edf1!important;
 border-radius:14px!important;cursor:zoom-in;
}
.detail-main-photo img{
 display:block!important;width:100%!important;height:100%!important;max-width:none!important;
 object-fit:cover!important;object-position:center 75%!important;
 border-radius:0!important;background:transparent!important;
}
.detail-thumbs{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-template-rows:repeat(2,minmax(0,1fr))!important;
 height:340px!important;max-height:340px!important;min-width:0!important;
 gap:8px!important;overflow:hidden!important;
}
.detail-thumb{display:block!important;height:100%!important;min-height:0!important;min-width:0!important;overflow:hidden!important;padding:0!important;background:#e9f0f4!important}
.detail-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 72%!important}
.detail-thumb:focus-visible{outline:3px solid #00b4c6;outline-offset:-3px}
.detail-description-v04 p,.detail-description p,.seller-public-description{white-space:pre-wrap!important;overflow-wrap:anywhere;line-height:1.7}
.detail-title-row{gap:12px!important;flex-wrap:wrap}
.detail-title-row h1{font-size:clamp(22px,3vw,30px)!important}
.detail-price-v04{font-size:clamp(22px,2.5vw,29px)!important}
/* Selectores buscables. El control nativo continúa presente para formularios. */
.pc95-combo{display:block;position:relative;width:100%;min-width:0}
.pc95-original{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;min-height:1px!important;padding:0!important;margin:0!important;opacity:0!important;clip-path:inset(50%)!important;pointer-events:none!important;z-index:-1}
.pc95-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:44px;text-align:left;background:#fff;border:1px solid #d9e3ec;border-radius:10px;padding:9px 12px;color:#14324a;font:inherit;font-size:14px;cursor:pointer}
.pc95-trigger-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc95-trigger.pc95-empty{color:#64798a}.pc95-caret{font-size:20px;color:#557286}
.pc95-trigger:focus-visible,.pc95-trigger.pc95-invalid{outline:2px solid #00b4c6;outline-offset:2px}
.pc95-layer{position:fixed;inset:0;z-index:25000;pointer-events:none}
.pc95-shade{position:absolute;inset:0;pointer-events:auto;background:rgba(8,25,44,.18)}
.pc95-pop{position:fixed;z-index:1;display:flex;flex-direction:column;pointer-events:auto;background:#fff;border:1px solid #d6e4eb;border-radius:13px;box-shadow:0 18px 55px rgba(10,37,59,.24);overflow:hidden;padding:12px;min-height:180px;max-height:min(410px,80dvh)}
.pc95-pop-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;color:#15334b;flex:0 0 auto}
.pc95-close{border:0;background:#eef4f7;border-radius:8px;width:36px;height:36px;font-size:23px;cursor:pointer}
.pc95-query{display:block;width:100%;min-height:45px;border:1px solid #bdd7e2;border-radius:10px;padding:10px 12px;font-size:16px;flex:0 0 auto;color:#112e45;background:#fff}
.pc95-status{font-size:12px;color:#627c8b;padding:9px 3px 6px;flex:0 0 auto}
.pc95-options{overflow-y:auto;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;flex:1 1 auto}
.pc95-choice{display:block;width:100%;min-height:43px;text-align:left;border:0;border-radius:8px;background:#fff;padding:10px;font-size:14px;color:#203f55;cursor:pointer}
.pc95-choice:hover,.pc95-choice:focus-visible,.pc95-choice.selected{background:#e7f7f9;outline:none}
.pc95-no-results{font-size:13px;padding:13px 8px;color:#6a7f8b}
@media(max-width:1050px){
 .detail-gallery-layout{grid-template-columns:minmax(0,1.6fr) minmax(175px,.72fr)!important}
}
@media(max-width:760px){
 .detail-gallery-layout{display:flex!important;flex-direction:column!important;padding:6px!important;gap:6px!important}
 .detail-main-photo{height:clamp(195px,58vw,295px)!important;min-height:0!important;width:100%!important;border-radius:12px!important}
 .detail-main-photo img{object-position:center 74%!important}
 .detail-thumbs{display:flex!important;flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important;max-height:76px!important;height:76px!important;gap:7px!important;padding-bottom:4px;scroll-snap-type:x proximity}
 .detail-thumb{min-width:90px!important;width:90px!important;height:70px!important;flex:0 0 90px!important;scroll-snap-align:start}
 .detail-info{padding:16px 13px!important}
 .detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 .detail-fact{min-width:0;padding:11px!important}
 .detail-content-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:15px}
 .detail-title-row{display:flex;flex-direction:column;align-items:flex-start}
 .detail-price-v04{white-space:normal!important}
 .car-image{height:185px!important}
 /* Hoja flotante posicionada por VisualViewport: nunca queda bajo teclado virtual. */
 .pc95-pop{position:fixed!important;right:auto!important;bottom:auto!important;max-height:none!important;min-height:0!important;border-radius:16px!important;padding:11px 13px!important}
 .pc95-shade{background:rgba(6,19,34,.5)}
 .pc95-choice{min-height:46px;font-size:16px}
 .pc95-trigger{min-height:45px;font-size:16px}
 .dashboard-main,.pro-section,.panel,.pcg-detail-columns{min-width:0!important}
 .pcg-form-grid,.pcg-proposal-grid,.form-grid{min-width:0}
}
@media(max-width:375px){.detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}.detail-title-row h1{font-size:22px!important}}
@media(prefers-reduced-motion:reduce){.pc95-pop{scroll-behavior:auto}}
