/* Propys Leilões (prévia). Mesmo sistema "private" do propys.com.br: navy, âmbar, linhas finas, cantos retos. */
:root {
  --ink: #172C38; --ink-hover: #294554; --amber: #BD9255; --amber-ink: #8A6530;
  --paper: #F4F4F2; --surface: #fff; --line: #DADDDC; --muted: #5C666A; --track: #E3E6E4;
  --sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ctl: 500 11px/1 var(--sans); --ctl-track: .14em; --ctl-line: 1px solid var(--line);
  --nav: 72px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--ink); text-decoration: none; }
button, input { font-family: inherit; color: inherit; }
button, a, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--ink); color: #fff; font: var(--ctl); letter-spacing: var(--ctl-track); text-transform: uppercase; }
.skip:focus-visible { top: max(8px, env(safe-area-inset-top)); }

/* Cabeçalho igual ao do Propys */
.top { height: var(--nav); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 30; }
.top nav { display: flex; gap: 20px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; }
.top nav a.is-on { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 9px; }
.top .right { justify-self: end; }
.brand { justify-self: center; display: flex; align-items: center; gap: 8px; font-family: 'Lexend Exa', var(--sans); font-weight: 500; font-size: 20px; }
.brand .mark { width: 30px; height: 30px; }
.sub-brand { color: var(--amber-ink); font: 500 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .top nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 9px; } }

