/* Approved premium direction: original ROMCARS identity and inventory retained. */
:root{--max:1320px;--mobile-actions-height:0px}
body[data-page] .header-inner{height:76px}
body[data-page=home] .home-hero{position:relative;width:min(var(--max),calc(100% - 80px));margin:18px auto 0;border-radius:16px;overflow:hidden;background-image:linear-gradient(90deg,#061b3500 22%,#061b3525 46%,#071d34eb 74%,#071d34 100%),url('hero-visual-hebrew.webp');background-position:center,center 43%}
body[data-page=home] .hero-inner{width:100%;min-height:370px;padding-inline:36px}
body[data-page=home] .hero-content{width:46%;padding:32px 0 40px}
body[data-page=home] .hero-kicker{font-size:14px;color:#c4d8ec;margin-bottom:20px}
body[data-page=home] .home-hero h1{font-size:clamp(46px,4.6vw,66px);line-height:1.09;margin-bottom:16px}
body[data-page=home] .home-hero h1 span{color:#38a1ff}
body[data-page=home] .home-hero p{font-size:20px;margin-bottom:26px;max-width:none}
.hero-actions{align-items:center;gap:24px}
body[data-page=home] .hero-actions .btn{min-height:50px;padding:12px 24px;font-size:16px}
.hero-finance{display:inline-flex;gap:8px;align-items:center;font-size:15px;color:#e0edfa;text-decoration:underline;text-underline-offset:5px}
.hero-finance .icon{width:17px}
.hero-caption{position:absolute;bottom:12px;left:16px;padding:2px 7px;border-radius:4px;background:#071b34b8;font-size:11px;color:#fff}
body[data-page=home] .hero-search-wrap{margin-top:24px}
body[data-page=home] .home-search-card{grid-template-columns:1fr;gap:16px;padding:22px 24px;border-radius:14px;box-shadow:0 5px 20px #102d4c04}
body[data-page=home] .search-intro h2{font-size:23px}
.search-row{grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:16px}
.search-brand{order:0}.search-fuel{order:1}.search-budget{order:2}.search-year{order:3}.search-submit{order:4}
.search-advanced{display:contents}
body[data-page=home] .home-search-card select{min-height:48px;font-size:16px}
body[data-page=home] .search-submit{min-height:48px;font-size:16px;margin:0;padding-inline:24px;grid-column:auto}
.advanced-toggle{display:none}
body[data-page=home] .quick-needs{gap:0;background:#f5f9fd;border:1px solid #eef3f8;border-radius:12px;margin-top:14px;overflow:hidden}
body[data-page=home] .quick-need{background:transparent;border:0;border-radius:0;min-height:84px;padding:12px 18px;gap:12px;position:relative}
.quick-need+.quick-need:before{content:'';position:absolute;right:0;height:34px;width:1px;background:#dce6f0}
body[data-page=home] .quick-need>.icon{display:none}
body[data-page=home] .quick-need[aria-pressed=true]{background:#e8f3ff;box-shadow:inset 0 -2px var(--brand)}
body[data-page=home] .quick-need strong{font-size:15px}
body[data-page=home] .quick-need small{font-size:12px}
body[data-page=home] .need-icon{width:45px;height:36px;stroke:#325a82}
body[data-page=home] img.need-icon-image{width:64px;height:40px;object-fit:contain;flex:none}
body[data-page=home] .home-inventory{padding-top:38px;padding-bottom:48px}
body[data-page=home] .home-inventory h2{font-size:36px}
body[data-page=home] .home-inventory .section-head{margin-bottom:12px}
.home-inventory-tools{border:0;margin-bottom:18px;align-items:center}
body[data-page=home] .home-collections{gap:8px}
body[data-page=home] .home-collections button{padding:8px 18px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:15px;min-height:42px}
.home-collections button:after{display:none}
body[data-page=home] .home-collections button[aria-pressed=true]{color:var(--brand-dark);background:#f4f9ff;border-bottom:2px solid var(--brand);font-weight:600}
body[data-page=home] .home-results-count{padding:0;font-size:14px}
body[data-page=home] .home-inventory .cars-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body[data-page] .car-card{border-radius:10px;display:flex;flex-direction:column;box-shadow:0 2px 10px #112a4303}
body[data-page] .car-media{aspect-ratio:1.45}
body[data-page] .car-body{padding:17px 18px 10px;flex:1;display:flex;flex-direction:column}
body[data-page] .car-title,body[data-page] .inventory-results .car-title{font-size:23px;line-height:1.3;min-height:0;margin-bottom:8px}
body[data-page] .car-sub{font-size:14px;line-height:1.7;white-space:normal;margin-bottom:16px;color:#58728c}
body[data-page] .car-bottom{padding-top:16px;border-top:1px solid #edf1f5;margin-top:auto;min-height:50px;gap:8px;flex-wrap:wrap}
body[data-page] .price{font-size:28px;line-height:1.25}
body[data-page] .card-link{font-size:14px;gap:5px;min-height:36px}
body[data-page] .favorite{width:38px;height:38px;z-index:3;top:12px;left:12px}
body[data-page] .favorite .icon{width:20px;height:20px}
body[data-page] .car-badge{font-size:12px;font-weight:500;top:14px;right:14px}
.compare-select{display:flex;align-items:center;gap:8px;color:#5d7288;cursor:pointer;font-size:13px;min-height:40px;width:fit-content}
.compare-select input{width:17px;height:17px;min-height:0;margin:0;accent-color:var(--brand);padding:0;flex:none}
.card-photo-count{display:flex;align-items:center;gap:4px}
.card-photo-count .icon{width:15px;height:15px}
.quick-needs [data-home-collection=all]{display:none}
.compare-select:has(input:checked){color:var(--brand-dark);font-weight:500}
body[data-page=home] .services-section{background:#fff;padding:0 0 48px}
body[data-page=home] .services-section .section-head{display:none}
.services-grid{gap:0;background:#eff7ff;border:1px solid #e7f1fc;border-radius:16px;padding:26px 6px}
.service-item{position:relative;padding:0 28px;border:0}
.service-item+.service-item{border-right:1px solid #cfdfef}
.service-top{position:absolute;top:2px;right:28px;margin:0}
.service-top>span:last-child{display:none}
body[data-page] .service-item h3{font-size:23px;margin:0 42px 10px 0}
body[data-page] .service-item p{font-size:15px;line-height:1.7;margin-bottom:12px}
body[data-page] .service-item .link-arrow{font-size:14px}
.buying-section{background:#f8fafc;border-block:1px solid #edf1f5}
.buying-layout{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}
.buying-layout h2{font-size:36px;line-height:1.3;margin-bottom:20px}
.buying-layout>div>p{max-width:490px;margin-bottom:22px;font-size:17px;line-height:1.85}
.buying-steps{list-style:none;padding:0;margin:0;display:grid;gap:25px}
.buying-steps li{display:flex;gap:20px;align-items:start}
.buying-steps li>span{font-size:15px;border:1px solid #d9e6f3;border-radius:50%;width:42px;height:42px;flex:none;display:grid;place-items:center;color:var(--brand-dark);background:#fff}
.buying-steps h3{font-size:20px;margin:4px 0 7px}
.buying-steps p{font-size:15px;line-height:1.8}
/* Vehicle page: large gallery, persistent decision panel, navigable details. */
body[data-page=car] .detail-section{background:#fff;padding-top:24px}
.detail-wrap{grid-template-columns:minmax(0,1.7fr) minmax(340px,1fr);gap:26px}
.detail-gallery-column{display:contents}
.detail-gallery-column>.gallery-card{grid-column:1;grid-row:1}
.detail-gallery-column>.info-grid{grid-column:1;grid-row:2;margin:0}
body[data-page=car] .detail-summary{grid-column:2;grid-row:1 / span 2;position:sticky;top:98px;border-radius:12px;padding:24px;align-self:start}
.gallery-card{border-radius:12px;border:0;overflow:visible;min-width:0}
.gallery-main{border-radius:10px;overflow:hidden}
.gallery-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:10px 0 0;gap:10px;overflow:visible}
.gallery-thumb{width:100%;height:auto;aspect-ratio:1.5;opacity:.8;border-radius:7px}
.gallery-all{background:#f0f6fd;border:1px solid #dce8f4;border-radius:7px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:14px;min-width:0}
.gallery-all .icon{color:#3778b7;width:25px;height:25px;margin-bottom:4px}
.gallery-all small{color:var(--muted);font-size:12px}
body[data-page=car] .detail-summary h1{font-size:clamp(28px,2.6vw,38px)}
body[data-page=car] .detail-price{color:var(--brand);padding:15px 0 18px;font-size:42px}
.detail-specs{padding:16px 0;margin-bottom:0;border-top:0;gap:0}
.detail-specs.secondary{border-top:0;border-bottom:0;margin-bottom:18px;padding:14px 0 0}
body[data-page=car] .detail-spec strong{font-size:18px;line-height:1.4}
body[data-page=car] .detail-specs.secondary strong{font-size:15px}
.detail-spec span{margin-top:4px;display:block}
body[data-page=car] .detail-actions{grid-template-columns:1fr}
body[data-page=car] .detail-actions .btn{min-height:49px;font-size:16px}
.finance-teaser{display:flex;align-items:center;gap:10px;margin-top:14px;padding:13px;background:#edf6ff;border:1px solid #d9eafb;border-radius:8px;font-size:14px;font-weight:500;color:var(--brand-dark)}
.finance-teaser>.icon:last-child{margin-inline-start:auto;width:18px}
.detail-service-links{margin-top:16px;padding-top:16px}
.detail-service-links .share-car{padding:0;text-decoration:none;display:flex;align-items:center;gap:6px;font-size:inherit}
.lightbox-thumbs{display:flex;gap:8px;overflow-x:auto;padding:8px 16px;overscroll-behavior-x:contain;scrollbar-width:thin}
.lightbox-thumbs .gallery-thumb{flex:0 0 70px;height:50px;width:70px}
.lightbox-stage{height:min(58vh,650px)}
.detail-summary>.compare-select{margin-top:10px}
.detail-summary .detail-favorite{position:static;width:38px;height:38px}
.detail-summary .legal-note{margin-top:12px}
.vehicle-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);padding-top:0;margin-bottom:20px;overflow-x:auto;scrollbar-width:thin}
.vehicle-tabs button{flex:1;white-space:nowrap;padding:16px 12px;font-size:16px;background:#fff;border-bottom:3px solid transparent;min-height:54px}
.vehicle-tabs button[aria-selected=true]{color:var(--brand);border-color:var(--brand);font-weight:500}
.vehicle-panel .panel+.panel{margin-top:20px}
.vehicle-panel .panel{border-radius:10px}
.vehicle-panel .spec-list{grid-template-columns:1fr 1fr}
.detail-help{background:var(--navy);border-radius:10px;padding:24px;margin-top:20px;color:#fff}
.detail-help h2{font-size:25px;margin-bottom:10px}
.detail-help p{color:#d1e1f1;margin-bottom:16px;font-size:15px}
/* Comparison is shared across home, stock and vehicle pages. */
.compare-tray{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:95;width:min(940px,calc(100% - 40px));background:#fff;border:1px solid #d9e5f1;border-radius:12px;box-shadow:0 8px 40px #0a27452b;padding:12px 18px;display:flex;gap:16px;align-items:center}
.compare-tray-heading{display:flex;gap:9px;align-items:center;white-space:nowrap}
.compare-tray-heading strong{display:block;font-size:15px}.compare-tray-heading small{font-size:12px;color:var(--muted)}
.compare-tray-cars{display:flex;gap:8px;flex:1}
.compare-mini{position:relative;width:70px;height:48px;border-radius:5px;overflow:hidden;background:#edf2f7}
.compare-mini img{width:100%;height:100%;object-fit:cover}
.compare-mini button{position:absolute;inset:0;background:#06203a70;color:#fff;display:grid;place-items:center;opacity:0}
.compare-mini:hover button,.compare-mini:focus-within button{opacity:1}
.compare-mini button .icon{width:20px}
.compare-tray .btn{min-height:44px}
.compare-tray .btn:disabled{background:#dce8f3;color:#506b88;box-shadow:none;cursor:default;transform:none}
.compare-clear{background:none;text-decoration:underline;text-underline-offset:3px;font-size:13px;min-height:44px;color:var(--muted)}
body.has-comparison{padding-bottom:110px}
body.has-comparison .toast{bottom:130px}
.compare-dialog{border:0;border-radius:16px;width:min(1100px,calc(100vw - 40px));max-width:none;padding:0;color:var(--ink);max-height:90dvh;overflow:auto;background:#fff}
.compare-dialog::backdrop{background:#04162ccc;backdrop-filter:blur(4px)}
.compare-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 28px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:2}
.compare-dialog-head h2{font-size:27px;margin-bottom:5px}
.compare-dialog-head p{font-size:14px}
.compare-table-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding:20px 28px}
.compare-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:15px}
.compare-table th,.compare-table td{padding:14px 16px;text-align:right;vertical-align:top;border-bottom:1px solid var(--line);border-left:1px solid var(--line)}
.compare-table th:last-child,.compare-table td:last-child{border-left:0}
.compare-table th[scope=row]{width:120px;font-weight:500;color:var(--muted);background:#f8fafc}
.compare-table thead th:first-child{width:120px}
.compare-table thead th{padding-top:0;font-weight:500}
.compare-vehicle{position:relative}
.compare-vehicle img{width:100%;height:auto;aspect-ratio:1.45;object-fit:cover;border-radius:8px;margin-bottom:13px}
.compare-vehicle h3{font-size:20px;line-height:1.4;margin-bottom:6px}
.compare-remove{position:absolute;top:8px;left:8px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:0 2px 10px #0002}
.compare-remove .icon{width:17px;height:17px}
.compare-table .compare-price{font-size:23px;color:var(--brand-dark);font-weight:700;white-space:nowrap}
.compare-table tbody tr:nth-child(even) td{background:#fcfdff}
.compare-note{padding:0 28px 24px;font-size:13px;line-height:1.8}
.compare-mobile{display:none}
.compare-table a.btn{white-space:normal;padding:10px;font-size:14px;width:100%}
@media(max-width:1200px){
 .hero-actions{gap:16px;flex-wrap:wrap}
 body[data-page=home] .hero-content{width:48%}
 body[data-page=home] .quick-need{padding:12px;gap:8px}
 body[data-page=home] .quick-need strong{font-size:14px}
 body[data-page=home] .need-icon{width:36px}
 body[data-page=home] img.need-icon-image{width:48px}
 body[data-page] .car-title,body[data-page] .inventory-results .car-title{font-size:21px}
 body[data-page] .inventory-results .cars-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .buying-layout{gap:50px}
 .detail-wrap{grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);gap:22px}
 body[data-page=car] .detail-summary{padding:20px}
}
@media(max-width:1050px){
 .mobile-menu,.nav-backdrop{top:76px}
 body[data-page=home] .home-inventory .cars-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-page=home] .hero-inner{min-height:345px;padding-inline:28px}
 body[data-page=home] .home-hero p{font-size:17px}
 body[data-page=home] .home-hero h1{font-size:50px}
 body[data-page=home] .hero-actions .btn{font-size:15px;padding-inline:18px}
 .search-row{gap:10px}
 body[data-page=home] .search-submit{padding-inline:18px}
 body[data-page] .car-title{font-size:23px}
 .services-grid{padding:24px 0}.service-item{padding:0 20px}.service-top{right:20px}
 body[data-page] .service-item h3{font-size:21px;margin-right:38px}
}
@media(max-width:800px){
 body[data-page=home] .home-hero{width:calc(100% - 36px);margin-top:16px}
 body[data-page=home] .hero-inner{padding-inline:24px}
 body[data-page=home] .hero-content{width:57%}
 body[data-page=home] .hero-kicker{font-size:12px}
 .hero-finance{font-size:14px}
 body[data-page=home] .quick-need{flex-direction:column;text-align:center}
 .search-row{grid-template-columns:1fr 1fr}
 .search-advanced{display:grid;grid-template-columns:1fr 1fr;gap:12px;grid-column:1/-1;order:3}
 .search-brand{order:0}.search-budget{order:1}
 body[data-page=home] .search-submit{grid-column:1/-1;order:4}
 .advanced-toggle{display:flex;align-items:center;justify-content:center;gap:8px;background:none;color:var(--brand-dark);min-height:40px;font-size:15px}
 .advanced-toggle .icon{width:18px}
 .buying-layout{grid-template-columns:1fr;gap:32px}
 .buying-layout h2{font-size:32px}
 .services-grid{grid-template-columns:1fr;padding:8px 24px}
 .service-item{padding:22px 0}.service-item+.service-item{border-right:0;border-top:1px solid #cfdfef}.service-top{top:24px;right:0}
 body[data-page] .service-item h3{font-size:24px}
 .detail-wrap{display:flex;gap:20px}
 .detail-gallery-column{display:contents}
 body[data-page=car] .detail-summary{position:static;order:1;width:100%}
 .detail-gallery-column>.gallery-card{order:0;width:100%}
 .detail-gallery-column>.info-grid{order:2;width:100%}
 .gallery-thumbs{gap:8px}
 body[data-page=car] .detail-summary h1{font-size:32px}
 body[data-page=car] .detail-actions{grid-template-columns:1fr 1fr}
 body[data-page=car] .detail-actions .btn:first-child{grid-column:auto}
 .compare-tray-cars{display:none}.compare-tray-heading{flex:1}
 .compare-dialog{width:calc(100vw - 24px)}
 .compare-dialog-head{padding:18px}.compare-dialog-head h2{font-size:24px}
 .compare-table-scroll{padding:18px}
 .compare-table{min-width:630px}
 .compare-table[data-count="3"]{min-width:840px}
 .compare-table th[scope=row],.compare-table thead th:first-child{width:100px}
}
@media(max-width:600px){
 :root{--mobile-actions-height:calc(74px + env(safe-area-inset-bottom,0px))}
 body[data-page] .header-inner{height:66px}
 .mobile-menu,.nav-backdrop{top:66px}
 body[data-page=home] .home-hero{width:100%;margin:0;border-radius:0;background-image:linear-gradient(90deg,#061b3500 0%,#061b3510 30%,#061b3590 65%,#061b35ed 100%),url('hero-visual-hebrew.webp');background-position:center,30% center}
 body[data-page=home] .hero-inner{min-height:300px;padding-inline:20px}
 body[data-page=home] .hero-content{width:100%;padding:28px 0 38px}
 body[data-page=home] .hero-kicker{font-size:12px;margin-bottom:14px}
 body[data-page=home] .home-hero h1{font-size:44px;line-height:1.12;margin-bottom:14px}
 body[data-page=home] .home-hero p{font-size:16px;margin-bottom:20px}
 body[data-page=home] .hero-actions .btn{min-height:47px;font-size:15px;padding-inline:20px}
 .hero-finance{display:none}
 .hero-caption{bottom:10px;left:12px;font-size:10px}
 body[data-page=home] .hero-search-wrap{margin-top:18px}
 body[data-page=home] .home-search-card{padding:18px 16px;gap:12px;border-radius:11px}
 body[data-page=home] .search-intro h2{font-size:23px;text-align:center;width:100%;margin-bottom:3px}
 .search-row{gap:12px}
 body[data-page=home] .home-search-card .field label{font-size:14px}
 body[data-page=home] .home-search-card select{font-size:16px;min-height:47px;padding-inline:10px}
 body[data-page=home] .search-submit{min-height:48px;font-size:16px}
 body[data-page=home] .quick-needs{grid-auto-columns:max-content;gap:8px;overflow-x:auto;overflow-y:hidden;background:none;border:0;border-radius:0;padding:0 0 5px;margin-top:14px}
 body[data-page=home] .quick-need{min-height:44px;padding:10px 14px;border-radius:7px;background:#edf3f8;flex-direction:row}
 .quick-needs [data-home-collection=all]{display:flex}
 .quick-need+.quick-need:before{display:none}
 body[data-page=home] .quick-need strong{font-size:14px}
 body[data-page=home] .quick-need small,body[data-page=home] .quick-need .need-icon{display:none}
 body[data-page=home] .quick-need img.need-icon-image{display:block;width:36px;height:26px}
 body[data-page=home] .quick-need[aria-pressed=true]{background:var(--brand);color:#fff;box-shadow:none}
 body[data-page=home] .quick-need[aria-pressed=true] strong{color:#fff}
 body[data-page=home] .home-inventory{padding-top:24px;padding-bottom:36px}
 body[data-page=home] .home-inventory .section-head{gap:10px;margin-bottom:12px}
 body[data-page=home] .home-inventory h2{font-size:28px}
 body[data-page=home] .home-inventory .section-head .link-arrow{font-size:13px}
 .home-inventory-tools{gap:12px;margin-bottom:18px}
 body[data-page=home] .home-collections{gap:7px;overflow-x:auto;padding-bottom:3px;border:0;min-width:0;max-width:100%;width:100%;flex:initial}
 body[data-page=home] .home-collections button{font-size:13px;padding:7px 12px;min-height:38px}
 body[data-page=home] .home-inventory .cars-grid,body[data-page] .inventory-results .cars-grid{grid-template-columns:1fr;gap:20px}
 body[data-page] .car-body{padding:16px 17px 8px}
 body[data-page] .car-title,body[data-page] .inventory-results .car-title{font-size:23px;margin-bottom:7px}
 body[data-page] .car-sub{font-size:14px;margin-bottom:14px}
 body[data-page] .car-bottom{padding-top:13px;min-height:44px}
 body[data-page] .price{font-size:28px}
 body[data-page] .card-link{font-size:14px}
 .compare-select{min-height:42px;font-size:13px}
 .compare-select input{width:18px;height:18px}
 .buying-layout h2{font-size:29px}.buying-layout>div>p{font-size:16px}
 .buying-steps{gap:24px}.buying-steps li{gap:14px}
 .buying-steps h3{font-size:20px}.buying-steps p{font-size:15px}
 body[data-page=car] .detail-summary{padding:22px 18px}
 body[data-page=car] .detail-summary h1{font-size:31px}
 body[data-page=car] .detail-actions{grid-template-columns:1fr}
 body[data-page=car] .detail-price{font-size:40px}
 .gallery-all{font-size:11px;line-height:1.5;gap:0;padding:4px}.gallery-all small{font-size:10px}.gallery-all .icon{width:19px;height:19px;margin-bottom:2px}
 .lightbox-stage{height:calc(100dvh - 200px)}
 .vehicle-tabs button{font-size:14px;padding-inline:10px;min-height:48px}
 .vehicle-panel .spec-list{grid-template-columns:1fr}
 .vehicle-panel .panel{padding:22px 18px}
 .detail-help{padding:22px}
 .mobile-bar{grid-template-columns:1.8fr 1fr 1fr;gap:6px;padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));height:var(--mobile-actions-height);z-index:90;background:#fff}
 body[data-page] .mobile-bar a{font-size:11px;padding:4px;justify-content:center;line-height:1.4}
 body[data-page] .mobile-bar .mobile-call{grid-column:1;grid-row:1;flex-direction:row;gap:8px;background:var(--brand);color:#fff;border-radius:7px;font-size:15px;font-weight:600}
 .mobile-bar .mobile-whatsapp{grid-column:2;grid-row:1;color:#14733f;border-left:1px solid var(--line)}
 .mobile-bar .mobile-stock{grid-column:3;grid-row:1;color:var(--ink)}
 body[data-page] .mobile-bar .mobile-whatsapp .icon{color:#16824a}
 .mobile-bar .mobile-call .icon{width:20px;height:20px}
 .compare-tray{bottom:var(--mobile-actions-height);left:0;transform:none;width:100%;border-radius:10px 10px 0 0;padding:9px 12px;gap:10px;min-height:64px}
 .compare-tray-heading{gap:7px}.compare-tray-heading>.icon{display:none}
 .compare-tray-heading strong{font-size:13px}.compare-tray-heading small{font-size:12px}
 body[data-page] .compare-tray .btn{font-size:14px;padding:9px 16px;min-height:42px}
 .compare-clear{font-size:12px;min-height:42px}
 body.has-comparison{padding-bottom:70px}
 body.has-comparison .toast{bottom:calc(var(--mobile-actions-height) + 80px)}
 body:not(.has-comparison) .toast{bottom:calc(var(--mobile-actions-height) + 15px)}
 .footer-bottom{padding-bottom:calc(var(--mobile-actions-height) + 20px)}
}
/* On narrow screens the modal has one vertical scroll area below its close control. */
@media(max-width:800px){
 .compare-dialog[open]{display:flex;flex-direction:column;width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;overflow:hidden;overscroll-behavior:contain}
 .compare-dialog .compare-desktop{display:none}
 .compare-dialog .compare-mobile{display:block}
 .compare-dialog-head{position:static;flex:none;padding:calc(14px + env(safe-area-inset-top,0px)) 16px 14px;gap:12px;z-index:3}
 .compare-dialog-head h2{font-size:23px;margin-bottom:3px}
 .compare-dialog-head p{font-size:13px}
 #compare-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:140px;flex:1}
 .compare-pair-hint{text-align:center;padding:12px 16px 8px;font-size:13px;color:var(--brand-dark);background:#f4f8fc;line-height:1.7}
 .compare-pair-hint span{color:var(--muted);font-size:12px}
 .compare-mobile-names{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:12px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 4px 10px #18365808}
 .compare-mobile-name{position:relative;min-width:0;padding:12px 10px;align-content:center}
 .compare-mobile-name+div{border-inline-start:1px solid var(--line)}
 .compare-mobile-name h3{font-size:17px;line-height:1.45;letter-spacing:0;overflow-wrap:anywhere}
 .compare-mobile-name>span{font-size:13px;color:var(--muted)}
 .compare-mobile-name .compare-pair-change{display:inline-flex;align-items:center;gap:3px;color:var(--brand-dark);margin-inline-start:10px;font-size:12px}
 .compare-pair-change .icon{width:14px;height:14px;transform:rotate(90deg)}
 .compare-mobile-name select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
 .compare-mobile-name:focus-within{outline:3px solid #59aafa;outline-offset:-3px;border-radius:6px;background:#f4f9ff}
 .compare-mobile-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px 16px 20px}
 .compare-mobile-card{min-width:0;display:grid;grid-template-rows:auto 1fr auto}
 .compare-mobile-photo{position:relative}
 .compare-mobile-photo img{width:100%;height:auto;aspect-ratio:1.45;object-fit:cover;border-radius:8px}
 .compare-mobile-photo .compare-remove{width:44px;height:44px;top:4px;left:4px;background:#fffffff0}
 .compare-mobile-trim{font-size:13px;line-height:1.6;margin:10px 0 6px;overflow-wrap:anywhere}
 .compare-mobile-card .compare-price{text-align:center;font-size:23px;font-weight:700;line-height:1.4;color:var(--brand-dark);white-space:nowrap}
 .compare-mobile-group{margin:0 16px 20px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
 .compare-mobile-group>h3{font-size:16px;line-height:1.5;padding:12px 14px;background:#edf4fb;color:var(--navy);letter-spacing:0}
 .compare-mobile-group dl{margin:0}
 .compare-mobile-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 0 14px}
 .compare-mobile-row+.compare-mobile-row{border-top:1px solid var(--line)}
 .compare-mobile-row dt{grid-column:1/-1;text-align:center;font-size:13px;color:var(--muted);padding:0 10px 7px}
 .compare-mobile-row dd{margin:0;min-width:0;padding:0 12px;font-size:16px;font-weight:500;line-height:1.65;text-align:center;overflow-wrap:anywhere}
 .compare-mobile-row dd+dd{border-inline-start:1px solid var(--line)}
 .compare-mobile-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0 16px 20px}
 body[data-page] .compare-mobile-links .btn{white-space:normal;padding:12px 8px;min-height:48px;font-size:14px;gap:5px}
 .compare-mobile-links .icon{width:18px;height:18px}
 .compare-note{padding:0 16px calc(24px + env(safe-area-inset-bottom,0px));font-size:12px}
 .compare-empty-slot{display:grid;place-items:center;padding:8px}
 .compare-empty-slot button{background:#edf4fb;color:var(--brand-dark);min-height:48px;border-radius:6px;font-size:14px;padding:8px}
 .compare-empty-message{align-self:center;font-size:14px;line-height:1.8}
}
@media(min-width:801px) and (max-height:850px){body[data-page=car] .detail-summary{position:static}}
@media(max-width:360px){
 body[data-page=home] .hero-inner{min-height:292px;padding-inline:16px}
 body[data-page=home] .home-hero h1{font-size:41px}
 body[data-page=home] .search-intro h2{font-size:21px}
 body[data-page=home] .home-search-card{padding:16px 12px}
 body[data-page=home] .home-inventory h2{font-size:27px}
 body[data-page] .car-title,body[data-page] .inventory-results .car-title{font-size:22px}
 body[data-page] .car-body{padding-inline:14px}
 body[data-page] .card-link{font-size:13px}
 body[data-page] .mobile-bar .mobile-call{font-size:13px;gap:5px}
 .vehicle-tabs button{font-size:13px;padding-inline:7px}
}
/* Retain archived vehicle pages without offering unavailable stock for purchase. */
.unavailable-notice{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 28px;padding:24px 28px;border:1px solid #d5dfea;background:#f2f6fb;border-radius:16px;color:#0b2447}
.unavailable-notice h2{font-size:24px;margin:0 0 6px}.unavailable-notice p{margin:0;color:#52657c;line-height:1.65}
.unavailable-notice .btn{flex-shrink:0}.archived-price-label{display:block;font-size:14px;font-weight:400;color:#64748b;margin-bottom:6px}
@media(max-width:800px){.unavailable-notice{align-items:stretch;flex-direction:column;gap:16px;padding:20px;margin-bottom:20px}.unavailable-notice h2{font-size:22px}.unavailable-notice .btn{width:100%}}

/* Homepage inventory: clearer specifications and actions, with uncropped photos. */
body[data-page=home] .home-car-card{border:1px solid #dce6ef;border-radius:16px;box-shadow:0 3px 12px #102b4605;transition:border-color .2s,box-shadow .2s,transform .2s}
body[data-page=home] .home-car-card .car-media{aspect-ratio:4/3;background:#f0f4f8}
body[data-page=home] .home-car-card .car-media img{object-fit:contain;object-position:center;transform:none}
body[data-page=home] .home-car-card .car-body{padding:20px 20px 0}
body[data-page=home] .home-car-card .car-title{font-size:23px;line-height:1.35;margin-bottom:18px;letter-spacing:-.35px}
body[data-page=home] .home-car-card .card-specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 18px;padding:0;gap:0}
body[data-page=home] .home-car-card .card-specs>div{min-width:0;padding-inline:12px;text-align:center}
body[data-page=home] .home-car-card .card-specs>div:first-child{padding-inline-start:0}
body[data-page=home] .home-car-card .card-specs>div:last-child{padding-inline-end:0}
body[data-page=home] .home-car-card .card-specs>div+div{border-inline-start:1px solid #e3ebf3}
body[data-page=home] .home-car-card .card-specs dt{font-size:12px;line-height:1.5;color:#52677e;margin-bottom:5px}
body[data-page=home] .home-car-card .card-specs dd{margin:0;color:#183650;font-size:17px;font-weight:600;line-height:1.4;white-space:nowrap}
body[data-page=home] .home-car-card .car-bottom{padding:17px 0 18px;min-height:0;gap:10px;border-top:1px solid #e8eef4;flex-wrap:nowrap}
body[data-page=home] .home-car-card .price{font-size:28px;color:#0b2442;white-space:nowrap;letter-spacing:-.6px}
body[data-page=home] .home-car-card .price small{font-size:15px}
body[data-page=home] .home-car-card .card-link{justify-content:center;min-height:44px;padding:9px 13px;border:1px solid #d8e8f8;border-radius:9px;background:#edf5ff;color:#075bb3;font-size:14px;font-weight:600;white-space:nowrap;gap:7px}
body[data-page=home] .home-car-card .card-link .icon{width:17px;height:17px}
body[data-page=home] .home-car-card .card-link:hover{background:#dfedff;border-color:#bad8f5}
body[data-page=home] .home-car-card .card-compare-footer{margin-inline:-20px;padding-inline:20px;border-top:1px solid #e5edf5;background:#f7f9fc;transition:background .2s}
body[data-page=home] .home-car-card .compare-select{width:100%;min-height:46px;gap:9px;font-size:13px;color:#425e78}
body[data-page=home] .home-car-card .compare-select input{width:19px;height:19px;accent-color:#0668ca}
body[data-page=home] .home-car-card:has(.compare-select input:checked){border-color:#81b6e8}
body[data-page=home] .home-car-card:has(.compare-select input:checked) .card-compare-footer{background:#eaf4ff;border-top-color:#c5ddf5}
body[data-page=home] .home-car-card .compare-select:has(input:checked){color:#075bb3;font-weight:600}
body[data-page=home] .home-car-card .card-compare-footer:focus-within{box-shadow:inset 0 0 0 2px #0668ca}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 body[data-page=home] .home-car-card:hover{transform:translateY(-3px);border-color:#b3cce2;box-shadow:0 12px 28px #14385812}
}
@media(hover:none),(prefers-reduced-motion:reduce){
 body[data-page=home] .home-car-card:hover{transform:none}
}
@media(max-width:1200px) and (min-width:1051px){
 body[data-page=home] .home-car-card .car-body{padding-inline:16px}
 body[data-page=home] .home-car-card .card-compare-footer{margin-inline:-16px;padding-inline:16px}
 body[data-page=home] .home-car-card .price{font-size:25px}
 body[data-page=home] .home-car-card .card-link{font-size:13px;padding-inline:10px;gap:5px}
}
@media(max-width:800px){
 body[data-page=home] .home-car-card .car-body{padding:18px 16px 0}
 body[data-page=home] .home-car-card .card-compare-footer{margin-inline:-16px;padding-inline:16px}
 body[data-page=home] .home-car-card .price{font-size:26px}
 body[data-page=home] .home-car-card .card-link{font-size:13px;padding-inline:10px;gap:5px}
}
@media(max-width:360px){
 body[data-page=home] .home-car-card .car-body{padding:16px 14px 0}
 body[data-page=home] .home-car-card .car-title{font-size:22px}
 body[data-page=home] .home-car-card .card-specs>div{padding-inline:8px}
 body[data-page=home] .home-car-card .card-specs dd{font-size:16px}
 body[data-page=home] .home-car-card .price{font-size:24px}
 body[data-page=home] .home-car-card .card-link{padding-inline:8px}
 body[data-page=home] .home-car-card .card-compare-footer{margin-inline:-14px;padding-inline:14px}
}

/* Home: the buying journey, with a dedicated illustrative showroom scene. */
body[data-page=home] .buying-section{background:#fff;border:0;padding-block:24px 32px}
body[data-page=home] .buying-layout{
 position:relative;isolation:isolate;overflow:hidden;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:64px;
 padding:48px;border:1px solid #24425e;border-radius:24px;color:#fff;
 background:radial-gradient(ellipse at 0 0,#153e61 0,transparent 65%),#091c31;
 box-shadow:0 18px 46px #0b203812;
}
body[data-page=home] .buying-layout::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:url('values-contours.svg') left top/auto 100% no-repeat;opacity:.5;
}
body[data-page=home] .buying-intro{min-width:0;position:relative;align-self:stretch}
body[data-page=home] .buying-layout .eyebrow{color:#a6d3ff;margin-bottom:16px}
body[data-page=home] .buying-layout h2{color:#fff;font-size:36px;line-height:1.35;margin-bottom:18px}
body[data-page=home] .buying-layout>.buying-intro>p{color:#cbd9e7;font-size:17px;line-height:1.85;margin-bottom:20px}
body[data-page=home] .buying-layout .link-arrow{position:relative;z-index:2;color:#a6d3ff;min-height:44px;width:fit-content;text-decoration:underline;text-decoration-color:#a6d3ff66;text-underline-offset:6px}
body[data-page=home] .buying-layout .link-arrow:hover{color:#fff;text-decoration-color:currentColor}
body[data-page=home] .buying-layout .link-arrow:focus-visible{outline:3px solid #a6d3ff;outline-offset:5px;box-shadow:none;border-radius:3px}
body[data-page=home] .buying-scene{position:relative;height:290px;margin:0 -48px -48px -20px;overflow:hidden;pointer-events:none}
body[data-page=home] .buying-scene img{width:100%;height:100%;object-fit:cover;object-position:center bottom}
body[data-page=home] .buying-scene::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#091c31,transparent 30%,transparent 86%,#091c3155),linear-gradient(90deg,#091c31,transparent 14%);pointer-events:none}
body[data-page=home] .buying-scene figcaption{position:absolute;right:24px;bottom:16px;z-index:1;color:#e0eaf5;font-size:11px;line-height:1.6;background:#091c31db;padding:3px 8px;border-radius:4px}
body[data-page=home] .buying-steps{align-self:center;position:relative;gap:0;padding:30px 26px;background:#0c233bf2;border:1px solid #92c5ed30;border-radius:18px}
body[data-page=home] .buying-steps li{position:relative;gap:18px;padding-bottom:28px}
body[data-page=home] .buying-steps li:last-child{padding-bottom:0}
body[data-page=home] .buying-steps li:not(:last-child)::before{content:"";position:absolute;right:21px;top:48px;bottom:6px;width:1px;background:linear-gradient(#5993c17a,#5993c126)}
body[data-page=home] .buying-steps li>span{position:relative;z-index:1;background:#153b5c;border-color:#5b99c86e;color:#b9dfff;font-size:15px;font-weight:500}
body[data-page=home] .buying-steps h3{color:#fff;font-size:21px;line-height:1.4;margin:5px 0 8px}
body[data-page=home] .buying-steps p{color:#cbd9e7;font-size:16px;line-height:1.85}
@media(max-width:1050px){
 body[data-page=home] .buying-layout{padding:36px;gap:36px}
 body[data-page=home] .buying-layout h2{font-size:32px}
 body[data-page=home] .buying-scene{height:250px;margin-inline:-36px -12px;margin-bottom:-36px}
 body[data-page=home] .buying-steps{padding:26px 22px}
}
@media(max-width:800px){
 body[data-page=home] .buying-layout{grid-template-columns:1fr;gap:8px;padding:32px}
 body[data-page=home] .buying-layout>.buying-intro>p{max-width:520px}
 body[data-page=home] .buying-scene{height:300px;margin:0 -32px}
 body[data-page=home] .buying-scene::after{background:linear-gradient(180deg,#091c31,transparent 30%,transparent 78%,#091c31)}
 body[data-page=home] .buying-steps{padding:28px;align-self:auto}
}
@media(max-width:600px){
 body[data-page=home] .buying-section{padding-block:16px 12px}
 body[data-page=home] .buying-layout{padding:28px 22px 22px;gap:4px;border-radius:20px;background:radial-gradient(ellipse at 0 0,#153e61 0,transparent 38%),#091c31}
 body[data-page=home] .buying-layout h2{font-size:29px;line-height:1.4}
 body[data-page=home] .buying-layout>.buying-intro>p{font-size:16px}
 body[data-page=home] .buying-layout .eyebrow{font-size:12px;margin-bottom:14px}
 body[data-page=home] .buying-scene{height:auto;aspect-ratio:1.7;margin:4px -22px 0}
 body[data-page=home] .buying-scene figcaption{right:16px;bottom:12px;font-size:10px}
 body[data-page=home] .buying-steps{padding:22px 16px;border-radius:14px}
 body[data-page=home] .buying-steps li{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px 12px;align-items:center;padding-bottom:20px}
 body[data-page=home] .buying-steps li+li{padding-top:20px;border-top:1px solid #92c5ed26}
 body[data-page=home] .buying-steps li>div{display:contents}
 body[data-page=home] .buying-steps li>span{width:36px;height:36px;font-size:13px}
 body[data-page=home] .buying-steps li:not(:last-child)::before{display:none}
 body[data-page=home] .buying-steps h3{font-size:20px;margin:0}
 body[data-page=home] .buying-steps p{grid-column:1/-1;font-size:15px;line-height:1.85}
}

/* About: a quiet automotive backdrop for the existing values section. */
body[data-page=about] .values-section{background:#fff;padding-top:12px}
body[data-page=about] .values-section>.container{
 position:relative;isolation:isolate;overflow:hidden;padding:52px 48px 44px;
 border:1px solid #24425e;border-radius:24px;color:#fff;
 background:radial-gradient(ellipse at 0 0,#16466e 0,transparent 58%),linear-gradient(115deg,#0d2b47,#091c31 72%);
 box-shadow:0 18px 46px #0b203812;
}
body[data-page=about] .values-section>.container::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:url('values-contours.svg') left top/auto 100% no-repeat;
}
body[data-page=about] .values-section>.container::after{
 content:"";position:absolute;inset:0 12% auto;height:1px;pointer-events:none;
 background:linear-gradient(90deg,transparent,#71baff88,transparent);
}
body[data-page=about] .values-section .eyebrow{display:flex;align-items:center;gap:10px;color:#95ccff;margin-bottom:12px}
body[data-page=about] .values-section .eyebrow::before{content:"";width:26px;height:2px;background:#65b6ff;border-radius:2px}
body[data-page=about] .values-section h2{color:#fff;margin-bottom:38px}
body[data-page=about] .values-section .services-grid{grid-template-columns:repeat(3,minmax(0,1fr));background:#0d243acc;border-color:#92c5ed30;padding:28px 4px;border-radius:16px;gap:0}
body[data-page=about] .values-section .service-item{padding:0 28px;border-top:0}
body[data-page=about] .values-section .service-item+.service-item{border-inline-start:1px solid #92c5ed30}
body[data-page=about] .values-section .service-item>.icon{width:32px;height:32px;color:#8cc9ff;margin-bottom:22px}
body[data-page=about] .values-section .service-item h3{color:#fff;font-size:23px;line-height:1.4;margin:0 0 10px}
body[data-page=about] .values-section .service-item p{color:#cbd9e7;font-size:16px;line-height:1.85;margin:0;max-width:340px}
@media(max-width:900px){
 body[data-page=about] .values-section>.container{padding:36px 28px 28px}
 body[data-page=about] .values-section .service-item{padding-inline:18px}
 body[data-page=about] .values-section .service-item h3{font-size:21px}
}
@media(max-width:600px){
 body[data-page=about] .values-section{padding-top:4px}
 body[data-page=about] .values-section>.container{padding:30px 22px 22px;border-radius:20px;background:radial-gradient(ellipse at 0 0,#16466e 0,transparent 48%),#091c31}
 body[data-page=about] .values-section>.container::before{background-size:auto 450px;opacity:.65}
 body[data-page=about] .values-section h2{font-size:30px;line-height:1.35;margin-bottom:26px}
 body[data-page=about] .values-section .services-grid{grid-template-columns:1fr;padding:0 20px}
 body[data-page=about] .values-section .service-item{padding:24px 0}
 body[data-page=about] .values-section .service-item+.service-item{border-inline-start:0;border-top:1px solid #92c5ed30}
 body[data-page=about] .values-section .service-item>.icon{width:29px;height:29px;margin-bottom:15px}
 body[data-page=about] .values-section .service-item h3{font-size:22px}
}
