/* Site público da revenda
   60% concreto (chão do estoque e seções claras) · 30% asfalto (topo, hero, vender, rodapé) · 10% lima (ações, preço, filtro ativo)
   Uma família: Archivo. Expandida (wdth 125) para nomes de carro e títulos; normal para o texto. */
:root {
  --asfalto: #0f110e; --asfalto-2: #1a1d18; --asfalto-3: #262a23; --linha-esc: #343931;
  --lima: #b9fc01; --lima-forte: #a6e200; --lima-tinta: #3d5400;
  --concreto: #ecede8; --papel: #ffffff; --tinta: #0f110e; --grafite: #565a52; --linha: #d9dad3; --nevoa: #b9bcb3;
  --zap: #12803f;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --raio: 18px; --pilula: 999px;
  --largura: 1240px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
  font-family: Archivo, system-ui, sans-serif; font-optical-sizing: auto;
  color: var(--tinta); background: var(--concreto);
  accent-color: var(--lima-tinta);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-size: 1rem; line-height: 1.55; background: var(--concreto); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, label, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
h2 { font-stretch: 125%; font-weight: 850; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--lima); color: var(--asfalto); }
:focus-visible { outline: 3px solid var(--lima-tinta); outline-offset: 3px; border-radius: 6px; }
.topo :focus-visible, .heroi :focus-visible, .vender :focus-visible, .rodape :focus-visible, .folha :focus-visible { outline-color: var(--lima); }
* { scrollbar-color: var(--nevoa) transparent; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--lima); color: var(--asfalto); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.pular:focus { top: 12px; }

/* botões: preenchidos, pílula; o lima só para a ação principal */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--pilula); border: 0; font-weight: 700; text-decoration: none; white-space: nowrap; touch-action: manipulation; transition: background-color 160ms ease, transform 100ms var(--ease-out); }
.bt:active { transform: scale(0.97); }
.bt-lima { background: var(--lima); color: var(--asfalto); }
.bt-zap { background: var(--zap); color: #fff; }
.bt-claro { background: var(--papel); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linha); }
@media (hover: hover) and (pointer: fine) {
  .bt-lima:hover { background: var(--lima-forte); }
  .bt-zap:hover { background: #0e6c35; }
  .bt-claro:hover { box-shadow: inset 0 0 0 1.5px var(--tinta); }
}

/* topo */
.topo { position: sticky; top: 0; z-index: 20; background: var(--asfalto); color: #f4f5f1; border-bottom: 1px solid var(--asfalto-3); }
.topo-barra { max-width: calc(var(--largura) + 2 * var(--gutter)); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px; }
.topo-logo img { width: 156px; height: auto; }
.topo-nav { display: none; gap: 28px; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
.topo-nav a { color: #d7d9d2; text-decoration: none; padding: 6px 0; }
.topo-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--lima); }
.topo-acoes { margin-left: auto; display: flex; gap: 8px; }
.topo-acoes .bt { min-height: 42px; padding: 0 16px; }
/* no celular o WhatsApp do topo vira só o ícone, para caber "Visitar a loja" ao lado */
@media (max-width: 599px) { .topo-zap { width: 42px; padding: 0; } .topo-zap span { display: none; } .topo-logo img { width: 128px; } }
@media (min-width: 900px) { .topo-nav { display: flex; } .topo-acoes { margin-left: 8px; } }
@media (min-width: 900px) and (max-width: 1179px) { .topo-zap { width: 42px; padding: 0; } .topo-zap span { display: none; } }

/* hero: foto real do estoque + painel de busca ancorado na base */
.heroi { position: relative; isolation: isolate; background: var(--asfalto); color: #fff; display: grid; grid-template-rows: 1fr auto; min-height: min(88svh, 820px); padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(20px, 3vw, 32px); overflow: hidden; }
.heroi-foto { position: absolute; inset: 0; z-index: -1; }
/* a fachada da loja: o letreiro fica livre em cima; o texto entra no escuro da parte de baixo */
.heroi-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.heroi-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,17,14,.97) 0%, rgba(15,17,14,.9) 30%, rgba(15,17,14,.55) 50%, rgba(15,17,14,0) 66%), linear-gradient(90deg, rgba(15,17,14,.5) 0%, rgba(15,17,14,0) 55%); }
/* no celular a foto fica em cima, inteira, e o texto entra no escuro logo abaixo dela */
@media (max-width: 899px) {
  .heroi { padding-top: min(62vw, 300px); min-height: 0; }
  .heroi-conteudo { align-self: end; }
  .heroi-foto { bottom: auto; height: calc(min(62vw, 300px) + 120px); }
  .heroi-foto img { object-position: 46% 40%; }
  .heroi-foto::after { background: linear-gradient(180deg, rgba(15,17,14,.25) 0%, rgba(15,17,14,0) 22%, rgba(15,17,14,0) 52%, rgba(15,17,14,.86) 84%, var(--asfalto) 100%); }
}
.heroi-conteudo { max-width: var(--largura); width: 100%; margin: 0 auto; align-self: center; }
.heroi-titulo { font-stretch: 125%; font-weight: 900; font-size: clamp(1.85rem, 5vw, 4.4rem); letter-spacing: -0.03em; line-height: 0.98; max-width: 17ch; }
.heroi-sub { margin-top: 20px; max-width: 46ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #dfe2da; }
.heroi-servicos { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.15rem); color: #eef0ea; animation: subir 550ms var(--ease-out) 230ms both; }
.heroi-servicos li { display: inline-flex; align-items: center; gap: 18px; }
.heroi-servicos li + li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lima); margin-left: -0px; }
.heroi-chamada { margin-top: 22px; font-weight: 700; color: var(--lima); font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .heroi-servicos { animation: fade 300ms ease both; } }
/* no computador o título desce para baixo do letreiro: duas linhas largas, nunca em cima da marca da loja */
@media (min-width: 900px) {
  .heroi { min-height: min(94svh, 860px); }
  .heroi-conteudo { align-self: end; }
  .heroi-titulo { font-size: clamp(2.2rem, 2.9vw, 2.8rem); max-width: 27ch; }
  .heroi-sub { margin-top: 14px; max-width: 60ch; }
}

