/* AUTO DEALS MD — catalogue search (results page and the compact home block). */
:root{--ads-red:#d6262b;--ads-red-d:#b51d22;--ads-ink:#14181f;--ads-text:#1e2633;--ads-muted:#667085;--ads-line:#d5dbe3;
  --ads-line-d:#98a2b3;--ads-bg:#f3f5f8;--ads-card:#fff;--ads-chip:#fff;--ads-focus:#1f6feb;--ads-t:.12s ease}
.ads-page{margin:0;background:var(--ads-bg);color:var(--ads-text);font:15px/1.4 -apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.ads-page *,.ads-home *{box-sizing:border-box}
.ads-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:16px;padding:10px 24px;background:#fff;border-bottom:1px solid var(--ads-line)}
.ads-logo img{display:block;height:38px;width:auto}
.ads-header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.ads-lang{border:1px solid var(--ads-line);border-radius:999px;padding:7px 10px;background:#fff;font:inherit}
.ads-head-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--ads-line);background:#fff;border-radius:999px;padding:8px 14px;
  color:var(--ads-text);font:inherit;text-decoration:none;cursor:pointer;transition:border-color var(--ads-t),background var(--ads-t)}
.ads-head-btn:hover{border-color:var(--ads-line-d)}
.ads-head-btn[aria-pressed=true]{border-color:var(--ads-red);color:var(--ads-red)}
.ads-heart{color:var(--ads-red)}
.ads-sell{background:var(--ads-red);color:#fff;border-radius:999px;padding:9px 18px;font-weight:700;text-decoration:none;transition:background var(--ads-t)}
.ads-sell:hover{background:var(--ads-red-d)}
.ads-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;max-width:1440px;margin:0 auto;padding:18px 24px 40px;align-items:start}
/* filters */
.ads-filters{position:sticky;top:70px;max-height:calc(100vh - 86px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--ads-line);border-radius:16px}
.ads-filters-head{display:flex;align-items:center;gap:8px;padding:14px 16px 10px;border-bottom:1px solid var(--ads-line)}
.ads-filters-head h2{margin:0;font-size:18px}
.ads-reset{margin-left:auto;display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--ads-red);font:600 14px inherit;font-family:inherit;cursor:pointer;padding:6px 4px;border-radius:8px}
.ads-reset:hover{background:#fdecec}
.ads-filters-close{display:none}
.ads-filters-body{flex:1;min-height:0;overflow-y:auto;padding:12px 16px 18px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}
.ads-filters-foot{display:none;flex:none;background:#fff;position:relative;z-index:2}
.ads-market-tabs .ads-chips{display:grid;grid-template-columns:repeat(4,auto);gap:4px;background:var(--ads-bg);padding:4px;border-radius:999px}
.ads-market-tabs .ads-chip{border:0;background:transparent;padding:7px 6px;font-size:13.5px}
.ads-market-tabs .ads-chip[aria-pressed=true]{background:#fff;color:var(--ads-ink);box-shadow:0 1px 3px #0f172a26}
.ads-market-tabs .ads-chip[aria-pressed=true]::before{content:"✓";color:var(--ads-red);font-weight:900;margin-right:4px}
.ads-group-label{font-size:13px;color:var(--ads-muted);margin:0 0 6px;font-weight:600}
.ads-chips{display:flex;flex-wrap:wrap;gap:6px}
.ads-chip{border:1px solid var(--ads-line);background:var(--ads-chip);color:var(--ads-text);border-radius:999px;padding:7px 13px;font:inherit;font-size:14px;
  cursor:pointer;transition:border-color var(--ads-t),background var(--ads-t),color var(--ads-t),transform var(--ads-t)}
.ads-chip:hover{border-color:var(--ads-line-d)}
.ads-chip:active{transform:scale(.97)}
.ads-chip[aria-pressed=true]{background:var(--ads-ink);border-color:var(--ads-ink);color:#fff}
.ads-chip[data-count]:not([data-count=""])::after{content:attr(data-count);margin-left:6px;font-size:12px;opacity:.65}
.ads-chip-group.small .ads-chip{padding:5px 11px;font-size:13px}
.ads-chip-group.round .ads-chip,.round .ads-chip{min-width:40px;text-align:center}
.ads-dependent{display:flex;flex-direction:column;gap:12px}
.ads-dependent[hidden],.ads-field[hidden],.ads-chip-group[hidden],.ads-range[hidden],.ads-subgroup[hidden]{display:none}
/* field (dropdown trigger) with a floating caption */
.ads-field{position:relative}
.ads-field-btn{width:100%;min-height:48px;display:flex;align-items:center;gap:8px;position:relative;text-align:left;border:1px solid var(--ads-line);
  background:#fff;border-radius:12px;padding:12px 38px 12px 14px;font:inherit;color:var(--ads-text);cursor:pointer;transition:border-color var(--ads-t),box-shadow var(--ads-t)}
.ads-field-btn:hover{border-color:var(--ads-line-d)}
.ads-field.open .ads-field-btn,.ads-field-btn:focus-visible{border-color:var(--ads-ink);box-shadow:0 0 0 3px #14181f14;outline:none}
.ads-field-label{color:var(--ads-muted);transition:all var(--ads-t);pointer-events:none}
.ads-field.filled .ads-field-label{position:absolute;top:-9px;left:10px;padding:0 5px;background:#fff;font-size:12px;color:var(--ads-muted)}
.ads-field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.ads-field-arrow{position:absolute;right:14px;top:50%;width:8px;height:8px;border:solid var(--ads-muted);border-width:0 2px 2px 0;transform:translateY(-70%) rotate(45deg);transition:transform var(--ads-t)}
.ads-field.open .ads-field-arrow{transform:translateY(-30%) rotate(-135deg)}
.ads-popup{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;background:#fff;border:1px solid var(--ads-line);border-radius:14px;
  box-shadow:0 16px 40px #0f172a2e;display:flex;flex-direction:column;max-height:420px;min-width:260px;animation:adsIn .12s ease}
@keyframes adsIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.ads-popup-head{display:flex;align-items:center;justify-content:space-between;padding:10px 10px 6px 14px}
.ads-popup-close{border:0;background:var(--ads-bg);border-radius:999px;width:32px;height:32px;display:grid;place-items:center;cursor:pointer;color:var(--ads-text);transition:background var(--ads-t)}
.ads-popup-close:hover{background:#e4e8ee}
.ads-popup-search{margin:0 10px 8px;border:1px solid var(--ads-line);border-radius:10px;padding:9px 12px;font:inherit}
.ads-popup-search:focus{outline:none;border-color:var(--ads-ink)}
.ads-popup-list{overflow-y:auto;padding:0 6px 6px;flex:1;overscroll-behavior:contain}
.ads-popup-group{font-size:12px;font-weight:700;color:var(--ads-muted);text-transform:uppercase;letter-spacing:.04em;padding:10px 8px 4px}
.ads-option{width:100%;display:flex;align-items:center;gap:10px;border:0;background:none;padding:9px 8px;border-radius:9px;text-align:left;font:inherit;color:var(--ads-text);cursor:pointer;transition:background var(--ads-t)}
.ads-option:hover{background:#f2f4f7}
.ads-option-logo{width:26px;height:26px;object-fit:contain;flex:none}
.ads-option-initials{display:grid;place-items:center;border-radius:50%;background:var(--ads-bg);font-size:11px;font-weight:700;color:var(--ads-muted)}
.ads-option-text{flex:1;display:flex;flex-direction:column;min-width:0}
.ads-option-title{font-weight:600}
.ads-option-hint{color:var(--ads-muted);font-size:12.5px;line-height:1.3}
.ads-option-count{color:var(--ads-muted);font-size:12.5px}
.ads-check,.ads-radio{flex:none;width:20px;height:20px;border:1.5px solid var(--ads-line-d);border-radius:5px;background:#fff;position:relative;transition:background var(--ads-t),border-color var(--ads-t)}
.ads-radio{border-radius:50%}
[aria-selected=true]>.ads-check,input:checked+.ads-check{background:var(--ads-ink);border-color:var(--ads-ink)}
[aria-selected=true]>.ads-check::after,input:checked+.ads-check::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
[aria-selected=true]>.ads-radio{border:6px solid var(--ads-ink)}
.ads-popup-empty{color:var(--ads-muted);padding:10px}
.ads-popup-foot{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-top:1px solid var(--ads-line);background:#fff;border-radius:0 0 14px 14px}
.ads-apply,.ads-show{border:0;background:var(--ads-red);color:#fff;border-radius:999px;padding:10px 22px;font:700 15px -apple-system,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer;text-decoration:none;text-align:center;transition:background var(--ads-t),transform var(--ads-t)}
.ads-apply:hover,.ads-show:hover{background:var(--ads-red-d)}
.ads-apply:active,.ads-show:active{transform:scale(.98)}
.ads-apply:disabled{opacity:.5;cursor:not-allowed}
.ads-link{border:0;background:none;color:var(--ads-muted);font:inherit;cursor:pointer;padding:6px;border-radius:8px}
.ads-link:hover{color:var(--ads-text);background:var(--ads-bg)}
/* ranges with floating labels */
.ads-range-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ads-float{position:relative;display:block}
.ads-float-input{width:100%;height:48px;border:1px solid var(--ads-line);border-radius:12px;padding:16px 30px 6px 13px;font:inherit;background:#fff;transition:border-color var(--ads-t),box-shadow var(--ads-t)}
.ads-float-input:hover{border-color:var(--ads-line-d)}
.ads-float-input:focus{outline:none;border-color:var(--ads-ink);box-shadow:0 0 0 3px #14181f14}
.ads-float-label{position:absolute;left:13px;top:14px;color:var(--ads-muted);pointer-events:none;transition:all var(--ads-t)}
.ads-float-input:focus+.ads-float-label,.ads-float.filled .ads-float-label{top:-9px;left:10px;padding:0 5px;background:#fff;font-size:12px}
.ads-float-input:focus{padding-top:6px}
.ads-float.filled .ads-float-input{padding-top:6px}
.ads-float-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:24px;height:24px;border:0;border-radius:50%;background:var(--ads-bg);color:var(--ads-muted);cursor:pointer;display:none;line-height:1;font-size:16px}
.ads-float.filled .ads-float-clear{display:block}
.ads-float-unit{position:absolute;right:34px;top:50%;transform:translateY(-50%);color:var(--ads-muted);font-size:12px}
.ads-float-input[aria-invalid=true]{border-color:var(--ads-red);box-shadow:0 0 0 3px #d6262b1f}
.ads-field-error{margin:6px 2px 0;color:var(--ads-red);font-size:13px}
.ads-subgroup{display:flex;flex-direction:column;gap:8px}
.ads-price{display:flex;flex-direction:column;gap:6px}
/* year picker */
.ads-year-cols{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 10px;min-height:0}
.ads-year-list{max-height:250px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;overscroll-behavior:contain}
.ads-year{border:0;background:none;border-radius:8px;padding:7px 10px;text-align:left;font:inherit;cursor:pointer;transition:background var(--ads-t)}
.ads-year:hover{background:#f2f4f7}
.ads-year[aria-pressed=true]{background:var(--ads-ink);color:#fff}
/* colours */
.ads-color-row{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}
.ads-color{width:30px;height:30px;border-radius:50%;border:1px solid #0000002e;cursor:pointer;justify-self:center;transition:transform var(--ads-t),box-shadow var(--ads-t)}
.ads-color:hover{transform:scale(1.08)}
.ads-color[aria-pressed=true]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ads-ink)}
.ads-checkbox{display:flex;align-items:center;gap:10px;cursor:pointer;padding:4px 0}
.ads-checkbox input{position:absolute;opacity:0;pointer-events:none}
.ads-checkbox input:focus-visible+.ads-check{outline:2px solid var(--ads-focus);outline-offset:2px}
/* sections */
.ads-section{border-top:1px solid var(--ads-line);padding-top:4px}
.ads-section summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;padding:10px 2px;font-weight:700;transition:color var(--ads-t)}
.ads-section summary::-webkit-details-marker{display:none}
.ads-section summary::after{content:"";margin-left:auto;width:8px;height:8px;border:solid var(--ads-muted);border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform var(--ads-t)}
.ads-section[open] summary::after{transform:rotate(-135deg)}
.ads-section summary:hover{color:var(--ads-red)}
.ads-section-count{color:var(--ads-red);font-weight:700}
.ads-section-body{display:flex;flex-direction:column;gap:12px;padding:4px 0 12px}
/* results */
.ads-results{min-width:0}
.ads-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.ads-results-head h1{margin:0;font-size:22px;transition:opacity var(--ads-t)}
.ads-results-head h1.loading{opacity:.55}
.ads-results-tools{display:flex;align-items:center;gap:10px}
.ads-sort{display:flex;align-items:center;gap:8px;color:var(--ads-muted);font-size:14px}
.ads-sort select{border:1px solid var(--ads-line);border-radius:999px;padding:8px 12px;font:inherit;background:#fff;color:var(--ads-text);cursor:pointer}
.ads-mobile-filters{display:none}
.ads-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px;min-height:0}
.ads-tag{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--ads-line);background:#fff;border-radius:999px;padding:5px 8px 5px 12px;font:inherit;font-size:13.5px;cursor:pointer;transition:border-color var(--ads-t)}
.ads-tag:hover{border-color:var(--ads-red)}
.ads-tag-x{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--ads-bg);color:var(--ads-red);font-weight:700}
.ads-error{background:#fdecec;color:var(--ads-red-d);border-radius:10px;padding:10px 12px}
.ads-list{display:flex;flex-direction:column;gap:12px;transition:opacity var(--ads-t)}
.ads-list.loading{opacity:.55;pointer-events:none}
.ads-card{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;background:var(--ads-card);border:1px solid var(--ads-line);border-radius:16px;overflow:hidden;
  color:inherit;text-decoration:none;transition:box-shadow var(--ads-t),border-color var(--ads-t)}
.ads-card:hover{box-shadow:0 8px 24px #0f172a17;border-color:var(--ads-line-d)}
.ads-card-photo{position:relative;aspect-ratio:4/3;background:#e7ebf0}
.ads-card-photo img{width:100%;height:100%;object-fit:cover;display:block}
.ads-badge-top{position:absolute;left:10px;top:10px;background:var(--ads-red);color:#fff;font-size:12px;font-weight:800;padding:3px 8px;border-radius:999px}
.ads-card-body{padding:14px 16px 14px 0;display:flex;flex-direction:column;gap:8px;min-width:0}
.ads-card-head{display:flex;align-items:flex-start;gap:10px}
.ads-card-title{margin:0;font-size:19px;line-height:1.25;flex:1;color:var(--ads-ink)}
.ads-heart-btn{flex:none;border:0;background:none;padding:4px;border-radius:50%;cursor:pointer;transition:transform var(--ads-t),background var(--ads-t)}
.ads-heart-btn svg{fill:none;stroke:#98a2b3;stroke-width:1.8;transition:fill var(--ads-t),stroke var(--ads-t)}
.ads-heart-btn:hover{background:#fdecec}
.ads-heart-btn:active{transform:scale(.9)}
.ads-heart-btn[aria-pressed=true] svg{fill:var(--ads-red);stroke:var(--ads-red)}
.ads-card-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.ads-card-price b{font-size:21px;color:var(--ads-ink)}
.ads-card-price span{color:var(--ads-muted);font-size:13.5px}
.ads-card-specs{display:flex;flex-wrap:wrap;gap:4px 14px;color:var(--ads-text);font-size:14px}
.ads-card-specs span+span::before{content:"·";margin-right:14px;margin-left:-8px;color:var(--ads-line-d)}
.ads-card-foot{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--ads-muted);font-size:13.5px}
.ads-card-city::before{content:"📍 "}
.ads-card-badge{color:#16834b;font-weight:600}
.ads-empty{background:#fff;border:1px dashed var(--ads-line-d);border-radius:14px;padding:28px;text-align:center;color:var(--ads-muted)}
.ads-pages{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:18px}
.ads-pg{border:1px solid var(--ads-line);background:#fff;border-radius:999px;min-width:40px;padding:8px 12px;font:inherit;cursor:pointer;transition:border-color var(--ads-t)}
.ads-pg:hover{border-color:var(--ads-line-d)}
.ads-pg.current{background:var(--ads-ink);border-color:var(--ads-ink);color:#fff;cursor:default}
.ads-pg-gap{padding:8px 4px;color:var(--ads-muted)}
/* compact home block */
.ads-home{background:#fff;border:1px solid var(--ads-line);border-radius:18px;padding:16px;margin:0 0 16px;box-shadow:0 10px 30px #0f172a12;font:15px/1.4 -apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ads-text)}
.ads-home-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.ads-home-grid .ads-market-tabs{grid-column:1/-1;max-width:460px}
.ads-home-grid .ads-dependent{display:contents}
.ads-home-grid .ads-price{grid-column:span 2}
.ads-home-grid .ads-price{display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:center}
.ads-home-grid .ads-price .ads-range{display:contents}
.ads-home-grid .ads-price .ads-group-label{grid-column:1/-1;margin:0}
.ads-home-grid .ads-price .ads-field-error{grid-column:1/-1}
.ads-home-foot{display:flex;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}
.ads-advanced{display:inline-flex;align-items:center;gap:8px;color:var(--ads-ink);font-weight:700;text-decoration:none;padding:8px 10px;border-radius:10px;transition:background var(--ads-t)}
.ads-advanced:hover{background:var(--ads-bg)}
.ads-home-foot .ads-show{margin-left:auto;min-width:220px}
.ads-show.loading{opacity:.8}
.has-ads-home .search-results-layout>.box{display:none}
@media (max-width:1100px){.ads-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ads-card{grid-template-columns:220px minmax(0,1fr)}}
@media (max-width:900px){
  .ads-header{padding:8px 16px;gap:8px}.ads-logo img{height:30px}
  .ads-head-btn [data-t],.ads-head-btn>span:not(.ads-heart){display:none}
  .ads-layout{grid-template-columns:minmax(0,1fr);padding:12px 16px 30px}
  .ads-filters{position:fixed;inset:0;top:0;max-height:none;border-radius:0;z-index:60;display:none}
  .ads-filters-open .ads-filters{display:flex}
  .ads-filters-open{overflow:hidden}
  .ads-filters-close{display:block;border:0;background:var(--ads-bg);width:36px;height:36px;border-radius:50%;font-size:22px;cursor:pointer}
  .ads-filters-foot{display:block;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--ads-line)}
  .ads-filters-foot .ads-show{width:100%}
  .ads-mobile-filters{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--ads-ink);background:var(--ads-ink);color:#fff;border-radius:999px;padding:9px 16px;font:600 14px -apple-system,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer}
  .ads-results-head h1{font-size:18px;width:100%}
  .ads-card{grid-template-columns:1fr;gap:0}
  .ads-card-body{padding:12px 14px}
  .ads-popup{max-height:60vh}
  .ads-home-grid{grid-template-columns:1fr 1fr}
  .ads-home-grid .ads-price{grid-column:1/-1}
  .ads-home-foot .ads-show{width:100%;margin-left:0}
}
@media (max-width:600px){
  .ads-header{flex-wrap:wrap;padding:8px 12px}
  .ads-header-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}
  .ads-head-btn{padding:7px 10px}.ads-sell{padding:7px 12px;font-size:14px}.ads-lang{padding:6px}
  .ads-logo img{height:26px}
}
@media (max-width:520px){.ads-home-grid{grid-template-columns:1fr}.ads-market-tabs .ads-chip{font-size:12.5px;padding:7px 2px}.ads-sell{padding:8px 12px}}
@media (prefers-reduced-motion:reduce){.ads-page *,.ads-home *{transition:none!important;animation:none!important}}
/* ---- quick filters (TZ 25.11): neutral when off, dark when on; shown only when the catalogue has data for them */
.ads-quick{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.ads-quick-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--ads-line);background:#f4f6f9;color:var(--ads-text);border-radius:999px;padding:6px 12px;font:600 13.5px -apple-system,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer;transition:background .12s,border-color .12s,color .12s}
.ads-quick-chip:hover{border-color:#98a2b3}
.ads-quick-chip[aria-pressed=true]{background:var(--ads-ink);border-color:var(--ads-ink);color:#fff}
.md-flag{display:inline-flex;width:18px;height:12px;border-radius:2px;overflow:hidden;flex:none;box-shadow:0 0 0 1px #0002}
.md-flag i{flex:1}.md-flag i:nth-child(1){background:#0046ae}.md-flag i:nth-child(2){background:#ffd200}.md-flag i:nth-child(3){background:#cc092f}
/* ---- result cards */
.ads-card-photo{position:relative}
.ads-photo-top{position:absolute;left:8px;top:8px;display:flex;gap:6px}
.ads-badge-vip{background:linear-gradient(135deg,#f5b301,#e08700);color:#1b1300;font:800 12px/1 -apple-system,"Segoe UI",Roboto,Arial,sans-serif;border-radius:6px;padding:5px 8px}
.ads-photo-bottom{position:absolute;left:8px;bottom:8px;display:flex;gap:6px;flex-wrap:wrap}
.ads-photo-badge{background:#ffffffeb;color:var(--ads-text);font:700 12px/1 -apple-system,"Segoe UI",Roboto,Arial,sans-serif;border-radius:6px;padding:5px 7px}
.ads-photo-badge.ok{color:#12813f}
.ads-plate{display:inline-flex;align-items:center;gap:5px;background:#fff;border:1.5px solid #14181f;border-radius:5px;padding:2px 6px;font:800 12px/1.2 "Arial Narrow",Arial,sans-serif;letter-spacing:.5px;color:#14181f}
.ads-card-price .ads-price-now{color:#12813f}
.ads-price-old{color:var(--ads-red);font-size:14px;font-weight:600;margin-left:8px}
.ads-price-alt{margin-left:8px}
.ads-card-specs{display:flex;flex-wrap:wrap;gap:6px 14px}
.ads-spec{display:inline-flex;align-items:center;gap:5px;color:var(--ads-text)}.ads-spec svg{color:var(--ads-muted);flex:none}
.ads-card-specs .ads-spec::before,.ads-card-specs .ads-spec + .ads-spec::before{content:none}
.ads-card-desc{margin:6px 0 0;color:var(--ads-muted);font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ads-card-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.ads-card-dealer.verified::after{content:" ✓";color:#12813f;font-weight:800}
.ads-card-badge.down{color:var(--ads-red);border-color:#f1c0c2;background:#fff5f5}
.ads-card-date{margin-left:auto;color:var(--ads-muted);font-size:13px}
.ads-card:hover .ads-card-title,.ads-card:hover .ads-price-now{text-decoration:underline;text-underline-offset:3px}
.ads-card.is-top{border-color:#f0c36a}

/* approved logo (27.11.2026): image without the tagline + the tagline as localized text in its place */
.ad-logo{position:relative;display:inline-block;container-type:inline-size;line-height:0;flex:0 0 auto;text-decoration:none}
.ad-logo picture,.ad-logo img{display:block;width:100%;height:auto}
.ad-logo-tag{position:absolute;left:27.6%;right:.8%;top:70.6%;height:15.4%;display:flex;align-items:center;gap:1.3cqw;color:#111;white-space:nowrap;
  font:italic 800 8px/1 "Arial Black","Segoe UI",Arial,Helvetica,sans-serif;font-size:3.9cqw;letter-spacing:-.01em;pointer-events:none}
.ad-logo-tag::before,.ad-logo-tag::after{content:"";flex:1 1 0;min-width:1.2cqw;height:.75cqw;border-radius:.4cqw;background:#d6262b}
html[lang="ro"] .ad-logo-tag{font-size:3.5cqw}html[lang="ru"] .ad-logo-tag{font-size:4.15cqw}html[lang="en"] .ad-logo-tag{font-size:3.85cqw}
/* phones: the tagline is a readable line right under the logo (inside the logo it would be about 5 px at 320 px) */
@media(max-width:767px){html[lang] .ad-logo-tag,html .ad-logo-tag{top:calc(100% + 1px);left:0;right:auto;height:auto;gap:5px;font-size:10.5px}
  .ad-logo-tag::before,.ad-logo-tag::after{flex:0 0 12px;min-width:0;height:2px;border-radius:1px}
  .ad-logo{margin-bottom:17px}}
.ads-logo.ad-logo{width:206px}
@media(max-width:767px){.ads-logo.ad-logo{width:clamp(132px,45vw,182px)}}
@media(max-width:340px){.ads-logo.ad-logo{width:124px}}
/* sort control on narrow phones: the word «Sort» stays for screen readers, the list itself fits the screen */
@media(max-width:400px){.ads-results-tools{min-width:0}.ads-sort{min-width:0;flex:1 1 auto}.ads-sort>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.ads-sort select{min-width:0;max-width:100%;flex:1 1 auto}}

/* R57.5 (02.12) compact quick search on the home page — the owner's sample for a phone:
   type · make+model · year | price · region | fuel · gearbox · advanced / clear · the button with the count */
.ads-home-compact .ads-quick-row{display:contents}
.ads-home-compact .ads-price-shell{display:none}
@media (max-width:520px){
  .ads-home-grid.ads-home-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ads-home-compact>*{order:20}
  .ads-home-compact>.ads-market-tabs{order:1;grid-column:1/-1}
  .ads-home-compact>.ads-field:nth-child(2){order:2;grid-column:1/-1}
  .ads-home-compact>.ads-field:nth-child(3){order:3;grid-column:1/-1}
  .ads-home-compact>.ads-dependent{order:4}
  .ads-home-compact .ads-dependent>.ads-field{grid-column:1/-1}
  .ads-home-compact>.ads-field:nth-child(5){order:5}
  .ads-home-compact>.ads-price-shell{display:block;order:6}
  .ads-home-compact>.ads-price-panel{display:none;order:7;grid-column:1/-1}
  .ads-home-compact>.ads-price-panel.ads-price-open{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .ads-home-compact>.ads-price-panel .ads-group-label{display:none}
  .ads-home-compact>.ads-price-panel .ads-range,.ads-home-compact>.ads-price-panel .ads-range-row{display:contents}
  .ads-home-compact>.ads-price-panel .ads-chip-group{grid-column:1/-1;justify-content:flex-start}
  .ads-home-compact>.ads-field:nth-child(6){order:8}
  .ads-home-compact .ads-quick-row>.ads-field:first-child{order:9}
  .ads-home-compact .ads-quick-row>.ads-field:last-child{order:10;grid-column:1/-1}
  .ads-home-foot{display:grid;grid-template-columns:1fr auto;gap:8px}
  .ads-home-foot .ads-show{grid-column:1/-1;grid-row:2;width:100%;min-width:0;padding:14px 18px;font-size:16px}
}
/* ---- 02.12 (owner, AUTO.RIA sample): on a phone every list opens as a full-screen sheet — back arrow on the left,
   the title in the middle, search, a scrolling list with large rows and ticks, «Apply» fixed at the bottom */
@media (max-width:720px){
  .ads-popup{position:fixed;inset:0;top:0;right:0;bottom:0;left:0;width:auto;height:100%;max-height:none;margin:0;border:0;border-radius:0;
    box-shadow:none;z-index:1000;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);background:#fff}
  .ads-popup-head{justify-content:flex-start;gap:8px;padding:10px 12px 6px}
  .ads-popup-head b{flex:1;text-align:center;font-size:18px;margin-right:40px}
  .ads-popup-close{order:-1;width:40px;height:40px;background:none}
  .ads-popup-close svg{transform:rotate(-90deg);width:24px;height:24px}
  .ads-popup-search{margin:6px 16px 10px;padding:12px 14px;font-size:16px;border-radius:12px}
  .ads-popup-list{flex:1;min-height:0;padding:0 10px 12px}
  .ads-option{padding:13px 8px;font-size:16px;gap:12px}
  .ads-option-logo{width:30px;height:30px}
  .ads-check,.ads-radio{width:24px;height:24px}
  [aria-selected=true]>.ads-check::after{left:7px;top:3px;width:6px;height:12px}
  .ads-popup-group{padding:14px 8px 6px}
  .ads-year-cols{flex:1;min-height:0;padding:0 16px}
  .ads-year-col{display:flex;flex-direction:column;min-height:0}
  .ads-year-list{max-height:none;flex:1}
  .ads-year{padding:12px 10px;font-size:16px}
  .ads-popup-foot{margin-top:auto;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));border-radius:0;gap:14px}
  .ads-popup-foot .ads-apply{flex:1;padding:14px 18px;font-size:16px}
  html.ads-sheet-open,html.ads-sheet-open body{overflow:hidden}
  .ads-home-tags{margin:2px 0 10px}
}
@media (max-width:720px){
  .ads-card-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px}
  .ads-card-specs .ads-spec{display:flex;align-items:center;gap:7px;min-width:0}
  .ads-card-specs .ads-spec>span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
}
.ads-card-terms{display:flex;flex-wrap:wrap;gap:6px}
.ads-card-terms span{font-size:12px;font-weight:700;border-radius:999px;padding:4px 10px;background:#eaf1fb;color:#1f3a5f}
/* 03.12 (owner, AUTO.RIA sample): floating «Subscribe» and «Filter» over the results on a phone */
.ads-fab,.ads-fab-note{display:none}
@media (max-width:720px){
  .ads-fab{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:50;display:flex;gap:10px;
    padding:6px;border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 6px 20px rgba(15,23,42,.22);backdrop-filter:blur(6px)}
  .ads-fab button{border:0;border-radius:999px;padding:12px 20px;font:700 15px -apple-system,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
  .ads-fab-sub{background:#fff;color:#1a1a1a;box-shadow:inset 0 0 0 1.5px #1a1a1a}
  .ads-fab-filter{background:var(--ads-red);color:#fff}
  .ads-fab-note:not([hidden]){display:block;position:fixed;left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:50;margin:0;
    background:#1a1a1a;color:#fff;border-radius:12px;padding:12px 14px;font-size:14px;box-shadow:0 6px 20px rgba(15,23,42,.3)}
  .ads-fab-note a{color:#7dd3fc;font-weight:700}
  .ads-filters-open .ads-fab,html.ads-sheet-open .ads-fab{display:none}
  #adsResults{padding-bottom:84px}
  .ads-fab-home{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  .ads-fab[hidden]{display:none}
  .ads-fab-home+.ads-fab-note:not([hidden]){bottom:calc(150px + env(safe-area-inset-bottom,0px))}
}
/* 03.12 (owner's sample): the price as its own full-screen sheet on a phone */
.ads-price-cur{padding:6px 16px 2px;display:flex;gap:8px}
.ads-price-sheet-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 16px}
.ads-price-sheet-field{display:grid;gap:6px;font-weight:600;color:var(--ads-muted)}
.ads-price-sheet-input{height:52px;border:1px solid var(--ads-line);border-radius:12px;padding:0 14px;font:600 17px -apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ads-text);background:#fff;width:100%;box-sizing:border-box}
.ads-price-sheet-input:focus{outline:none;border-color:var(--ads-ink)}
.ads-popup .ads-field-error{margin:0 16px}

/* ---- 03.12 (owner, AUTO.RIA mobile sample): phones only — the computer layout is unchanged ---- */
.ads-site-nav{display:none}
.ads-foot-tags[hidden]{display:none}
@media (max-width:767px){
  /* the site's bottom menu (as on the listing and sell pages); the home page's older menu gives way to it */
  .ads-site-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:45;background:#fff;border-top:1px solid #e5e7eb;
    height:calc(64px + env(safe-area-inset-bottom,0px));box-sizing:border-box;padding:6px 2px env(safe-area-inset-bottom,0px)}
  .ads-site-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#374151;text-decoration:none;font:600 12px -apple-system,"Segoe UI",Roboto,Arial,sans-serif;min-width:0}
  .ads-site-nav a svg{width:24px;height:24px}
  .ads-site-nav a.sell svg{width:34px;height:34px;margin-top:-4px}
  .ads-site-nav a.current{color:#d6262b}
  .ads-site-nav a:active{background:#f1f5f9}
  html.has-site-nav .marketplace-mobile-nav{display:none!important}
  html.has-site-nav body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  body.sell-page .ads-site-nav,html.ads-sheet-open .ads-site-nav,.ads-filters-open .ads-site-nav{display:none}
  /* catalogue header: one row as on the home page — logo, language, favourites; «Sell» and the cabinet are in the bottom menu */
  .ads-page .ads-header{flex-wrap:nowrap;padding:8px 12px;gap:8px}
  .ads-page .ads-header-actions{flex-wrap:nowrap;gap:6px}
  .ads-page #adsLogin,.ads-page #adsSell{display:none}
  .ads-page #adsFavorites [data-t=favorites]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .ads-page #adsFavorites{min-height:40px;padding:6px 10px}
  /* floating «Subscribe» / «Filter»: above the bottom menu, away while scrolling down, the list leaves room for it */
  .ads-fab{bottom:calc(76px + env(safe-area-inset-bottom,0px));transition:transform .2s ease,opacity .2s ease}
  .ads-fab-home{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  .ads-fab-note:not([hidden]){bottom:calc(140px + env(safe-area-inset-bottom,0px))}
  .ads-page .ads-list{padding-bottom:84px}
  /* card photos: the whole picture, so the AutoDeals badge in the corner is never cut */
  .ads-card-photo img{object-fit:contain;background:#eef1f5}
}
@media (max-width:720px){
  /* home quick search: one field «Make, model» (Audi, Q7) — the model and generation fields are not shown above the form;
     their lists still open as full-screen sheets from the combined field */
  .ads-home-compact .ads-dependent>.ads-field{position:absolute;width:0;height:0;padding:0;margin:0;border:0;overflow:visible;order:99}
  .ads-home-compact .ads-dependent>.ads-field>.ads-field-btn{display:none}
  /* «Show N cars» first, then a full «Advanced search» button, «Reset» under them */
  .ads-home-foot{display:grid;grid-template-columns:1fr;gap:10px}
  .ads-home-foot .ads-show{order:1;grid-row:auto;grid-column:1}
  .ads-home-foot .ads-advanced{order:2;justify-content:center;width:100%;box-sizing:border-box;padding:13px 16px;border:1.5px solid #1a1a1a;border-radius:999px;font-size:16px}
  .ads-home-foot .ads-link{order:3;justify-self:center}
  /* full-screen filters: AUTO.RIA order, main characteristics heading, detailed fuel and gearbox lists */
  .ads-main-label{margin:10px 0 0;font-size:17px;font-weight:800}
  .ads-flat .ads-chips{flex-wrap:wrap}
  /* chosen parameters right above the fixed «Show» button, scrolling sideways, with «Clear all» */
  .ads-foot-tags{display:flex;gap:6px;overflow-x:auto;padding:0 0 8px;scrollbar-width:none;align-items:center}
  .ads-foot-tags::-webkit-scrollbar{display:none}
  .ads-foot-tags .ads-tag{flex:none}
  .ads-foot-clear{flex:none;border:0;background:none;font-weight:700;text-decoration:underline;padding:6px 4px;color:#1a1a1a;white-space:nowrap}
}

/* ---- 03.12 acceptance (phones only): readability, tidy fuel/gearbox buttons, every chosen filter reachable, one «Clear
   all», the «Filters» button on one line, the «Subscribe / Filter» bar docked above the menu, the menu inside safe areas ---- */
@media (max-width:720px){
  .ads-page,.ads-home{--ads-muted:#475467;--ads-line:#a9b3c1}
  .ads-field-btn{border:1.5px solid #a9b3c1;font-size:16px;color:#14181f}
  .ads-field-label{color:#475467;font-size:15px}
  .ads-field.filled .ads-field-label{font-size:12.5px;color:#344054;font-weight:600}
  .ads-field-value{color:#14181f;font-weight:600}
  .ads-group-label{font-size:14.5px;color:#344054;font-weight:700}
  .ads-chip{border:1.5px solid #a9b3c1;color:#14181f;font-size:15px}
  .ads-range input,.ads-price input{border:1.5px solid #a9b3c1;color:#14181f;font-size:16px}
  .ads-range input::placeholder,.ads-price input::placeholder{color:#667085}
  .ads-card-specs{color:#1e2633;font-size:15px}
  .ads-spec svg{color:#475467}
  .ads-card-foot,.ads-card-desc,.ads-card-price span{color:#475467}
  .ads-card-foot{font-size:14px}
  /* fuel and gearbox: an even two-column grid, every existing type kept */
  .ads-flat .ads-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .ads-flat .ads-chip{width:100%;min-height:44px;padding:8px 10px;border-radius:12px;text-align:center;white-space:normal;line-height:1.25}
  /* chosen filters above the fixed button: they wrap (none is cut), the strip scrolls when it is long; one «Clear all» */
  .ads-foot-tags{flex-wrap:wrap;overflow-x:visible;overflow-y:auto;max-height:min(40vh,260px);padding:2px 0 8px}
  .ads-filters-head .ads-reset{display:none}
  /* «Filters (N)» on one line */
  .ads-mobile-filters{white-space:nowrap;flex:none}
  .ads-results-tools{flex-wrap:nowrap;gap:8px}
}
@media (max-width:767px){
  /* the bottom menu: a fixed-height row above the phone's own bar (safe area), labels never cut */
  .ads-site-nav{height:auto;min-height:calc(62px + env(safe-area-inset-bottom,0px));padding:5px 2px max(4px,env(safe-area-inset-bottom,0px));align-items:start}
  .ads-site-nav a{justify-content:flex-start;gap:2px;padding-top:2px;line-height:1.15;white-space:nowrap}
  .ads-site-nav a svg{width:24px;height:24px;flex:none}
  .ads-site-nav a.sell svg{width:30px;height:30px;margin:-3px 0 -3px}
  /* «Subscribe / Filter»: a docked bar right above the menu (solid background), the content scrolls clear of it */
  .ads-fab,.ads-fab-home{left:0;right:0;transform:none;bottom:calc(62px + env(safe-area-inset-bottom,0px));justify-content:center;gap:10px;
    padding:8px max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px));background:#fff;border-top:1px solid #e5e7eb;border-radius:0;box-shadow:0 -4px 12px rgba(16,24,40,.06)}
  .ads-fab button{flex:1 1 0;justify-content:center;max-width:220px;padding:11px 14px}
  .ads-fab-note:not([hidden]){bottom:calc(128px + env(safe-area-inset-bottom,0px))}
  .ads-page .ads-list,.ads-page .ads-pages{scroll-margin-bottom:130px}
  html.has-site-nav .ads-page{padding-bottom:calc(132px + env(safe-area-inset-bottom,0px))}
  html.has-site-nav body:has(.ads-fab-home:not([hidden])){padding-bottom:calc(132px + env(safe-area-inset-bottom,0px))}
}
