/* Mobile photo-first layout for full vehicle pages. */
@media(max-width:640px){
.mobile-photo-first{padding:0!important;align-items:flex-end!important}
.mobile-photo-first .vehicle-detail-panel{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 72px)!important;border-radius:20px 20px 0 0!important;padding:0!important;background:#fff;overflow-y:auto;scrollbar-width:none}
.mobile-photo-first .vehicle-detail-body{padding:0!important;overflow:visible!important}
.mobile-photo-first #vehicle-detail-close,.mobile-photo-first .vehicle-detail-nav,.mobile-photo-first .vehicle-detail-browse-meta,.mobile-photo-first .vehicle-detail-swipe-stamp{display:none!important}
.mobile-photo-first .mpf{--navy:#0f172a;--red:#d90429;--blue:#397af4;--line:#e3e7ed;--muted:#6b7483;--paper:#fff;margin:0;padding:0;border:0;border-radius:0;background:white;color:var(--navy);font-family:Inter,system-ui,sans-serif;overflow:hidden}
.mobile-photo-first .mpf *{box-sizing:border-box}
.mobile-photo-first .mpf button{font:inherit;cursor:pointer;touch-action:manipulation}
.mobile-photo-first .mpf button:focus-visible,.mobile-photo-first .mpf summary:focus-visible{outline:3px solid #397af4;outline-offset:2px}
.mobile-photo-first .mpf .v-brand-logo{width:32px;height:32px;object-fit:contain;flex:0 0 32px}
.mobile-photo-first .mpf .vds-hero{position:relative;background:#e7eaee;aspect-ratio:1.32;isolation:isolate;overflow:hidden;touch-action:pan-y}
.mobile-photo-first .mpf .vds-hero-img{width:100%;height:100%;object-fit:cover;display:block}
.mobile-photo-first .mpf .hero-toolbar{position:absolute;top:16px;left:16px;right:16px;display:flex;justify-content:space-between;gap:8px;pointer-events:none}
.mobile-photo-first .mpf .hero-toolbar>div{display:flex;gap:8px;align-items:center}
.mobile-photo-first .mpf .hero-brand{width:36px;height:36px;display:grid;place-items:center;background:#101b20bb;border:1px solid #ffffff22;border-radius:50%;backdrop-filter:blur(8px)}
.mobile-photo-first .mpf .hero-brand .v-brand-logo{width:24px;height:24px;object-fit:contain}
.mobile-photo-first .mpf .hero-brand .v-brand-logo[src$=".svg"]{filter:brightness(0) invert(1)}
.mobile-photo-first .mpf .round-control{position:relative;width:36px;height:36px;border-radius:50%;border:1px solid #ffffff22;background:#101b20bb;color:white;display:grid;place-items:center;padding:0;backdrop-filter:blur(8px);pointer-events:auto;transition:background 140ms ease,transform 140ms ease}
.mobile-photo-first .mpf .round-control:hover{background:#101b20ed}
.mobile-photo-first .mpf .round-control[aria-pressed=true]{color:#fff;background:var(--red);border-color:#ffced7}
.mobile-photo-first .mpf .round-control[aria-pressed=true] .material-symbols-outlined{font-variation-settings:'FILL' 1}
.mobile-photo-first .mpf .hero-counter{position:absolute;bottom:24px;left:16px;background:#15212aaa;color:white;border-radius:24px;padding:8px 12px;font-size:12px;backdrop-filter:blur(6px)}
.mobile-photo-first .mpf .hero-expand{position:absolute;right:16px;bottom:20px}
.mobile-photo-first .mpf .vds-content{position:relative;margin-top:-12px;border-radius:20px 20px 0 0;background:white;padding:16px 20px 24px}
.mobile-photo-first .mpf .gallery-explorer{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:0 0 8px;margin-bottom:16px;scroll-snap-type:x proximity}
.mobile-photo-first .mpf .gallery-thumb,.mobile-photo-first .mpf .gallery-fullscreen{height:64px;min-width:72px;flex:0 0 72px;border-radius:10px;border:2px solid transparent;padding:3px;background:#f0f2f5;color:var(--navy);scroll-snap-align:start}
.mobile-photo-first .mpf .gallery-thumb img{width:100%;height:100%;border-radius:6px;object-fit:cover}
.mobile-photo-first .mpf .gallery-thumb[aria-pressed=true]{border-color:var(--red);background:white}
.mobile-photo-first .mpf .gallery-fullscreen{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:9px;font-weight:600}
.mobile-photo-first .mpf .gallery-fullscreen .material-symbols-outlined{font-size:24px}
.mobile-photo-first .mpf .vds-id-card{display:grid;grid-template-columns:minmax(0,1fr) 116px;align-items:start;gap:12px;margin-bottom:20px}
.mobile-photo-first .mpf .vds-title-block{display:grid;gap:8px;min-width:0}
.mobile-photo-first .mpf .v-model{margin:0;display:flex;align-items:center;gap:8px;font-size:23px;line-height:1.13;font-weight:900;letter-spacing:-1px}
.mobile-photo-first .mpf .v-title-text{min-width:0;overflow-wrap:anywhere}
.mobile-photo-first .mpf .vds-title-color{margin:0;color:var(--blue);font-size:11px;font-weight:800;text-transform:uppercase;line-height:1.4}
.mobile-photo-first .mpf .vds-title-sub{margin:0;color:#63738d;font-size:9px;letter-spacing:.07em;text-transform:uppercase;line-height:1.5}
.mobile-photo-first .mpf .vds-price-card{background:var(--navy);color:white;padding:12px 10px;border-radius:5px;min-width:0}
.mobile-photo-first .mpf .vds-price-card span{font-size:7px;font-weight:800;letter-spacing:.12em;display:block;color:#a8cdf7;text-transform:uppercase}
.mobile-photo-first .mpf .vds-price-accent{width:20px;height:2px;background:#9dcbff;display:block;margin:8px 0 4px}
.mobile-photo-first .mpf .vds-price-card strong{font-size:26px;letter-spacing:-1px;line-height:1;display:block;overflow-wrap:anywhere}
.mobile-photo-first .mpf .vds-price-card strong small{font-size:10px;letter-spacing:0;font-weight:500}
.mobile-photo-first .mpf .vds-price-card .cash-price-contact{display:block;font-size:8px;margin-top:6px;line-height:1.4}
.mobile-photo-first .mpf .vds-price-card .custom-payment{font-size:16px;line-height:1.2}
.mobile-photo-first .mpf .vds-quick-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(72px,1fr));gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:20px}
.mobile-photo-first .mpf .vds-quick-cell{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:8px;padding:12px 8px;min-width:0}
.mobile-photo-first .mpf .vds-quick-cell:nth-child(odd){border-right:1px solid var(--line)}
.mobile-photo-first .mpf .vds-quick-cell:nth-child(-n+2){border-bottom:1px solid var(--line)}
.mobile-photo-first .mpf .vds-quick-cell .material-symbols-outlined{font-size:21px;color:#334867}
.mobile-photo-first .mpf .vds-quick-cell small{display:block;color:var(--muted);font-size:10px;margin-bottom:6px}
.mobile-photo-first .mpf .vds-quick-cell strong{font-size:12px;display:block;overflow-wrap:anywhere;font-weight:600;line-height:1.4}
.mobile-photo-first .mpf .vds-cell-vin strong{font-size:10px;letter-spacing:0}
.mobile-photo-first .mpf .vds-finance-terms{color:#8691a3;font-size:10px;line-height:1.6}
.mobile-photo-first .mpf .vds-finance-terms>p{margin:0 0 8px}
.mobile-photo-first .mpf .payment-assumptions summary,.mobile-photo-first .mpf .vehicle-extra summary{font-weight:600;color:#586779;cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-size:11px;line-height:1.6;list-style:none}
.mobile-photo-first .mpf .payment-assumptions summary::after,.mobile-photo-first .mpf .vehicle-extra summary::after{content:'+';margin-left:auto;font-size:18px}
.mobile-photo-first .mpf .payment-assumptions[open] summary::after,.mobile-photo-first .mpf .vehicle-extra[open] summary::after{content:'−'}
.mobile-photo-first .mpf .payment-assumptions p,.mobile-photo-first .mpf .vehicle-extra p{margin:0 0 16px;font-size:12px}
.mobile-photo-first .mpf .vds-footer{border:1px solid var(--line);border-radius:12px;margin-top:8px;overflow:hidden}
.mobile-photo-first .mpf .vds-footer-brand{display:block;text-align:center;padding:20px 8px;border-bottom:1px solid var(--line);font-weight:800;font-size:10px;letter-spacing:.16em}
.mobile-photo-first .mpf .vds-footer-carfax{width:calc(100% - 24px);min-height:50px;margin:12px;flex-direction:row;gap:8px;border:1px solid #c8d9f4;border-radius:8px;background:#f2f6fd;color:#164ea6;font-size:11px;letter-spacing:.03em}
.mobile-photo-first .mpf .vds-footer-carfax .material-symbols-outlined{font-size:20px}
.mobile-photo-first .mpf .vds-footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 4px}
.mobile-photo-first .mpf .vds-footer-links button{border:0;background:none;display:flex;gap:10px;align-items:center;justify-content:center;flex-direction:column;color:var(--navy);font-weight:800;font-size:9px;min-height:68px;padding:8px 0}
.mobile-photo-first .mpf .vds-footer-links .material-symbols-outlined{color:var(--blue);font-size:25px}
.mobile-photo-first .mpf .vehicle-extra{padding:20px 0 0;font-size:10px;line-height:1.6;color:#8691a3}
.mobile-photo-first .mpf .vehicle-extra p,.mobile-photo-first .mpf .vehicle-extra li{font-size:12px;color:#8691a3;line-height:1.6}
.mobile-photo-first .mpf .vds-location{display:flex;flex-direction:column;margin-top:24px;gap:12px}
.mobile-photo-first .mpf .vds-location-title{font-size:13px;margin:0;font-weight:800}
.mobile-photo-first .mpf .vds-location-card{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.mobile-photo-first .mpf .vds-location-map{width:100%;height:160px;border:0;display:block;background:#eff2f6}
.mobile-photo-first .mpf address{font-style:normal;color:var(--muted);font-size:12px;line-height:1.7;margin-top:8px}
.mobile-photo-first .mpf address span{display:block}
@media(max-width:640px){.mobile-photo-first .mpf .vds-content{padding-bottom:max(24px,env(safe-area-inset-bottom))}
.mobile-photo-first .mpf .vds-hero{aspect-ratio:1.3}
.mobile-photo-first .mpf .vds-title-block{gap:6px}
.mobile-photo-first .mpf .vds-hero-img{object-position:center}
.mobile-photo-first .mpf .vds-location-map{height:160px}}
@media(max-width:360px){.mobile-photo-first .mpf .vds-content{padding-left:16px;padding-right:16px}
.mobile-photo-first .mpf .vds-id-card{grid-template-columns:minmax(0,1fr) 104px;gap:8px}
.mobile-photo-first .mpf .v-model{font-size:20px}
.mobile-photo-first .mpf .vds-price-card strong{font-size:23px}
.mobile-photo-first .mpf .vds-quick-cell{grid-template-columns:20px minmax(0,1fr);gap:8px;padding:12px 8px}
.mobile-photo-first .mpf .vds-quick-cell strong{font-size:11px}
.mobile-photo-first .mpf .vds-cell-vin strong{font-size:9px}
.mobile-photo-first .mpf .vds-quick-cell .material-symbols-outlined{font-size:19px}}
@media(prefers-reduced-motion:reduce){}
.mobile-photo-first .mpf .vds-location-details{display:grid;grid-template-columns:1fr;gap:10px;padding:12px}
.mobile-photo-first .mpf .vds-location-address{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;width:100%;padding:2px 0;min-width:0;text-align:left}
.mobile-photo-first .mpf .vds-location-dealer{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;padding-right:10px}
.mobile-photo-first .mpf .vds-location-dealer>.material-symbols-outlined{font-size:20px;color:#3b82f6;flex:0 0 auto}
.mobile-photo-first .mpf .vds-location-address strong{margin:0;font-size:12px;font-weight:900;letter-spacing:.02em;white-space:nowrap}
.mobile-photo-first .mpf .vds-location-address address{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:stretch;margin:0;padding:0 10px 0 12px;border-left:1px solid var(--line);font-size:11px;line-height:1.35;color:#475569;text-align:center;font-style:normal}
.mobile-photo-first .mpf .vds-location-address address span{display:block}
.mobile-photo-first .mpf .vds-location-directions{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:10px 16px;border-radius:6px;background:var(--navy);color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em;line-height:1;text-align:center;text-transform:uppercase;text-decoration:none}
.mobile-photo-first .mpf .vds-location-directions:hover{background:#1e293b}
.mobile-photo-first .mpf .vds-location-directions .material-symbols-outlined{font-size:17px}
.mobile-photo-first .mpf .round-control::after{content:"";position:absolute;inset:-4px;border-radius:50%}
.mobile-photo-first .mpf .round-control>.material-symbols-outlined{font-size:20px}
.mobile-photo-first .mpf .payment-assumptions summary::-webkit-details-marker,.mobile-photo-first .mpf .vehicle-extra summary::-webkit-details-marker{display:none}
.mobile-photo-first .mpf .hero-tour{position:relative;padding:0 0 14px;color:var(--navy)}
.mobile-photo-first .mpf .hero-tour-label{display:block;font-size:10px;font-weight:600;margin-bottom:8px;color:var(--muted)}
.mobile-photo-first .mpf .hero-tour-progress{display:flex;gap:4px;width:100%}
.mobile-photo-first .mpf .tour-segment{flex:1;min-width:0;height:3px;overflow:hidden;border-radius:4px;background:var(--line)}
.mobile-photo-first .mpf .tour-segment i{display:block;height:100%;width:100%;background:var(--red);transform:scaleX(0);transform-origin:left}
.mobile-photo-first .mpf .tour-segment.is-complete i,.mobile-photo-first .mpf .tour-segment.is-current i{transform:scaleX(1)}
.mobile-photo-first .mpf .gallery-explorer:has(+.gallery-tour:not([hidden])){margin-bottom:8px}
.mobile-photo-first .mpf .gallery-tour{margin:0 0 20px}
.mobile-photo-first .mpf .tour-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;justify-content:center;align-items:center;gap:8px;padding:6px 0;width:100%;max-width:440px;margin:0 auto}
.mobile-photo-first .mpf .tour-step{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:999px;background:#f3f5f7;color:var(--navy);font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;transition:transform 140ms ease-out,background-color 140ms ease-out}
.mobile-photo-first .mpf .tour-step .material-symbols-outlined{font-size:16px}
.mobile-photo-first .mpf .tour-step:active{transform:scale(.97)}
.mobile-photo-first .mpf .tour-step:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.mobile-photo-first .mpf .tour-count{font-size:11px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:360px){.mobile-photo-first .mpf .tour-controls{gap:6px}.mobile-photo-first .mpf .tour-step{gap:4px;padding-left:6px;padding-right:6px;font-size:11px}.mobile-photo-first .mpf .tour-count{font-size:10px}}
@media(prefers-reduced-motion:reduce){.mobile-photo-first .mpf .tour-segment i{animation:none!important}}
.mobile-photo-first .mpf .gallery-explorer{position:relative;overflow-y:hidden;overflow-anchor:none}
.mobile-photo-first .mpf .gallery-explorer.gallery-peek{align-items:center;scroll-snap-type:none;scrollbar-width:none;padding:2px 0 6px}
.mobile-photo-first .mpf .gallery-peek::-webkit-scrollbar{display:none}
.mobile-photo-first .mpf .gallery-peek .gallery-thumb,.mobile-photo-first .mpf .gallery-peek .gallery-fullscreen{flex:0 0 var(--thumb-width);min-width:0;height:var(--thumb-height)}
.mobile-photo-first .mpf .gallery-peek .gallery-thumb{position:relative;transform:none;transition:border-color 140ms ease}
.mobile-photo-first .mpf .gallery-peek .gallery-thumb:active{transform:none}
.mobile-photo-first .mpf{display:block;gap:0}
.mobile-photo-first .mpf .vds-content{display:block;z-index:1}
.mobile-photo-first .mpf .vds-id-card>*{order:0}
.mobile-photo-first .mpf .vds-hero{margin:0;padding:0;min-height:0;height:auto;border:0;border-radius:0}
.mobile-photo-first .mpf .vds-hero-img{max-height:none;aspect-ratio:auto}
.mobile-photo-first .mpf .vds-title-block{margin:0;padding:0;border:0}
.mobile-photo-first .mpf .vds-id-card{padding:0;border:0;background:none}
.mobile-photo-first .mpf .v-title-text{display:block;white-space:normal;text-transform:none}
.mobile-photo-first .mpf .hero-brand .v-brand-logo{display:block!important;min-width:0;margin:0;place-self:center}
.mobile-photo-first .mpf .hero-brand .v-brand-logo[src*='.svg']{filter:brightness(0) invert(1)}
.mobile-photo-first .mpf .vds-price-card{display:block!important;margin:0;border:0;box-shadow:none}
.mobile-photo-first .mpf .vds-price-payment{display:block;margin:0;padding:0}
.mobile-photo-first .mpf .vds-price-card strong,.mobile-photo-first .mpf .cash-price-contact a{color:white}
.mobile-photo-first .mpf .vds-quick-row{padding:0;background:white}
.mobile-photo-first .mpf .vds-quick-cell{grid-template-rows:auto auto;align-content:center;row-gap:6px;text-align:left}
.mobile-photo-first .mpf .vds-quick-cell>.material-symbols-outlined{grid-row:1/3;grid-column:1}
.mobile-photo-first .mpf .vds-quick-cell>small{grid-column:2;grid-row:1;margin:0;letter-spacing:0;text-transform:none}
.mobile-photo-first .mpf .vds-quick-cell>strong{grid-column:2;grid-row:2;white-space:normal}
.mobile-photo-first .mpf .vds-finance-terms{margin:0;padding:0;border:0;background:none}
.mobile-photo-first .mpf .vds-footer{display:block;padding:0;background:white}
.mobile-photo-first .mpf .vds-footer-links>a{border:0;background:none;display:flex;gap:10px;align-items:center;justify-content:center;flex-direction:column;color:var(--navy);font-weight:800;font-size:9px;min-height:68px;padding:8px 0;text-decoration:none}
.mobile-photo-first .mpf .vds-footer-links svg{width:25px;height:25px;color:#397af4}
.mobile-photo-first .mpf .payment-assumptions{margin:0;padding:0;border:0;background:none;color:#8691a3}
.mobile-photo-first .mpf .vds-location{padding:0;border:0;background:none}
.mobile-photo-first .mpf .vds-location-card{display:block}
.mobile-photo-first .mpf .vds-location-map-wrap{height:160px;min-height:0}
.mobile-photo-first .mpf .gallery-thumb:active{transform:none}
.mobile-photo-first .mpf .round-control.active{background:var(--red);color:white}
@media(prefers-reduced-motion:reduce){.mobile-photo-first .mpf *{transition:none!important}}
}

/* Keep the photo-first treatment inside the full-page vehicle route. */
@media(max-width:640px){
.vehicle-detail-overlay.is-page.mobile-photo-first .vehicle-detail-panel{max-height:none!important;border-radius:0!important;overflow:visible!important}
}
