/* Assistência remota: faixa fixa no topo, para o admin não esquecer de quem
   é a conta que está aberta. */
.faixa-assist { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--safe-t)) 12px 8px; background: #8d1b12; color: #fff;
  font-size: 13px; line-height: 1.25; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.faixa-assist svg { flex: 0 0 auto; }
.faixa-assist .fa-tx { flex: 1; min-width: 0; }
.faixa-assist .fa-tx b { overflow-wrap: anywhere; }
.faixa-assist .fa-tx small { display: block; font-size: 11.5px; opacity: .85; }
.faixa-assist button { flex: 0 0 auto; min-height: 34px; padding: 5px 12px; border: 0; border-radius: 9px;
  background: #fff; color: #8d1b12; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }

/* ==========================================================================
   Corretor de Imóveis · folha de estilo única (painel + página pública)
   Mobile-first: fluido, toque >= 48px, área segura do iPhone, barra inferior
   fixa como navegação principal. Tema claro/escuro automático.
   ========================================================================== */

:root {
  /* Paleta sóbria de imobiliária: azul de confiança com apoio dourado. */
  --brand: #1e6fd9;
  --brand-forte: #1557ad;
  --brand-suave: #e8f0fc;
  --brand-2: #c9962b;
  --azul: #1e6fd9;

  --bg: #f4f5f7;
  --card: #ffffff;
  --linha: #e3e6eb;
  --txt: #15181d;
  --txt-2: #5f6673;
  --txt-3: #8f97a3;

  --ok: #12a150;
  --alerta: #d97706;
  --erro: #dc2626;
  --whats: #25d366;

  --r: 18px;
  --r-p: 12px;
  --sombra: 0 1px 2px rgba(20, 30, 50, .05), 0 8px 24px rgba(20, 30, 50, .06);
  --sombra-alta: 0 12px 40px rgba(20, 30, 50, .18);
  --topo: 50px;
  --nav: 54px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --bg: #101216;
    --card: #181b21;
    --linha: #292d35;
    --txt: #eef0f3;
    --txt-2: #a3a9b4;
    --txt-3: #737a86;
    --brand-suave: #1a2a44;
    --sombra: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-tema="escuro"] {
  --bg: #101216;
  --card: #181b21;
  --linha: #292d35;
  --txt: #eef0f3;
  --txt-2: #a3a9b4;
  --txt-3: #737a86;
  --brand-suave: #1a2a44;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.35;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3 { letter-spacing: -.01em; }

/* ------------------------------------------------------------------ topo */
.topo {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 4px;
  min-height: calc(44px + var(--safe-t));
  padding: var(--safe-t) 8px 0 10px;
  background: var(--bg);
}
.topo .topo-titulo { flex: 1; min-width: 0; padding: 2px 0; }
.topo h1 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo .topo-titulo span { display: block; font-size: 13px; color: var(--txt-2); }
.topo #btnVoltar { margin-left: -8px; }

.icone-btn {
  width: 48px; height: 48px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 0; border-radius: 14px; background: transparent;
  color: var(--txt); cursor: pointer;
}
.icone-btn:active { background: var(--linha); }
.icone-btn svg { width: 24px; height: 24px; }
.icone-btn.grande { width: 52px; height: 52px; color: var(--brand); }
.icone-btn.grande svg { width: 32px; height: 32px; }

/* ------------------------------------------------------------- barra inferior */
.barra-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex;
  height: calc(var(--nav) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--brand);
  border-top: 0;
}
.barra-nav a {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: rgba(255,255,255,.72); font-size: 12px; font-weight: 600;
}
.barra-nav a svg { width: 22px; height: 22px; }
.barra-nav a.on { color: #fff; }
.barra-nav a.on svg { stroke-width: 2.4; }
.barra-nav a.on::after { content: ""; width: 22px; height: 3px; border-radius: 2px; background: #fff; margin-top: 1px; }
.barra-nav a { font-size: 11.5px; }
.barra-nav.muitas a { font-size: 11.5px; }
@media (min-width: 900px) {
  .barra-nav { justify-content: center; }
  .barra-nav a { flex: 0 0 120px; }
}

/* --------------------------------------------------------------- estrutura */
.pagina {
  max-width: 760px; margin: 0 auto;
  padding: 0 10px calc(var(--nav) + 12px + var(--safe-b));
}
.pagina.sem-nav { padding-bottom: calc(40px + var(--safe-b)); }

.secao-titulo {
  display: flex; align-items: center; justify-content: space-between;
  margin: 7px 2px 3px;
  font-size: 14px; font-weight: 800; color: var(--txt);
}
.secao-titulo a { font-size: 14.5px; font-weight: 600; }

.cartao {
  background: var(--card);
  border: 1px solid var(--linha);
  border-radius: var(--r);
  overflow: hidden;
}
.cartao + .cartao { margin-top: 8px; }
.cartao-corpo { padding: 6px 10px; }

/* linhas de ajuste (lista de opções) */
.lista { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 46px; padding: 6px 12px;
  border: 0; border-bottom: 1px solid var(--linha);
  background: var(--card); color: var(--txt);
  font: inherit; text-align: left; cursor: pointer;
}
.item:last-child { border-bottom: 0; }
.item:active { background: var(--brand-suave); }
.item .ico {
  width: 32px; height: 32px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 11px; background: var(--bg); color: var(--brand);
}
.item .ico svg { width: 20px; height: 20px; }
.item .txt { flex: 1; min-width: 0; }
.item .txt b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.item .txt span { display: block; font-size: 12.5px; color: var(--txt-2); line-height: 1.2; }
.item .fim { color: var(--txt-3); font-size: 14.5px; display: flex; align-items: center; gap: 6px; }

/* números do dia */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kpi { background: var(--card); border: 1px solid var(--linha); border-radius: var(--r); padding: 6px 6px 5px; }
.kpi b { display: block; font-size: 18px; line-height: 1.1; }
.kpi span { display: block; margin-top: 2px; font-size: 13px; color: var(--txt-2); line-height: 1.15; }
.kpi.destaque { background: var(--brand); border-color: var(--brand); color: #fff; }
.kpi.destaque span { color: rgba(255,255,255,.85); }

/* cartão do plano */
.cartao-plano {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--r);
  background: linear-gradient(120deg, #fff8e8, #ffefc7);
  border: 1px solid #f3d98a; color: var(--txt);
}
.cartao-plano.solto { margin: 0 0 8px; }   /* dentro de uma lista: não cola no primeiro item */
:root[data-tema="escuro"] .cartao-plano { background: #2a2210; border-color: #4a3a18; }
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .cartao-plano { background: #2a2210; border-color: #4a3a18; }
}
.cartao-plano .cp-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-2); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.cartao-plano .cp-txt { flex: 1; min-width: 0; }
.cartao-plano b { display: block; font-size: 15.5px; }
.cartao-plano span { display: block; font-size: 14px; color: var(--txt-2); }

/* card de pendência (foto / CRECI depois de 5 min) */
.card-pendencia {
  display: flex; align-items: center; gap: 10px;
  margin: 6px 0 4px; padding: 10px 12px; border-radius: var(--r);
  background: var(--brand-suave); border: 1.5px solid var(--brand);
}
.card-pendencia .cp-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.card-pendencia .cp-txt { flex: 1; min-width: 0; }
.card-pendencia b { display: block; font-size: 15.5px; line-height: 1.2; }
.card-pendencia span { display: block; font-size: 13.5px; line-height: 1.3; color: var(--txt-2); }
.card-pendencia .btn { flex: 0 0 auto; }

/* link em destaque */
.link-caixa {
  display: flex; flex-direction: column; gap: 7px;
  padding: 9px 12px; border-radius: var(--r);
  background: var(--card); border: 1.5px dashed var(--brand);
}
.link-caixa .url { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.link-caixa .url #icoLink { color: var(--brand); display: flex; flex: 0 0 auto; }
.link-caixa .dica-link { font-size: 13.5px; line-height: 1.3; color: var(--txt-2); margin-top: -4px; }
.link-caixa .rodape { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-caixa .rodape .btn { min-height: 42px; }
.link-caixa .rodape .btn.claro { background: var(--brand-suave); color: var(--brand); }

/* ------------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  border: 0; border-radius: 13px;
  background: var(--brand); color: #fff;
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .08s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.bloco { display: flex; width: 100%; }
.btn.fantasma { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.neutro { background: var(--bg); color: var(--txt); border: 1px solid var(--linha); }
.btn.perigo { background: var(--erro); }
.btn.whats { background: var(--whats); color: #05391a; }
.btn.escuro { background: var(--txt); color: var(--bg); }
.btn.claro { background: var(--brand-suave); color: var(--brand); }
.btn.pequeno { min-height: 40px; padding: 8px 14px; font-size: 15px; border-radius: 11px; }
.btn svg { width: 18px; height: 18px; }

.btn-google {
  display: flex; width: 100%;
  align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; border-radius: 14px;
  border: 1.5px solid var(--linha); background: var(--card);
  color: var(--txt); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
}
.btn-google:active { background: var(--linha); }

.fab {
  position: fixed; right: 12px; bottom: calc(var(--nav) + 14px + var(--safe-b)); z-index: 45;
  min-height: 44px; padding: 0 14px 0 12px;
  border: 0; border-radius: 13px;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 700; font-size: 13.5px;
  box-shadow: var(--sombra-alta); cursor: pointer;
}
.fab svg { width: 18px; height: 18px; }
.fab.fab-esq { right: auto; left: 12px; }

/* ----------------------------------------------------------------- formulário */
.campo { margin-bottom: 6px; }
.campo:last-child { margin-bottom: 0; }
.campo > label { display: block; margin: 0 0 3px 2px; font-size: 14px; font-weight: 700; color: var(--txt); }
.campo .dica, .dica { margin: 4px 2px 0; font-size: 13px; color: var(--txt-3); }

/* Campos grandes e com destaque (regra do dono). Todo <input> tem type explícito. */
input:not([type]), input[type=text], input[type=tel], input[type=email], input[type=number],
input[type=search], input[type=url], input[type=password], select, textarea {
  display: block; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 2px solid #c9cfd8; border-radius: var(--r-p);
  background: #fbfcfe; color: var(--txt);
  font: inherit; font-size: 15px; line-height: 1.3;
  -webkit-appearance: none; appearance: none;
  box-shadow: inset 0 2px 3px rgba(20, 30, 50, .05);
}
input::placeholder, textarea::placeholder { color: #9aa2ae; opacity: 1; font-size: 16px; }
textarea { min-height: 80px; resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}
:root[data-tema="escuro"] input:not([type]), :root[data-tema="escuro"] input[type], :root[data-tema="escuro"] textarea { background: #1f232a; border-color: #3a404a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) input:not([type]), :root:not([data-tema="claro"]) input[type], :root:not([data-tema="claro"]) textarea { background: #1f232a; border-color: #3a404a; }
}
.grupo-prefixo { display: flex; }
.grupo-prefixo .prefixo {
  display: flex; align-items: center; padding: 0 14px;
  border: 2px solid #c9cfd8; border-right: 0;
  border-radius: var(--r-p) 0 0 var(--r-p);
  background: var(--bg); color: var(--txt-2); font-size: 16px; font-weight: 700; white-space: nowrap;
}
.grupo-prefixo input { border-radius: 0 var(--r-p) var(--r-p) 0; min-width: 0; flex: 1; }
.grupo-prefixo .sufixo { display: flex; align-items: center; padding: 0 12px; border: 2px solid #c9cfd8; border-left: 0; border-radius: 0 var(--r-p) var(--r-p) 0; background: var(--bg); color: var(--txt-2); font-size: 15px; font-weight: 700; white-space: nowrap; }
.grupo-prefixo.com-sufixo input { border-radius: 0; }
.grupo-prefixo.so-sufixo input { border-radius: var(--r-p) 0 0 var(--r-p); }
.perguntas .grupo-prefixo .prefixo { font-size: 13px; padding: 0 10px; flex: 0 0 auto; }
.perguntas .grupo-prefixo input { flex: 1; }
.grupo-prefixo:focus-within .prefixo, .grupo-prefixo:focus-within .sufixo { border-color: var(--brand); }
.switch input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.linha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.linha-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 340px) { .linha-2, .linha-3 { grid-template-columns: 1fr; } }

/* seletor próprio (substitui o <select> nativo) */
.seletor {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: 48px; padding: 8px 10px 8px 14px;
  border: 2px solid #c9cfd8; border-radius: var(--r-p);
  background: #fbfcfe; color: var(--txt);
  font: inherit; font-size: 18px; text-align: left; cursor: pointer;
}
:root[data-tema="escuro"] .seletor { background: #1f232a; border-color: #3a404a; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .seletor { background: #1f232a; border-color: #3a404a; } }
.seletor .sel-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seletor svg { color: var(--txt-3); transform: rotate(90deg); flex: 0 0 auto; }
.seletor.compacto { width: auto; min-height: 36px; padding: 6px 8px 6px 12px; font-size: 15px; border-radius: 8px; }

/* interruptor */
.switch { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .trilho { width: 50px; height: 30px; flex: 0 0 auto; border-radius: 999px; background: var(--linha); position: relative; transition: background .18s; }
.switch .trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.switch input:checked + .trilho { background: var(--ok); }
.switch input:checked + .trilho::after { transform: translateX(20px); }
.switch .rot { flex: 1; }
.switch .rot b { display: block; font-weight: 700; font-size: 15px; }
.switch .rot span { display: block; font-size: 13.5px; line-height: 1.3; color: var(--txt-2); }

/* escolha em blocos (substitui radios) */
.escolhas { display: grid; gap: 6px; }
.escolha {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1.5px solid var(--linha); border-radius: 12px;
  background: var(--card); color: var(--txt); font: inherit; text-align: left; cursor: pointer;
}
.escolha[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.escolha[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.escolha[aria-pressed="true"] b { color: #fff !important; }
.escolha[aria-pressed="true"] .tag { background: rgba(255,255,255,.22); color: #fff; }
.escolha b { display: block; font-size: 17px; }
.escolha small { display: block; color: var(--txt-2); font-size: 14.5px; line-height: 1.3; }
.escolha .marca { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--linha); flex: 0 0 auto; display: grid; place-items: center; }
.escolha[aria-pressed="true"] .marca { border-color: #fff; background: #fff; color: var(--brand); }

/* chips (botões de seleção rápida: tipo, quartos, características) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  min-height: 46px; padding: 8px 16px; border: 2px solid var(--linha); border-radius: 14px;
  background: var(--card); color: var(--txt); font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.chips button svg { width: 18px; height: 18px; color: var(--txt-3); }
.chips button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.chips button[aria-pressed="true"] svg { color: #fff; }
.chips.numeros button { min-width: 52px; justify-content: center; padding: 8px 10px; font-weight: 800; }
.chips.pequenos button { min-height: 38px; padding: 5px 12px; font-size: 14px; border-radius: 11px; }

/* seletor de cores */
.cores { display: flex; flex-wrap: wrap; gap: 12px; }
.cores button { width: 44px; height: 44px; border-radius: 14px; border: 3px solid transparent; cursor: pointer; padding: 0; }
.cores button[aria-pressed="true"] { border-color: var(--txt); transform: scale(1.06); }

/* abas de topo (segmentadas) */
.segmentos { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--linha); }
.segmentos button {
  flex: 1; min-height: 34px; border: 0; border-radius: 11px;
  background: transparent; color: var(--txt-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.segmentos button[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: var(--sombra); }

/* filtros */
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px 2px; }
.filtros button {
  flex: 0 0 auto; min-height: 34px; padding: 5px 11px;
  border: 1.5px solid var(--linha); border-radius: 10px;
  background: var(--card); color: var(--txt-2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.filtros button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* etiquetas */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 8px; font-size: 14px; font-weight: 800; background: var(--brand-suave); color: var(--brand-forte); }
.tag.ok { background: rgba(18,161,80,.12); color: var(--ok); }
.tag.alerta { background: rgba(217,119,6,.14); color: var(--alerta); }
.tag.erro { background: rgba(220,38,38,.12); color: var(--erro); }
.tag.azul { background: rgba(30,111,217,.12); color: var(--azul); }
.tag.neutra { background: var(--bg); color: var(--txt-2); }

/* aviso em faixa */
.faixa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--brand-suave); color: var(--brand-forte); font-size: 15px; font-weight: 600; }
.faixa.alerta { background: rgba(217,119,6,.14); color: var(--alerta); }
.faixa.erro { background: rgba(220,38,38,.1); color: var(--erro); }
.faixa svg { flex: 0 0 auto; }

/* vazio */
.vazio { text-align: center; padding: 28px 16px; color: var(--txt-2); }
.vazio .ilustra { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 26px; background: var(--brand-suave); color: var(--brand); display: grid; place-items: center; }
.vazio .ilustra svg { width: 40px; height: 40px; }
.vazio h2 { margin: 0 0 6px; font-size: 20px; color: var(--txt); }
.vazio p { margin: 0 0 22px; font-size: 15.5px; }

/* carregando */
.girando { width: 30px; height: 30px; margin: 40px auto; border: 3px solid var(--linha); border-top-color: var(--brand); border-radius: 50%; animation: gira .8s linear infinite; }
#carregando.girando { position: fixed; left: 50%; top: 50%; width: 45px; height: 45px; margin: 0; transform: translate(-50%, -50%); border-width: 4px; animation: gira-centro .8s linear infinite; }
@keyframes gira-centro { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes gira { to { transform: rotate(360deg); } }
.esqueleto { background: linear-gradient(90deg, var(--linha) 25%, var(--bg) 37%, var(--linha) 63%); background-size: 400% 100%; animation: brilha 1.3s ease infinite; border-radius: var(--r-p); }
@keyframes brilha { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* aviso rápido no centro */
#toast {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.92);
  z-index: 95; width: min(86vw, 380px); box-sizing: border-box;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 18px;
  /* fundo cheio conforme a situação (verde = ok, vermelho = erro, cor do tema = informação);
     a borda é sempre a cor do tema escolhido pelo corretor */
  background: var(--brand); color: #fff; font-size: 16.5px; font-weight: 600; line-height: 1.35;
  border: 6px solid var(--brand);
  box-shadow: var(--sombra-alta);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
#toast.ver { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); transition-delay: 0s; }
#toast .toast-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.22); }
#toast .toast-ico svg { width: 26px; height: 26px; }
#toast .toast-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#toast.erro { background: var(--erro); }
#toast.ok { background: var(--ok); }

/* folha */
.folha-fundo {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 16, 28, .55);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.folha-fundo.ver { opacity: 1; pointer-events: auto; }
body.travado { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.folha {
  width: 100%; max-width: 560px; max-height: 90vh; max-height: 92dvh; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 0 18px calc(24px + var(--safe-b));
  background: var(--card); border-radius: 24px 24px 0 0;
  transform: translateY(100%); transition: transform .25s ease;
}
.folha.cheia { max-height: 96vh; max-height: 96dvh; }
.folha.tela { height: 100vh; height: 100dvh; max-height: none; border-radius: 0; padding-top: var(--safe-t); }
.folha.tela .folha-topo { top: 0; padding: 6px 0 4px; }
.folha.tela .folha-corpo { padding-top: 0; }
.folha.tela .folha-topo .fechar-folha { width: 46px; height: 46px; }
.folha-topo .folha-legenda { flex: 1; margin: 8px 0 0; font-size: 15px; color: var(--txt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folha.tela .folha-topo h2, .folha.tela .folha-topo .folha-legenda, .folha.tela .folha-topo .fechar-folha { margin-top: 0; }
.folha-fundo.ver .folha { transform: translateY(0); }
.folha-topo { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 14px 0 10px; background: var(--card); }
.folha-topo .puxador { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: var(--linha); }
.folha-topo h2 { flex: 1; margin: 8px 0 0; font-size: 22px; }
.folha-topo .fechar-folha { margin: 8px 0 0 auto; width: 46px; height: 46px; border: 1.5px solid var(--linha); border-radius: 50%; background: var(--linha); color: var(--txt); display: grid; place-items: center; cursor: pointer; }
.folha-topo .fechar-folha svg { width: 26px; height: 26px; stroke-width: 2.6; }
.folha-corpo { padding-top: 6px; }
@media (min-width: 640px) {
  .folha-fundo { align-items: center; }
  .folha { border-radius: 24px; max-height: 86vh; }
  .folha.tela { height: auto; max-height: 92vh; border-radius: 24px; padding-top: 0; }
}

/* perguntas de abertura: uma por tela, cobrindo tudo */
.perguntas.exige-google { z-index: 90; }
.perguntas { position: fixed; inset: 0; z-index: 70; overflow-y: auto; background: var(--bg); padding: calc(24px + var(--safe-t)) 22px calc(24px + var(--safe-b)); }
.perguntas .p-miolo { max-width: 520px; margin: 0 auto; }
.perguntas .p-etapa { margin: 8px 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.perguntas h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.perguntas .p-dica { margin: 0 0 22px; font-size: 16.5px; line-height: 1.45; color: var(--txt-2); }
.perguntas .p-campo, .perguntas .p-campo-grupo { margin-bottom: 18px; }
.perguntas .p-campo { font-size: 22px; min-height: 68px; }
.perguntas .p-campo-grupo input { font-size: 20px; min-height: 68px; }
.perguntas .p-estado { min-height: 22px; margin: -8px 0 14px; font-size: 15px; color: var(--txt-2); }
.perguntas .p-botoes { display: flex; gap: 10px; }
.perguntas .p-botoes .btn { flex: 1; }
.perguntas .p-botoes .btn:last-child { flex: 2; }
.perguntas .btn { min-height: 60px; font-size: 17.5px; }
.perguntas .p-rotulo { display: block; margin: 0 0 4px 2px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--txt-2); }

.passos { display: flex; gap: 6px; margin: 4px 0 18px; }
.passos i { flex: 1; height: 5px; border-radius: 5px; background: var(--linha); }
.passos i.on { background: var(--brand); }

/* specs do imóvel (quartos, banheiros...) */
.specs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.spec { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--txt-2); white-space: nowrap; }
.spec svg { color: var(--txt-3); flex: 0 0 auto; }
.spec b { color: var(--txt); font-weight: 700; }
.spec small { font-size: 12.5px; }

/* card de imóvel na lista do painel */
.im { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; cursor: pointer; position: relative; }
.im .ft { width: 84px; flex: 0 0 84px; aspect-ratio: 1/1; background: var(--bg) center/cover no-repeat; display: grid; place-items: center; color: var(--txt-3); }
.im .tx { flex: 1; min-width: 0; padding: 8px 10px 8px 0; display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.im .tx b.ti { display: block; font-size: 14px; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.im .tx .lc { font-size: 13px; color: var(--txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im .tx .pr { font-size: 15px; font-weight: 800; color: var(--brand); }
.im .mais { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.92); color: var(--txt); display: grid; place-items: center; cursor: pointer; }
.im .mais svg { width: 18px; height: 18px; }
.im.rascunho { opacity: .6; }
.im.oculto .ft::after { content: "OCULTO"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.im .ft { position: relative; }
.im .selo { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; }
.im .selo.de { background: var(--brand-2); }

/* ====================================================================== */
/*  PÁGINA PÚBLICA DO CORRETOR                                              */
/* ====================================================================== */
.v-topo { position: sticky; top: 0; z-index: 40; background: var(--loja-cor, var(--brand)); padding-top: var(--safe-t); color: #fff; }
.v-cab { display: flex; align-items: center; gap: 12px; padding: 10px 12px 8px; }
.v-foto { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; background: rgba(255,255,255,.95) center/cover no-repeat; color: var(--loja-cor, var(--brand)); display: grid; place-items: center; font-size: 28px; font-weight: 800; overflow: hidden; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.v-nome { flex: 1; min-width: 0; }
.v-nome h1 { margin: 0; font-size: 18px; line-height: 1.15; font-weight: 800; color: #fff; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-nome .creci { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 8px; border-radius: 7px; background: rgba(255,255,255,.18); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.v-nome .frase { margin: 3px 0 0; font-size: 12.5px; line-height: 1.25; color: rgba(255,255,255,.92); }
.v-acoes { display: flex; gap: 2px; align-items: center; }
.v-acoes .denunciar { width: 34px; height: 32px; display: grid; place-items: center; color: #fff; border-radius: 10px; }
.v-acoes .denunciar svg { width: 22px; height: 22px; }
.v-zap { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--whats); color: #05391a; font-weight: 800; font-size: 14px; white-space: nowrap; }
.v-zap svg { width: 20px; height: 20px; }
.v-busca { display: flex; align-items: center; gap: 10px; padding: 0 12px 10px; }
.v-busca .caixa { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; background: #fff; color: var(--txt-3); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.v-busca .caixa > span { display: flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.v-busca .caixa svg { width: 17px; height: 17px; flex: 0 0 auto; display: block; }
.v-busca input { flex: 1; min-height: 0; height: 100%; border: 0; padding: 0; background: transparent; color: #15181d; font-size: 14px; box-shadow: none; }
.v-busca input::placeholder { font-size: 14px; }
.v-busca input:focus { box-shadow: none; background: transparent; }

.v-miolo { max-width: 1100px; margin: 0 auto; }
.v-filtros { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 2px; scrollbar-width: none; }
.v-filtros::-webkit-scrollbar { display: none; }
.v-filtros button { flex: 0 0 auto; min-height: 36px; padding: 5px 14px; border: 1.5px solid var(--linha); border-radius: 10px; background: var(--card); color: var(--txt-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.v-filtros button svg { width: 16px; height: 16px; }
.v-filtros button[aria-pressed="true"] { background: var(--loja-cor, var(--brand)); border-color: var(--loja-cor, var(--brand)); color: #fff; }

.v-barra-ordem { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px 4px; font-size: 13px; color: var(--txt-2); }
.v-titulo-lista { min-width: 0; display: flex; flex-direction: column; }
.v-titulo-lista h2 { margin: 0; font-size: 15px; font-weight: 800; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-titulo-lista span { font-size: 12px; }

/* lista pública: um imóvel por linha, foto grande em cima (estilo portal) */
.grade { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 12px; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1000px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }

.imovel { display: flex; flex-direction: column; background: var(--card); border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.06); border: 1px solid var(--linha); }
.imovel .foto { position: relative; width: 100%; aspect-ratio: 4/3; background: var(--bg) center/cover no-repeat; }
.imovel .foto .semfoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--txt-3); opacity: .55; }
.imovel .foto .semfoto svg { width: 64px; height: 64px; stroke-width: 1.4; }
.imovel .foto .fin { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 7px; background: var(--loja-cor, var(--brand)); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.imovel .foto .nfotos { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 7px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.imovel .foto .nfotos svg { width: 14px; height: 14px; }
.imovel .info { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.imovel .preco { font-size: 20px; font-weight: 800; color: var(--txt); line-height: 1.1; }
.imovel .preco small { font-size: 13px; font-weight: 600; color: var(--txt-2); }
.imovel .titulo { font-size: 15px; line-height: 1.25; color: var(--txt); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.imovel .local { font-size: 13px; color: var(--txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.imovel .local svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--txt-3); }
.imovel .specs { margin-top: 4px; }

/* detalhe do imóvel */
.d-titulo { margin: 0 0 6px; font-size: 19px; line-height: 1.25; font-weight: 600; }
.d-badge { display: inline-block; vertical-align: middle; padding: 2px 7px; border-radius: 3px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--loja-cor, var(--brand)); margin: -3px 8px 0 0; }
.galeria-box { position: relative; width: 100%; margin: 0 auto; }
.galeria { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; touch-action: pan-x pan-y; background: #f0f0f0; border-radius: 10px; scrollbar-width: none; }
.galeria::-webkit-scrollbar { display: none; }
.galeria img { width: 100%; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 4/3; object-fit: cover; }
.galeria .gv { position: relative; width: 100%; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 4/3; display: grid; place-items: center; background: #15181d center/cover no-repeat; color: #fff; cursor: pointer; overflow: hidden; }
.galeria .gv::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.galeria .gv .gv-play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.95); color: #15181d; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.galeria .gv .gv-play svg { margin-left: 4px; }
.galeria .gv .gv-rotulo { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 14px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.galeria .gv.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.galeria .gv.facebook { background: linear-gradient(135deg, #1877f2, #0d47a1); }
.galeria .gv.tiktok { background: linear-gradient(135deg, #111, #333); }
.galeria .gv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #000; }
.galeria .gv.tocando::before, .galeria .gv.tocando .gv-play, .galeria .gv.tocando .gv-rotulo { display: none; }
.galeria-cont { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 12px; background: var(--card); border: 1px solid var(--linha); font-size: 14px; font-weight: 700; color: var(--txt-2); }
.galeria-share { position: absolute; right: 10px; bottom: 10px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linha); background: var(--card); color: var(--azul); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.galeria-share svg { width: 24px; height: 24px; }
.pontos { display: flex; justify-content: center; gap: 6px; padding: 5px 0 0; }
.pontos i { width: 7px; height: 7px; border-radius: 50%; background: var(--linha); }
.pontos i.on { background: var(--loja-cor, var(--brand)); }
.d-preco { margin: 8px 0 2px; font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.d-preco small { font-size: 14px; font-weight: 600; color: var(--txt-2); margin-left: 4px; }
.d-extras { font-size: 13.5px; color: var(--txt-2); margin: 0 0 4px; }
.d-local { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 6px; font-size: 14.5px; color: var(--txt); line-height: 1.3; }
.d-local svg { flex: 0 0 auto; color: var(--txt-3); margin-top: 1px; }
.d-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 8px 0; }
.d-specs .spec { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg); white-space: normal; font-size: 12.5px; }
.d-specs .spec b { font-size: 16px; }
.d-secao { margin: 12px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--txt-3); }
.d-desc { white-space: pre-wrap; color: var(--txt); font-size: 14.5px; font-weight: 400; line-height: 1.4; margin: 0; }
.d-caract { display: flex; flex-wrap: wrap; gap: 6px; }
.d-caract span { padding: 4px 10px; border-radius: 9px; background: var(--brand-suave); color: var(--brand-forte); font-size: 13px; font-weight: 700; }
.d-acoes { display: grid; gap: 8px; margin: 10px 0 2px; }
.d-acoes .btn { border-radius: 10px; min-height: 48px; font-size: 15.5px; }
.mapa { width: 100%; height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid var(--linha); background: var(--bg); margin: 6px 0; z-index: 0; }
.mapa.grande { height: 300px; }
/* faixa do corretor fixa no rodapé do detalhe */
.d-vendedor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; transform: translateZ(0);
  padding: 10px 16px calc(10px + var(--safe-b)); margin: 0; background: var(--card); border-top: 1px solid var(--linha);
  box-shadow: 0 -8px 24px rgba(20, 30, 50, .08); }
.folha.com-rodape .folha-corpo { padding-bottom: 110px; }
.d-vendedor .lg { width: 46px; height: 46px; border-radius: 50%; background: var(--loja-cor, var(--brand)) center/cover; color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.d-vendedor .btn.whats { min-height: 44px; padding: 8px 14px; border-radius: 12px; font-size: 14.5px; }

/* visor de foto em tela cheia */
.visor { position: fixed; inset: 0; z-index: 200; background: #fff; color: var(--txt); display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; overscroll-behavior: contain; }
.visor.ver { opacity: 1; }
.visor-topo { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(8px + var(--safe-t)) 8px 10px 16px; pointer-events: none; }
.visor-cont { font-size: 15px; font-weight: 700; color: var(--loja-cor, var(--brand)); }
.visor-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg); color: var(--txt); display: grid; place-items: center; cursor: pointer; pointer-events: auto; }
.visor-faixa { flex: 1; display: flex; overflow: hidden; }
.visor-slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.visor-slide.video .gv { position: absolute; top: calc(66px + var(--safe-t)); left: 18px; width: calc(100% - 36px); height: calc(100% - 170px - var(--safe-t) - var(--safe-b)); aspect-ratio: auto; border-radius: 10px; display: grid; place-items: center; color: #fff; cursor: pointer; overflow: hidden; background: #15181d center/cover no-repeat; }
.visor-slide.video .gv::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.visor-slide.video .gv .gv-play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.95); color: #15181d; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.visor-slide.video .gv .gv-play svg { margin-left: 4px; }
.visor-slide.video .gv .gv-rotulo { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 14px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.visor-slide.video .gv.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.visor-slide.video .gv.facebook { background: linear-gradient(135deg, #1877f2, #0d47a1); }
.visor-slide.video .gv.tiktok { background: linear-gradient(135deg, #111, #333); }
.visor-slide.video .gv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #000; }
.visor-slide.video .gv.tocando::before, .visor-slide.video .gv.tocando .gv-play, .visor-slide.video .gv.tocando .gv-rotulo { display: none; }
.visor-slide img { position: absolute; top: calc(66px + var(--safe-t)); left: 18px; width: calc(100% - 36px); height: calc(100% - 170px - var(--safe-t) - var(--safe-b)); max-width: none;
  object-fit: contain; border-radius: 10px; transform-origin: center; will-change: transform; -webkit-user-drag: none; }
.visor-nav { position: absolute; left: 0; right: 0; bottom: calc(38px + var(--safe-b)); display: flex; align-items: center; justify-content: center; gap: 18px; pointer-events: none; }
.visor-nav > * { pointer-events: auto; }
.visor-seta { width: 48px; height: 48px; border: 2px solid var(--loja-cor, var(--brand)); border-radius: 50%; background: #fff; color: var(--loja-cor, var(--brand)); display: grid; place-items: center; cursor: pointer; }
.visor-meio { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; }
.visor-pos { font-size: 16px; line-height: 1; color: var(--loja-cor, var(--brand)); }
.visor-pos b { font-size: 20px; }
.visor-pontos { display: flex; align-items: center; gap: 7px; justify-content: center; }
.visor-pontos i { width: 8px; height: 8px; border-radius: 50%; background: var(--loja-cor, var(--brand)); opacity: .35; }
.visor-pontos i.on { opacity: 1; }
.visor-dica { position: absolute; left: 0; right: 0; bottom: calc(12px + var(--safe-b)); margin: 0; text-align: center; font-size: 13px; color: var(--loja-cor, var(--brand)); opacity: .85; pointer-events: none; }

/* denúncia */
.den-intro { margin: 0 0 12px; font-size: 14.5px; line-height: 1.4; color: var(--txt-2); }
.den-rotulo { display: block; margin: 0 0 4px 2px; font-size: 14px; font-weight: 700; color: var(--brand); }
#denTexto { border-color: var(--brand); }
.den-conta { text-align: right; font-size: 12.5px; color: var(--txt-3); margin: 4px 2px 10px; }
#denEnviar { background: var(--brand); color: #fff; }
#denEnviar:disabled { opacity: .45; }
.den-nota { margin: 10px 0 0; font-size: 13px; line-height: 1.35; color: var(--txt-3); text-align: center; }

/* fim da lista + banner */
.carregando-mais { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 14px; color: var(--txt-2); }
.carregando-mais .girando { width: 20px; height: 20px; border-width: 2px; }
.fim-lista { height: calc(110px + var(--safe-b)); }
.sem-banner .fim-lista { height: calc(40px + var(--safe-b)); }
.banner-criar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px calc(8px + var(--safe-b)); background: var(--card); color: var(--txt); border-top: 1px solid var(--linha); box-shadow: 0 -6px 20px rgba(20,30,50,.08); text-decoration: none; }
.banner-criar .bc-ico { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; display: block; }
.banner-criar .bc-tx { flex: 1; min-width: 0; line-height: 1.2; }
/* a chamada pode ter duas linhas (antes era nowrap e cortava a frase) */
.banner-criar .bc-tx b { display: block; font-size: 17px; line-height: 1.22; }
.banner-criar .bc-tx small { display: block; font-size: 14.5px; color: var(--txt-2); white-space: nowrap; overflow: hidden; }
.banner-criar .bc-btn { padding: 8px 14px; border-radius: 10px; background: var(--loja-cor, var(--brand)); color: #fff; font-weight: 700; font-size: 13.5px; }
@media (min-width: 900px) { .banner-criar { left: 50%; transform: translateX(-50%); width: 560px; border-radius: 14px 14px 0 0; } }

@media print {
  .topo, .fab, .barra-nav, .nao-imprime, .v-topo, .banner-criar { display: none !important; }
  .pagina { padding: 0; }
  .cartao { border: 0; }
}

/* telas grandes */
@media (min-width: 900px) {
  .topo { padding-left: max(14px, calc((100% - 760px) / 2 + 14px)); padding-right: max(10px, calc((100% - 760px) / 2 + 10px)); }
  .topo h1 { font-size: 24px; }
  .v-topo { --v-lado: max(12px, calc((100% - 1100px) / 2 + 12px)); }
  .v-cab, .v-busca, .v-filtros, .v-barra-ordem { padding-left: var(--v-lado); padding-right: var(--v-lado); }
  .v-filtros { justify-content: center; }
  .visor-slide img, .visor-slide.video .gv { left: calc(50% - 350px); width: 700px; }
  .d-vendedor { left: 50%; right: auto; transform: translateX(-50%); width: 560px; border-radius: 16px 16px 0 0; }
  .fab { right: max(16px, calc((100% - 760px) / 2 + 14px)); bottom: calc(var(--nav) + 34px + var(--safe-b)); }
  .fab.fab-esq { left: max(16px, calc((100% - 760px) / 2 + 14px)); }
}

/* spinner entre telas (core.js: mostrarEspera / irPara) */
#espera-nav { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 72%, transparent); opacity: 0; pointer-events: none; transition: opacity .15s; }
#espera-nav.ver { opacity: 1; pointer-events: auto; }
#espera-nav .girando { margin: 0; width: 45px; height: 45px; border-width: 4px; }
