@font-face { font-family: Archivo; font-weight: 700; font-display: swap; src: url(/fonts/archivo-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB; }
@font-face { font-family: Archivo; font-weight: 700; font-display: swap; src: url(/fonts/archivo-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: Archivo; font-weight: 800; font-display: swap; src: url(/fonts/archivo-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB; }
@font-face { font-family: Archivo; font-weight: 800; font-display: swap; src: url(/fonts/archivo-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }

:root {
  --bg: #121416; --surface: #1E2226; --line: #2C3136; --chip: #2C3136; --edge: #6B7480;
  --text: #F2F3F5; --muted: #A7AEB8; --photo: #3A4047;
  --accent: #F2B01E; --on-accent: #121416; --wa: #0B6B37; --green: #4ADE80; --danger: #FF8A80;
  --display: Archivo, 'Arial Narrow', sans-serif; --body: 'IBM Plex Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.45 var(--body); }
a { color: var(--text); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.2; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.ic { flex-shrink: 0; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; }
.error { background: #3A1F1F; color: var(--danger); padding: 10px 12px; border-radius: 10px; }
.green { color: var(--green); }

.top { height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.logo { display: flex; align-items: center; gap: 8px; font: 800 19px var(--display); text-decoration: none; }
.logo .star { color: var(--accent); display: flex; }
.topnav { display: flex; align-items: center; gap: 4px; }
.lang { min-width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.lang.on { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.wrap.narrow { max-width: 560px; }
.center { align-items: center; text-align: center; padding-top: 48px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 8px; align-items: stretch; }
.grow { flex: 1 1 auto; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label, legend { font-size: 13px; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid var(--edge); border-radius: 10px; padding: 10px 14px; background: var(--surface); color: var(--text); font: 400 16px var(--body); }
input[type=file] { padding: 10px; }
input[type=checkbox], input[type=radio] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible, .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--text); font-size: 15px; }

.btn { min-height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--body); text-decoration: none; cursor: pointer; color: var(--text); background: var(--chip); text-align: center; }
.btn.small { min-height: 44px; font-size: 14px; padding: 0 12px; border-color: var(--edge); background: transparent; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; border-color: var(--edge); }
.btn.block { width: 100%; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.call { background: var(--text); color: var(--bg); }
.linkbtn { background: none; border: 0; color: var(--text); text-decoration: underline; font: 500 14px var(--body); min-height: 44px; cursor: pointer; padding: 0 4px; }

.filters { display: flex; flex-direction: column; gap: 14px; }
.filters .loc input { flex: 1 1 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { min-height: 44px; padding: 0 14px; border-radius: 8px; background: var(--chip); color: var(--text); display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; font-size: 14px; border: 2px solid var(--chip); width: 100%; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip.tall span { min-height: 56px; line-height: 1.2; }
.count { font-size: 18px; font-weight: 700; }
.empty { color: var(--muted); padding: 24px 0; }

.cards { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 0 -16px; }
.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.card-photo { aspect-ratio: 4 / 3; background: var(--photo); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 16px; }
.thumbs img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; width: 100%; background: var(--photo); }
.card-body { padding: 8px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.price { font: 800 24px var(--display); }
.price.big { font-size: 28px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 15px; }
.specs span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.specs .ic { color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; }

.listing { display: flex; flex-direction: column; max-width: 1120px; margin: 0 auto; padding-bottom: 96px; }
.main-photo { position: relative; aspect-ratio: 4 / 3; background: var(--photo); overflow: hidden; }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; background: var(--bg); color: var(--text); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.badge.tl { left: 12px; top: 12px; } .badge.bl { left: 12px; bottom: 12px; } .badge.br { right: 12px; bottom: 12px; font-weight: 400; }
.badge.sold { right: 12px; top: 12px; background: var(--accent); color: var(--on-accent); }
.thumbrow { display: flex; gap: 8px; padding: 8px 16px 0; overflow-x: auto; }
.thumb { flex: 0 0 31%; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; }
.thumb.on { border-color: var(--accent); }
.thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.info { padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.info h1 { font-size: 22px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--chip); border-radius: 6px; padding: 3px 9px; font-size: 14px; font-weight: 600; }
.tags:empty { display: none; }
.box { background: var(--surface); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.box.accent { border: 2px solid var(--accent); gap: 2px; padding: 10px 12px; }
.box.place { flex-direction: row; border: 2px solid var(--accent); padding: 14px; }
.box.place > div { display: flex; flex-direction: column; gap: 2px; }
.box.place p { font-size: 13px; color: var(--muted); }
.box.place a { font-weight: 600; font-size: 14px; padding: 8px 0; }
.rows { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.rows dt { color: var(--muted); } .rows dd { margin: 0; font-weight: 600; text-align: right; }
.desc { white-space: pre-line; margin-top: 8px; }
.pick { display: grid; gap: 8px; }
.pick.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pick.three-eq { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick .chip span { background: transparent; border: 1px solid var(--edge); padding: 0 4px; }
.pick .chip input:checked + span { border: 2px solid var(--accent); background: var(--accent); }
.dealerbox { flex-direction: row; align-items: center; }
.dealerbox > div { display: flex; flex-direction: column; }
.dealerbox span { color: var(--muted); font-size: 13px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--photo); display: flex; align-items: center; justify-content: center; font: 700 18px var(--display); color: var(--text) !important; }
.contactbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; z-index: 6; }
.contactbar .btn { min-height: 52px; font-size: 16px; border-radius: 12px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--surface); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.tile b { display: block; font: 800 26px/1 var(--display); }
.tile div span { font-size: 13px; color: var(--muted); }
.mylist { display: flex; flex-direction: column; gap: 12px; }
.mycar { background: var(--surface); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.mycar.is-sold { opacity: .75; }
.mycar .mc-top { display: flex; gap: 12px; }
.mycar .mc-top img { width: 104px; height: 78px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.mycar .mc-top > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 15px; }
.mycar .muted { font-size: 13px; }
.nums { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; }
.nums span { display: flex; align-items: center; gap: 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { min-height: 44px; font-size: 14px; }
.photogrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photogrid img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; width: 100%; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.checks .ic { color: var(--accent); }
details summary { cursor: pointer; min-height: 32px; font-weight: 600; }
details[open] summary { margin-bottom: 12px; }
legend { padding: 0; margin-bottom: 4px; font-weight: 600; color: var(--text); font-size: 15px; }

.foot { border-top: 1px solid var(--line); padding: 16px; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; justify-content: center; font-size: 14px; }
.foot a { color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.listing ~ .foot { padding-bottom: 100px; }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 24px; }
  .card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; padding-bottom: 16px; }
  .filters { display: grid; grid-template-columns: 2fr 1fr; align-items: end; }
  .filters > .chips, .filters > .three, .filters > .row, .filters > p { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .listing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; padding: 16px 16px 96px; align-items: start; }
  .gallery { position: sticky; top: 72px; }
  .main-photo { border-radius: 14px; }
  .thumbrow { padding: 8px 0 0; }
  .thumb { flex-basis: 18%; }
  .info { padding: 0 0 0 16px; }
  .contactbar { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, 100%); border: 1px solid var(--line); border-radius: 16px 16px 0 0; }
}
@media (min-width: 1040px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

[hidden] { display: none !important; }

.drop { position: relative; min-height: 130px; border: 2px dashed var(--edge); border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; color: var(--text); font-weight: 500; }
.drop.over { border-color: var(--accent); background: var(--surface); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
#previews:empty { display: none; }
