/* DML Auto-Land — stil public (inspirat de paginile de dealer mobile.de) */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #e9ecf1;
  --card: #ffffff;
  --ink: #16181d;
  --ink-2: #3f444d;
  --muted: #6b717c;
  --line: #d6dae1;
  --line-2: #e7eaef;
  --field: #e6e9ef;
  --field-line: #9ba2ad;
  --dark: #16181d;
  --dark-hover: #2c3038;
  --red: #d7141a;
  --red-dark: #b10f14;
  --link: #1d3c91;
  --green: #12813f;
  --wa: #1c9e4f;
  --wa-hover: #17863f;
  --orange: #f26b21;
  --amber: #b86a00;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, 0.18);
  --focus: 0 0 0 3px rgba(29, 60, 145, 0.35);
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
[hidden] { display: none !important; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px; line-height: 1.1; text-decoration: none;
  border: 2px solid transparent; background: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-hover); }
.btn-outline { border-color: var(--dark); color: var(--dark); background: #fff; }
.btn-outline:hover { background: #f3f4f7; }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: #eef0f4; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-danger { background: #fff; color: var(--red-dark); border-color: #f0b8ba; }
.btn-danger:hover { background: #fdf0f0; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn-lg { min-height: 54px; font-size: 17px; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .38; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink);
}
.icon-btn:hover { background: #eef0f4; }
.icon-btn .i { width: 24px; height: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-link .i { width: 16px; height: 16px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Antet ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line-2); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  border: 0; background: none; border-radius: 12px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.top-link:hover { background: #f1f3f6; }
.count-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 800; display: inline-grid; place-items: center;
}
.top-call { margin-left: 6px; }

/* ---------- Card dealer ---------- */
.dealer {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 18px;
  padding: 18px 22px; margin: 18px 0;
}
/* cu hartă: harta mică, încadrată, în dreapta datelor de contact */
.dealer.has-map {
  grid-template-columns: auto minmax(0, 1fr) minmax(250px, 360px);
  grid-template-areas: "mark info map" "mark about map" "perks perks perks";
  align-items: start; gap: 10px 20px;
}
.dealer.has-map .dealer-mark { grid-area: mark; }
.dealer.has-map .dealer-info { grid-area: info; }
.dealer.has-map .dealer-about { grid-area: about; justify-self: start; align-self: end; }
.dealer.has-map .perks { grid-area: perks; }
.dealer-info { min-width: 0; }
.dealer-mark { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: #fff; }
.dealer-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.dealer-meta { display: flex; align-items: center; gap: 6px; color: var(--ink-2); margin-top: 4px; }
.addr-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(22, 24, 29, .3); text-underline-offset: 4px;
}
.addr-link:hover { color: var(--link); text-decoration-color: currentColor; }
.addr-link .i { width: 18px; height: 18px; color: var(--red); flex: none; }
.addr-link .addr-ext { width: 14px; height: 14px; color: var(--muted); }
.addr-inline { color: inherit; text-underline-offset: 3px; }
.addr-hint { font-size: 14px; color: var(--muted); margin-top: 2px; }
.dealer-map {
  grid-area: map; position: relative; align-self: stretch; min-height: 176px;
  padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.dealer-map iframe {
  position: absolute; top: 5px; left: 5px; width: calc(100% - 10px); height: calc(100% - 10px);
  border: 0; border-radius: 11px; background: #e3e7ed;
}
/* Locul hărții până o cere vizitatorul: nimic nu pleacă spre Google înainte de clic */
.map-load {
  position: absolute; top: 5px; left: 5px; width: calc(100% - 10px); height: calc(100% - 10px);
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 0; border-radius: 11px; color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)),
    repeating-linear-gradient(0deg, #dfe5ec 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, #dfe5ec 0 1px, transparent 1px 26px),
    #eef2f6;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.map-load:hover, .map-load:focus-visible { box-shadow: inset 0 0 0 2px var(--red); }
.map-load-in { display: grid; justify-items: center; gap: 2px; text-align: center; padding: 8px 12px; }
.map-load-pin { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 2px; border-radius: 50%; background: var(--red); box-shadow: 0 2px 8px rgba(215, 20, 26, .35); }
.map-load-pin .i { width: 20px; height: 20px; color: #fff; }
.map-load-txt { font-weight: 700; font-size: 15px; }
.map-load-note { font-size: 12px; color: var(--muted); }
/* PC lat: harta mai spre mijloc, „Despre noi” centrat în spațiul din dreapta, bifele pe rândul de jos */
@media (min-width: 1081px) {
  .dealer.has-map {
    grid-template-columns: auto minmax(0, 1.1fr) minmax(270px, 320px) minmax(0, .9fr);
    grid-template-areas: "mark info map about" "perks perks perks perks";
    gap: 10px 22px;
  }
  .dealer.has-map .dealer-about { justify-self: center; align-self: center; }
}
.open-state { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.open-state .dot { width: 9px; height: 9px; border-radius: 50%; background: #b8bec8; flex: none; margin-top: .5em; }
.open-state.is-open { color: var(--green); }
.open-state.is-open .dot { background: #19a24f; box-shadow: 0 0 0 4px rgba(25, 162, 79, .15); }
.dealer-about .i { width: 18px; height: 18px; }
.perks {
  grid-column: 1 / -1; list-style: none; margin: 12px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: 15px; font-weight: 500;
}
.perks li { display: inline-flex; align-items: center; gap: 6px; }
.perks .i { width: 18px; height: 18px; color: var(--green); stroke-width: 2.5; }

/* ---------- Structură listă ---------- */
.layout { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 40px; }

/* ---------- Filtre ---------- */
.filters {
  position: sticky; top: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden;
}
.filters-body { scrollbar-width: thin; scrollbar-color: #c3c8d0 transparent; }
.filters-head { display: none; align-items: center; justify-content: space-between; padding: 12px 12px 4px 20px; }
.filters-head h2 { font-size: 26px; font-weight: 800; }
.filters-body { padding: 18px 18px 6px; overflow-y: auto; overscroll-behavior: contain; }
.filters-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px 16px; border-top: 1px solid var(--line-2); background: #fff;
}
.filters-foot .btn { flex: 1; }
.f-group { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.f-group legend, .f-label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 8px; padding: 0; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-row .select select { padding: 0 42px 0 12px; }
.f-row .select::after { width: 36px; background-size: 12px; }
.f-row-2 .f-group { margin-bottom: 18px; }
.cat-list { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cat-chip, .chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.cat-chip .i { width: 24px; height: 24px; color: var(--ink-2); stroke-width: 1.7; }
.cat-chip input, .chip input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chip:has(input:checked), .chip:has(input:checked) { border-color: var(--dark); box-shadow: inset 0 0 0 1px var(--dark); font-weight: 700; }
.cat-chip:has(input:focus-visible), .chip:has(input:focus-visible), .seg label:has(input:focus-visible) { box-shadow: var(--focus); }
.cnt { color: var(--muted); font-weight: 500; font-size: 14px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 4px 12px; font-size: 15px; }
.chip.is-empty { opacity: .45; }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { flex: 1; position: relative; text-align: center; cursor: pointer; }
.seg label + label { border-left: 1.5px solid var(--line); }
.seg span { display: block; padding: 9px 6px; font-size: 15px; font-weight: 500; }
.seg label:has(input:checked) { background: var(--dark); color: #fff; }
.seg label:has(input:checked) span { font-weight: 700; }

.select { position: relative; }
.select select {
  width: 100%; height: 48px; padding: 0 52px 0 14px; appearance: none; -webkit-appearance: none;
  background: var(--field); border: 1.5px solid var(--field-line); border-radius: 10px; font-size: 16px; color: var(--ink);
  text-overflow: ellipsis;
}
.select::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 44px; border-left: 1.5px solid var(--field-line);
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M0 0h14L7 8z' fill='%2316181d'/%3E%3C/svg%3E");
  pointer-events: none;
}
.select select:disabled { opacity: .5; }
.select:has(select:disabled)::after { opacity: .4; }
.select select:focus-visible { box-shadow: var(--focus); }

/* ---------- Rezultate ---------- */
.results { min-width: 0; }
.mbar { display: none; }
.results-head { padding: 20px 22px; margin-bottom: 14px; }
.results-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.chip-x, .chip-static {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px;
  background: var(--field); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.chip-x .i { width: 16px; height: 16px; }
.chip-x:hover { background: #d9dde5; }
.sort-row { margin-top: 16px; max-width: 420px; }
.sort-row .f-label { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }

.car-list { display: flex; flex-direction: column; gap: 14px; }
.car {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-areas: "img head" "img facts" "img hl" "img act";
  grid-template-rows: auto auto 1fr auto; gap: 10px 22px; position: relative;
}
.car-img {
  grid-area: img; position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden;
  background: #eef0f4; align-self: start;
}
.car-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.car:hover .car-img img { transform: scale(1.03); }
.badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 7px; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em; color: #fff; font-style: italic;
}
.badge-new { background: var(--orange); }
.badge-reserved { background: var(--dark); font-style: normal; }
.photo-count {
  position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px;
  border-radius: 8px; background: rgba(12, 14, 18, .72); color: #fff; font-size: 13px; font-weight: 700;
}
.photo-count .i { width: 15px; height: 15px; }
.car-head { grid-area: head; min-width: 0; }
.car-title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.car-title a { text-decoration: none; }
.car-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.car-title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.car-price { font-size: 26px; font-weight: 800; margin-top: 10px; letter-spacing: -.01em; }
.car-price sup { font-size: 14px; font-weight: 600; margin-left: 4px; top: -.9em; }
.car-fin { position: relative; z-index: 1; display: inline-block; margin-top: 4px; color: var(--link); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.car-facts { grid-area: facts; font-size: 16px; color: var(--ink); }
.car-facts b { font-weight: 800; }
.car-hl { grid-area: hl; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.car-hl li { display: flex; gap: 10px; align-items: flex-start; }
.car-hl .i { margin-top: 2px; stroke-width: 2.4; }
.car-actions {
  grid-area: act; position: relative; z-index: 1; display: flex; justify-content: flex-end; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px;
}
.car-actions .btn { min-width: 140px; }
.js-save[aria-pressed="true"] { border-color: var(--red); color: var(--red); }
.js-save[aria-pressed="true"] .i { fill: var(--red); stroke: var(--red); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 8px; }
.pager .btn { min-width: 140px; }
.pager-n { font-weight: 800; font-size: 20px; }
.footnote { color: var(--ink-2); font-size: 14px; margin-top: 10px; }
.empty { padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h1, .empty h2 { font-size: 24px; font-weight: 800; }
.empty p { color: var(--ink-2); max-width: 520px; }
.empty-i { width: 44px; height: 44px; color: var(--muted); stroke-width: 1.6; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }

/* ---------- Pagina mașinii ---------- */
.crumbs { padding: 16px 0 12px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 6px 2px; }
.back-link:hover { text-decoration: underline; }
.car-page {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "gallery aside" "details aside";
  gap: 20px; align-items: start; padding-bottom: 48px;
}
.car-gallery { grid-area: gallery; min-width: 0; }
.car-aside { grid-area: aside; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.car-details { grid-area: details; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: #dfe3e9; }
.g-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 3 / 2;
  overscroll-behavior-x: contain;
}
.g-track::-webkit-scrollbar { display: none; }
.g-slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; display: grid; place-items: center; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; }
/* poza întreagă (contain) peste o copie estompată a ei, ca să nu tăiem mașina */
.g-slide .g-bg { position: absolute; inset: 0; transform: scale(1.15); filter: blur(22px) brightness(.92) saturate(1.1); }
.g-slide .g-img { position: relative; object-fit: contain; }
.g-slide .g-vid { position: relative; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.i-fill { fill: currentColor; stroke: none; }
.g-thumb { position: relative; }
.g-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(12, 14, 18, .28); }
.g-thumb-play .i { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.video-pill {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  border-radius: 8px; background: rgba(12, 14, 18, .72); color: #fff; font-size: 13px; font-weight: 700;
}
.video-pill .i { width: 12px; height: 12px; }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.g-nav .i { width: 26px; height: 26px; }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.g-counter, .g-full {
  position: absolute; bottom: 12px; background: rgba(12, 14, 18, .72); color: #fff; border-radius: 10px; font-weight: 700; font-size: 14px;
}
.g-counter { left: 12px; padding: 5px 10px; }
.g-full { right: 12px; border: 0; width: 40px; height: 36px; display: grid; place-items: center; }
.g-full .i { width: 18px; height: 18px; }
.g-close { display: none; }
.g-badge { top: 12px; left: 12px; }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: thin; }
.g-thumb { flex: none; width: 96px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #dfe3e9; opacity: .7; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.is-active { border-color: var(--dark); opacity: 1; }
.g-credit { font-size: 12px; color: var(--muted); margin-top: 6px; }
/* ecran complet */
.gallery.is-full { position: fixed; inset: 0; z-index: 90; border-radius: 0; background: #0b0c0f; display: flex; flex-direction: column; justify-content: center; }
.gallery.is-full .g-track { aspect-ratio: auto; height: 100%; }
.gallery.is-full .g-slide img { object-fit: contain; }
.gallery.is-full .g-bg { display: none; }
.gallery.is-full .g-full { display: none; }
.gallery.is-full .g-close {
  display: grid; place-items: center; position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff;
}
.gallery.is-full .g-close .i { width: 26px; height: 26px; }
body.no-scroll { overflow: hidden; }

.aside-card { padding: 22px; }
.reserved-note { display: flex; align-items: center; gap: 8px; background: #fff4e0; color: var(--amber); font-weight: 700; padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 15px; }
.car-h1 { font-size: 25px; font-weight: 800; letter-spacing: -.01em; }
.car-sub { color: var(--ink-2); margin-top: 6px; }
.price-big { font-size: 34px; font-weight: 800; margin-top: 14px; letter-spacing: -.02em; }
.price-note { color: var(--muted); font-size: 14px; }
.aside-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; scroll-margin-top: 16px; }
.aside-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aside-row .btn { padding: 0 10px; }
.aside-card .open-state { margin-top: 16px; }
.aside-addr { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; }
.aside-addr .i { width: 17px; height: 17px; margin-top: 2px; }
.perks-card { list-style: none; margin: 0; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.perks-card li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-2); }
.perks-card .i { width: 22px; height: 22px; color: var(--ink); stroke-width: 1.8; }

.sec { padding: 22px; }
.sec-h { font-size: 21px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.01em; }
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kf { display: flex; flex-direction: column; gap: 2px; background: #f3f5f8; border-radius: 14px; padding: 14px; }
.kf .i { width: 24px; height: 24px; color: var(--ink-2); margin-bottom: 6px; stroke-width: 1.8; }
.kf span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kf b { font-size: 16px; font-weight: 800; }
.hl-big { margin-top: 18px; }
.spec { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; text-align: right; }
.feat-h { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 8px; }
.feat-h:first-of-type { margin-top: 0; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.feat-list li, .check-list li { display: flex; gap: 10px; align-items: flex-start; }
.feat-list .i, .check-list .i { color: var(--green); stroke-width: 2.5; margin-top: 2px; }
.desc { white-space: pre-line; color: var(--ink-2); }
.fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.range { width: 100%; accent-color: var(--dark); height: 48px; }
.fin-result { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: #f3f5f8; border-radius: 14px; padding: 16px 18px; margin: 6px 0 12px; }
.fin-result span { font-weight: 600; color: var(--ink-2); }
.fin-result b { font-size: 28px; font-weight: 800; }
.fin .btn { margin-top: 14px; }
.similar .sec-h { padding: 4px 4px 0; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.mini:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.mini-img { display: block; aspect-ratio: 16 / 10; background: #eef0f4; }
.mini-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 16px; }
.mini-title { font-weight: 800; line-height: 1.3; }
.mini-price { font-size: 19px; font-weight: 800; margin-top: 4px; }
.mini-facts { color: var(--muted); font-size: 14px; }
.buybar { display: none; }

.prose { padding: 28px; margin: 24px 0 48px; }
.prose h1 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.prose h2 { font-size: 20px; font-weight: 800; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--link); }
.pg-simple main .card.empty { margin-top: 24px; }
.pg-simple .similar { margin: 20px 0 40px; }

/* ---------- Ferestre (Despre noi, Contact) ---------- */
dialog.sheet {
  width: min(560px, calc(100% - 32px)); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: var(--radius);
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop { background: rgba(14, 16, 20, .55); }
dialog.sheet-sm { width: min(440px, calc(100% - 32px)); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 14px 14px 22px; border-bottom: 1px solid var(--line-2); }
.sheet-head h2 { font-size: 23px; font-weight: 800; }
.sheet-title { display: flex; align-items: center; gap: 14px; }
.sheet-mark { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.sheet-body { padding: 18px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.sheet-body > * { flex-shrink: 0; }
.sheet-foot { padding: 14px 22px 18px; border-top: 1px solid var(--line-2); }
.sheet-foot-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-h3 { font-size: 17px; font-weight: 800; }
.about-text { color: var(--ink-2); }
.about-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.about-facts li { display: flex; gap: 14px; align-items: flex-start; }
.about-facts .i { width: 24px; height: 24px; margin-top: 2px; stroke-width: 1.7; }
.about-facts b { display: block; font-weight: 800; }
.about-facts span, .about-facts a { color: var(--ink-2); }
.hours-list { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 14px; margin: 2px 0 0; }
.hours-list dt { color: var(--ink-2); }
.hours-list dd { margin: 0; color: var(--ink); font-weight: 600; white-space: nowrap; }
.about-facts a { color: var(--link); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.legal { border: 1.5px solid var(--dark); border-radius: 12px; }
.legal summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; font-weight: 800; }
.legal summary::-webkit-details-marker { display: none; }
.legal[open] summary .i { transform: rotate(180deg); }
.legal dl { margin: 0; padding: 4px 16px 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; font-weight: 600; }
.contact-body .btn { justify-content: center; }
.contact-body .open-state { margin-top: 2px; }

/* ---------- Subsol ---------- */
.footer { background: #fff; border-top: 1px solid var(--line-2); margin-top: 20px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
.footer h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-2); font-size: 15px; max-width: 360px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .i { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.footer-list a { text-decoration: none; font-weight: 600; }
.footer-list a:hover { text-decoration: underline; }
.footer-list.hours li { justify-content: space-between; gap: 16px; }
.footer-list.plain { color: var(--ink-2); }
.anpc-li { margin-top: 4px; }
.anpc-sal { display: inline-block; line-height: 0; border-radius: 6px; }
.anpc-sal img { width: 201px; height: 50px; max-width: 100%; }
.anpc-sal:hover { opacity: .85; }
.footer-bottom { border-top: 1px solid var(--line-2); padding-top: 16px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }

/* ---------- Tabletă ---------- */
@media (max-width: 1080px) {
  .car { grid-template-columns: 240px minmax(0, 1fr); }
  .car-page { grid-template-columns: minmax(0, 1fr) 340px; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .car-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "aside" "details"; gap: 14px; }
  .car-aside { position: static; }
  .keyfacts { grid-template-columns: repeat(3, 1fr); }
  .buybar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 24px rgba(16, 24, 40, .12);
  }
  .pg-car .footer { padding-bottom: 76px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}

/* ---------- Filtre ca ecran întreg (telefon și tabletă îngustă) ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filters {
    position: fixed; inset: 0; z-index: 80; max-height: none; border-radius: 0; box-shadow: none;
    transform: translateY(100%); visibility: hidden; transition: transform .28s ease, visibility .28s;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters-head { display: flex; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; }
  .filters-body { flex: 1; padding: 18px 20px 12px; }
  .filters-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(16, 24, 40, .06); }
  .cat-list { flex-direction: column; }
  .mbar {
    display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; background: #fff;
    margin: 0 -16px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line-2);
  }
  .mbar .btn { flex: none; }
  .mbar-n { background: #fff; color: var(--dark); border-radius: 8px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 13px; padding: 0 5px; }
  .mbar-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .mbar-chips::-webkit-scrollbar { display: none; }
  .desk-only { display: none !important; }
  .dealer { margin: 14px 0; }
}

/* ---------- Telefon ---------- */
@media (max-width: 699px) {
  body { font-size: 16px; }
  .topbar-in { height: 64px; gap: 8px; }
  .brand img { height: 36px; }
  .top-link { padding: 0 10px; }
  .top-link .lbl, .top-call .lbl { display: none; }
  .top-link .i { width: 24px; height: 24px; }
  .top-call { width: 44px; min-height: 44px; padding: 0; margin-left: 2px; }
  .count-badge { position: absolute; top: 2px; right: 0; }

  .dealer { grid-template-columns: auto 1fr; padding: 16px; gap: 4px 14px; border-radius: 18px; }
  .dealer-mark { width: 64px; height: 64px; grid-row: span 1; }
  .dealer-name { font-size: 19px; }
  .dealer-meta, .open-state { font-size: 14px; }
  .dealer-about { grid-column: 1 / -1; width: 100%; margin-top: 10px; min-height: 44px; }
  .dealer.has-map { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "mark info" "map map" "about about" "perks perks"; gap: 4px 14px; }
  .dealer.has-map .dealer-about { justify-self: stretch; margin-top: 4px; }
  .dealer-map { min-height: 190px; margin-top: 10px; }
  .addr-hint { font-size: 13px; }
  .perks { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 12px -16px 0; padding: 12px 16px 2px; scrollbar-width: none; }
  .perks::-webkit-scrollbar { display: none; }
  .perks li { flex: none; background: #f1f4f2; border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 14px; }

  .results-head { padding: 18px 16px; border-radius: 18px; }
  .results-title { font-size: 21px; }
  .sort-row { max-width: none; }

  .car {
    grid-template-columns: 44% minmax(0, 1fr); grid-template-areas: "img head" "facts facts" "hl hl" "act act";
    grid-template-rows: auto; padding: 16px; gap: 12px 14px; border-radius: 18px;
  }
  .car-img { aspect-ratio: 4 / 3; border-radius: 12px; }
  .badge { top: 6px; left: 6px; font-size: 11px; padding: 3px 7px; }
  .photo-count { right: 6px; bottom: 6px; font-size: 12px; padding: 2px 6px; }
  .car-title { font-size: 17px; line-height: 1.25; }
  .car-price { font-size: 21px; margin-top: 8px; }
  .car-fin { font-size: 13px; line-height: 1.3; }
  .car-facts { font-size: 15.5px; }
  .car-hl { font-size: 15.5px; }
  .car-actions { gap: 10px; }
  .car-actions .btn { flex: 1; min-width: 0; }
  .pager .btn { min-width: 0; padding: 0 16px; }

  .crumbs { padding: 10px 0 8px; }
  .gallery { margin: 0 -16px; border-radius: 0; }
  .g-track { aspect-ratio: 4 / 3; }
  .g-nav { display: none; }
  .g-thumbs { display: none; }
  .g-credit { padding: 0 2px; }
  .aside-card { padding: 18px 16px; border-radius: 18px; }
  .car-h1 { font-size: 22px; }
  .price-big { font-size: 30px; }
  .aside-actions > .btn-dark, .aside-actions > .btn-wa { display: none; }
  .sec { padding: 18px 16px; border-radius: 18px; }
  .sec-h { font-size: 19px; }
  .keyfacts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kf { padding: 12px; }
  .spec { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .fin-grid { grid-template-columns: 1fr; gap: 6px; }
  .fin-result b { font-size: 24px; }
  .mini-grid { grid-template-columns: 1fr; }
  .mini { flex-direction: row; }
  .mini-img { width: 42%; flex: none; aspect-ratio: 4 / 3; }
  .mini-body { justify-content: center; }
  .perks-card { padding: 16px; border-radius: 18px; }
  .perks-card li { font-size: 15px; }

  dialog.sheet { width: 100%; max-width: none; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  dialog.sheet-sm { height: fit-content; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .sheet-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

  .footer-in { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .prose { padding: 20px 16px; }
}

@media (max-width: 380px) {
  .brand img { height: 32px; }
  .top-link { padding: 0 8px; }
  .car-title { font-size: 16px; }
  .car-price { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
