/* /style.css */
:root{--navy:#122c53;--navy-hover:#203f6b;--ink:#202124;--muted:#62656a;--bg:#edeef1;--line:#d4d6db;--white:#fff}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:15px Arial,Helvetica,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button{background:none;border:0;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #4c84c7;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #527aac;outline-offset:1px}header{background:#fff;border-bottom:1px solid #dfe0e3;position:sticky;top:0;z-index:20}.header-inner{max-width:1440px;min-height:82px;padding:0 30px;display:flex;align-items:center;gap:16px;margin:auto}.brand{display:inline-flex;align-items:center;gap:0;font-size:30px;font-weight:900;letter-spacing:-1.5px;color:var(--navy);white-space:nowrap}.brand-mark{display:inline-block;width:12px;height:25px;background:var(--navy);border-radius:2px;margin-right:5px;box-shadow:inset -4px 0 #58718f}.brand-caption{font-size:11px;line-height:1.25;max-width:90px}nav{display:flex;gap:28px;margin-left:auto}.nav-item{position:relative}.nav-item>button{font-size:16px;font-weight:700;padding:28px 0}.nav-item>button span{margin-left:5px}.dropdown{display:none;position:absolute;top:70px;left:-20px;background:white;border:1px solid var(--line);box-shadow:0 12px 30px #14253b20;border-radius:8px;width:270px;padding:20px;z-index:25}.dropdown.open{display:grid;gap:16px}.dropdown strong{font-size:13px;color:var(--muted)}.dropdown a:hover{color:var(--navy);text-decoration:underline}.header-actions{display:flex;gap:10px;align-items:center;margin-left:30px}.icon-button{padding:10px;position:relative;display:inline-flex}.icon{width:22px;height:22px;stroke:currentColor;stroke-width:1.7;fill:none;vertical-align:middle}.login,.primary{background:var(--navy);color:#fff;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:bold;padding:13px 21px;border:1px solid var(--navy)}.login:hover,.primary:hover{background:var(--navy-hover)}.login{font-size:14px;padding:12px 17px}.mobile-menu{display:none}#favcount:not(:empty){position:absolute;right:0;top:0;background:var(--navy);border-radius:20px;font-size:10px;color:white;padding:2px 4px}.page{max-width:1320px;margin:auto;padding:24px 28px 60px}.search-shell{background:white;border:1px solid #d3d5da;border-radius:17px;overflow:hidden;box-shadow:0 2px 5px #121f3505}.search-intro{text-align:center;padding:29px 62px 28px}.search-intro h1{font-size:29px;letter-spacing:-.7px;margin:0 0 22px;font-weight:700}.natural-search{display:flex;align-items:center;border:1px solid #8c9097;padding:9px 12px 9px 20px;border-radius:12px;gap:12px;max-width:1080px;margin:0 auto}.natural-search input{border:0;flex:1;padding:9px 0;min-width:0;font-size:17px;background:transparent;outline:none}.natural-search .primary{padding:10px 13px}.search-hint{font-size:12px;color:#5b626d;background:#edf1f6;display:inline-block;border-radius:4px;padding:7px 10px;margin-top:18px}.search-lower{border-top:1px solid var(--line);display:flex}.category-rail{width:94px;flex-shrink:0;background:#f6f6f8;border-right:1px solid var(--line);display:flex;flex-direction:column}.category-rail button{flex:1;min-height:47px;border-bottom:1px solid var(--line);color:#686b72;position:relative}.category-rail button:last-child{border:0}.category-rail button.active{background:white;color:var(--navy)}.category-rail button.active:before{content:'';width:4px;position:absolute;left:0;top:0;bottom:0;background:var(--navy)}.category-rail .icon{width:30px;height:27px}.basic-form{padding:23px 24px 20px;flex:1;min-width:0}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 20px}label.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:bold;min-width:0}select,input[type=text],input[type=search],input[type=number],input[type=email],input[type=tel],textarea{width:100%;border:1px solid #afb2ba;border-radius:6px;background:white;height:43px;padding:10px 12px;color:var(--ink);font-size:14px;font-weight:normal}select{background:linear-gradient(90deg,#fff calc(100% - 32px),#f0f1f3 0);cursor:pointer}select:disabled{color:#90939a;background:#f5f5f6}.segmented{display:flex;height:43px;border:1px solid #aaaeb7;border-radius:6px;overflow:hidden}.segmented button{flex:1;background:#fff;font-size:14px;font-weight:normal}.segmented button.active{border:2px solid var(--navy);border-radius:5px;color:var(--navy);font-weight:700;background:#f5f7fa}.search-submit{align-self:end;width:100%;height:43px;font-size:14px;padding:8px}.filter-bottom{display:flex;align-items:center;gap:20px;margin-top:21px}.check{display:flex;align-items:center;gap:7px;font-size:13px;cursor:pointer}.check input{accent-color:var(--navy);width:18px;height:18px}.filter-bottom .spacer{flex:1}.text-button{font-size:13px;font-weight:600;display:flex;align-items:center;gap:7px;padding:5px 0}.text-button .icon{width:18px;height:18px}.section{margin-top:32px}.section-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.section-top h2{font-size:25px;letter-spacing:-.5px;margin:0}.section-top>a{font-weight:bold;font-size:14px;text-decoration:underline}.section p.sub{color:var(--muted);margin-top:8px}.tabs{display:flex;gap:23px;border-bottom:1px solid #d2d4d9;margin-bottom:20px}.tabs button{padding:8px 2px 13px;color:var(--muted);font-weight:bold;border-bottom:3px solid transparent}.tabs button.active{color:var(--navy);border-color:var(--navy)}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.car-card{background:#fff;border:1px solid #d6d8dd;border-radius:10px;overflow:hidden;position:relative;transition:box-shadow .15s,transform .15s}.car-card:hover{box-shadow:0 6px 20px #15284415;transform:translateY(-2px)}.car-photo{width:100%;height:175px;object-fit:cover;background:#dfe4e9;display:block}.image-wrap{position:relative}.photo-caption{position:absolute;bottom:7px;left:10px;background:#ffffffeb;padding:3px 6px;border-radius:3px;font-size:10px;color:#545964}.favorite{position:absolute;top:10px;right:10px;border-radius:50%;background:#fff;width:35px;height:35px;display:grid;place-items:center;z-index:1;box-shadow:0 1px 5px #0002}.favorite.on{color:var(--navy);background:#dfe9f5}.favorite.on svg{fill:currentColor}.car-body{padding:16px}.car-body h3{font-size:17px;margin:0 0 7px}.variant{font-size:12px;color:var(--muted);margin-bottom:14px}.price{font-size:24px;font-weight:bold;letter-spacing:-.7px}.vat{font-size:11px;color:var(--muted);margin-top:4px}.specs{font-size:12px;display:flex;flex-wrap:wrap;gap:7px 10px;line-height:1.5;margin:16px 0}.dealer-line{border-top:1px solid #e7e8eb;padding-top:12px;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:5px}.dealer-line .icon{width:14px;height:14px}.pitch{display:flex;align-items:center;justify-content:space-between;padding:27px 30px;background:#dce4ee;border-radius:12px;border:1px solid #ccd6e3;margin-top:28px}.pitch h2{margin:0 0 8px;font-size:23px}.pitch p{margin:0;color:#45536a;font-size:14px}.category-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.category-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:24px;display:flex;align-items:center;gap:17px}.category-card .icon{width:40px;height:40px;color:var(--navy)}.category-card strong{display:block;margin-bottom:7px}.category-card small{color:var(--muted)}footer{background:white;border-top:1px solid var(--line);display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px;padding:40px max(28px,calc((100vw - 1264px)/2));font-size:13px}footer>div{display:flex;flex-direction:column;gap:12px}footer p{margin:0;color:var(--muted);line-height:1.6}footer .brand{font-size:25px}.footer-bottom{grid-column:1/-1;flex-direction:row;border-top:1px solid var(--line);padding-top:20px;justify-content:space-between;color:var(--muted);font-size:11px}.breadcrumb{display:flex;gap:9px;font-size:12px;color:var(--muted);margin:0 0 21px}.results-layout{display:grid;grid-template-columns:270px 1fr;gap:25px}.sidebar{background:white;border:1px solid var(--line);border-radius:9px;padding:20px;height:max-content}.sidebar h3{margin:0 0 20px;display:flex;justify-content:space-between;font-size:18px}.sidebar .field{margin-bottom:17px}.sidebar .check{margin:15px 0}.sidebar details{border-top:1px solid var(--line);padding:16px 0}.sidebar summary{cursor:pointer;font-weight:bold}.sidebar details .check{font-weight:normal}.sidebar .primary{width:100%;margin-top:12px}.results-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.results-title h1{font-size:26px;margin:0 0 5px}.results-title p{font-size:12px;color:var(--muted);margin:0}.outline{border:1px solid #a7acb6;padding:11px 16px;border-radius:6px;background:white;font-weight:600;display:inline-flex;align-items:center;gap:7px}.sortbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;font-size:13px}.sortbar select{width:200px;height:38px}.result-list{display:grid;gap:16px}.result-list .car-card{display:grid;grid-template-columns:285px 1fr}.result-list .car-photo{height:230px}.result-list .car-body{padding:22px}.result-list .car-body h3{font-size:21px}.result-list .price{float:right;margin-top:-48px}.result-list .vat{display:none}.result-list .specs{font-size:13px;margin:22px 0}.empty{background:white;border:1px solid var(--line);padding:60px 30px;text-align:center;border-radius:12px}.empty .icon{width:42px;height:42px;color:#60728b}.empty h2{font-size:24px}.empty p{color:var(--muted);line-height:1.6}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.chip{background:#e0e6ee;padding:7px 11px;border-radius:5px;font-size:12px}.detail-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:24px}.gallery{position:relative;background:#fff;border-radius:12px;overflow:hidden}.gallery img{width:100%;height:420px;object-fit:cover;display:block}.gallery-overlay{position:absolute;bottom:16px;left:18px;background:#fff;padding:7px 12px;border-radius:5px;font-size:12px}.detail-summary{background:white;border:1px solid var(--line);border-radius:12px;padding:28px}.detail-summary h1{font-size:28px;margin:0 0 12px}.detail-summary .price{font-size:36px;margin-top:25px}.detail-summary .primary,.detail-summary .outline{width:100%;margin-top:12px}.seller-info{padding:18px 0;border-top:1px solid var(--line);margin-top:22px;font-size:14px;line-height:1.8}.white-panel{background:white;border:1px solid var(--line);border-radius:10px;padding:28px;margin-top:22px}.white-panel h2{margin:0 0 25px;font-size:22px}.technical{display:grid;grid-template-columns:1fr 1fr;gap:0 40px}.technical div{padding:13px 0;border-bottom:1px solid #ebebee;display:flex;justify-content:space-between;font-size:14px}.technical span{color:var(--muted)}.equipment{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;font-size:14px}.equipment span:before{content:'✓';margin-right:10px;color:var(--navy);font-weight:bold}.narrow{max-width:900px;margin:auto}.stepper{display:flex;gap:6px;margin:25px 0}.stepper span{flex:1;border-top:4px solid #d6d9df;padding-top:12px;font-size:13px;color:#737b86}.stepper .active{border-color:var(--navy);color:var(--navy);font-weight:bold}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.formgrid .wide{grid-column:1/-1}textarea{height:130px;resize:vertical}.form-actions{display:flex;justify-content:space-between;margin-top:27px;gap:10px}.uploadbox{border:2px dashed #aab5c4;background:#f7f9fb;padding:40px 20px;text-align:center;border-radius:8px}.uploadbox input{margin-top:20px;max-width:100%}.thumbs{display:flex;gap:10px;margin-top:15px;flex-wrap:wrap}.thumbs img{width:100px;height:70px;object-fit:cover;border-radius:5px}.notice{padding:12px 16px;background:#e7edf4;border-radius:6px;font-size:13px;color:#42526b;line-height:1.6}.account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:25px 0}.account-tile{padding:24px;background:white;border:1px solid var(--line);border-radius:9px;display:block}.account-tile h3{margin:15px 0 7px}.account-tile p{color:var(--muted);font-size:13px;line-height:1.6}.saved-row{background:white;border:1px solid var(--line);padding:20px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.prose{line-height:1.8}.prose h1{line-height:1.2}.prose li{margin:10px 0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#122c53;color:white;border-radius:7px;padding:15px 23px;box-shadow:0 5px 20px #0003;z-index:90;display:none;max-width:90vw;font-size:14px}dialog{border:0;border-radius:12px;padding:30px;max-width:500px;width:calc(100% - 30px);box-shadow:0 10px 60px #0003}dialog::backdrop{background:#101e3b70}dialog h2{margin-top:0}dialog .field{margin:18px 0}dialog .close{float:right;font-size:24px;margin-top:-10px}.demo-label{font-size:11px;color:#68717e;margin:14px 0 0;text-align:right}.filter-mobile{display:none}
@media(min-width:1500px){.page{padding-top:32px}.search-intro{padding-top:35px;padding-bottom:32px}.search-intro h1{font-size:31px}.car-photo{height:190px}}
@media(max-width:1100px){.header-inner{padding:0 20px;gap:10px}.brand-caption{display:none}nav{gap:20px}.header-actions{margin-left:12px}.brand{font-size:27px}.page{padding:20px}.search-intro{padding:26px 35px}.basic-form{padding:20px}.filter-grid{gap:15px 12px}.category-rail{width:70px}.car-photo{height:150px}.car-body{padding:13px}.result-list .car-card{grid-template-columns:230px 1fr}.result-list .car-photo{height:235px}.result-list .price{float:none;margin-top:7px}.result-list .specs{margin:12px 0}}
@media(max-width:800px){.header-inner{min-height:68px}.brand{font-size:26px}.header-actions{margin-left:auto;gap:0}.header-actions .login{padding:10px}.login span{display:none}.mobile-menu{display:block}nav{display:none;position:absolute;left:0;right:0;top:68px;background:white;padding:12px 20px;box-shadow:0 8px 10px #0001}nav.visible{display:flex;flex-wrap:wrap}.nav-item>button{padding:12px 0}.dropdown{top:40px}.search-intro{padding:24px 20px}.search-intro h1{font-size:25px}.natural-search{padding:6px 8px 6px 12px}.natural-search input{font-size:14px}.search-lower{display:block}.category-rail{width:100%;flex-direction:row;border-right:0;border-bottom:1px solid var(--line)}.category-rail button{border-bottom:0;border-right:1px solid var(--line);height:49px}.category-rail button.active:before{height:3px;width:auto;right:0;top:auto;bottom:0}.filter-grid{grid-template-columns:1fr 1fr;gap:15px}.filter-bottom{flex-wrap:wrap;gap:15px}.filter-bottom .spacer{flex:1}.cards{grid-template-columns:1fr 1fr}.car-photo{height:185px}.category-cards{grid-template-columns:1fr 1fr}.category-card{padding:18px}.pitch{gap:20px;align-items:flex-start}.pitch h2{font-size:21px}.pitch .primary{flex-shrink:0}.results-layout{grid-template-columns:1fr}.sidebar{display:none}.sidebar.visible{display:block}.filter-mobile{display:inline-flex}.results-title{align-items:flex-start}.results-title h1{font-size:23px}.results-title .outline{font-size:12px;padding:10px}.result-list .car-card{grid-template-columns:240px 1fr}.detail-grid{grid-template-columns:1fr}.gallery img{height:370px}.equipment{grid-template-columns:1fr 1fr}.technical{gap:0 20px}footer{grid-template-columns:1fr 1fr;padding:30px 22px}.account-grid{grid-template-columns:1fr}.footer-bottom{display:block;line-height:1.7}.footer-bottom span{display:block}}
@media(max-width:520px){.page{padding:14px 12px 35px}.search-intro{padding:24px 15px 22px}.search-intro h1{font-size:23px;max-width:280px;margin:0 auto 20px}.search-hint{font-size:10px}.basic-form{padding:17px 15px}.filter-grid{gap:14px 10px}label.field{font-size:12px}select,input[type=text],input[type=search],input[type=number]{font-size:13px;padding:9px}.filter-bottom .check{width:100%}.filter-bottom .spacer{display:none}.filter-bottom{justify-content:space-between}.section-top h2{font-size:22px}.section-top a{font-size:12px}.cards{gap:12px}.car-photo{height:130px}.car-body h3{font-size:15px}.car-body .price{font-size:21px}.specs{gap:5px;font-size:11px;margin:12px 0}.variant{font-size:11px}.pitch{flex-direction:column;padding:22px}.pitch .primary{width:100%}.category-card{gap:10px;padding:15px;flex-direction:column;align-items:flex-start}.category-card strong{font-size:13px}.category-card .icon{width:30px;height:30px;flex-shrink:0}.result-list .car-card{display:block}.result-list .car-photo{height:230px}.result-list .car-body{padding:20px}.result-list .price{float:right;margin-top:-48px}.results-title{flex-wrap:wrap}.sortbar{gap:8px}.sortbar select{width:160px}.gallery img{height:250px}.detail-summary{padding:22px}.white-panel{padding:22px 17px}.technical{grid-template-columns:1fr}.equipment{font-size:12px;gap:15px}.formgrid{grid-template-columns:1fr}.stepper span{font-size:10px}.formgrid .wide{grid-column:auto}.natural-search .icon{width:18px}.header-actions>.icon-button{padding:7px}.header-inner{padding:0 12px}.brand{font-size:23px}.brand-mark{height:22px;width:10px}.photo-caption{font-size:9px}footer .brand{font-size:23px}}

/* Keep the existing keyword field appearance when placed in the filter grid. */
.filter-grid > .natural-search{width:100%;min-width:0;align-self:end;margin:0;height:43px;padding-top:0;padding-right:0;padding-bottom:0;padding-left:12px;gap:6px;border-radius:6px;overflow:hidden}
.filter-grid > .natural-search input{height:100%;padding-top:0;padding-bottom:0}
.filter-grid > .natural-search .primary{width:32px;min-width:32px;flex:0 0 32px;height:100%;padding:0;border:0;border-radius:0}
.filter-grid > .natural-search .primary .icon{width:14px;height:14px}
.filter-grid > .natural-search .primary:focus-visible{outline:2px solid #fff;outline-offset:-4px}

/* /advanced.css */
.language-picker{display:inline-flex;align-items:center;margin-left:3px}.language-picker select{width:68px;height:36px;padding:7px;font-size:12px;font-weight:700;color:var(--navy)}.language-picker .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.header-actions{gap:6px;margin-left:16px}.advanced-page{max-width:1120px}.advanced-heading{display:flex;align-items:center;gap:24px;margin:20px 0 34px}.advanced-heading h1{font-size:29px;letter-spacing:-.7px;margin:0 auto 0 0}.advanced-heading .primary{white-space:nowrap}.filter-section{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:24px;padding:28px 32px}.filter-section h2{font-size:23px;margin:0 0 28px}.advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 32px}.vehicle-main{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;grid-column:1/-1}.vehicle-extra,.full-width{grid-column:1/-1}.vehicle-row{display:grid;grid-template-columns:1fr 1fr 40px;gap:20px;margin-bottom:18px;align-items:end}.remove-pair{height:43px;font-size:26px}.pair-actions{display:flex;gap:28px}.pair-actions button{color:var(--navy);text-decoration:underline}.group-label{display:block;font-size:14px;font-weight:bold;margin-bottom:10px}.range-field>div{display:grid;grid-template-columns:1fr 1fr;gap:15px}.range-field label.field{font-weight:normal;color:var(--muted)}.check-group{border:0;padding:0;margin:0;grid-column:1/-1;min-width:0}.check-group legend{font-size:14px;font-weight:bold;margin-bottom:14px;padding:0}.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px}.check-grid .check{line-height:1.4;align-items:flex-start;font-size:13px}.check-grid input{margin:0 2px 0 0;flex-shrink:0}.filter-data-note{font-size:12px;color:var(--muted);margin:24px 0 0}.advanced-sticky{position:sticky;bottom:12px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 25px #10233c26;padding:16px 22px;z-index:10;margin-top:20px}.advanced-sticky .chips:empty{display:none}.advanced-sticky .chips{max-height:88px;overflow:auto;margin-bottom:12px}.advanced-bottom{display:flex;align-items:center;gap:20px}.advanced-bottom .primary{margin-left:auto;white-space:nowrap}.match-count{font-size:13px;color:var(--muted);margin-left:auto}.all-filters{width:100%;justify-content:center;margin-top:12px;font-size:13px}.source-link{font-size:13px}.car-body{display:block}.car-body .variant{line-height:1.4}.result-list .car-body h3{padding-right:0}.result-list .car-photo{height:100%;min-height:230px}.car-photo{object-fit:cover}.advanced-page .chip{display:inline;line-height:1.5;text-align:left}#filter-error{color:#ad2222;font-size:13px;margin:12px 0 0}.detail-summary .seller-info{overflow-wrap:anywhere}.source-notice{font-size:12px;line-height:1.5;color:var(--muted)}
@media(max-width:1100px){nav{gap:14px}.header-actions{margin-left:4px}.advanced-heading{flex-wrap:wrap;gap:16px}.advanced-heading h1{width:100%}}
@media(max-width:800px){.advanced-heading h1{font-size:25px}.filter-section{padding:24px}.check-grid{grid-template-columns:1fr 1fr}.advanced-grid{gap:22px}.vehicle-main{grid-template-columns:1fr 1fr}.vehicle-main .field:last-child{grid-column:1/-1}.advanced-bottom{flex-wrap:wrap;gap:12px}.match-count{display:none}.advanced-sticky{bottom:8px;padding:14px}.language-picker select{width:60px}.advanced-heading>.text-button{margin-right:auto}}
@media(max-width:520px){.header-inner{gap:4px}.header-actions{gap:1px}.header-actions .icon-button{padding:6px}.brand{font-size:21px}.language-picker{margin-left:0}.language-picker select{width:54px;padding:6px 3px;font-size:11px}.filter-section{padding:22px 16px;border-radius:10px}.advanced-grid{grid-template-columns:1fr;gap:22px}.check-grid{gap:13px 12px}.check-grid .check{font-size:12px}.vehicle-main{gap:14px}.vehicle-row{grid-template-columns:1fr 1fr 24px;gap:9px}.pair-actions{gap:10px;flex-wrap:wrap}.pair-actions button{font-size:12px}.advanced-heading{margin-bottom:22px}.advanced-heading>.primary{padding:11px 14px}.advanced-bottom .primary{padding:12px;font-size:13px}.advanced-bottom>.text-button{font-size:11px}.advanced-sticky .chips{max-height:68px}.filter-section h2{font-size:22px}.gallery-overlay{max-width:calc(100% - 36px);font-size:11px}}
.cards>.empty{grid-column:1/-1}

.category-rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.category-rail small{font-size:11px;font-weight:bold}

/* Align single selects with neighbouring From/To controls without changing label height. */
.aligned-range-select{display:flex;flex-direction:column}.aligned-range-select>.field{height:100%;margin:0;display:flex;flex-direction:column}.aligned-range-select select{margin-top:auto}
@media(max-width:520px){.aligned-range-select>.field{height:auto}.aligned-range-select select{margin-top:8px}}

/* /official-brand.css */
.brand{position:relative}
.brand-sizing{display:inline-flex;align-items:center;visibility:hidden}
.brand-logo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
/* Align the footer with the header container, including its responsive gutters. */
footer{padding-inline:max(30px,calc((100% - 1380px)/2))}
footer .brand{align-self:flex-start;width:fit-content}
footer .brand-logo{object-position:left center}
@media(max-width:1100px){footer{padding-inline:20px}}
@media(max-width:520px){footer{padding-inline:12px}}

/* /privacy.css */
.cookie-notice{position:fixed;z-index:80;left:50%;bottom:16px;transform:translateX(-50%);width:calc(100% - 32px);max-width:1080px;display:flex;align-items:center;gap:24px;padding:18px 22px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 5px 24px #122c5314;color:var(--ink);font-size:13px;line-height:1.5}
.cookie-notice[hidden]{display:none}.cookie-copy{flex:1}.cookie-copy strong{display:block;font-size:14px;margin-bottom:3px}.cookie-copy p{margin:0;color:var(--muted)}.cookie-actions{display:flex;align-items:center;gap:20px;flex-shrink:0}.cookie-actions a{color:var(--navy);text-decoration:underline;text-underline-offset:3px}.cookie-actions button{font-size:13px;padding:10px 20px;white-space:nowrap}.privacy-footer-button{display:block;text-align:left;padding:0;font-size:inherit;color:inherit}.privacy-footer-button:hover{text-decoration:underline}body{padding-bottom:var(--cookie-clearance,0px)}#toast{bottom:calc(24px + var(--cookie-clearance,0px))}.privacy-page h2{font-size:20px;margin:30px 0 12px}.privacy-page a:not(.primary){color:var(--navy);text-decoration:underline}.privacy-page .privacy-date{font-size:12px;color:var(--muted)}.privacy-table-wrap{overflow-x:auto}.privacy-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.privacy-table th,.privacy-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}.privacy-table code{overflow-wrap:anywhere}.privacy-page .notice{margin:22px 0}.privacy-page p{overflow-wrap:break-word}
@media(max-width:650px){.cookie-notice{bottom:10px;width:calc(100% - 20px);padding:16px;gap:14px;flex-direction:column;align-items:stretch;font-size:12px}.cookie-actions{justify-content:space-between;gap:12px}.cookie-actions button{padding:9px 18px}.privacy-table{font-size:12px}.privacy-table th,.privacy-table td{padding:10px 7px}}
/* mobile-consent-compact */
@media(max-width:650px){.cookie-notice{bottom:8px;width:calc(100% - 16px);padding:10px 12px;gap:8px;border-radius:12px}.cookie-notice .cookie-copy strong{padding-right:122px;margin-bottom:2px;font-size:13px;line-height:1.25}.cookie-notice .cookie-copy p{font-size:11.5px;line-height:1.35}.cookie-notice .cookie-actions{position:static;display:flex;flex-direction:row;flex-wrap:nowrap!important;align-items:stretch;justify-content:stretch;gap:6px;width:100%}.cookie-notice .cookie-actions a{position:absolute;top:11px;right:12px;font-size:11px;line-height:1.2;white-space:nowrap}.cookie-notice .cookie-actions button{flex:1 1 auto;width:auto;min-width:0;height:36px;min-height:36px;padding:0 5px;border-radius:7px;font-size:11px;line-height:1.1;white-space:nowrap}}

/* /demo-listings.css */
.vehicle-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:16px 12px;text-align:center;background:#f1f3f6;color:#6b7788;border-bottom:1px solid #e3e7ec;box-sizing:border-box}.vehicle-placeholder svg{width:42px;height:32px;fill:none;stroke:#8c99ab;stroke-width:1.6}.vehicle-placeholder strong{font-size:12px;line-height:1.4;font-weight:500;max-width:190px}.vehicle-placeholder span{font-size:10px;color:#8791a0}.gallery .vehicle-placeholder-large{height:420px;border:0;gap:14px}.gallery .vehicle-placeholder-large svg{width:66px;height:50px}.gallery .vehicle-placeholder-large strong{font-size:16px;max-width:none}.gallery .vehicle-placeholder-large span{font-size:12px}.section-description{color:var(--muted);font-size:13px;line-height:1.6;margin:-5px 0 20px}.result-list .vat{display:block}.seller-info span{display:inline-block;margin-top:8px;color:var(--muted);font-size:13px;line-height:1.6}@media(max-width:800px){.gallery .vehicle-placeholder-large{height:370px}}@media(max-width:520px){.vehicle-placeholder{gap:6px;padding:12px 8px}.vehicle-placeholder svg{width:32px;height:25px}.vehicle-placeholder strong{font-size:11px}.vehicle-placeholder span{font-size:9px}.gallery .vehicle-placeholder-large{height:250px}.section-description{font-size:12px}}

.category-rail button{padding:8px 5px}.category-rail small{line-height:1.2;font-size:10px;max-width:84px}.category-rail .icon{flex-shrink:0}@media(max-width:800px){.category-rail button{height:72px;min-width:0;flex:1}.category-rail small{font-size:10px;max-width:90px}.category-rail .icon{height:25px}}

.latest-listings-empty{background:#fff;border:1px solid var(--line);border-radius:12px;text-align:center;padding:32px 20px;color:var(--muted)}.latest-listings-empty>.icon{width:34px;height:34px;color:#8791a0}.latest-listings-empty h3{color:var(--ink);font-size:18px;margin:12px 0}.latest-listings-empty p{font-size:13px;line-height:1.6;margin:4px 0}

/* /category-layout.css */
/* Homepage categories reuse the existing data-category controls and handlers. */
.search-shell .search-lower{display:block}
.search-shell .filter-bottom{display:flex;flex-wrap:nowrap;align-items:center;gap:20px;margin-top:21px;min-width:0}
.search-shell .category-rail{display:flex;flex-direction:row;align-items:center;gap:10px;width:auto;min-width:0;flex:1;background:none;border:0}
.search-shell .category-rail button{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:38px;height:38px;padding:0 14px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);white-space:nowrap;transition:background-color .15s,border-color .15s}
.search-shell .category-rail button small{font-size:13px;font-weight:600;line-height:1.2}
.search-shell .category-rail button .icon{width:21px;height:21px;flex-shrink:0}
.search-shell .category-rail button:hover{background:#f0f3f7;border-color:#a7b5c6}
.search-shell .category-rail button.active{background:var(--navy);border-color:var(--navy);color:#fff}
.search-shell .category-rail button.active:hover{background:var(--navy-hover)}
.search-shell .category-rail button.active:before{display:none}
.search-shell .home-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px;flex-shrink:0;margin-left:auto;padding-left:20px;border-left:1px solid var(--line)}
.search-shell .home-filter-actions .text-button{min-height:38px;white-space:nowrap}
@media (max-width:1100px) and (min-width:901px){
 .search-shell .filter-bottom{gap:12px}
 .search-shell .category-rail{gap:8px}
 .search-shell .category-rail button{padding:0 9px;gap:6px}
 .search-shell .category-rail button small{font-size:12px}
 .search-shell .home-filter-actions{padding-left:12px;gap:12px}
 .search-shell .home-filter-actions .text-button{font-size:12px}
}
@media (max-width:900px){
 .search-shell .filter-bottom{display:flex;flex-direction:column;align-items:stretch;gap:10px}
 .search-shell .category-rail{flex:none;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:4px 3px 7px;scroll-padding-inline:3px}
 .search-shell .category-rail button{flex:none;padding:0 12px}
 .search-shell .home-filter-actions{width:100%;margin:0;padding:0;border:0;gap:20px}
}

/* Remove only the homepage category controls while preserving all form geometry. */
.search-shell #basic-form .category-rail{visibility:hidden;pointer-events:none}

/* /inventory-ui.css */
.photo-count{position:absolute;bottom:10px;left:10px;background:#14253be6;color:white;border-radius:4px;padding:5px 8px;font-size:11px}.car-photo{object-fit:cover}.tabs{overflow-x:auto;flex-wrap:nowrap}.tabs button{white-space:nowrap;flex-shrink:0}.seller-name{font-size:20px;font-weight:700;color:var(--navy)}.seller-info p{font-size:14px;line-height:1.6;margin:6px 0}.seller-phone,.seller-email{display:block;margin:10px 0;overflow-wrap:anywhere}.seller-phone{font-size:19px;font-weight:700}.seller-actions{display:grid;gap:10px}.seller-stock{display:block;margin:18px 0 0;text-align:center;color:var(--navy)}.source-link{display:inline-block;font-size:13px;color:var(--navy);text-decoration:underline;margin:8px 0;overflow-wrap:anywhere}.vehicle-description{white-space:pre-wrap;line-height:1.75;overflow-wrap:anywhere}.technical strong{overflow-wrap:anywhere;word-break:break-word}.equipment-heading{margin-top:28px;font-size:17px}.vehicle-gallery{overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff;margin-bottom:20px}.gallery-stage{position:relative;background:#101924}.gallery-open{display:block;width:100%;padding:0}.gallery-stage img{display:block;width:100%;height:430px;object-fit:contain}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);background:#fffefc;color:var(--navy);width:40px;height:48px;border-radius:5px;font-size:36px;line-height:1;box-shadow:0 1px 8px #0004}.gallery-prev{left:12px}.gallery-next{right:12px}.gallery-counter{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);color:white;background:#101924dd;border-radius:20px;padding:5px 12px;font-size:12px;pointer-events:none}.gallery-thumbs{display:flex;gap:8px;padding:10px;overflow-x:auto}.gallery-thumbs button{padding:0;border:3px solid transparent;border-radius:5px;flex:0 0 85px;overflow:hidden}.gallery-thumbs button.selected{border-color:var(--navy)}.gallery-thumbs img{display:block;width:79px;height:59px;object-fit:cover}.photo-lightbox{max-width:96vw;width:1200px;max-height:95vh;height:850px;padding:40px 15px;background:#101924;border:0;border-radius:8px;overflow:hidden}.photo-lightbox::backdrop{background:#000d}.photo-lightbox img{display:block;width:100%;height:100%;object-fit:contain}.lightbox-close{position:absolute;top:4px;right:10px;color:white;font-size:32px;z-index:2}.lightbox-counter{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);color:white}.dealer-profile{display:grid;grid-template-columns:2fr 1fr;gap:40px}.dealer-profile h1{margin:8px 0;font-size:34px}.dealer-type{color:var(--muted);font-size:13px}.dealer-profile .seller-info{border:0;padding:8px 0}.dealer-profile .seller-name{display:none}.dealer-profile .seller-actions{display:flex;flex-wrap:wrap}.dealer-hours{font-size:13px;line-height:1.7;color:var(--muted)}.dealer-stock-total{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;border-left:1px solid var(--line)}.dealer-stock-total>strong{font-size:70px;color:var(--navy)}#dealer-stock{scroll-margin-top:100px}.footer-bottom span{max-width:65%;text-align:right}@media(max-width:800px){.gallery-stage img{height:370px}.dealer-profile{grid-template-columns:1fr;gap:20px}.dealer-stock-total{border-left:0;border-top:1px solid var(--line);padding-top:20px}.footer-bottom span{max-width:100%;text-align:left}}@media(max-width:520px){.gallery-stage img{height:270px}.gallery-arrow{width:32px;height:42px}.gallery-prev{left:6px}.gallery-next{right:6px}.gallery-thumbs button{flex-basis:72px}.gallery-thumbs img{width:66px;height:50px}.dealer-profile h1{font-size:28px}.result-list .price{float:none;margin-top:10px}.photo-count{font-size:10px;padding:4px 6px}.dealer-line{font-size:11px}.photo-lightbox{height:80vh;padding:40px 6px}.seller-actions a{width:100%}}
.detail-grid>div{min-width:0}.vehicle-gallery{min-width:0;width:100%}.gallery-stage,.gallery-open{min-width:0}.cards>*{min-width:0}
.dealer-search-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:24px 0 20px}.dealer-search-form .field{flex:1;max-width:560px;min-width:240px;margin:0}.dealer-search-form input{width:100%;background:#fff}.dealer-search-form [hidden]{display:none}.dealer-results-count{color:var(--muted);margin:0 0 18px}.dealer-stock-heading{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:22px}.dealer-stock-heading h2{margin:0}.dealer-stock-heading .field{width:245px;margin:0}.dealer-stock-heading select{background:#fff}@media(max-width:600px){.dealer-search-form .field{max-width:none;min-width:0;flex-basis:100%}.dealer-stock-heading .field{width:100%}.dealer-stock-heading h2{font-size:23px}}

.price-reduction{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 3px;font-size:14px}.price-reduction del{color:#68778a}.price-reduction-badge{background:#e5f4ea;color:#196639;padding:4px 8px;border-radius:5px;font-size:12px;font-weight:700}.price-reduction+.price{margin-top:4px}

.price-negotiable{font-size:13px;color:var(--muted);margin:4px 0 8px}
.price-tax-basis{font-size:.58em;font-weight:600;white-space:nowrap;color:#475569}.price-tax-info{margin:2px 0 7px;color:#475569;font-size:.83rem;line-height:1.4}.price-tax-info strong{font-weight:650}

/* Clickable dealer vehicle counts: retain existing typography and geometry. */
.dealer-offer-link{color:inherit;text-decoration:none;cursor:pointer}
.dealer-offer-link:hover,.dealer-offer-link:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.dealer-offer-link:focus-visible{outline:2px solid var(--navy);outline-offset:4px}