/* Barra de busca e filtros */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 16px 24px; background: var(--surface); border-bottom: var(--ctl-line); position: relative; z-index: 20; }
.searchbox { position: relative; display: flex; align-items: center; flex: 0 1 560px; min-width: 0; height: 48px; gap: 12px; padding: 0 8px 0 0; border: var(--ctl-line); background: var(--surface); }
.searchbox:focus-within { border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 15px; }
.searchbox input:focus-visible { outline: 0; }
.searchbox input::placeholder { color: var(--muted); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.search-ico { width: 16px; height: 16px; stroke-width: 1.4; color: var(--muted); flex: none; }
.dd-uf { align-self: stretch; }
.loc-btn { display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px; border: 0; border-right: var(--ctl-line); background: none; font: var(--ctl); letter-spacing: var(--ctl-track); text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.loc-btn:focus-visible { outline-offset: -4px; }
.loc-uf { color: var(--amber-ink); font-weight: 600; }
.chev { width: 9px; height: 9px; color: var(--amber); flex: none; }
.q-clear { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.q-clear[hidden] { display: none; }
.q-clear svg { width: 12px; height: 12px; }
.sugestoes { position: absolute; top: calc(100% + 1px); left: -1px; z-index: 40; width: min(560px, calc(100vw - 32px)); max-height: min(420px, 60dvh); overflow-y: auto; padding: 8px 0 10px; background: var(--surface); border: var(--ctl-line); }
.sugestoes { overscroll-behavior: contain; }
.sugestoes[hidden] { display: none; }
.sug-group { margin: 0; padding: 14px 20px 4px; color: var(--muted); font: 500 10.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.sugestoes [role=option] { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 8px 20px; cursor: pointer; }
.sugestoes [aria-selected=true] { background: var(--paper); box-shadow: inset 2px 0 0 var(--amber); }
.sug-empty { margin: 0; padding: 12px 20px; color: var(--muted); }
.n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap; }

.filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; min-width: 0; }
.dd { position: relative; display: inline-flex; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 260px; padding: 0 2px; border: 0; border-bottom: 1px solid transparent; background: none; font: var(--ctl); letter-spacing: var(--ctl-track); text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.pill .pv { overflow: hidden; text-overflow: ellipsis; }
.pill.is-set, .pill[aria-expanded=true] { border-bottom-color: var(--amber); }
.pill.is-set .pv { font-weight: 600; }
.pill-toggle .box { width: 14px; height: 14px; border: 1px solid var(--ink); flex: none; background: var(--surface) no-repeat center / 10px; }
.pill-toggle[aria-pressed=true] .box { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E"); }
.pill-clear { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.pill-clear[hidden] { display: none; }
.dd-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; min-width: max(100%, 220px); max-width: min(340px, calc(100vw - 32px)); max-height: 340px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px 0; list-style: none; background: var(--surface); border: var(--ctl-line); }
.dd-menu[hidden] { display: none; }
.dd-right { left: auto; right: 0; }
.dd-uf .dd-menu { top: calc(100% + 1px); left: -1px; }
.dd-menu [role=option] { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; padding: 8px 18px; font-size: 14px; cursor: pointer; }
.dd-menu [role=option]:focus-visible { outline: 0; background: var(--paper); }
.dd-menu [aria-selected=true] { box-shadow: inset 2px 0 0 var(--amber); font-weight: 500; }
[aria-multiselectable] [role=option] > span:first-child { display: inline-flex; align-items: center; gap: 12px; }
[aria-multiselectable] [role=option] > span:first-child::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--ink); flex: none; background: no-repeat center / 10px; }
[aria-multiselectable] [aria-selected=true] > span:first-child::before { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E"); }
[aria-multiselectable].dd-menu { min-width: 290px; }
[aria-multiselectable] [role=option] > span:first-child { white-space: nowrap; }
.dd-form { padding: 16px 18px; min-width: 280px; }
.dd-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dd-form label { display: grid; gap: 6px; color: var(--muted); font: 500 10.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.dd-form input { height: 44px; padding: 0 10px; border: var(--ctl-line); font: 400 15px/1 var(--sans); letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.dd-form input:focus-visible { outline: 0; border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); }
.form-acts { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.btn-text { min-height: 44px; padding: 0 4px; border: 0; background: none; font: var(--ctl); letter-spacing: var(--ctl-track); text-transform: uppercase; cursor: pointer; color: var(--muted); }
.btn-solid, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 24px; border: 1px solid var(--ink); font: var(--ctl); letter-spacing: var(--ctl-track); text-transform: uppercase; cursor: pointer; }
.btn-solid { background: var(--ink); color: var(--surface); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line[hidden] { display: none; }

/* Cabeçalho da lista */
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; max-width: 1360px; margin: 0 auto; padding: 32px 24px 8px; }
.head-text { min-width: 0; }
.list-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 300; line-height: 1.25; overflow-wrap: anywhere; }
.sub { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 500 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.dd-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; border: 0; border-bottom: var(--ctl-line); background: none; font: 400 14px/1.2 var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; }
.dd-btn[aria-expanded=true] { border-bottom-color: var(--amber); }
.aviso { max-width: 1360px; margin: 0 auto; padding: 0 24px 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.aviso::before { content: ""; display: inline-block; width: 3px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--amber); }

/* Cards: sem foto na lista da Caixa, então o preço contra a avaliação é a peça central. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s ease; }
.card:focus-within { border-color: var(--ink); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mod { margin: 0; color: var(--muted); font: 500 10.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.desc { margin: 0; color: var(--amber-ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desc-l { font-size: 12px; font-weight: 400; }
h1, h2 { text-wrap: balance; }
.card { content-visibility: auto; contain-intrinsic-size: auto 400px; }
.tipo { margin: 0; font-size: 15px; font-weight: 500; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:focus-visible { outline: 0; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.fatos { display: flex; flex-wrap: wrap; margin: 4px 0 0; font-size: 13px; }
.fatos span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 8px; background: var(--line); vertical-align: -1px; }
.price { margin: 14px 0 0; font-size: 24px; font-weight: 300; line-height: 1.25; font-variant-numeric: tabular-nums; }
.aval { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.barra { height: 2px; margin: 10px 0 2px; background: var(--amber); }
.barra span { display: block; height: 100%; background: var(--ink); }
.addr { margin: 14px 0 0; font-size: 13px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.loc { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.descr { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; margin-top: auto; padding-top: 14px; }
.card .card-foot { border-top: var(--ctl-line); margin-top: 16px; }
.fin { margin: 0; color: var(--muted); font-size: 12px; }
.fin.is-yes { color: var(--ink); }
.caixa { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: var(--ctl); letter-spacing: var(--ctl-track); text-transform: uppercase; border-bottom: 1px solid transparent; }
.ext { width: 10px; height: 10px; flex: none; }
.more-wrap { display: flex; justify-content: center; padding: 32px 24px 48px; }
.vazio { grid-column: 1 / -1; max-width: 560px; padding: 24px 0 48px; }
.vazio h2 { margin: 0 0 12px; font-size: 24px; font-weight: 300; }
.vazio p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }

/* Detalhe */
.detalhe { max-width: 1160px; margin: 0 auto; padding: 24px 24px 56px; }
.voltar { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: var(--ctl); letter-spacing: var(--ctl-track); text-transform: uppercase; }
.voltar svg { width: 10px; height: 10px; color: var(--amber); }
.det-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 16px; align-items: start; }
.det-main h1 { margin: 8px 0 10px; font-size: 32px; font-weight: 300; line-height: 1.2; overflow-wrap: anywhere; }
.det-main h1:focus { outline: 0; }
.detalhe > h1 { font-size: 28px; font-weight: 300; }
.det-addr { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.det-main .fatos { margin-top: 12px; font-size: 14px; }
.det-h { margin: 36px 0 12px; padding-top: 20px; border-top: var(--ctl-line); color: var(--muted); font: 500 10.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.det-desc { margin: 0; max-width: 68ch; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.ficha div { padding: 12px 0; border-bottom: var(--ctl-line); }
.ficha div:nth-child(odd) { padding-right: 24px; }
.ficha dt { color: var(--muted); font-size: 12px; }
.ficha dd { margin: 2px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.det-side { position: sticky; top: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.det-side .price { margin: 0; font-size: 30px; }
.det-side .desc { margin: 10px 0 0; }
.det-side .fin { margin: 10px 0 20px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-block .ext { color: var(--amber); }
.det-nota { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.rodape { padding: 24px max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom)); border-top: var(--ctl-line); background: var(--surface); color: var(--muted); font-size: 11px; line-height: 1.65; }
.rodape p { max-width: 1312px; margin: 0 auto; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--ink); }
  .pill:hover, .dd-btn:hover, .caixa:hover { border-bottom-color: var(--amber); }
  .loc-btn:hover .loc-nome, .voltar:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 6px; }
  .dd-menu [role=option]:hover, .sugestoes [role=option]:hover { background: var(--paper); }
  .btn-solid:hover { background: var(--ink-hover); }
  .btn-line:hover { background: var(--ink); color: var(--surface); }
  .btn-text:hover { color: var(--ink); }
}

@media (max-width: 960px) {
  .searchbox { flex: 1 1 100%; }
  .searchbox input, .dd-form input { font-size: 16px; }
  .det-grid { grid-template-columns: 1fr; gap: 24px; }
  .det-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .top { grid-template-columns: auto 1fr; padding-inline: 16px; }
  .top .left { display: none; }
  .brand { justify-self: start; font-size: 18px; }
  .toolbar { padding: 12px 16px; gap: 8px; }
  .loc-nome { display: none; }
  .loc-btn { padding: 0 12px 0 14px; }
  .filtros { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; gap: 20px; scrollbar-width: none; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros .dd { position: static; }
  .filtros > * { flex: none; }
  .filtros .dd-menu, .dd-right { position: fixed; top: auto; left: 0; right: 0; bottom: 0; max-width: none; width: 100%; max-height: 60dvh; padding-bottom: max(6px, env(safe-area-inset-bottom)); border-width: 1px 0 0; }
  .list-head { padding: 24px 16px 8px; }
  .list-head h1 { font-size: 24px; }
  .aviso { padding: 0 16px 16px; }
  .grid { padding: 0 12px; grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 18px 16px 12px; }
  .detalhe { padding: 12px 16px 40px; }
  .det-main h1 { font-size: 26px; }
  .ficha { grid-template-columns: 1fr; }
  .ficha div:nth-child(odd) { padding-right: 0; }
}
