/* Prices belong to the information pane, never the photograph. */
.vehicle-card .vehicle-card-body>.vehicle-price{position:static;align-self:flex-end;text-align:right;max-width:100%;margin:0 0 14px;padding:0;background:none;border:0;box-shadow:none;transform:none;text-shadow:none;line-height:1.3;color:#0846ad;font-size:23px}
.vehicle-card .vehicle-price:after,#vehicle-dialog .vehicle-price:after{display:none}
#vehicle-dialog .detail-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
#vehicle-dialog .detail-summary h3{margin:0;font-size:18px}
#vehicle-dialog .detail-summary .vehicle-price{position:static;max-width:100%;margin:0;padding:0;transform:none;background:none;border:0;box-shadow:none;text-shadow:none;color:#0846ad;text-align:right;font-size:25px}
#vehicle-dialog .overview-heading{font-size:26px;margin:28px 0 22px}
#vehicle-dialog .overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 30px;margin:0 0 15px}
#vehicle-dialog .overview-grid>div{border:0;padding:0;min-width:0}
#vehicle-dialog .overview-grid dt{display:flex;align-items:flex-start;gap:12px;font-size:15px;font-weight:600;color:#183c68;margin:0 0 8px}
#vehicle-dialog .overview-grid svg{width:23px;height:23px;flex:0 0 23px;color:#0846ad}
#vehicle-dialog .overview-grid dd{margin:0 0 0 35px;font-size:16px;line-height:1.5;color:#53667d;overflow-wrap:anywhere}
@media(max-width:700px){#vehicle-dialog .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}}
@media(max-width:420px){#vehicle-dialog .detail-summary{align-items:flex-start}#vehicle-dialog .detail-summary .vehicle-price{font-size:21px}#vehicle-dialog .overview-grid dt{font-size:13px;gap:8px}#vehicle-dialog .overview-grid dd{font-size:14px;margin-left:31px}}

#vehicle-dialog{width:min(1240px,96vw);max-width:1240px;box-sizing:border-box}#vehicle-dialog .detail-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:28px}#vehicle-dialog .detail-main{min-width:0}#vehicle-dialog .detail-gallery .vehicle-photo{height:440px}#vehicle-dialog .detail-seller>.vehicle-price{position:static;margin:0 0 22px;text-align:right;background:none;border:0;box-shadow:none;transform:none;padding:0;color:#0846ad;text-shadow:none;font-size:30px}#vehicle-dialog .detail-seller-card{border:1px solid #dce5ef;border-radius:14px;padding:22px;background:white;color:#153250}#vehicle-dialog .detail-seller-card h3{margin-top:0}#vehicle-dialog .detail-seller-card button{width:100%;background:#0846ad;color:white;padding:14px} @media(max-width:700px){#vehicle-dialog .detail-layout{grid-template-columns:1fr}#vehicle-dialog .detail-gallery .vehicle-photo{height:260px}#vehicle-dialog .detail-seller>.vehicle-price{font-size:25px}}

.vehicle-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.vehicle-heading-row .vehicle-title{font-size:20px;flex:1;min-width:0;margin:0;overflow-wrap:anywhere}.vehicle-card .vehicle-heading-row .vehicle-price{position:static;flex:0 0 auto;max-width:48%;font-size:20px;line-height:1.25;margin:0;padding:0;text-align:right;color:#0846ad;background:none;border:0;box-shadow:none;transform:none;text-shadow:none;overflow-wrap:anywhere}.clickable-vehicle{cursor:pointer}.clickable-vehicle:focus-visible{outline:3px solid #0846ad;outline-offset:4px}.clickable-vehicle:hover{border-color:#0846ad}.vehicle-card .vehicle-facts li{display:flex;align-items:center;gap:9px}.vehicle-card .vehicle-facts li:before{display:none}.vehicle-card .vehicle-facts svg{width:19px;height:19px;flex:0 0 19px;color:#0846ad}.vehicle-card .vehicle-facts{margin-bottom:0}.vehicle-card .vs-inline-comments{cursor:default}@media(max-width:420px){.vehicle-heading-row .vehicle-title,.vehicle-card .vehicle-heading-row .vehicle-price{font-size:18px}}

#search-results .results-top{display:flex;align-items:center;justify-content:flex-start;gap:16px;flex-wrap:wrap;margin:18px 0}#search-results .results-top #results-heading{margin:0;font-size:clamp(18px,2vw,26px)}#search-results .results-top #all-locations{margin:0;flex:0 0 auto}#search-results .results-top #clear-filters{margin-left:auto}#search-results #filter-chips[hidden]{display:none}@media(max-width:480px){#search-results .results-top{gap:10px}#search-results .results-top #results-heading{font-size:17px}#search-results .results-top #all-locations{font-size:12px;padding:8px}}

/* Compact results keep recommendations close to the first row. */
#search-results.search-results{margin-top:10px;padding-top:0;min-height:0}#search-results .results-top,#search-results.zero-results .results-top{margin:8px 0;gap:12px}#search-results .search-notice{margin:6px 0;padding:6px 10px;font-size:12px}#search-results .search-status{margin:6px 0;font-size:13px;line-height:1.4}#search-results .vehicle-grid{margin-top:8px;padding:0;gap:16px;min-height:0}#search-results .vehicle-grid:empty,#search-results .pagination:empty{display:none}#search-results .pagination{margin:8px 0;font-size:12px}#search-results .request-callout:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;margin:8px 0}#search-results .request-callout p{margin:0;font-size:13px;line-height:1.4}#search-results .request-callout button{padding:7px 12px;font-size:13px;flex-shrink:0}#search-results #broader-filter-hint{display:none}#search-results .similar-cars{margin:12px 0 8px;padding-top:8px}#search-results .similar-cars h3{margin:6px 0 8px;font-size:23px}#search-results .similar-controls{margin:0 0 8px}#search-results .vehicle-card-body{padding:14px 16px}.vehicle-heading-row{margin-bottom:8px}.vehicle-facts-row{display:flex;align-items:center;gap:8px;border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6}.vehicle-card .vehicle-facts-row .vehicle-facts{flex:1;min-width:0;border:0;padding:10px 0;gap:8px}.card-ask-bot{display:flex;flex-direction:column;align-items:center;gap:5px;flex:0 0 65px;border:0;background:transparent;color:#0846ad;padding:6px 0;font:inherit;font-size:11px;font-weight:600;cursor:pointer;line-height:1.25;text-align:center}.card-ask-bot svg{width:25px;height:25px}.card-ask-bot:hover{background:#edf4ff;border-radius:8px}.card-ask-bot:focus-visible{outline:2px solid #0846ad}
@media(min-width:1000px){#search-results .vehicle-card>.vehicle-photo{height:clamp(150px,23vh,210px);aspect-ratio:auto}#search-results .vehicle-card .photo-placeholder{min-height:0}#search-results .similar-viewport{height:245px}#search-results .similar-card{top:15px}#search-results .similar-card img,#search-results .similar-photo-missing{height:80px}#search-results .similar-caption{min-height:100px;padding:10px}}
@media(max-width:480px){#search-results .request-callout:not([hidden]){flex-wrap:wrap}.vehicle-card .vehicle-facts-row .vehicle-facts{gap:8px 6px}.vehicle-card .vehicle-facts li{gap:5px;font-size:11px}.card-ask-bot{flex-basis:55px;font-size:10px}}

#search-results #results-heading{scroll-margin-top:12px!important}#search-results .results-top{scroll-margin-top:12px}

/* Keep the original two-column facts width; compact AI action below. */
.vehicle-facts-row{display:flex;flex-direction:column;align-items:stretch;min-width:0;gap:0}.vehicle-card .vehicle-facts-row .vehicle-facts{width:100%;flex:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.vehicle-card .card-ask-bot{flex:0 0 auto;align-self:flex-end;flex-direction:row;align-items:center;justify-content:center;white-space:nowrap;gap:7px;padding:5px 0 9px;font-size:12px;line-height:1.2;max-width:100%;color:#0846ad}.vehicle-card .card-ask-bot svg{width:22px;height:24px;flex:0 0 22px}.vehicle-card{min-width:0}.vehicle-card .vehicle-card-body{min-width:0}@media(max-width:480px){.vehicle-card .vehicle-facts li{font-size:12px}.vehicle-card .card-ask-bot{font-size:12px;flex-basis:auto}}

/* Similar cars: image-led cards with a compact two-line caption. */
#search-results .similar-card img,#search-results .similar-photo-missing{height:140px}#search-results .similar-caption{min-height:0;height:auto;padding:9px 10px;gap:5px}#search-results .similar-caption strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.4}#search-results .similar-caption b{font-size:13px;line-height:1.4}#search-results .similar-viewport{height:245px}@media(max-width:600px){#search-results .similar-card img,#search-results .similar-photo-missing{height:125px}#search-results .similar-caption{padding:8px}#search-results .similar-caption strong{font-size:11px}}

/* Compact inline listing actions; keep the established card width. */
.vehicle-card .vehicle-photo{position:relative}
.vehicle-card .vehicle-photo .vs-actions{top:12px;right:10px}
.vehicle-card .vehicle-facts-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr) auto;gap:8px 9px;align-items:center;padding:10px 0}
.vehicle-card .vehicle-facts-row .vehicle-facts{display:contents}
.vehicle-facts-row .vehicle-facts li:nth-child(1){grid-area:1/1}
.vehicle-facts-row .vehicle-facts li:nth-child(2){grid-area:1/2}
.vehicle-facts-row .vehicle-facts li:nth-child(3){grid-area:2/1}
.vehicle-facts-row .vehicle-facts li:nth-child(4){grid-area:2/2}
.vehicle-facts-row .vehicle-facts li:nth-child(5){grid-area:3/1}
.vehicle-facts-row .vehicle-facts li:nth-child(6){grid-area:3/2}
.vehicle-card .vehicle-facts li{min-width:0;gap:5px;font-size:12px}
.vehicle-card .vehicle-facts li span{overflow-wrap:anywhere}
.card-compare-slot{grid-area:2/3;min-width:0}
.vehicle-card .card-ask-bot{grid-area:3/3;align-self:center}
.vehicle-card .card-ask-bot,.vehicle-card .vs-compare{display:flex;flex-direction:row;align-items:center;gap:4px;white-space:nowrap;font-size:11px;line-height:1.3;padding:4px 0;border:0;background:transparent;color:#0846ad;cursor:pointer;margin:0}
.vehicle-card .card-ask-bot svg,.vehicle-card .vs-compare svg{width:16px;height:18px;flex:none}
.vehicle-card .vs-compare[aria-pressed=true]{color:#176638}
.vehicle-views{position:absolute;bottom:10px;left:10px;display:flex;align-items:center;gap:5px;padding:4px 8px;border-radius:12px;background:#153252cc;color:white;font-size:12px;line-height:1.2;pointer-events:none}
.vehicle-views svg{width:17px;height:17px}

/* Denser listing cards, with three columns on wide screens. */
@media(min-width:1200px){#search-results .vehicle-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
#search-results .vehicle-card-body{padding:10px 11px}
#search-results .vehicle-year{margin:0 0 5px}
#search-results .vehicle-heading-row{margin-bottom:5px;gap:8px}
#search-results .vehicle-heading-row .vehicle-title,#search-results .vehicle-heading-row .vehicle-price{font-size:18px}
#search-results .vehicle-facts-row{padding:7px 0;row-gap:4px;column-gap:6px}
#search-results .vehicle-facts li{line-height:1.3}
#search-results .card-ask-bot,#search-results .vs-compare{font-weight:700;padding:2px 0}

.network-location-controls{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.location-toggle-row{display:flex;align-items:center;gap:12px;color:#0846ad;font-size:12px;font-weight:600}
#allow-location-help{display:block;max-width:220px;text-align:center;font-size:11px;line-height:1.35;color:#607590}
#allow-location{width:57.4px;height:21.1px;border-width:1px;flex:none}
#allow-location .ev-switch-knob{width:25px;height:25px;top:-3px;left:-2px;border-width:1px}
#allow-location[aria-checked=true] .ev-switch-knob{left:32px}
#allow-location .ev-switch-word{font-size:8px;right:7px}
#allow-location[aria-checked=true] .ev-switch-word{left:7px;right:auto}
#allow-location:after{inset:-12px -4px}

#search-results .request-callout>p{flex:1}
#search-results .request-location{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#0846ad;font-size:12px;padding:6px;white-space:nowrap}
.request-location svg{width:19px;height:19px;flex:none}
.request-location:focus-visible{outline:2px solid #0846ad;border-radius:5px}

#search-results .results-top #results-heading,#search-results .results-top #all-locations,#search-results .results-top #results-request-car{font-size:clamp(14.4px,1.6vw,20.8px);line-height:1.25}
#search-results .results-top #results-request-car{font-weight:700;background:#0846ad;color:white;border:1px solid #0846ad;padding:7px 12px;border-radius:8px}
#search-results .request-callout>.page-button{background:#0846ad;color:white;border:1px solid #0846ad;font-weight:700}
#search-results .search-status:empty{display:none}
@media(max-width:480px){#search-results .results-top #results-heading,#search-results .results-top #all-locations,#search-results .results-top #results-request-car{font-size:13.6px}}

/* Compact search result toolbar. */
#search-results .results-top #results-heading,#search-results .results-top #all-locations,#search-results .results-top #results-request-car{font-size:clamp(12px,1.152vw,14.976px);line-height:1.25;padding:4.8px 8.4px;border-radius:7.2px;min-height:0}
#search-results .results-top{gap:8px}

/* Taller listing tiles: give the additional height to the vehicle photo. */
@media(min-width:1000px){#search-results .vehicle-card>.vehicle-photo{height:calc(clamp(150px,23vh,210px) * 1.25 + 36px)}}
@media(max-width:999px){#search-results .vehicle-card>.vehicle-photo{aspect-ratio:1.25;}}

#vehicle-search .types{grid-template-columns:repeat(4,minmax(0,1fr))}
body.premium-page #vehicle-search .types{grid-template-columns:1fr}
