/* Shared vehicle content, with a session-selected grid or list layout. */
body .j-toolbar{flex-wrap:wrap}
body .j-toolbar .j-view-switch{display:flex;gap:6px;margin:0}
body .j-view-switch button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 13px;background:#24282c;color:#fff;border:1px solid #a4a9ac;border-radius:5px;font:700 14px Arial,sans-serif;cursor:pointer}
body .j-view-switch button[aria-pressed=true]{background:#f4ef16;color:#111;border-color:#f4ef16}
body .j-view-switch button:hover{border-color:#f4ef16}
body .j-view-switch button:focus-visible{outline:3px solid white;outline-offset:3px}
body .j-view-switch svg{width:17px;height:17px;fill:currentColor;flex-shrink:0}
body .j-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
body .j-results-grid .j-result{margin:0;min-width:0;display:flex;flex-direction:column;border-radius:10px;overflow:hidden;background:#202326;border:1px solid #ffffff26}
body .j-results-grid .j-yellow-bar{height:7px;flex-shrink:0}
body .j-results-grid .j-result-body{display:flex;flex-direction:column;gap:12px;padding:12px;flex:1;min-width:0}
body .j-results-grid .j-result-photo{display:block;order:0}
body .j-results-grid .j-result-photo img{display:block;aspect-ratio:4/3;width:100%;max-height:none;object-fit:cover;background:#111}
body .j-results-grid .j-result-info{display:contents}
body .j-results-grid .j-result-info h2{order:1;font-size:21px;line-height:1.3;margin:0;min-height:80px}
body .j-results-grid .j-result-info h2 small{display:block;font-size:13px;line-height:1.45;margin-top:5px;font-weight:400}
body .j-results-grid .j-result-price{order:2;padding:0;font-size:28px;text-align:right}
body .j-results-grid .j-result-specs{order:3;grid-template-columns:1fr;gap:5px;font-size:12px;flex:1}
body .j-results-grid .j-result-specs span{min-width:0;overflow-wrap:anywhere}
body .j-results-grid .j-actions{order:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:4px 0 0}
body .j-results-grid .j-actions>a{padding:10px 5px;font-size:12px;line-height:1.4;display:flex;align-items:center;justify-content:center;min-height:40px}
body .j-results-grid .j-sold{order:4}
body .j-results-grid .j-carfax{text-align:left;margin-top:10px}
body .j-results-grid .j-empty{grid-column:1/-1}
@media(max-width:1050px){body .j-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body .j-results-grid{grid-template-columns:1fr;gap:18px}body .j-results-grid .j-result-info h2{min-height:0}body .j-toolbar .j-view-switch{margin:0}body .j-toolbar form{margin-left:0}}

/* Compact cards expose the essentials; full specifications remain in List/VDP. */
body .j-inventory .j-results-grid .j-result-body{padding:10px!important;gap:8px}
body .j-results-grid .j-result-info h2{min-height:0;font-size:20px;margin:0}
body .j-results-grid .j-result-info h2 small,body .j-results-grid .j-result-specs span:not(.j-result-mileage),body .j-results-grid .j-carfax{display:none}
body .j-results-grid .j-result-specs{order:2;flex:0;font-size:14px;margin:0}
body .j-results-grid .j-result-price{order:3;font-size:24px}
body .j-results-grid .j-actions{margin-top:auto;padding-top:4px}
body .j-toolbar .j-price-range{flex:1 1 240px;min-width:220px;max-width:340px;margin:0;padding:5px 8px}
body .j-price-caption{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#fff;white-space:nowrap}
body .j-price-caption output{font-weight:700;color:#f4ef16}
body .j-price-track{position:relative;height:28px;margin-top:3px;background:linear-gradient(#899098,#899098) center/100% 4px no-repeat}
body .j-price-fill{position:absolute;top:12px;left:var(--price-low,0%);right:calc(100% - var(--price-high,100%));height:4px;background:#f4ef16}
body .j-price-track input[type=range]{position:absolute;inset:0;width:100%;height:28px;margin:0;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;appearance:none;-webkit-appearance:none;pointer-events:none;outline:none}
body .j-price-track input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;pointer-events:auto;width:18px;height:18px;border-radius:50%;background:#f4ef16;border:2px solid #111;cursor:ew-resize;box-shadow:0 0 0 1px #f4ef16}
body .j-price-track input[type=range]::-moz-range-thumb{pointer-events:auto;width:16px;height:16px;border-radius:50%;background:#f4ef16;border:2px solid #111;cursor:ew-resize}
body .j-price-track input[type=range]:focus-visible::-webkit-slider-thumb{outline:3px solid white;outline-offset:2px}
body .j-price-track input[type=range]:disabled{opacity:.5}
body .j-price-unavailable{display:block;color:#ddd;font-size:11px;line-height:1.2}
body .j-call-caption-grid{display:none}
body .j-results-grid .j-actions>.j-list-action,body .j-results-grid .j-call-caption-list{display:none}
body .j-results-grid .j-call-caption-grid{display:inline}
@media(max-width:650px){body .j-toolbar .j-price-range{flex-basis:100%;max-width:none;order:3}}

/* Grid and List share the same sale price, fee, total, and disclosure styles. */
body .j-inventory .j-results-grid .j-result-price{max-width:none;width:100%}

/* Keep the headline price alongside the name and mileage, above fee disclosures. */
body .j-inventory .j-results-grid .j-result-body{display:grid;grid-template-columns:minmax(0,1fr) max-content;grid-template-rows:auto 24px 22px auto auto minmax(0,1fr) auto;align-content:start;column-gap:10px;row-gap:3px}
body .j-results-grid .j-result-photo{grid-column:1/-1;grid-row:1}
body .j-results-grid .j-result-info h2{grid-column:1;grid-row:2;min-width:0;font-size:20px;line-height:24px;overflow:hidden}
body .j-results-grid .j-result-info h2 a{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body .j-results-grid .j-result-specs{grid-column:1;grid-row:3;font-size:13px;min-width:0;display:block}
body .j-results-grid .j-result-mileage{display:block;white-space:nowrap}
body .j-inventory .j-results-grid .j-result-price,body .j-inventory .j-results-grid .j-price-breakdown{display:contents}
body .j-inventory .j-results-grid .j-price-breakdown>div:first-child{grid-column:2;grid-row:2/4;align-self:start;margin:0;text-align:right}
body .j-inventory .j-results-grid .j-price-breakdown>div:nth-child(2){grid-column:1/-1;grid-row:4;margin:0}
body .j-inventory .j-results-grid .j-price-breakdown>.j-price-total{grid-column:1/-1;grid-row:5;margin:0;padding-top:4px}
body .j-inventory .j-results-grid .j-price-breakdown>small{grid-column:1/-1;grid-row:6;margin:0}
body .j-results-grid .j-grid-price-message{grid-column:2;grid-row:2/4;align-self:start;text-align:right;font-size:18px;font-weight:700;max-width:140px}
body .j-results-grid .j-actions{grid-column:1/-1;grid-row:7}
body .j-results-grid .j-sold{grid-column:1;grid-row:3}

body .j-inventory .j-results-grid .j-price-breakdown>div:first-child>span:only-child{line-height:1.1}

body .j-actions>.j-grid-carfax{display:none}
body .j-results-grid .j-actions:has(>.j-grid-carfax){grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.8fr)}
body .j-results-grid .j-actions>.j-grid-carfax{display:flex}

body .j-results-grid .j-actions>.j-grid-carfax img{display:block;max-width:100%;width:120px;height:auto;max-height:32px;object-fit:contain}