.busca { max-width: var(--largura); width: 100%; margin: clamp(28px, 5vw, 56px) auto 0; background: rgba(26,29,24,.96); border: 1px solid var(--linha-esc); border-radius: 24px; padding: 18px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); }
.busca-modo { display: inline-flex; gap: 4px; padding: 4px; background: var(--asfalto); border-radius: var(--pilula); margin-bottom: 16px; }
.busca-modo label { position: relative; }
.busca-modo input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.busca-modo span { display: block; padding: 9px 18px; border-radius: var(--pilula); font-weight: 700; font-size: 0.95rem; color: #c9ccc4; transition: background-color 160ms ease, color 160ms ease; }
.busca-modo input:checked + span { background: var(--lima); color: var(--asfalto); }
.busca-modo input:focus-visible + span { outline: 3px solid var(--lima); outline-offset: 2px; }
.busca-campos { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-items: end; }
.campo { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: #b9bdb3; }
.campo select, .campo input, .campo textarea { width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--linha-esc); background: var(--asfalto); color: #fff; padding: 0 14px; font-size: 1rem; font-weight: 500; }
.campo select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9fc01' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.busca-ir { grid-column: 1 / -1; min-height: 52px; font-size: 1.02rem; }
.busca-vender { grid-column: 1 / -1; color: #dfe2da; max-width: 60ch; }
@media (min-width: 900px) {
  .busca { padding: 20px 22px 22px; margin-top: 28px; }
  .busca-campos { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  .busca-ir { grid-column: auto; padding: 0 26px; }
  .busca-campos[data-modo="vender"] { grid-template-columns: 1fr auto; align-items: center; }
  .busca-vender { grid-column: auto; }
}

/* uma entrada, orquestrada: foto assenta, título lidera, texto e busca acompanham */
@keyframes assentar { from { opacity: 0; transform: scale(1.04); } }
@keyframes subir { from { opacity: 0; transform: translateY(var(--de, 12px)); } }
/* só esconde a foto para a entrada quando o JavaScript roda; sem ele, a fachada aparece direto */
.js .heroi-foto img:not(.pronta) { opacity: 0; }
.heroi-foto img.pronta { opacity: 1; animation: assentar 1100ms var(--ease-out) both; }
.heroi-titulo { animation: subir 650ms var(--ease-out) 120ms both; }
.heroi-sub { --de: 8px; animation: subir 550ms var(--ease-out) 230ms both; }
.busca { --de: 16px; animation: subir 600ms var(--ease-out) 300ms both; }
@media (prefers-reduced-motion: reduce) {
  .heroi-foto img.pronta, .heroi-titulo, .heroi-sub, .busca { animation: fade 300ms ease both; }
  @keyframes fade { from { opacity: 0; } }
}

/* estoque */
.estoque { max-width: calc(var(--largura) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 40px; }
.estoque-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.estoque-qtd { margin-top: 8px; color: var(--grafite); font-variant-numeric: tabular-nums; }
.ordem { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--grafite); font-size: 0.92rem; }
.ordem select { min-height: 44px; border-radius: var(--pilula); border: 1px solid var(--linha); background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f5300' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; appearance: none; padding: 0 40px 0 16px; font-weight: 600; color: var(--tinta); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 22px; scrollbar-width: none; }
.chips button { flex: none; min-height: 42px; padding: 0 18px; border-radius: var(--pilula); border: 1.5px solid var(--linha); background: var(--papel); font-weight: 700; font-size: 0.95rem; color: var(--tinta); transition: background-color 160ms ease, border-color 160ms ease; }
.chips button[aria-pressed="true"] { background: var(--asfalto); border-color: var(--asfalto); color: var(--lima); }
.chips .chip-limpar { border-style: dashed; color: var(--grafite); }
.prova { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-weight: 600; font-size: 0.95rem; }
.prova svg { color: var(--lima-tinta); margin-top: 1px; }
.prova small { font-weight: 500; color: var(--grafite); font-size: 0.85em; }
.carros { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.carro { height: 100%; display: grid; grid-template-rows: auto 1fr; background: var(--papel); border-radius: var(--raio); overflow: hidden; text-align: left; border: 0; padding: 0; width: 100%; box-shadow: 0 1px 2px rgba(15,17,14,.06), 0 8px 24px -16px rgba(15,17,14,.25); transition: transform 100ms var(--ease-out); }
.carro:active { transform: scale(0.985); }
.carro-foto { position: relative; aspect-ratio: 4 / 3; background: var(--asfalto-3); }
.carro-foto img { width: 100%; height: 100%; object-fit: cover; }
.carro-tag { position: absolute; top: 12px; left: 12px; background: var(--asfalto); color: var(--lima); font-size: 0.78rem; font-weight: 800; padding: 5px 11px; border-radius: var(--pilula); }
.carro-corpo { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.carro-nome { font-stretch: 118%; font-weight: 850; font-size: 1.14rem; letter-spacing: -0.01em; line-height: 1.12; }
.carro-versao { color: var(--grafite); font-size: 0.92rem; min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ficha em casas fixas (2 × 2): nenhum item cai sozinho numa linha */
.ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 12px 0 14px; padding: 12px 0 0; border-top: 1px solid var(--concreto); list-style: none; color: var(--grafite); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.ficha li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ficha li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha svg { width: 17px; height: 17px; color: var(--lima-tinta); }
.carro-preco { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
/* placa de preço: preto com números em lima, como nos posts da loja */
.carro-preco { align-items: center; }
.carro-preco b { background: var(--asfalto); color: var(--lima); padding: 6px 12px 7px; border-radius: 10px; font-stretch: 112%; font-size: 1.3rem; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1.1; }
.carro-preco span { font-weight: 700; color: var(--lima-tinta); font-size: 0.92rem; text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .carro { transition: transform 100ms var(--ease-out), box-shadow 200ms ease; }
  .carro:hover { box-shadow: 0 1px 2px rgba(15,17,14,.08), 0 16px 32px -14px rgba(15,17,14,.38); }
  .carro:hover .carro-preco span { color: var(--tinta); text-decoration-color: var(--lima-tinta); }
  .chips button:hover, .paginas button:not(:disabled):not([aria-current]):hover { border-color: var(--tinta); }
  .fechar:hover { background: var(--linha); }
  .fotos-envio label:hover { border-color: var(--tinta); color: var(--tinta); }
}
.vazio { grid-column: 1 / -1; padding: 40px 0; color: var(--grafite); }
.vazio button { margin-top: 12px; }
.paginas { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.paginas button { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: var(--pilula); border: 1.5px solid var(--linha); background: var(--papel); font-weight: 700; font-variant-numeric: tabular-nums; }
.paginas button[aria-current="page"] { background: var(--asfalto); border-color: var(--asfalto); color: var(--lima); }
.paginas button:disabled { opacity: 0.4; cursor: default; }

/* vender */
.vender { background: var(--asfalto); color: #fff; display: grid; gap: 28px; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.vender > * { max-width: var(--largura); }
.vender-texto { display: grid; gap: 18px; align-content: center; justify-items: start; }
.vender-texto p { color: #d4d7cf; max-width: 52ch; font-size: 1.06rem; }
.vender-foto { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--asfalto-3); }
.vender-foto img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .vender { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding-inline: max(var(--gutter), calc((100% - var(--largura)) / 2)); gap: 56px; } }

/* como comprar: é uma sequência de verdade, por isso numerada */
.comprar { max-width: calc(var(--largura) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.passos { list-style: none; counter-reset: passo; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.passos li { counter-increment: passo; display: grid; align-content: start; gap: 6px; padding-top: 14px; border-top: 2px solid var(--tinta); }
.passos li::before { content: counter(passo); font-stretch: 125%; font-weight: 900; font-size: 2rem; line-height: 1; color: var(--lima-tinta); font-variant-numeric: tabular-nums; }
.passos b { font-size: 1.08rem; }
.passos span { color: var(--grafite); }

/* onde */
.onde { background: var(--papel); padding: clamp(40px, 6vw, 72px) var(--gutter); }
.onde-grade { max-width: var(--largura); margin-inline: auto; display: grid; gap: 28px; }
.onde-nota { margin-top: 12px; color: var(--grafite); max-width: 46ch; }
.horario { margin-top: 20px; max-width: 360px; }
.horario-agora { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 0.92rem; }
.horario-agora::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--nevoa); }
.horario-agora[data-aberto="1"]::before { background: var(--zap); }
.horario dl { margin: 0; display: grid; }
.horario dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--linha); }
.horario dl > div:last-child { border-bottom: 0; }
.horario dt { color: var(--grafite); }
.horario dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.horario [data-hoje] dt, .horario [data-hoje] dd { color: var(--tinta); font-weight: 800; }
.onde-mapa { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--raio); background: var(--concreto); }
@media (min-width: 900px) { .onde-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 56px; } .onde-mapa { aspect-ratio: 16 / 10; } }
.onde-end { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 1.1rem; font-weight: 600; }
.onde-end svg { color: var(--lima-tinta); margin-top: 3px; }
.onde-bts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* rodapé */
.rodape { background: var(--asfalto); color: #cdd0c8; padding: 56px var(--gutter) 28px; }
.rodape-grade { max-width: var(--largura); margin: 0 auto; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.rodape-marca img { width: 170px; height: auto; margin-bottom: 12px; }
.rodape h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rodape a { color: #cdd0c8; text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--lima); text-underline-offset: 5px; }
.rodape-pe { max-width: var(--largura); margin: 40px auto 0; padding-top: 18px; border-top: 1px solid var(--asfalto-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; color: #9ea296; }

.zap-fixo:not(.on) { opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none; }
.zap-fixo { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.zap-fixo { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15; width: 58px; height: 58px; border-radius: 50%; background: var(--zap); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.45); }
.zap-fixo svg { width: 28px; height: 28px; }
.zap-fixo:active { transform: scale(0.94); }

/* folhas: de baixo no celular, centradas no computador */
.folha { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 94dvh; border-radius: 24px 24px 0 0; background: var(--papel); color: var(--tinta); overflow: hidden; display: none; }
.folha[open] { display: grid; grid-template-rows: auto 1fr; animation: folha-entra 320ms var(--ease-drawer) both; }
.folha::backdrop { background: rgba(15,17,14,.62); }
@keyframes folha-entra { from { transform: translateY(100%); } }
@media (min-width: 860px) {
  .folha { margin: auto; width: min(880px, calc(100% - 48px)); max-height: 90dvh; border-radius: 24px; }
  .folha[open] { animation: folha-centro 220ms var(--ease-out) both; }
  @keyframes folha-centro { from { opacity: 0; transform: scale(0.97); } }
}
@media (prefers-reduced-motion: reduce) { .folha[open] { animation: fade 200ms ease both; } }
.folha-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px 20px; }
.folha-cab h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.fechar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--concreto); display: grid; place-items: center; flex: none; }
.folha-corpo { overflow-y: auto; overscroll-behavior: contain; }
/* galeria do carro: foto grande + setas + contador, miniaturas embaixo */
.gal { position: relative; margin: 12px 12px 0; border-radius: 18px; overflow: hidden; background: var(--asfalto); }
.galeria { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--asfalto); outline-offset: -3px; }
.galeria::-webkit-scrollbar { display: none; }
.galeria img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; background: var(--asfalto); }
.gal-seta { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(15, 17, 14, 0.72); color: #fff; cursor: pointer; }
.gal-seta svg { width: 20px; height: 20px; }
.gal-seta:hover { background: #0f110e; color: var(--lima); }
.gal-ant { left: 10px; }
.gal-prox { right: 10px; }
.gal-cont { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(15, 17, 14, 0.72); color: #fff; font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gal-minis { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 4px; scrollbar-width: none; }
.gal-minis::-webkit-scrollbar { display: none; }
.gal-minis button { flex: none; width: 76px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--asfalto); cursor: pointer; opacity: 0.7; }
.gal-minis button[aria-current="true"] { border-color: var(--lima); opacity: 1; }
.gal-minis img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 860px) { .gal-minis button { width: 92px; } .galeria img { aspect-ratio: 16 / 10; } }
.detalhe { display: grid; gap: 16px; padding: 20px 20px 28px; }
.detalhe-preco { font-stretch: 112%; font-weight: 900; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.detalhe .ficha { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; border-top: 0; padding: 0; font-size: 0.95rem; }
.detalhe .ficha li span { white-space: normal; }
.detalhe p { color: #33362f; white-space: pre-line; max-width: 70ch; }
.detalhe-acoes { position: sticky; bottom: 0; display: grid; gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid var(--concreto); }
.detalhe-acoes { grid-template-columns: 1fr 1fr; }
.detalhe-acoes .bt { width: 100%; min-height: 52px; padding: 0 14px; }
@media (max-width: 380px) { .detalhe-acoes { grid-template-columns: 1fr; } }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* assistente de visita: conversa dentro da folha */
.folha-chat { grid-template-rows: auto 1fr auto; }
.folha-chat[open] { display: grid; grid-template-rows: auto 1fr auto; height: min(640px, 94dvh); }
@media (min-width: 860px) { .folha-chat { width: min(460px, calc(100% - 48px)); } }
.chat-cab { border-bottom: 1px solid var(--concreto); padding-bottom: 12px; }
.chat-quem { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-avatar { position: relative; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex: none; background: var(--asfalto); }
.chat-avatar img { width: 100%; height: 100%; }
.chat-avatar::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 2px var(--asfalto); }
.chat-cab h2 { font-size: 1.1rem; }
.chat-cab p { font-size: 0.82rem; color: var(--grafite); }
.chat { background: var(--concreto); padding: 16px; }
.chat-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; font-size: 0.97rem; animation: msg-entra 220ms var(--ease-out) both; }
.msg-bot { justify-self: start; background: var(--papel); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(15,17,14,.06); }
.msg-eu { justify-self: end; background: var(--asfalto); color: #fff; border-bottom-right-radius: 6px; }
@keyframes msg-entra { from { opacity: 0; transform: translateY(6px); } }
.pontos { display: inline-flex; gap: 4px; padding: 4px 0; }
.pontos i { width: 7px; height: 7px; border-radius: 50%; background: var(--nevoa); animation: ponto 1s ease-in-out infinite; }
.pontos i:nth-child(2) { animation-delay: .15s; } .pontos i:nth-child(3) { animation-delay: .3s; }
@keyframes ponto { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } .pontos i { animation: none; } }
.chat-pe { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid var(--concreto); }
.chat-pe:empty { padding: 0; border: 0; }
.chat-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-op { min-height: 42px; padding: 0 16px; border-radius: var(--pilula); border: 1.5px solid var(--asfalto); background: var(--papel); font-weight: 700; font-size: 0.95rem; color: var(--tinta); }
@media (hover: hover) and (pointer: fine) { .chat-op:hover { background: var(--asfalto); color: var(--lima); } }
.chat-campo { display: grid; gap: 8px; }
.chat-pular { justify-self: start; }
.chat-linha { display: flex; gap: 8px; }
.chat-linha input { flex: 1; min-width: 0; min-height: 46px; border-radius: var(--pilula); border: 1.5px solid var(--linha); padding: 0 18px; font-size: 1rem; background: var(--papel); }
.chat-linha input[aria-invalid="true"] { border-color: #a3261d; }
.chat-enviar { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--lima); color: var(--asfalto); display: grid; place-items: center; }
.chat-erro { color: #a3261d; font-weight: 600; font-size: 0.88rem; }
.chat-erro:empty { display: none; }
.chat-fim .bt { flex: 1 1 auto; }

/* formulário de venda (tema claro dentro da folha) */
.form-vender { display: grid; gap: 14px; padding: 6px 20px 28px; }
.form-vender .campo { color: var(--grafite); }
.form-vender .campo input, .form-vender .campo select, .form-vender .campo textarea { background: var(--papel); color: var(--tinta); border-color: var(--linha); }
.form-vender textarea { min-height: 96px; padding: 12px 14px; resize: vertical; }
.form-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.fotos-envio { display: flex; gap: 8px; flex-wrap: wrap; }
.fotos-envio img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.fotos-envio label { width: 76px; height: 76px; border-radius: 12px; border: 2px dashed var(--nevoa); display: grid; place-items: center; color: var(--grafite); cursor: pointer; }
.fotos-envio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fotos-envio label:focus-within { outline: 3px solid var(--lima-tinta); outline-offset: 3px; }
.form-vender [aria-invalid="true"] { border-color: #a3261d !important; box-shadow: inset 0 0 0 1px #a3261d; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 22px; height: 22px; }
.form-erro { color: #a3261d; font-weight: 600; min-height: 1.2em; }
.form-ok { display: grid; gap: 12px; padding: 24px 20px 32px; }

:root { --asfalto: #0029b3; --asfalto-2: #0131cd; --asfalto-3: #1c47e0; --linha-esc: #3a5ce6; --tinta: #0a1033; }
