/* ============================================================
   Housxpert — Stylesheet
   ⬇⬇⬇  BRAND TOKENS — replace with the exact values from the
        "Manual de Aplicação Identidade Visual" PDF in ONE place.
   ============================================================ */
:root {
  /* Manual de Identidade Visual Housxpert */
  --hx-primary:   #FC5412;   /* Pantone 1655 C — laranja principal */
  --hx-primary-d: #E0440A;   /* hover */
  --hx-accent:    #AFD100;   /* Pantone 3507 C — lima (destaques sobre fundo escuro) */
  --hx-orange2:   #FF7F00;   /* Pantone 716 C — laranja vivo (apoio, o "X" da logo) */
  --hx-slate:     #606E89;   /* Pantone 4136 C — ardósia (apoio) */
  --hx-ink:       #101921;   /* Pantone Black 6C */
  --hx-ink-2:     #44505d;
  --hx-muted:     #8b96a3;
  --hx-line:      #e6e9ee;
  --hx-bg:        #f4f6f8;
  --hx-surface:   #ffffff;
  --hx-danger:    #c5453b;
  --hx-radius:    14px;
  --hx-radius-sm: 9px;
  --hx-shadow:    0 1px 3px rgba(16,25,33,.06), 0 8px 24px rgba(16,25,33,.07);
  --hx-orange-soft: rgba(252,84,18,.10);
  --hx-font:      "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--hx-font); color: var(--hx-ink); background: var(--hx-bg); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; }
.muted { color: var(--hx-muted); }
small { font-size: .82em; }

/* ---------- top bar ---------- */
.hx-topbar {
  display: flex; align-items: center; gap: 22px;
  padding: 0 26px; height: 62px;
  background: var(--hx-surface); border-bottom: 1px solid var(--hx-line);
  position: sticky; top: 0; z-index: 50;
}
.hx-topbar.public { background: var(--hx-ink); border-bottom: none; }
.hx-brand { cursor: pointer; }
.hx-brandlock { display: inline-flex; align-items: center; gap: 10px; }
.hx-mark { display: block; flex: none; }
.hx-wordwrap { display: flex; flex-direction: column; line-height: 1; }
.hx-logo { font-weight: 700; font-size: 1.4rem; letter-spacing: -.04em; color: var(--hx-ink); text-transform: lowercase; line-height: 1; }
.hx-logo .hx-x { color: var(--hx-primary); }
.hx-tagline { font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--hx-slate); margin-top: 3px; font-weight: 600; }
.hx-topbar.public .hx-logo { color: #fff; }
.hx-cma-coverlogo { margin-bottom: 22px; }
.hx-cma-coverlogo .hx-logo { color: #fff; }
.hx-cma-coverlogo .hx-tagline { color: var(--hx-accent); }
.hx-nav { display: flex; gap: 4px; flex: 1; }
.hx-nav-link { padding: 8px 13px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--hx-ink-2); }
.hx-nav-link:hover { background: var(--hx-bg); color: var(--hx-ink); }
.hx-nav-link.active { background: var(--hx-orange-soft); color: var(--hx-primary); }
.hx-top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hx-agent-switch { border: 1px solid var(--hx-line); border-radius: 8px; padding: 7px 9px; font-size: .82rem; max-width: 230px; background: #fff; color: var(--hx-ink); }
.hx-lang { display: inline-flex; border: 1px solid var(--hx-line); border-radius: 8px; overflow: hidden; }
.hx-topbar.public .hx-lang { border-color: rgba(255,255,255,.25); }
.hx-lang button { border: 0; background: transparent; padding: 7px 11px; font-weight: 600; font-size: .8rem; cursor: pointer; color: var(--hx-muted); }
.hx-topbar.public .hx-lang button { color: rgba(255,255,255,.7); }
.hx-lang button.on { background: var(--hx-primary); color: #fff; }

/* ---------- main ---------- */
.hx-main { max-width: 1120px; margin: 0 auto; padding: 30px 26px 80px; min-width: 0; width: 100%; }
.hx-main.public { max-width: 1180px; }

/* ---------- buttons ---------- */
.hx-btn { display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border: 1px solid var(--hx-line); background: var(--hx-surface); color: var(--hx-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .92rem; cursor: pointer; transition: .15s; }
.hx-btn:hover { border-color: var(--hx-primary); color: var(--hx-primary); }
.hx-btn.primary { background: var(--hx-primary); border-color: var(--hx-primary); color: #fff; }
.hx-btn.primary:hover { background: var(--hx-primary-d); color: #fff; }
.hx-btn.ghost { background: transparent; }
.hx-btn.danger { color: var(--hx-danger); border-color: #f0d2cf; }
.hx-btn.danger:hover { background: var(--hx-danger); color: #fff; border-color: var(--hx-danger); }
.hx-btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.hx-btn.lg { padding: 13px 22px; font-size: 1rem; }
.hx-btn.block { width: 100%; }

/* ---------- dashboard ---------- */
.hx-hero-dash { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(125deg, #101921 0%, #283441 100%); color: #fff; padding: 30px 32px; border-radius: var(--hx-radius); margin-bottom: 22px; }
.hx-hero-dash h1 { color: #fff; }
.hx-hero-dash p { margin: 0; color: rgba(255,255,255,.8); }
.hx-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--hx-accent); margin-bottom: 6px; }
.hx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.hx-kpi { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: 18px 20px; box-shadow: var(--hx-shadow); transition: .15s; }
.hx-kpi:hover { transform: translateY(-2px); border-color: var(--hx-primary); }
.hx-kpi-val { font-size: 2rem; font-weight: 800; color: var(--hx-primary); }
.hx-kpi-label { color: var(--hx-ink-2); font-size: .9rem; }

.hx-h2 { margin: 28px 0 14px; }
.hx-count { color: var(--hx-muted); font-weight: 500; font-size: 1rem; }
.hx-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hx-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- cards / grid ---------- */
.hx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hx-card { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); overflow: hidden; box-shadow: var(--hx-shadow); display: flex; flex-direction: column; transition: .15s; }
.hx-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(18,36,48,.12); }
.hx-thumb { height: 168px; background-size: cover; background-position: center; background-color: #dfe6ea; }
.hx-thumb.placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: #b8c4cc; background: linear-gradient(135deg, #eef2f5, #dfe6ea); }
.hx-card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.hx-card-body h3 { font-size: 1.04rem; margin: 0; }
.hx-addr { color: var(--hx-muted); font-size: .85rem; }
.hx-specs { display: flex; gap: 13px; font-size: .85rem; color: var(--hx-ink-2); flex-wrap: wrap; }
.hx-price { font-size: 1.32rem; font-weight: 800; color: var(--hx-ink); }
.hx-price.big { font-size: 1.9rem; color: var(--hx-primary); }
.hx-cap { font-size: .82rem; color: var(--hx-muted); }
.hx-card-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.hx-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; background: var(--hx-bg); border-radius: 9px; padding: 9px 12px; font-size: .82rem; }
.hx-terms div { display: flex; justify-content: space-between; }
.hx-terms span { color: var(--hx-muted); }

.hx-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; align-self: flex-start; }
.hx-badge.draft { background: #fff3e0; color: #b06d00; }
.hx-badge.listed { background: #e3f5ef; color: var(--hx-primary-d); }
.hx-badge.sold { background: #eee; color: #777; }
.hx-badge.partner { background: rgba(215,160,75,.18); color: #9a6b14; }
.hx-badge.danger { background: #fde8e8; color: #c81e1e; }

.hx-empty { text-align: center; color: var(--hx-muted); padding: 50px 20px; background: var(--hx-surface); border: 1px dashed var(--hx-line); border-radius: var(--hx-radius); }
.hx-import-note { background: #fff8ec; border: 1px solid #f3e2c4; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }

/* ---------- forms ---------- */
.hx-form { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: 24px; box-shadow: var(--hx-shadow); }
/* ⚠️ 07/08/2026 — `hidden` estava sendo IGNORADO em tudo que tem display na classe.
   O navegador esconde [hidden] com display:none, mas isso é regra de agente do usuário:
   qualquer `display` escrito numa classe nossa ganha dela. Resultado: os campos de
   divisão de comissão continuavam na tela do lançamento, ao lado da frase que diz que
   naquele caso NÃO há divisão — duas informações contrárias no mesmo formulário.
   Esta linha faz `hidden` valer de novo em toda a aplicação. */
[hidden] { display: none !important; }
.hx-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.hx-field { display: flex; flex-direction: column; gap: 5px; }
.hx-field.wide { grid-column: span 3; }
.hx-field label, .hx-label { font-size: .82rem; font-weight: 600; color: var(--hx-ink-2); }
.hx-label { display: block; margin: 16px 0 8px; }
input, select, textarea { font-family: inherit; font-size: .92rem; padding: 10px 12px; border: 1px solid var(--hx-line); border-radius: 9px; background: var(--hx-surface); color: var(--hx-ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--hx-primary); box-shadow: 0 0 0 3px var(--hx-orange-soft); }
/* A regra acima dá width:100% também a rádio e caixa de seleção. O Chrome encolhe o
   controle dentro de um flex; o Safari NÃO (não passa do min-width automático) — a
   bolinha ficava com a largura da caixa toda e empurrava o texto pra fora do quadro.
   Vale pra todo formulário: escolha de modalidade, aceites, filtros. */
input[type="radio"], input[type="checkbox"] { width: auto; min-width: 0; flex: 0 0 auto; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--hx-line); border-radius: 20px; font-size: .85rem; cursor: pointer; }
.hx-chip-check input { width: auto; }
.hx-form-foot { margin-top: 20px; }
.hx-ai-bar { margin-top: 10px; }
.hx-cma-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 18px 22px; border-radius: 16px; background: linear-gradient(115deg, #101921, #1c2a36); color: #fff; box-shadow: 0 10px 28px rgba(16,25,33,.28); }
.hx-cma-banner-ic { font-size: 2.2rem; flex: 0 0 auto; }
.hx-cma-banner-t { font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; color: #fff; }
.hx-cma-banner-s { font-size: .9rem; opacity: .92; line-height: 1.45; margin-top: 2px; }
.hx-cma-banner-s b { color: var(--hx-primary, #FC5412); }
.hx-ai-desc { margin-top: 14px; border: 1px solid rgba(252,84,18,.3); background: var(--hx-orange-soft); border-radius: 12px; padding: 16px; }
.hx-ai-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hx-ai-actions { display: flex; gap: 8px; }
.hx-ai-hint { font-size: .8rem; color: var(--hx-ink-2); margin: 6px 0 10px; }
.hx-ai-text { white-space: pre-wrap; font-family: var(--hx-font); font-size: .92rem; line-height: 1.6; background: #fff; border: 1px solid #e6e9ee; border-radius: 10px; padding: 16px; margin: 0; color: #17242f; }
/* modo noturno: o box da descrição da IA continua legível (fundo branco → texto escuro) */
html[data-theme="dark"] .hx-ai-text { background: #fff; color: #17242f; }
html[data-theme="dark"] .hx-ai-hint, html[data-theme="dark"] .hx-ai-head { color: #e6d7c9; }

/* ---------- CMA ---------- */
.hx-cma-toolbar { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 14px; }
.hx-cma { background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); box-shadow: var(--hx-shadow); overflow: hidden; }
.hx-cma-cover { background: linear-gradient(125deg, #101921 0%, #232d39 70%, #2e2218 100%); color: #fff; padding: 40px 40px 34px; border-bottom: 4px solid var(--hx-primary); }
.hx-cma-kicker { letter-spacing: .22em; font-size: .8rem; font-weight: 700; color: var(--hx-accent); margin-bottom: 12px; }
.hx-cma-cover h1 { color: #fff; font-size: 1.7rem; max-width: 80%; }
.hx-cma-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 16px; font-size: .9rem; color: rgba(255,255,255,.85); }
.hx-cma-meta b { color: #fff; }
.hx-cma-sec { padding: 26px 40px; border-bottom: 1px solid var(--hx-line); }
.hx-cma-sec h2 { color: var(--hx-primary); border-left: 4px solid var(--hx-accent); padding-left: 12px; }
.hx-cma-sec h3 { margin-top: 18px; font-size: 1rem; }
.hx-cma-contact { background: var(--hx-bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.hx-poi { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hx-val-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 6px 0 14px; }
.hx-valbox { background: var(--hx-bg); border-radius: 12px; padding: 16px; text-align: center; }
.hx-valbox-label { font-size: .78rem; color: var(--hx-muted); margin-bottom: 8px; min-height: 2.2em; }
.hx-valbox-val { font-size: 1.25rem; font-weight: 800; color: var(--hx-ink); }

.hx-comps { display: grid; gap: 12px; }
.hx-comp { border: 1px solid var(--hx-line); border-radius: 11px; padding: 13px 15px; }
.hx-comp-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hx-comp-n { width: 26px; height: 26px; border-radius: 50%; background: var(--hx-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.hx-comp-price { font-weight: 800; font-size: 1.05rem; }
.hx-comp-price small { font-weight: 500; color: var(--hx-muted); }
.hx-comp-type { color: var(--hx-ink-2); font-size: .85rem; }
.hx-comp-st { margin-left: auto; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.hx-comp-st.active { background: #e3f5ef; color: var(--hx-primary-d); }
.hx-comp-st.na { background: #f1f1f1; color: #888; }
.hx-comp-st.sold { background: #fde9e7; color: var(--hx-danger); }
.hx-comp-specs { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 10px; font-size: .84rem; color: var(--hx-ink-2); }
.hx-comp-specs .neg { color: var(--hx-danger); } .hx-comp-specs .pos { color: var(--hx-primary); }
.hx-comp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hx-comp-photo { width: 58px; height: 44px; border-radius: 8px; background-size: cover; background-position: center; background-color: var(--hx-bg); flex: 0 0 auto; border: 1px solid var(--hx-line); }
.hx-comp-photo.placeholder { display: flex; align-items: center; justify-content: center; color: var(--hx-muted); }
.hx-comp-idline { margin-top: 7px; font-size: .84rem; }
.hx-comp-ref { color: var(--hx-slate); text-decoration: none; font-weight: 600; }
.hx-comp-ref:hover { color: var(--hx-primary); text-decoration: underline; }
.hx-comp-open { font-size: .76rem; font-weight: 700; color: var(--hx-primary); white-space: nowrap; }
@media print { .hx-comp-open { color: var(--hx-primary); } .hx-comp-ref { color: var(--hx-primary); text-decoration: underline; } }

/* --- gating por plano --- */
.hx-side-link.locked { opacity: .72; }
.hx-side-tag.lock { margin-left: auto; background: none; font-size: .8rem; }
.hx-upgrade-cta { display: block; margin: 10px 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(135deg, #FC5412, #ff7a44); color: #fff; box-shadow: 0 6px 16px rgba(252,84,18,.28); }
.hx-upgrade-cta b { display: block; font-size: .95rem; }
.hx-upgrade-cta span { display: block; font-size: .76rem; opacity: .92; margin-top: 3px; line-height: 1.3; }
.hx-paywall-wrap { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 20px; }
.hx-paywall { max-width: 480px; width: 100%; text-align: center; background: #fff; border: 1px solid var(--hx-line);
  border-radius: 18px; padding: 34px 30px; box-shadow: 0 20px 60px rgba(16,25,33,.16); }
.hx-paywall-lock { font-size: 3rem; margin-bottom: 6px; }
.hx-paywall-price { font-size: 1.15rem; margin: 6px 0 18px; }
.hx-paywall-price b { color: var(--hx-primary); font-size: 1.5rem; }
.hx-paywall-actions { display: grid; gap: 10px; }
.hx-btn.block { display: block; width: 100%; text-align: center; }

/* --- autocomplete de cidades --- */
.hx-field { position: relative; }
.hx-autoc { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff;
  border: 1px solid var(--hx-line); border-radius: 10px; box-shadow: 0 12px 30px rgba(16,25,33,.14);
  max-height: 240px; overflow-y: auto; }
.hx-autoc-item { padding: 9px 13px; cursor: pointer; font-size: .9rem; }
.hx-autoc-item:hover { background: #fff3ec; color: var(--hx-primary); }
.hx-autoc-add { color: var(--hx-primary); font-weight: 600; border-top: 1px solid var(--hx-line); }
/* lista de clientes (aba Clientes: achar rápido e abrir a ficha) */
.hx-crm-toggle { display: inline-flex; border: 1px solid var(--hx-line); border-radius: 10px; overflow: hidden; margin-left: auto; }
.hx-crm-toggle button { border: 0; background: var(--hx-surface); color: var(--hx-ink-2); padding: 8px 14px; font: inherit; font-size: .85rem; cursor: pointer; }
.hx-crm-toggle button.on { background: var(--hx-primary); color: #fff; font-weight: 600; }
.hx-client-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.hx-client-row { display: flex; align-items: center; gap: 12px; background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 12px; padding: 11px 14px; text-decoration: none; color: var(--hx-ink); transition: .12s; }
.hx-client-row:hover { border-color: var(--hx-primary); box-shadow: 0 4px 14px rgba(16,25,33,.08); transform: translateY(-1px); }
.hx-cl-ini { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hx-cl-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hx-cl-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-cl-main span { font-size: .8rem; }
.hx-cl-side { flex: 0 0 auto; font-size: .8rem; text-align: right; white-space: nowrap; }
@media (max-width: 560px) { .hx-cl-side { display: none; } .hx-crm-toggle { margin: 8px 0 0; } }
/* documentos do imóvel (matrícula, docs dos proprietários) */
.hx-doc-upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hx-doc-upload select { width: auto; flex: 0 0 auto; min-width: 170px; }
.hx-doc-upload .hx-file { flex: 1 1 200px; min-width: 0; }
.hx-doc-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.hx-doc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 10px; padding: 8px 12px; font-size: .88rem; }
.hx-doc-row a { color: var(--hx-primary); font-weight: 600; }
.hx-phone-field { display: flex; gap: 6px; align-items: stretch; }
.hx-phone-field .hx-cc { width: auto; flex: 0 0 auto; max-width: 148px; }
.hx-phone-field input { flex: 1 1 auto; min-width: 0; }
.hx-citytags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hx-citytags:empty { display: none; }
.hx-citytag { display: inline-flex; align-items: center; gap: 6px; background: #fff1ea; color: var(--hx-ink); border: 1px solid var(--hx-primary); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .85rem; font-weight: 600; }
.hx-citytag button { border: 0; background: rgba(16,25,33,.12); color: var(--hx-ink); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: .9rem; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.hx-citytag button:hover { background: var(--hx-danger, #e0114c); color: #fff; }

/* logo Housxpert travada na edição do relatório */
.hx-cma.editing .hx-cma-coverlogo { cursor: not-allowed; opacity: .9; }
.hx-cma.editing .hx-cma-coverlogo::after { content: "🔒"; font-size: .8rem; margin-left: 6px; }

/* --- contato do corretor em todas as páginas impressas do ACM --- */
.hx-print-contact { display: none; }
@media print {
  .hx-print-contact { display: block; position: fixed; bottom: 0; left: 0; right: 0;
    font-size: 8.5pt; color: #606E89; text-align: center; padding: 4px 0;
    border-top: 1px solid #e6e9ee; background: #fff; }
  .hx-cma { padding-bottom: 30px; }
}

/* --- faixas do painel (destaques PRO + últimos da rede) --- */
.hx-hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 272px; gap: 14px;
  overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.hx-hscroll .hx-card { scroll-snap-align: start; }
.hx-card.prop { position: relative; }
.hx-card-badge { position: absolute; top: 10px; left: 10px; z-index: 2;
  background: linear-gradient(135deg, #FC5412, #ff8a50); color: #fff; font-size: .68rem; font-weight: 800;
  padding: 4px 10px; border-radius: 20px; box-shadow: 0 4px 12px rgba(16,25,33,.25); letter-spacing: .02em; }

/* --- CRECI junto ao nome do corretor --- */
.hx-creci { font-size: .72em; font-weight: 600; color: var(--hx-muted); white-space: nowrap; letter-spacing: .01em; }

/* --- fachada (Street View) no ACM --- */
.hx-facade { border-radius: 12px; overflow: hidden; border: 1px solid var(--hx-line); position: relative; }
.hx-cover-facade { position: relative; margin: 16px auto 6px; max-width: 620px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(16,25,33,.25); }
.hx-cover-facade iframe, .hx-cover-facade img { display: block; width: 100%; height: 280px; border: 0; object-fit: cover; }
@media print { .hx-cover-facade { box-shadow: none; } .hx-cover-facade iframe, .hx-cover-facade img { height: 250px; } }
.hx-facade-shield { position: absolute; inset: 0; z-index: 3; cursor: not-allowed; background: transparent; }
.hx-map-cam { font-size: 20px; filter: drop-shadow(0 2px 4px rgba(16,25,33,.4)); cursor: grab; }
.hx-capture-tip { background: #fff7ec; border: 1px solid #ffd9b8; border-radius: 10px; padding: 10px 14px;
  font-size: .86rem; margin-bottom: 10px; line-height: 1.45; }
.hx-facade iframe { display: block; width: 100%; height: 340px; border: 0; }
@media print { .hx-facade iframe { height: 300px; } }

/* --- redes sociais do corretor --- */
.hx-social-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hx-soc { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--hx-line); text-decoration: none; font-size: 1.05rem; transition: transform .12s ease; }
.hx-soc:hover { transform: translateY(-2px); border-color: var(--hx-primary); }

/* --- editor de recorte da foto --- */
.hx-crop-vp { position: relative; width: 280px; height: 280px; margin: 0 auto; overflow: hidden;
  border-radius: 14px; background: #e9edf2; cursor: grab; touch-action: none; }
.hx-crop-vp:active { cursor: grabbing; }
.hx-crop-vp img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; pointer-events: none; }
.hx-crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(255,255,255,.6); pointer-events: none; }

/* --- foto do corretor --- */
.hx-avatar-img { border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(16,25,33,.18); flex: none; }
/* 🏢 LOGO de empresa não é foto de rosto: assinatura horizontal (a da Vitacon é
   1121×483) cortada num círculo de 30px mostra três letras e nada mais. Aqui ela
   fica INTEIRA, num retângulo com fundo branco, e a largura acompanha o desenho. */
.hx-avatar-img.logo { border-radius: 7px; object-fit: contain; background: #fff; padding: 2px;
  width: auto; max-width: 96px; min-width: 30px; }
.hx-avatar-img.logo.xs { max-width: 74px; }
.hx-avatar-img.logo.lg { max-width: 180px; }
.hx-avatar-img.logo.xl { max-width: 240px; }
.hx-avatar-img.xs { width: 30px; height: 30px; border-width: 1px; box-shadow: none; }
.hx-avatar-img.md { width: 48px; height: 48px; }
.hx-avatar-img.lg { width: 74px; height: 74px; }
.hx-avatar-img.xl { width: 110px; height: 110px; border-width: 3px; }
.hx-agent-avatar.xs { width: 30px; height: 30px; font-size: .9rem; }
.hx-agent-avatar.md { width: 48px; height: 48px; }
.hx-avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.hx-avatar-ctrl { display: grid; gap: 8px; flex: 1; max-width: 420px; }
.hx-avatar-ctrl input[type="text"], .hx-avatar-ctrl input:not([type]) { padding: 9px 11px; border: 1px solid var(--hx-line); border-radius: 9px; font: inherit; }
.hx-cma-contact-row { display: flex; align-items: center; gap: 16px; }
@media print { .hx-avatar-img { box-shadow: none; } }

/* --- pop-up diário de tarefas --- */
.hx-modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(16,25,33,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: hxfade .18s ease; }
@keyframes hxfade { from { opacity: 0; } to { opacity: 1; } }
/* ⚠️ `overflow: hidden` com `max-height` CORTA o que não cabe e não devolve rolagem
   nenhuma — o fim do modal fica inalcançável. Só passava despercebido nos modais que
   têm uma lista rolável por dentro (.hx-daily-list). O de cancelar assinatura não tem:
   em tela baixa, o botão de confirmar ficava fora do alcance (achado por ela em 06/08).
   `overflow-y: auto` conserta a família toda; o -x segue escondido pra manter os cantos. */
.hx-modal { background: #fff; border-radius: 18px; max-width: 520px; width: 100%; max-height: 82vh;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(16,25,33,.35);
  overflow-y: auto; overflow-x: hidden; }
/* o overlay também rola: em tela muito baixa, 82vh do modal + 20px de respiro ainda
   podem passar da janela */
.hx-modal-overlay { overflow-y: auto; }
/* ⚠️ Numa coluna flex com altura limitada, os filhos ENCOLHEM antes de a caixa rolar
   (flex-shrink vale 1 por padrão). Quem tem altura mínima pequena é esmagado primeiro:
   o <textarea> do modal de cancelar virava um fiapo de 20px, com o texto cortado.
   Aqui os filhos guardam o tamanho natural e quem rola é o modal — que é o certo.
   A .hx-daily-list fica de fora porque ela É a área que deve encolher e rolar por dentro. */
.hx-modal > *:not(.hx-daily-list) { flex-shrink: 0; }
.hx-daily-head { padding: 20px 22px 12px; font-size: 1.25rem; font-weight: 800; }
.hx-daily-list { padding: 4px 14px; overflow-y: auto; display: grid; gap: 8px; }
.hx-daily-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--hx-line);
  border-radius: 12px; text-decoration: none; color: inherit; }
.hx-daily-item:hover { border-color: var(--hx-primary); background: #fff7f3; }
.hx-daily-item.overdue { border-left: 4px solid var(--hx-danger); }
.hx-daily-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hx-primary); margin-top: 6px; flex: 0 0 auto; }
.hx-daily-item.overdue .hx-daily-dot { background: var(--hx-danger); }
.hx-daily-txt { flex: 1; font-size: .9rem; line-height: 1.35; }
.hx-daily-txt small { color: var(--hx-muted); display: block; margin-top: 2px; }
.hx-daily-badge { font-size: .64rem; font-weight: 800; padding: 3px 8px; border-radius: 20px; background: #e8f7f0; color: #0a7d54; flex: 0 0 auto; }
.hx-daily-badge.overdue { background: #fde9e7; color: var(--hx-danger); }
.hx-daily-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px 18px; }

/* --- tarefas de follow-up com hora e observações --- */
.hx-task-form { display: grid; gap: 8px; margin-bottom: 12px; }
.hx-task-form input { padding: 9px 11px; border: 1px solid var(--hx-line); border-radius: 9px; font: inherit; }
.hx-task-when { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.hx-task { display: flex; align-items: flex-start; gap: 7px; }
.hx-task .hx-mini { margin-left: auto; }
.hx-tag { background: var(--hx-bg); border-radius: 6px; padding: 3px 9px; font-size: .76rem; color: var(--hx-ink-2); }
.hx-en { color: #fff; font-weight: 700; border-radius: 4px; padding: 1px 6px; }
.eA{background:#1a9641}.eB{background:#52b151}.eC{background:#a6d96a}.eD{background:#e4c01a}.eE{background:#f59f1b}.eF{background:#e8602c}.eG{background:#d7191c}

.hx-strats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hx-strat { border: 2px solid var(--hx-line); border-radius: 14px; padding: 22px; text-align: center; }
.hx-strat-label { font-weight: 700; color: var(--hx-ink-2); margin-bottom: 8px; }
.hx-strat-val { font-size: 1.7rem; font-weight: 800; color: var(--hx-ink); }
/* semáforo do ACM: venda rápida = VERDE · preço justo = AMARELO · fora de mercado = VERMELHO */
.hx-strat.quick { border-color: #16a34a; background: #f0fdf4; }
.hx-strat.quick .hx-strat-label { color: #15803d !important; }
.hx-strat.quick .hx-strat-val { color: #15803d !important; }
.hx-strat.rec { border-color: #d9a406; background: #fffbeb; transform: scale(1.03); }
.hx-strat.rec .hx-strat-label { color: #b45309 !important; }
.hx-strat.rec .hx-strat-val { color: #b45309 !important; }
.hx-strat.prem { border-color: #dc2626; background: #fef2f2; }
.hx-strat.prem .hx-strat-label { color: #b91c1c !important; }
.hx-strat.prem .hx-strat-val { color: #b91c1c !important; }
.hx-strat-days { color: var(--hx-muted); margin-top: 6px; font-size: .88rem; }
.hx-cma-foot { padding: 18px 40px; font-size: .8rem; color: var(--hx-muted); background: var(--hx-bg); }
/* seção "o que o mercado oferece por R$ X" (argumento de precificação) */
.hx-anchor-punch { background: #fff6f1; border: 1px solid #ffd8c2; border-left: 4px solid var(--hx-primary); border-radius: 10px; padding: 12px 16px; margin: 10px 0 14px; font-size: .92rem; line-height: 1.5; }
.hx-anchor-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.hx-anchor-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--hx-line); border-radius: 10px; }
.hx-anchor-photo { width: 72px; height: 56px; flex: 0 0 auto; border-radius: 8px; background: #e8edf0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #b8c4cc; overflow: hidden; }
.hx-anchor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-anchor-mid { flex: 1; min-width: 0; }
.hx-anchor-price { font-weight: 800; color: var(--hx-primary); font-size: 1.02rem; }
.hx-anchor-info { font-size: .86rem; color: var(--hx-ink-2); margin-top: 2px; }
.hx-anchor-link { flex: 0 0 auto; background: var(--hx-primary); color: #fff; font-weight: 700; font-size: .8rem; padding: 8px 12px; border-radius: 9px; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(252,84,18,.28); }
.hx-anchor-link:hover { filter: brightness(1.08); }
@media (max-width: 640px) { .hx-anchor-row { flex-wrap: wrap; } .hx-anchor-link { width: 100%; text-align: center; } }

/* proximity map */
.hx-map-wrap { display: flex; flex-direction: column; align-items: center; }
.hx-pmap { width: 100%; max-width: 560px; height: auto; }
.hx-ring { fill: none; stroke: var(--hx-line); stroke-width: 1; stroke-dasharray: 3 4; }
.hx-ring-lbl { fill: var(--hx-muted); font-size: 10px; text-anchor: middle; }
.hx-spoke { stroke: var(--hx-line); stroke-width: 1; }
.hx-mapdot circle { stroke: #fff; stroke-width: 2; }
.hx-mapdot.active circle { fill: var(--hx-primary); }
.hx-mapdot.na circle { fill: var(--hx-slate); }
.hx-mapdot.sold circle { fill: var(--hx-danger); }
.hx-dot-n { fill: #fff; font-size: 11px; font-weight: 700; text-anchor: middle; }
.hx-center { fill: #101921; stroke: var(--hx-accent); stroke-width: 3; }
.hx-center-lbl { fill: var(--hx-ink); font-size: 11px; font-weight: 700; text-anchor: middle; }
.hx-map-legend { display: flex; gap: 18px; margin-top: 12px; font-size: .82rem; color: var(--hx-ink-2); }
.hx-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hx-map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.hx-map-legend i.active { background: var(--hx-primary); }
.hx-map-legend i.na { background: var(--hx-slate); }
.hx-map-legend i.sold { background: var(--hx-danger); }

/* photo upload */
.hx-file { padding: 9px; background: var(--hx-bg); border-style: dashed; cursor: pointer; }
.hx-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.hx-photo-thumb { position: relative; padding-top: 75%; background-size: cover; background-position: center; border-radius: 10px; border: 1px solid var(--hx-line); }
.hx-photo-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(16,25,33,.7); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.hx-photo-x:hover { background: var(--hx-danger); }
.hx-photo-thumb { cursor: grab; }
.hx-photo-thumb.hx-dragging { opacity: .45; outline: 2px dashed var(--hx-brand); }
.hx-photo-cover { position: absolute; top: 5px; left: 5px; background: var(--hx-brand); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: .3px; }
.hx-photo-move { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.hx-photo-thumb:hover .hx-photo-move { opacity: 1; }
@media (pointer: coarse) { .hx-photo-move { opacity: 1; } }
.hx-photo-move button { width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(16,25,33,.72); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hx-photo-move button:hover { background: var(--hx-brand); }
.hx-photo-hint { font-size: .8rem; color: var(--hx-muted, #667); margin: 8px 0 2px; }

/* ---------- contract ---------- */
.hx-contract { background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); box-shadow: var(--hx-shadow); padding: 40px 46px; max-width: 860px; margin: 0 auto; }
.hx-contract-head { text-align: center; border-bottom: 2px solid var(--hx-line); padding-bottom: 18px; margin-bottom: 22px; }
.hx-contract-head h1 { font-size: 1.4rem; margin-top: 8px; }
.hx-contract h3 { color: var(--hx-primary); margin-top: 24px; }
.hx-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hx-party { background: var(--hx-bg); border-radius: 11px; padding: 16px; font-size: .9rem; }
.hx-party h3 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .06em; color: var(--hx-primary); }
/* contrato/termo: papel branco legível em QUALQUER tema (claro ou escuro) */
.hx-contract { background: #ffffff !important; color: #17242f !important; }
.hx-contract p, .hx-contract li, .hx-contract td, .hx-contract b,
.hx-contract .hx-party, .hx-contract .hx-party b, .hx-contract-head h1 { color: #17242f !important; }
.hx-contract h3, .hx-contract .hx-party h3 { color: #FC5412 !important; }
.hx-contract .hx-party { background: #f2f5f8 !important; }
.hx-contract .muted, .hx-contract small { color: #5c6b78 !important; }
.hx-contract .hx-ctable td { border-bottom-color: #e6e9ee !important; }
.hx-ctable { width: 100%; border-collapse: collapse; }
.hx-ctable td { padding: 9px 12px; border-bottom: 1px solid var(--hx-line); }
.hx-ctable td:last-child { text-align: right; }
.hx-clauses { padding-left: 20px; text-align: justify; } .hx-clauses li { margin-bottom: 10px; line-height: 1.5; }
.hx-sa-closing { margin: 22px 0 30px; text-align: justify; }
.hx-sa-signblock { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; }
.hx-sa-sigcol { text-align: center; font-size: .85rem; font-weight: 600; }
.hx-sa-sigcol small { font-weight: 400; color: var(--hx-muted); }
.hx-sa-sigline { border-top: 1px solid #333; margin-bottom: 8px; height: 30px; }
.hx-sa-witness { margin-top: 30px; } .hx-sa-witness > b { font-size: .82rem; color: var(--hx-primary); }
.hx-sa-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.hx-sa-form label { font-weight: 600; font-size: .88rem; display: block; }
.hx-sa-form input, .hx-sa-form select { width: 100%; margin-top: 5px; }
.hx-sim { background: var(--hx-bg); border-radius: 12px; padding: 18px; margin: 20px 0; }
.hx-sim label { font-weight: 600; font-size: .9rem; display: block; }
.hx-sim input { max-width: 240px; margin-top: 6px; }
.hx-sim-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.hx-sim-out div { background: #fff; border-radius: 10px; padding: 12px 14px; }
.hx-sim-out span { display: block; font-size: .78rem; color: var(--hx-muted); }
.hx-sim-out b { font-size: 1.15rem; }
.hx-sign-box { background: var(--hx-orange-soft); border: 1px solid rgba(252,84,18,.25); border-radius: 14px; padding: 22px; margin-top: 24px; }
.hx-accept { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 14px; }
.hx-accept input { width: auto; margin-top: 3px; }
.hx-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.hx-sig-name { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.6rem; color: var(--hx-ink); border-bottom: 1px solid var(--hx-ink); padding-bottom: 6px; }
.hx-sig-line { font-size: .78rem; color: var(--hx-muted); margin-top: 6px; }
.hx-ok { color: var(--hx-primary); font-weight: 600; padding: 10px 0; }

/* ---------- tables ---------- */
.hx-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); overflow: hidden; }
.hx-table th, .hx-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hx-line); font-size: .9rem; }
.hx-table th { background: var(--hx-bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hx-muted); }

/* ---------- leads ---------- */
.hx-leads { display: grid; gap: 12px; }
.hx-lead { background: #fff; border: 1px solid var(--hx-line); border-radius: 12px; padding: 16px; }
.hx-lead-h { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hx-lead p { margin: 8px 0 0; }

/* ---------- portal / public ---------- */
.hx-portal-hero { text-align: center; padding: 44px 20px 34px; background: linear-gradient(135deg, #fff4ee, #fff9f0 55%, #f4f8e6); border-radius: 0 0 26px 26px; margin: -20px -20px 6px; }
.hx-portal-hero h1 { font-size: 2.1rem; letter-spacing: -.02em; }
.hx-portal-hero h1::after { content: ""; display: block; width: 68px; height: 5px; border-radius: 4px; background: #FC5412; margin: 10px auto 0; }
.hx-portal-hero p { color: var(--hx-ink-2); }
.hx-search { max-width: 520px; margin: 18px auto 0; font-size: 1rem; padding: 14px 18px; border-radius: 30px; box-shadow: var(--hx-shadow); }
.hx-listing { display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; margin-top: 14px; align-items: start; }
.hx-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: var(--hx-radius); overflow: hidden; margin-bottom: 18px; }
.hx-gallery .hx-gal:first-child:only-child, .hx-gallery .hx-gal:first-child {
  grid-column: span 2; height: auto;
}
/* foto principal: mostra a imagem INTEIRA (sem cortar); laterais preenchidas com a própria foto desfocada */
.hx-gal-hero { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #0e1622; }
.hx-gal-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(26px) brightness(.55); transform: scale(1.15); z-index: 0; }
.hx-gal-hero img { position: relative; z-index: 1; max-width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.hx-gal { height: 220px; background-size: cover; background-position: center; background: #dfe6ea; position: relative; user-select: none; }
/* miniaturas: mostram a foto INTEIRA reduzida (sem cortar), com fundo desfocado da própria foto */
.hx-gal-fit { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #0e1622; }
.hx-gal-fit img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; }
.hx-gal.placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #b8c4cc; }
/* marca d'água nas fotos: UM "h" (símbolo da marca) grande e centralizado */
.hx-thumb { position: relative; }
.hx-thumb:not(.placeholder)::after,
.hx-pcard-media::after,
.hx-gal:not(.placeholder):not(.hx-gal-locked)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("brand/wm-h.svg");
  background-repeat: no-repeat; background-position: center; background-size: 46%; opacity: .16;
}
/* badges/overlays acima da marca d'água */
.hx-pcard-badges, .hx-fav, .hx-pcard-count, .hx-pcard-code, .hx-thumb-tags { z-index: 3; }
.hx-pcard-code { position: absolute; left: 10px; bottom: 10px; background: rgba(16,25,33,.8); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; }
.hx-card-code { font-size: .72rem; font-weight: 700; color: var(--hx-primary, #FC5412); letter-spacing: .03em; margin-bottom: 1px; }
.hx-feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.hx-listing-side { background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: 20px; box-shadow: var(--hx-shadow); position: sticky; top: 80px; }
.hx-agent-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hx-agent-avatar { width: 48px; height: 48px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; }
.hx-agent-avatar.lg { width: 84px; height: 84px; font-size: 2.2rem; }
.hx-contact-lines { font-size: .9rem; color: var(--hx-ink-2); margin: 10px 0; line-height: 1.9; }
.hx-lead-form { margin-top: 16px; display: grid; gap: 10px; border-top: 1px solid var(--hx-line); padding-top: 16px; }
.hx-lead-form h3 { margin: 0; }

.hx-agent-hero { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--hx-line); border-top: 5px solid var(--agc, var(--hx-primary)); border-radius: var(--hx-radius); padding: 28px 30px; box-shadow: var(--hx-shadow); margin-bottom: 26px; position: relative; }
.hx-agent-hero p { max-width: 640px; color: var(--hx-ink-2); }
.hx-agent-powered { position: absolute; top: 16px; right: 20px; font-size: .78rem; color: var(--hx-muted); }

/* ---------- app shell: sidebar + topbar ---------- */
.hx-shell { display: flex; min-height: 100vh; }
.hx-sidebar { width: 252px; flex: none; background: var(--hx-surface); border-right: 1px solid var(--hx-line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 12px; overflow-y: auto; }
.hx-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hx-side-brand { padding: 6px 8px 16px; cursor: pointer; }
.hx-side-nav { flex: 1; }
.hx-side-group { margin-bottom: 14px; }
.hx-side-gtitle { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--hx-muted); padding: 0 10px 6px; font-weight: 700; }
.hx-side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--hx-ink-2); font-weight: 500; font-size: .92rem; }
.hx-side-link:hover { background: var(--hx-bg); color: var(--hx-ink); }
.hx-side-link.active { background: var(--hx-orange-soft); color: var(--hx-primary); font-weight: 600; }
.hx-side-ic { width: 20px; text-align: center; flex: none; }
.hx-side-tag { margin-left: auto; font-size: .58rem; background: var(--hx-slate); color: #fff; padding: 2px 6px; border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; }
.hx-advert { display: block; background: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-d)); color: #fff; border-radius: 12px; padding: 14px; margin: 8px 4px; }
.hx-advert b { display: block; margin-bottom: 4px; }
.hx-advert > span:not(.hx-btn) { font-size: .8rem; display: block; opacity: .92; }
.hx-advert .hx-btn { margin-top: 10px; background: #fff; color: var(--hx-primary); border: none; }
.hx-side-out { padding: 12px 10px; color: var(--hx-muted); font-size: .9rem; }
.hx-side-out:hover { color: var(--hx-primary); }

.hx-apptop { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 11px 22px; background: var(--hx-surface); border-bottom: 1px solid var(--hx-line); }
.hx-gsearch { flex: 1; max-width: 440px; padding: 9px 16px; border-radius: 24px; }
.hx-icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hx-line); background: var(--hx-surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; font-size: 1rem; text-decoration: none; }
.hx-icon-btn:hover { border-color: var(--hx-primary); }
/* botão "Sugestão" no topo: rótulo visível (ícone pelado não se explicava) */
.hx-sug-btn { white-space: nowrap; border-color: var(--hx-primary); color: var(--hx-primary); font-weight: 600; }
.hx-sug-btn:hover { background: var(--hx-primary); color: #fff; }
@media (max-width: 480px) { .hx-sug-label { display: none; } }
.hx-bell-badge { position: absolute; top: -4px; right: -4px; background: var(--hx-primary); color: #fff; font-size: .62rem; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
/* toast de notificação em tempo real */
.hx-toast { position: fixed; right: 20px; bottom: 88px; z-index: 9999; display: flex; align-items: flex-start; gap: 12px; max-width: 380px; background: var(--hx-card, #fff); color: var(--hx-text, #1a1a1a); border: 1px solid var(--hx-border, #e6e6e6); border-left: 4px solid var(--hx-primary); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 14px 16px; cursor: pointer; transform: translateY(20px); opacity: 0; transition: transform .35s cubic-bezier(.2,.9,.3,1), opacity .35s; }
.hx-toast.show { transform: translateY(0); opacity: 1; }
.hx-toast-ic { font-size: 1.35rem; line-height: 1.4; flex: 0 0 auto; }
.hx-toast-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hx-toast-tx b { font-size: .9rem; font-weight: 600; }
.hx-toast-tx span { font-size: .8rem; opacity: .8; line-height: 1.35; }
.hx-toast-x { flex: 0 0 auto; background: none; border: none; color: inherit; opacity: .5; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.hx-toast-x:hover { opacity: 1; }
@media (max-width: 560px) { .hx-toast { right: 12px; left: 12px; bottom: 12px; max-width: none; } }
/* ---- correções MOBILE (≤640px) ---- */
@media (max-width: 640px) {
  /* grids com style inline (repeat(3/4,1fr)) vencem o CSS — força 2 colunas no celular */
  .hx-kpis[style*="grid-template-columns"] { grid-template-columns: repeat(2, 1fr) !important; }
  .hx-form-grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .hx-val-grid[style*="grid-template-columns"], .hx-sim-out[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  /* topo do app logado: cabe tudo sem cortar (idioma, sino, sessão) */
  .hx-apptop { gap: 8px; padding: 9px 12px; flex-wrap: wrap; }
  .hx-top-right { flex-wrap: wrap; gap: 6px; margin-left: auto; }
  .hx-lang button { padding: 6px 7px; font-size: .72rem; }
  .hx-user select { max-width: 108px; }
  .hx-icon-btn { width: 34px; height: 34px; }
  /* topo público (portal): botões quebram linha em vez de estourar */
  .hx-topbar { flex-wrap: wrap; gap: 6px; padding: 9px 10px; height: auto; min-height: 54px; }
  .hx-topbar .hx-top-right { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .hx-topbar .hx-btn.sm { padding: 8px 10px; font-size: .76rem; }
}
/* modelos de mensagem */
.hx-tpl-item { margin-bottom: 16px; padding: 14px; border: 1px solid var(--hx-border, #e6e6e6); border-radius: 12px; }
.hx-tpl-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.hx-tpl-name { flex: 1; font-weight: 600; }
.hx-tpl-new { margin-top: 22px; padding: 18px; border: 1px dashed var(--hx-border, #d8d8d8); border-radius: 12px; background: var(--hx-bg-soft, rgba(252,84,18,.04)); }
.hx-tpl-new h3 { margin: 0 0 12px; font-size: 1rem; }
.hx-tpl-new input, .hx-tpl-new textarea { width: 100%; }
.hx-tpl-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 16px; }
.hx-tpl-var { border: 1px solid var(--hx-line); background: var(--hx-surface); color: var(--hx-ink-2); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .8rem; cursor: pointer; transition: .12s; }
.hx-tpl-var:hover { border-color: var(--hx-primary); color: var(--hx-primary); }
/* seletor mensal/anual no checkout */
.hx-plan-annual { font-size: .8rem; color: var(--hx-primary); font-weight: 600; margin: -6px 0 10px; }
.ck-period-row { display: flex; gap: 10px; margin: 0 0 8px; }
.ck-per { flex: 1; display: flex; flex-direction: column; gap: 2px; border: 2px solid #d5dbe1; border-radius: 12px; padding: 12px 10px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.ck-per input { display: none; }
.ck-per b { font-size: 1.1rem; }
.ck-per span { font-size: .72rem; opacity: .7; }
.ck-per.on { border-color: var(--hx-primary); background: rgba(252,84,18,.06); }
/* lançamento / empreendimento (construtoras) */
.hx-launch-toggle { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: .92rem; cursor: pointer; }
.hx-launch-toggle input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; padding: 0; accent-color: var(--hx-ink); cursor: pointer; }
.hx-launch-box { border: 1px solid var(--hx-border, #e6e6e6); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--hx-bg-soft, rgba(252,84,18,.03)); }
.hx-launch-detail { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--hx-border, #e6e6e6); border-radius: 12px; }
.hx-launch-detail h3 { margin: 0 0 8px; font-size: 1rem; }
.hx-launch-kv { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; margin-bottom: 8px; }
.hx-typ { margin: 6px 0 12px; padding-left: 18px; font-size: .88rem; }
.hx-typ li { margin: 2px 0; }
/* filtro de contatos no CRM */
.hx-crm-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.hx-crm-search { flex: 1; min-width: 220px; padding: 9px 13px; border: 1px solid var(--hx-line, #d5dbe1); border-radius: 10px; font: inherit; }
.hx-crm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-crm-chip { border: 1px solid var(--hx-line, #d5dbe1); background: var(--hx-card, #fff); color: inherit; border-radius: 999px; padding: 6px 12px; font-size: .82rem; cursor: pointer; transition: all .15s; }
.hx-crm-chip span { opacity: .55; font-weight: 600; margin-left: 3px; }
.hx-crm-chip:hover { border-color: var(--hx-primary); }
.hx-crm-chip.on { background: var(--hx-primary); color: #fff; border-color: var(--hx-primary); }
.hx-crm-chip.on span { opacity: .85; }
.hx-user { display: flex; align-items: center; gap: 8px; }
.hx-uav { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.hx-uinfo { display: flex; flex-direction: column; line-height: 1.15; }
.hx-uinfo b { font-size: .85rem; }
.hx-plan { font-size: .6rem; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: 8px; align-self: flex-start; letter-spacing: .03em; }
.hx-plan.free { background: var(--hx-line); color: var(--hx-ink-2); }
.hx-plan.business { background: var(--hx-orange-soft); color: var(--hx-primary); }
.hx-plan.pro { background: #101921; color: var(--hx-accent); }

/* mini stats (análise) */
.hx-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--hx-bg); border-radius: 10px; padding: 10px 12px; }
.hx-mini-stats span { display: block; font-size: .7rem; color: var(--hx-muted); }
.hx-mini-stats b { font-size: 1rem; }

/* plans */
.hx-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.hx-plan-card { border: 2px solid var(--hx-line); border-radius: 16px; padding: 24px; background: var(--hx-surface); }
.hx-plan-card.business { border-color: var(--hx-primary); }
.hx-plan-card.pro { border-color: #101921; background: linear-gradient(160deg, #101921, #28323f); color: #fff; }
.hx-plan-card.current { box-shadow: 0 0 0 3px var(--hx-orange-soft); }
.hx-plan-name { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--hx-primary); }
.hx-plan-card.pro .hx-plan-name { color: var(--hx-accent); }
.hx-plan-price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 14px; }
.hx-plan-price span { font-size: .9rem; font-weight: 500; color: var(--hx-muted); }
.hx-plan-card.pro .hx-plan-price span { color: rgba(255,255,255,.65); }
.hx-plan-feats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .9rem; }
.hx-plan-card.pro .hx-plan-feats li { color: rgba(255,255,255,.9); }
/* 📣 Bloco dentro da lista do plano: junta o que só existe ali (marketing e automação).
   Espalhado no meio de 13 itens, ninguém percebia que era tudo exclusivo do Pro. */
.hx-plan-feats li.hx-feat-grupo {
  margin: 10px 0 2px; padding: 6px 10px; border-radius: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(175,209,0,.16); color: #AFD100;
}
.hx-plan-card:not(.pro) .hx-plan-feats li.hx-feat-grupo { background: #f3f6e6; color: #5f7300; }
.hx-plan-feats li.hx-feat-fim { height: 6px; padding: 0; margin: 0; }

/* construtoras */
.hx-builder { margin-bottom: 30px; }
.hx-builder-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hx-builder-head h2 { margin: 0; }
.hx-builder-head > a.hx-btn { margin-left: auto; }

/* notifications */
.hx-notifs { display: grid; gap: 10px; max-width: 760px; }
.hx-notif { display: flex; gap: 12px; align-items: flex-start; background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 12px; padding: 14px; }
.hx-notif-ic { font-size: 1.2rem; }

/* faq */
/* assistente de ajuda (chat) */
.hx-help-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; max-width: 820px; }
.hx-help-chip { border: 1px solid var(--hx-line); background: var(--hx-surface); border-radius: 999px; padding: 8px 14px; font-size: .84rem; cursor: pointer; color: var(--hx-ink); }
.hx-help-chip:hover { border-color: var(--hx-primary, #FC5412); color: var(--hx-primary, #FC5412); }
.hx-help-chip.sm { padding: 5px 11px; font-size: .78rem; margin: 4px 4px 0 0; }
.hx-help-chat { max-width: 820px; min-height: 220px; max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--hx-line); border-radius: 14px; background: var(--hx-bg); margin-bottom: 12px; }
.hx-help-empty { color: var(--hx-muted); text-align: center; margin: auto; font-size: .95rem; }
.hx-help-msg { max-width: 82%; padding: 12px 15px; border-radius: 14px; font-size: .92rem; line-height: 1.55; }
.hx-help-msg.user { align-self: flex-end; background: var(--hx-primary, #FC5412); color: #fff; border-bottom-right-radius: 4px; }
.hx-help-msg.bot { align-self: flex-start; background: var(--hx-surface); border: 1px solid var(--hx-line); color: var(--hx-ink); border-bottom-left-radius: 4px; }
.hx-help-form { display: flex; gap: 10px; max-width: 820px; }
.hx-help-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--hx-line); border-radius: 12px; font-size: .95rem; background: var(--hx-surface); color: var(--hx-ink); }
/* métricas de campanhas de e-mail */
.hx-emk-camp { padding: 10px 0; border-bottom: 1px solid var(--hx-line); }
.hx-emk-camp:last-child { border-bottom: 0; }
.hx-emk-camp-h { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; }
.hx-emk-stats { display: flex; gap: 16px; font-size: .9rem; }
.hx-emk-stats span { color: var(--hx-ink-2); }
.hx-emk-stats b { color: var(--hx-primary, #FC5412); }
.hx-faq { display: grid; gap: 10px; max-width: 760px; }
.hx-faq-item { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 12px; padding: 4px 16px; }
.hx-faq-item summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.hx-faq-item p { margin: 0 0 12px; color: var(--hx-ink-2); }

/* keep CMA & contract as readable "paper" in dark mode */
html[data-theme="dark"] .hx-cma, html[data-theme="dark"] .hx-contract {
  --hx-ink: #122430; --hx-ink-2: #46586a; --hx-muted: #7c8b98;
  --hx-surface: #ffffff; --hx-bg: #f4f6f8; --hx-line: #e6e9ee;
}
/* Estudo de Mercado (ACM): papel branco legível em QUALQUER tema (claro ou escuro) */
.hx-cma { background: #fff !important; color: #17242f !important; }
.hx-cma-sec { background: #fff !important; }
.hx-cma-sec, .hx-cma-sec p, .hx-cma-sec li, .hx-cma-sec td, .hx-cma-sec b, .hx-cma-sec strong,
.hx-cma-sec h3, .hx-cma-foot, .hx-cma .hx-comp, .hx-cma .hx-strat { color: #17242f !important; }
.hx-cma-sec h2 { color: #FC5412 !important; }
.hx-cma-sec .muted, .hx-cma-sec small, .hx-cma-foot { color: #5c6b78 !important; }
.hx-cma .hx-ctable td { border-bottom-color: #e6e9ee !important; }
/* a capa continua escura (hero) com texto claro e destaque em lima */
.hx-cma-cover, .hx-cma-cover h1 { color: #fff !important; }
.hx-cma-kicker { color: #AFD100 !important; }

/* ---------- CRM ---------- */
.hx-crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.hx-crm-col { background: var(--hx-bg); border-radius: 12px; padding: 10px; min-height: 120px; }
.hx-crm-coltitle { font-weight: 700; font-size: .82rem; padding: 6px 8px 10px; display: flex; justify-content: space-between; border-bottom: 3px solid var(--hx-line); margin-bottom: 10px; }
.hx-crm-coltitle span { background: var(--hx-surface); border-radius: 10px; padding: 0 8px; font-size: .76rem; color: var(--hx-muted); }
.hx-crm-coltitle.st-novo { border-color: var(--hx-slate); }
.hx-crm-coltitle.st-contactado { border-color: #4f9bd9; }
.hx-crm-coltitle.st-visita { border-color: var(--hx-accent); }
.hx-crm-coltitle.st-proposta { border-color: var(--hx-primary); }
.hx-crm-coltitle.st-ganho { border-color: #1a9641; }
.hx-crm-coltitle.st-perdido { border-color: var(--hx-danger); }
.hx-crm-card { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 10px; padding: 11px; margin-bottom: 9px; cursor: grab; transition: .12s; }
.hx-crm-card:hover { border-color: var(--hx-primary); transform: translateY(-2px); }
.hx-crm-card:active { cursor: grabbing; }
.hx-crm-card.dragging { opacity: .45; transform: scale(.97); }
.hx-crm-col.dropping { outline: 2px dashed var(--hx-primary); outline-offset: -3px; background: #FFF3ED; border-radius: 12px; }
.hx-crm-name { font-weight: 700; font-size: .92rem; }
.hx-crm-meta { font-size: .78rem; color: var(--hx-ink-2); }
.hx-crm-move { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: .76rem; color: var(--hx-muted); }
.hx-crm-empty { font-size: .8rem; color: var(--hx-muted); padding: 8px; text-align: center; }
.hx-mini { width: 26px; height: 24px; border: 1px solid var(--hx-line); background: var(--hx-surface); border-radius: 7px; cursor: pointer; color: var(--hx-ink-2); font-size: 1rem; line-height: 1; }
.hx-mini:hover:not([disabled]) { border-color: var(--hx-primary); color: var(--hx-primary); }
.hx-mini[disabled] { opacity: .35; cursor: default; }

/* 🐛 12/08/2026: no celular a ficha do cliente vazava pra fora da tela e o botão
   "Buscar imóveis" ficava cortado. Causa: "1fr" NÃO deixa a coluna ficar menor que o
   conteúdo (min-width:auto do item de grid) — a linha do Radar de mercado tem 425px de
   min-content (título com white-space:nowrap + os botões do lado) e empurrava a coluna
   inteira para 463px numa tela de 393px. Como o celular tem overflow-x:hidden, em vez de
   rolar, o conteúdo era CORTADO. minmax(0,…) + min-width:0 liberam o encolhimento. */
.hx-crm-detail { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.hx-crm-main, .hx-crm-side { display: grid; gap: 16px; min-width: 0; }
.hx-crm-main > *, .hx-crm-side > * { min-width: 0; }
.hx-panel { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 14px; padding: 18px; box-shadow: var(--hx-shadow); }
.hx-panel h3 { margin: 0 0 12px; font-size: 1rem; }
.hx-mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hx-line); font-size: .9rem; }
.hx-mrow:last-child { border-bottom: none; }
.hx-suggest { margin-top: 12px; background: var(--hx-bg); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.hx-mprop { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-bottom: 1px solid var(--hx-line); border-radius: 8px; min-width: 0; flex-wrap: wrap; }
/* no celular os botões da direita (Propor parceria / Ver anúncio) caem pra linha de
   baixo em vez de espremer a descrição do imóvel até sumir */
.hx-mprop > label { min-width: 0; }
.hx-mprop:last-child { border-bottom: none; }
.hx-suggest .hx-mprop { border-bottom: none; cursor: pointer; }
.hx-suggest .hx-mprop:hover { background: var(--hx-surface); }
.hx-suggest .hx-mprop input[type="checkbox"] { flex: none; width: 16px; height: 16px; }
.hx-mp-thumb { width: 44px; height: 44px; flex: none; border-radius: 8px; background-size: cover; background-position: center; background-color: #dfe6ea; }
.hx-mp-thumb.ph { display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #b8c4cc; background: linear-gradient(135deg, #eef2f5, #dfe6ea); }
/* a foto agora é <img> (e não background-image) justamente para o navegador AVISAR
   quando o link do portal morre — aí o hxThumbFail troca pelo ícone. Com background
   não existe evento de erro: ficava um quadrado cinza vazio. */
.hx-mp-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.hx-mp-info { flex: 1; min-width: 0; }
.hx-mp-title { font-weight: 600; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-mp-meta { font-size: .76rem; color: var(--hx-ink-2); }
.hx-mp-meta a { color: var(--hx-primary); font-weight: 600; }
.hx-send-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hx-btn.wa { background: #25D366; border-color: #25D366; color: #fff; }
.hx-btn.wa:hover { background: #1da851; color: #fff; }
.hx-acts { display: grid; gap: 10px; margin-top: 12px; }
.hx-act { border-left: 3px solid var(--hx-line); padding: 2px 0 2px 12px; }
.hx-act-kind { font-weight: 700; font-size: .78rem; color: var(--hx-primary); }
.hx-inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.hx-inline-form input { flex: 1; min-width: 140px; }
.hx-kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hx-line); font-size: .9rem; }
.hx-kv:last-child { border-bottom: none; }
.hx-kv span { color: var(--hx-muted); }
.hx-tasks { display: grid; gap: 8px; margin-top: 12px; }
.hx-task { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.hx-task.done { text-decoration: line-through; color: var(--hx-muted); }
.hx-task input { width: auto; }
.hx-stage-sel { border: 1px solid var(--hx-line); border-radius: 8px; padding: 8px 10px; background: var(--hx-surface); font-weight: 600; }

/* templates bar + reminders */
.hx-tpl-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.hx-tpl-bar label { font-size: .82rem; font-weight: 600; color: var(--hx-ink-2); }
.hx-tpl-sel { width: auto; min-width: 180px; }
.hx-reminders { display: grid; gap: 10px; margin-bottom: 10px; }
.hx-reminder { display: flex; align-items: center; gap: 12px; background: var(--hx-surface); border: 1px solid var(--hx-line); border-left-width: 4px; border-radius: 12px; padding: 13px 16px; }
.hx-reminder:hover { border-color: var(--hx-primary); }
.hx-reminder.overdue { border-left-color: var(--hx-danger); }
.hx-reminder.today { border-left-color: var(--hx-primary); }
.hx-reminder.upcoming { border-left-color: var(--hx-slate); }
.hx-rem-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hx-slate); flex: none; }
.hx-reminder.overdue .hx-rem-dot { background: var(--hx-danger); }
.hx-reminder.today .hx-rem-dot { background: var(--hx-primary); }
.hx-rem-body { flex: 1; }
.hx-rem-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; letter-spacing: .04em; }
.hx-rem-badge.overdue { background: #fde9e7; color: var(--hx-danger); }
.hx-rem-badge.today { background: var(--hx-orange-soft); color: var(--hx-primary); }
.hx-rem-badge.upcoming { background: var(--hx-bg); color: var(--hx-ink-2); }

/* lead center */
.hx-lead-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.hx-lead-kpi { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 12px; padding: 14px 16px; text-align: center; }
.hx-info-band { background: #eaf4fb; border: 1px solid #c9e2f2; color: #1d5d8a; border-radius: 10px; padding: 10px 14px; font-size: .86rem; margin-bottom: 16px; }
html[data-theme="dark"] .hx-info-band { background: #12293a; border-color: #1d4257; color: #9cc8e8; }
.hx-lead { cursor: pointer; transition: .12s; }
.hx-lead:hover { border-color: var(--hx-primary); }
.hx-lead.unread { border-left: 4px solid var(--hx-primary); }
.hx-lead.unread .hx-lead-h b::after { content: " •"; color: var(--hx-primary); }
.hx-lead-msg { margin: 6px 0 0; color: var(--hx-ink-2); font-size: .9rem; }
.hx-thread { display: grid; gap: 10px; max-height: 380px; overflow-y: auto; padding: 4px; }
.hx-msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; }
.hx-msg small { display: block; margin-top: 5px; opacity: .65; font-size: .72rem; }
.hx-msg.in { background: var(--hx-bg); border: 1px solid var(--hx-line); justify-self: start; border-bottom-left-radius: 4px; }
.hx-msg.out { background: var(--hx-primary); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.hx-reply-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: .86rem; }
.hx-reply-bar label { display: inline-flex; align-items: center; gap: 5px; }
.hx-reply-bar input { width: auto; }
.hx-reply-bar .hx-btn { margin-left: auto; }
.hx-conclude { border: 2px solid var(--hx-primary); margin-bottom: 18px; }
button.hx-chip-check { cursor: pointer; background: var(--hx-surface); }
button.hx-chip-check.on { background: var(--hx-orange-soft); border-color: var(--hx-primary); color: var(--hx-primary); font-weight: 600; }

/* atividade / mandatos / referidos / cruces */
.hx-act-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hx-line); }
.hx-act-form select, .hx-act-form input { flex: 1; min-width: 130px; }
.hx-act-form button { flex: none; }
.hx-cruce-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hx-cruce-head a { margin-left: auto; }
.hx-md { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 16px; }
.hx-md.active { background: #e3f5ef; color: #0a7d54; }
.hx-md.expiring { background: #fff3e0; color: #b06d00; }
.hx-md.expired { background: #fde9e7; color: var(--hx-danger); }
.hx-md.na { background: var(--hx-bg); color: var(--hx-muted); }

/* visualização restrita (parceria) */
.hx-restricted-band { background: #fff8ec; border: 1px solid #f3d9a8; color: #7a5200; border-radius: 12px; padding: 14px 16px; margin: 14px 0; font-size: .92rem; }
.hx-restricted-band .hx-btn { margin-left: 10px; }
html[data-theme="dark"] .hx-restricted-band { background: #2e2410; border-color: #5a4718; color: #e8c777; }
.hx-gallery.locked .hx-gal { pointer-events: none; user-select: none; }
.hx-gal-locked { display: flex; align-items: center; justify-content: center; text-align: center; background: repeating-linear-gradient(45deg, #e8ecef, #e8ecef 12px, #dfe4e8 12px, #dfe4e8 24px); color: var(--hx-ink-2); font-size: .82rem; font-weight: 600; padding: 10px; }
html[data-theme="dark"] .hx-gal-locked { background: repeating-linear-gradient(45deg, #1d2731, #1d2731 12px, #232e3a 12px, #232e3a 24px); }
.hx-lock { opacity: .8; }
/* 💳 selo de financiamento (destaque na dor nº1 do comprador) */
.hx-fin-badge { border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 800; white-space: nowrap; vertical-align: middle; }
/* 🛡️ selo "Verificado pela Housxpert" — último tile da galeria do anúncio */
.hx-gal-verif { display: flex; flex-direction: column; justify-content: center; padding: 18px 18px; color: #fff;
  background: radial-gradient(320px 200px at 85% -10%, rgba(252,84,18,.4), transparent 62%), linear-gradient(150deg, #0d151d, #17242f 60%, #1d2b3a);
  border: 1px solid rgba(255,255,255,.06); min-height: 160px; }

/* autorização de venda */
.hx-sa-status { max-width: 860px; margin: 0 auto 14px; padding: 12px 18px; border-radius: 12px; font-weight: 600; }
.hx-sa-status.none { background: #fff3e0; color: #b06d00; }
.hx-sa-status.pending { background: #eaf4fb; color: #1d5d8a; }
.hx-sa-status.signed { background: #e3f5ef; color: #0a7d54; }
.hx-sa-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: var(--hx-bg); border-radius: 12px; padding: 16px; }
.hx-sa-form label { font-size: .82rem; font-weight: 600; color: var(--hx-ink-2); display: flex; flex-direction: column; gap: 6px; }
.print-only { display: none; }
@media print { .print-only { display: table; } }
@media (max-width: 560px) { .hx-sa-form { grid-template-columns: 1fr; } }

/* novo contato (wizard) */
.hx-nc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hx-nc-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  border: 2px solid var(--hx-line); border-radius: 14px; padding: 18px 10px; cursor: pointer; transition: .15s; }
.hx-nc-card:hover { border-color: var(--hx-primary); transform: translateY(-2px); }
.hx-nc-card input { position: absolute; opacity: 0; }
.hx-nc-card:has(input:checked) { border-color: var(--hx-primary); background: var(--hx-orange-soft); }
.hx-nc-ic { font-size: 1.8rem; }
.hx-nc-card small { color: var(--hx-muted); font-size: .76rem; }
.hx-nc-cta { flex: none; }
.hx-hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hx-hero-sec { border-color: rgba(255,255,255,.35); color: #fff; }
.hx-hero-sec:hover { border-color: #fff; color: #fff; }
@media (max-width: 920px) { .hx-nc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hx-nc-cta { display: none; } }

/* busca inteligente por demanda */
.hx-card.prop{position:relative}
.hx-pick-chk{position:absolute;top:10px;left:10px;z-index:2;background:#fff;border-radius:8px;padding:3px 5px;box-shadow:0 1px 4px rgba(0,0,0,.2);display:flex}
.hx-pick-chk input{width:20px;height:20px;accent-color:var(--hx-primary);cursor:pointer}
.hx-card.prop.picked{outline:3px solid var(--hx-primary);outline-offset:-1px}
.hx-bia-reasons{font-size:.8rem;color:#0a7d54;background:#e3f5ef;border-radius:8px;padding:5px 8px}
html[data-theme="dark"] .hx-bia-reasons{background:#0f2f24;color:#4ad39b}

/* mapa real (Leaflet) no CMA */
.hx-map-real { height: 340px; border-radius: 12px; border: 1px solid var(--hx-line); z-index: 0; }
.hx-map-subj { font-size: 26px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.hx-map-poi { font-size: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
@media print { .hx-map-real { height: 300px; } .leaflet-control-zoom { display: none !important; } }

/* parâmetros do CMA + relatório editável + plano de marketing */
.hx-cma-params { margin-bottom: 14px; }
.hx-params-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; }
/* barra de abas (ex.: admin) que desliza pro lado no celular em vez de cortar */
/* abas que não cabem descem pra linha de baixo (pedido da Claudia — sem barra de rolagem);
   no celular volta o deslize horizontal pra não empilhar demais */
.hx-tabscroll { flex-wrap: wrap; gap: 8px; }
.hx-tabscroll > * { white-space: nowrap; }
@media (max-width: 640px) {
  .hx-tabscroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: thin; }
  .hx-tabscroll > * { flex: 0 0 auto; }
  .hx-tabscroll::-webkit-scrollbar { height: 5px; }
  .hx-tabscroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 4px; }
}
/* banner "Instalar app" (PWA) — popup laranja grudado no topo */
#hx-install-bar { position: sticky; top: 0; z-index: 200; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: linear-gradient(90deg, #FC5412, #ff7d3e); color: #fff; box-shadow: 0 3px 14px rgba(252,84,18,.4); animation: hxIbDrop .35s ease; }
#hx-install-bar .hx-ib-btn { background: #fff; color: #c8410f; border: 0; font-weight: 800; padding: 8px 18px; border-radius: 22px; cursor: pointer; font-size: .86rem; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
#hx-install-bar .hx-ib-x { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: .9rem; cursor: pointer; line-height: 1; flex-shrink: 0; }
@keyframes hxIbDrop { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hx-params-row label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--hx-ink-2); }
.hx-params-row input[type="number"] { max-width: 140px; }
.hx-param-chk { flex-direction: row !important; align-items: center; }
.hx-param-chk input { width: auto !important; }
.hx-cma.editing { outline: 3px dashed var(--hx-primary); outline-offset: 4px; }
.hx-cma.editing:focus { outline-color: var(--hx-primary); }
.hx-mkt-phase { display: flex; gap: 14px; margin-bottom: 14px; }
.hx-mkt-n { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--hx-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.hx-mkt-phase ul { margin: 6px 0 0; padding-left: 18px; }
.hx-mkt-phase li { margin-bottom: 4px; font-size: .92rem; }

/* seleção interativa de comparáveis (CMA) */
.hx-comp.off { opacity: .45; background: var(--hx-bg); }
.hx-comp.off .hx-comp-n { background: var(--hx-muted); }
.hx-comp-use { display: inline-flex; align-items: center; cursor: pointer; }
.hx-comp-use input { width: 18px; height: 18px; accent-color: var(--hx-primary); cursor: pointer; }
@media print { .hx-comp.off { display: none; } }

/* verificação profissional */
.hx-verif-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700;
  background: #e3f5ef; color: #0a7d54; padding: 3px 9px; border-radius: 16px; vertical-align: middle; letter-spacing: .02em; }
html[data-theme="dark"] .hx-verif-badge { background: #0f2f24; color: #4ad39b; }

/* integrações */
.hx-integ-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.hx-integ-head .hx-badge { margin-left: auto; }
.hx-integ-ic { font-size: 1.6rem; }
.hx-integ-form { display: grid; gap: 8px; margin-top: 8px; }
.hx-feed-row { display: flex; gap: 8px; }
.hx-feed-row input { font-size: .78rem; color: var(--hx-ink-2); background: var(--hx-bg); }

/* Autentique */
.hx-esign { margin-top: 26px; border-top: 2px dashed var(--hx-line); padding-top: 18px; }
.hx-esign-st { display: inline-block; font-weight: 600; padding: 8px 14px; border-radius: 10px; margin-right: 10px; }
.hx-esign-st.pending { background: #fff3e0; color: #b06d00; }
.hx-esign-st.signed { background: #e3f5ef; color: #0a7d54; }

/* dark mode */
html[data-theme="dark"] {
  --hx-ink: #eef2f6; --hx-ink-2: #b6c1cb; --hx-muted: #8794a0;
  --hx-line: #28323d; --hx-bg: #0e151b; --hx-surface: #161f27;
  --hx-orange-soft: rgba(252,84,18,.18);
  --hx-shadow: 0 1px 3px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
}
html[data-theme="dark"] body { background: var(--hx-bg); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hx-grid, .hx-form-grid, .hx-val-grid, .hx-strats, .hx-kpis, .hx-sim-out, .hx-parties, .hx-plans { grid-template-columns: 1fr 1fr; }
  .hx-field.wide { grid-column: span 2; }
  .hx-listing, .hx-crm-detail { grid-template-columns: minmax(0, 1fr); }
  .hx-nav { display: none; }
  .hx-sidebar { width: 68px; padding: 12px 8px; }
  .hx-side-link span:not(.hx-side-ic), .hx-side-gtitle, .hx-side-tag, .hx-advert b, .hx-advert > span:not(.hx-btn), .hx-side-brand .hx-wordwrap, .hx-side-out { display: none; }
  .hx-side-link { justify-content: center; }
  .hx-uinfo { display: none; }
}
@media (max-width: 560px) {
  .hx-grid, .hx-form-grid, .hx-val-grid, .hx-strats, .hx-kpis, .hx-sim-out, .hx-parties, .hx-terms, .hx-plans { grid-template-columns: 1fr; }
  .hx-field.wide { grid-column: span 1; }
  .hx-hero-dash { flex-direction: column; align-items: flex-start; }
  .hx-cma-cover, .hx-cma-sec, .hx-contract { padding-left: 20px; padding-right: 20px; }
  .hx-gsearch { max-width: none; }
}

/* ---------- print (CMA + contract → PDF) ---------- */
@media print {
  .hx-topbar, .hx-nav, .no-print, .hx-cma-toolbar, .hx-sim, .hx-top-right, .hx-sidebar, .hx-apptop { display: none !important; }
  .hx-shell, .hx-content { display: block; }
  body, .hx-main { background: #fff; padding: 0; margin: 0; max-width: none; }
  .hx-cma, .hx-contract { border: none; box-shadow: none; border-radius: 0; }
  .hx-cma-sec, .hx-comp, .hx-strat, .hx-party, .hx-anchor-row { break-inside: avoid; }
  /* força fotos e fundos do relatório a imprimir (navegadores omitem por padrão) */
  .hx-cma, .hx-cma * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hx-anchor-photo img, .hx-comp-photo, .hx-cover-facade img { display: block !important; }
}

/* ============================================================
   RESPONSIVO — tablet e celular
   ============================================================ */
.hx-burger { display: none; background: none; border: 0; font-size: 1.45rem; cursor: pointer; padding: 2px 8px; color: var(--hx-ink); }
.hx-nav-overlay { display: none; }

/* tablet */
@media (max-width: 1024px) {
  .hx-grid { grid-template-columns: repeat(2, 1fr); }
  .hx-form-grid { grid-template-columns: repeat(2, 1fr); }
  .hx-val-grid { grid-template-columns: repeat(2, 1fr); }
}

/* celular grande / tablet retrato: menu vira gaveta */
@media (max-width: 900px) {
  .hx-burger { display: block; }
  .hx-shell { display: block; }
  /* gaveta LARGA com textos visíveis (não o trilho de 68px do tablet) */
  .hx-sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: 100dvh; z-index: 300;
    width: 268px; max-width: 82vw; padding: 16px 14px;
    transform: translateX(-105%); transition: transform .22s ease; box-shadow: 8px 0 30px rgba(16,25,33,.25); }
  body.nav-open .hx-sidebar { transform: none; }
  /* restaura os rótulos escondidos pela regra de tablet (68px) */
  .hx-sidebar .hx-side-link { justify-content: flex-start; }
  .hx-sidebar .hx-side-gtitle, .hx-sidebar .hx-side-out, .hx-sidebar .hx-side-brand .hx-wordwrap { display: block; }
  .hx-sidebar .hx-side-tag, .hx-sidebar .hx-advert b, .hx-sidebar .hx-advert > span { display: revert; }
  .hx-sidebar .hx-uinfo { display: block; }
  body.nav-open .hx-nav-overlay { display: block; position: fixed; inset: 0; z-index: 290; background: rgba(16,25,33,.45); }
  body.nav-open { overflow: hidden; }
  .hx-apptop { flex-wrap: wrap; gap: 8px; padding: 9px 12px; }
  .hx-gsearch { order: 10; flex: 1 1 100%; max-width: none; }
  .hx-uinfo { display: none; }
  .hx-agent-switch { max-width: 130px; }
  .hx-main { padding: 18px 14px 70px; }
  .hx-hero-dash { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hx-hero-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
  .hx-crm-detail { grid-template-columns: minmax(0, 1fr); }
  .hx-plans { grid-template-columns: 1fr; }
  .hx-listing-grid { grid-template-columns: 1fr; }
  .hx-cma { padding: 18px 14px; }
  .hx-cma-toolbar, .hx-params-row, .hx-page-head, .hx-row-actions { flex-wrap: wrap; }
  .hx-page-head { gap: 10px; }
  /* tabelas roláveis */
  .hx-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .hx-facade iframe, #facade-pano { height: 280px; }
  .hx-daily-foot { flex-wrap: wrap; }
}

/* celular */
@media (max-width: 640px) {
  .hx-grid { grid-template-columns: 1fr; }
  .hx-form-grid { grid-template-columns: 1fr; }
  .hx-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* valores do ACM em 1 coluna (números longos não cabem em 2 colunas) */
  .hx-val-grid { grid-template-columns: 1fr; }
  .hx-strats { grid-template-columns: 1fr; }
  /* o relatório do ACM cabe na tela e o texto quebra (não corta à direita) */
  .hx-cma, .hx-cma-sec, .hx-cma-sec p, .hx-cma-sec li, .hx-comp, .hx-cma-cover { overflow-wrap: anywhere; word-break: break-word; }
  .hx-cma-sec, .hx-cma-cover, .hx-cma-foot { padding-left: 16px; padding-right: 16px; }
  .hx-cma-cover h1 { max-width: 100%; }
  .hx-comp-h { gap: 8px; }
  .hx-hscroll { grid-auto-columns: 82%; }
  .hx-portal-hero h1 { font-size: 1.5rem; }
  .hx-page-head h1 { font-size: 1.35rem; }
  .hx-cma-cover h1 { font-size: 1.3rem; }
  .hx-cover-facade iframe, .hx-cover-facade img { height: 200px; }
  /* ACM no celular: parâmetros e barra cabem na tela (não vazam pro lado) */
  .hx-cma-params .hx-params-row { flex-direction: column; align-items: stretch; }
  .hx-cma-params .hx-params-row label { width: 100%; }
  .hx-cma-params .hx-params-row input, .hx-cma-params .hx-params-row select { max-width: none !important; width: 100%; box-sizing: border-box; }
  .hx-cma-toolbar { justify-content: stretch; }
  .hx-cma-toolbar .hx-btn { flex: 1 1 44%; justify-content: center; }
  .hx-modal { max-height: 88vh; }
  .hx-avatar-edit { flex-direction: column; align-items: flex-start; }
  .hx-crm-board { grid-auto-columns: 78%; }
  .hx-btn.lg { padding: 10px 16px; font-size: .95rem; }
  .hx-send-row, .hx-daily-foot { flex-wrap: wrap; gap: 8px; }
}

/* trava vazamento horizontal no celular */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .hx-modal { width: calc(100vw - 24px); }
  img, iframe { max-width: 100%; }
}
@media (max-width: 640px) { .hx-daily-badge { display: none; } .hx-daily-item.overdue { background: #fff5f4; } }

/* --- painel admin --- */
.hx-adm-bar { height: 7px; background: var(--hx-bg); border-radius: 6px; overflow: hidden; margin: 4px 0 12px; }
.hx-adm-bar > div { height: 100%; border-radius: 6px; }
.hx-adm-actions { white-space: nowrap; }
.hx-adm-actions .hx-btn { padding: 5px 8px; }

/* --- agente de buscas do WhatsApp (demo) --- */
.hx-wa-shell { max-width: 480px; margin: 0 auto; }
.hx-wa-head { display: flex; align-items: center; gap: 12px; background: #075E54; color: #fff;
  padding: 12px 16px; border-radius: 14px 14px 0 0; }
.hx-wa-head small { opacity: .8; }
.hx-wa-ava { width: 42px; height: 42px; border-radius: 50%; background: #FC5412; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.hx-wa-body { background: #E5DDD5 url() center; min-height: 380px; max-height: 55vh; overflow-y: auto;
  padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.hx-wa-msg { max-width: 82%; padding: 9px 12px; border-radius: 10px; font-size: .9rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0,0,0,.12); position: relative; }
.hx-wa-msg.bot { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.hx-wa-msg.me { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 2px; }
.hx-wa-msg small { display: block; text-align: right; color: rgba(0,0,0,.4); font-size: .66rem; margin-top: 3px; }
.hx-wa-input { display: flex; gap: 8px; background: #F0F0F0; padding: 10px; border-radius: 0 0 14px 14px; }
.hx-wa-input input { flex: 1; border: 0; border-radius: 24px; padding: 12px 18px; font: inherit; }

/* --- logo oficial --- */
.hx-brand-img { height: 44px; display: block; margin: -4px 0; }
.hx-brand-img.lg { height: 72px; margin: 0 auto; }
/* botões fantasmas legíveis no topo público escuro */
.hx-topbar.public .hx-btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.hx-topbar.public .hx-btn.ghost:hover { border-color: #fff; }
/* ícones sociais oficiais alinhados */
.hx-soc svg { display: block; }
/* capa personalizada no site do corretor */
.hx-agent-hero.has-cover, .hx-agent-hero.has-cover h1, .hx-agent-hero.has-cover p { color: #fff; }
.hx-agent-hero.has-cover .hx-eyebrow { color: #AFD100; }
.hx-agent-hero.has-cover .hx-contact-lines { color: rgba(255,255,255,.85); }
.hx-agent-hero.has-cover .hx-creci { color: rgba(255,255,255,.75); }

/* imóvel confidencial (só link privado) */
.hx-confid { display: flex; gap: 10px; align-items: flex-start; background: #eef1f4; border: 1px solid #d5dbe1; border-radius: 12px; padding: 12px 14px; margin: 8px 0 2px; font-size: .86rem; color: var(--hx-ink-2); cursor: pointer; line-height: 1.4; }
.hx-confid input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--hx-ink); cursor: pointer; }
.hx-confid b { color: var(--hx-ink); }

/* ACM: amostra que o corretor cola por link */
.hx-cma-sample { align-items: center; gap: 8px; flex-wrap: wrap; background: #f7fbff; border: 1px dashed #cfe0f0; border-radius: 10px; padding: 10px 12px; }
.hx-cma-sample input { border: 1px solid var(--hx-line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: .88rem; }
.hx-comp-del { border: 0; background: transparent; color: var(--hx-danger); font-weight: 700; cursor: pointer; font-size: .95rem; padding: 0 4px; margin-left: 4px; line-height: 1; }
.hx-comp-del:hover { color: #a01e14; }

/* ============ Portal público v2 (busca estilo grandes portais) ============ */
.hx-portal-hero2 { position: relative; overflow: hidden;
  /* FULL-BLEED: fura o max-width do contêiner e vai de ponta a ponta da tela */
  margin: -20px calc(50% - 50vw) 22px; padding: 54px 20px 58px;
  background: radial-gradient(1100px 420px at 78% -10%, rgba(252,84,18,.34), transparent 60%), linear-gradient(140deg, #0d151d 0%, #17242f 55%, #1d2b3a 100%);
  color: #fff; border-radius: 0; text-align: center; }
.hx-portal-hero2::after { content: ""; position: absolute; left: -46px; bottom: -72px; width: 300px; height: 300px;
  background: url("brand/simbolo-branco.svg") no-repeat center/contain; opacity: .06; pointer-events: none; z-index: 0; }
.hx-portal-hero2-in { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hx-sell-card { position: relative; overflow: hidden; }
.hx-sell-card::after { content: ""; position: absolute; right: -30px; bottom: -34px; width: 150px; height: 150px;
  background: url("brand/simbolo-branco.svg") no-repeat center/contain; opacity: .12; pointer-events: none; }
.hx-sell-card > * { position: relative; z-index: 1; }
.hx-portal-hero2 h1 { font-size: 2.3rem; letter-spacing: -.02em; margin: 4px 0 8px; }
.hx-portal-hero2 p { color: rgba(255,255,255,.82); font-size: 1.02rem; margin: 0 auto 22px; max-width: 640px; }
.hx-searchbar { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 12px; max-width: 860px; margin: 0 auto; }
.hx-trans-tabs { display: inline-flex; background: rgba(0,0,0,.28); border-radius: 12px; padding: 4px; margin-bottom: 10px; gap: 3px; }
.hx-trans-tabs button { border: 0; background: transparent; color: rgba(255,255,255,.82); font-weight: 600; font-size: .9rem; padding: 8px 18px; border-radius: 9px; cursor: pointer; transition: .15s; }
.hx-trans-tabs button.on { background: #fff; color: var(--hx-ink); }
.hx-searchbar-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hx-sb-input { flex: 2 1 220px; min-width: 0; border: 0; border-radius: 11px; padding: 13px 15px; font: inherit; font-size: .95rem; background: #fff; color: var(--hx-ink); }
.hx-sb-sel { flex: 1 1 120px; border: 0; border-radius: 11px; padding: 13px 12px; font: inherit; font-size: .92rem; background: #fff; color: var(--hx-ink); cursor: pointer; }
.hx-sb-go { flex: 1 1 130px; border: 0; border-radius: 11px; padding: 13px 18px; font: inherit; font-weight: 700; font-size: .95rem; background: var(--hx-primary); color: #fff; cursor: pointer; transition: .15s; }
.hx-sb-go:hover { background: var(--hx-primary-d); }
.hx-hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.hx-hero-chips a { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 7px 15px; font-size: .86rem; font-weight: 500; transition: .15s; }
.hx-hero-chips a:hover { background: rgba(255,255,255,.22); }
.hx-seller-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, #fff4ee, #fff9f0); border: 1px solid #ffe0cc; border-radius: 16px; padding: 16px 20px; margin: 0 0 18px; }
.hx-seller-band b { display: block; font-size: 1.05rem; }
.hx-seller-band span { color: var(--hx-ink-2); font-size: .88rem; }
.hx-portal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.hx-portal-count { font-weight: 700; font-size: 1.05rem; color: var(--hx-ink); }
.hx-portal-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hx-chip-toggle { border: 1px solid var(--hx-line); background: #fff; color: var(--hx-ink-2); border-radius: 20px; padding: 9px 15px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: .15s; }
.hx-chip-toggle:hover { border-color: var(--hx-primary); color: var(--hx-primary); }
.hx-chip-toggle.on { background: #ffeef0; border-color: #ffc2c9; color: #e0114c; }
.hx-portal-tools .hx-sb-sel { background: #fff; border: 1px solid var(--hx-line); border-radius: 20px; padding: 9px 14px; flex: 0 0 auto; }
.hx-view-toggle { display: inline-flex; border: 1px solid var(--hx-line); border-radius: 20px; overflow: hidden; background: #fff; }
.hx-view-toggle button { border: 0; background: transparent; color: var(--hx-ink-2); font: inherit; font-size: .86rem; font-weight: 600; padding: 9px 15px; cursor: pointer; }
.hx-view-toggle button.on { background: var(--hx-ink); color: #fff; }
.hx-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hx-pcard { background: #fff; border: 1px solid var(--hx-line); border-radius: 16px; overflow: hidden; box-shadow: var(--hx-shadow); display: flex; flex-direction: column; transition: .18s; }
.hx-pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(18,36,48,.15); }
.hx-pcard-media { display: block; position: relative; height: 210px; background-size: cover; background-position: center; background-color: #dbe3e8; }
.hx-pcard-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #b3c1ca; background: linear-gradient(135deg, #eef2f5, #dbe3e8); }
.hx-pcard-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.hx-badge { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; color: #fff; }
.hx-badge.feat { background: var(--hx-primary); }
.hx-badge.trans { background: rgba(16,25,33,.78); }
.hx-fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: #e0114c; font-size: 1.2rem; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: .15s; }
.hx-fav:hover { transform: scale(1.08); }
.hx-fav.on { background: #e0114c; color: #fff; }
.hx-pcard-count { position: absolute; bottom: 10px; right: 10px; background: rgba(16,25,33,.72); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.hx-pcard-body { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hx-pcard-price { font-size: 1.36rem; font-weight: 800; color: var(--hx-ink); letter-spacing: -.01em; }
.hx-pcard-price small { font-size: .8rem; font-weight: 600; color: var(--hx-muted); }
.hx-pcard-title { font-size: 1rem; margin: 0; font-weight: 600; line-height: 1.3; }
.hx-pcard-title a { color: var(--hx-ink); }
.hx-pcard-title a:hover { color: var(--hx-primary); }
.hx-pcard-loc { color: var(--hx-muted); font-size: .85rem; }
.hx-pcard-specs { display: flex; gap: 14px; font-size: .85rem; color: var(--hx-ink-2); flex-wrap: wrap; padding: 2px 0; }
.hx-pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hx-line); }
.hx-pcard-agent { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--hx-ink-2); font-weight: 500; min-width: 0; }
.hx-pcard-agent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-pcard-creci { display: block; font-size: .68rem; font-weight: 400; color: var(--hx-ink-3, #94a3b8); letter-spacing: .02em; }
.hx-pcard-wa { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; }
.hx-pcard-wa:hover { background: #1da851; }
.hx-portal-map { height: 560px; border-radius: 16px; overflow: hidden; border: 1px solid var(--hx-line); box-shadow: var(--hx-shadow); position: relative; z-index: 0; }
.hx-map-note { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500; background: #fff; border: 1px solid var(--hx-line); border-radius: 20px; padding: 8px 16px; font-size: .85rem; color: var(--hx-ink-2); box-shadow: var(--hx-shadow); }
/* ---- busca estilo Airbnb: MAPA em cima + LISTA embaixo, com hover cruzado ---- */
.hx-map-top { margin-bottom: 20px; }
.hx-map-top .hx-portal-map { height: 420px; }
@media (max-width: 900px) { .hx-map-top .hx-portal-map { height: 300px; } }
/* mapa + card "quero vender" lado a lado */
.hx-map-row { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-bottom: 22px; align-items: stretch; }
.hx-map-card .hx-portal-map { height: 100%; min-height: 420px; }
/* card "quero vender": mesmo tom escuro do hero (mais elegante que o laranja chapado) */
.hx-sell-card { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px 26px; border-radius: 18px;
  background: radial-gradient(420px 260px at 85% -10%, rgba(252,84,18,.42), transparent 62%), linear-gradient(150deg, #0d151d 0%, #17242f 58%, #1d2b3a 100%);
  color: #fff; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 16px 40px rgba(13,21,29,.4); }
.hx-sell-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #FC5412, #ff7a3c); color: #fff; box-shadow: 0 8px 20px rgba(252,84,18,.4); }
.hx-sell-eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #AFD100; }
.hx-sell-card h3 { font-size: 1.55rem; line-height: 1.18; margin: 0; color: #fff; letter-spacing: -.01em; }
.hx-sell-card p { font-size: .9rem; line-height: 1.55; color: rgba(255,255,255,.78); margin: 0; }
.hx-sell-perk { font-size: .82rem; line-height: 1.45; background: rgba(252,84,18,.14); border: 1px solid rgba(252,84,18,.35);
  border-radius: 10px; padding: 9px 12px; color: #ffd9c4; }
.hx-sell-card .hx-btn { align-self: flex-start; font-weight: 800; padding: 12px 22px; margin-top: 2px; }
.hx-sell-trust { font-size: .72rem; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .hx-map-row { grid-template-columns: 1fr; } .hx-map-card .hx-portal-map { min-height: 300px; } }
.hx-pcard.hovermk, .hx-card.hovermk { border-color: var(--hx-primary); box-shadow: 0 0 0 2px var(--hx-primary), var(--hx-shadow); transform: translateY(-2px); }
/* pin de preço (estilo Airbnb) */
.hx-price-pin { position: relative; }
.hx-price-pin span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; background: #fff; color: #101921; font-weight: 700; font-size: .76rem; border: 1px solid rgba(0,0,0,.18); border-radius: 999px; padding: 4px 9px; box-shadow: 0 2px 7px rgba(0,0,0,.28); cursor: pointer; transition: transform .12s ease, background .12s, color .12s; }
.hx-price-pin span:hover, .hx-price-pin.on span { background: var(--hx-primary); color: #fff; border-color: var(--hx-primary); transform: translate(-50%, -50%) scale(1.14); }
.hx-price-pin.on span { z-index: 1000; }
/* popup mini-card do pin */
.hx-mkpop-wrap .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 14px; }
.hx-mkpop-wrap .leaflet-popup-content { margin: 0; width: 220px !important; }
.hx-mkpop { display: block; text-decoration: none; color: inherit; }
.hx-mkpop-img { display: block; height: 124px; background-size: cover; background-position: center; }
.hx-mkpop-noimg { display: flex; align-items: center; justify-content: center; font-size: 2.2rem; background: #eef1f4; }
.hx-mkpop-b { display: block; padding: 10px 13px 12px; }
.hx-mkpop-b b { font-size: 1.02rem; display: block; }
.hx-mkpop-t { display: block; font-size: .86rem; margin: 3px 0 1px; font-weight: 600; }
.hx-mkpop-loc { display: block; font-size: .78rem; color: var(--hx-muted); }
.hx-mkpop-go { display: block; font-size: .8rem; color: var(--hx-primary); font-weight: 700; margin-top: 7px; }
/* tag EXCLUSIVO no canto da foto (cards internos) + badge no portal */
.hx-thumb { position: relative; }
.hx-thumb-tags { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.hx-excl-tag { background: #101921; color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.hx-excl-tag.launch { background: var(--hx-primary, #FC5412); }
.hx-excl-tag.confid { background: #6d28d9; }
.hx-excl-tag.drop { background: #d92d20; text-transform: none; letter-spacing: 0; }
.hx-excl-tag.rent { background: #0e9384; }
.hx-price-old { color: #999; font-weight: 500; font-size: .7em; text-decoration: line-through; margin-right: 4px; }
.hx-pay-terms { font-size: .9rem; color: #444; margin: 2px 0 6px; }
.hx-code-tag { display: inline-block; vertical-align: middle; font-size: .62em; font-weight: 700; letter-spacing: .04em; color: var(--hx-primary, #FC5412); background: rgba(252,84,18,.1); border: 1px solid rgba(252,84,18,.35); border-radius: 6px; padding: 2px 8px; margin-left: 8px; }
.hx-card.clickable { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.hx-card.clickable:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.hx-radio-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.hx-radio { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--hx-line); border-radius: 10px; padding: 9px 14px; cursor: pointer; font-size: .9rem; background: var(--hx-bg); }
.hx-radio:has(input:checked) { border-color: var(--hx-primary, #FC5412); background: #fff4ee; box-shadow: inset 0 0 0 1px var(--hx-primary, #FC5412); }
.hx-badge.excl { background: #101921; color: #fff; }
.hx-badge.launch { background: var(--hx-primary, #FC5412); color: #fff; }
/* banner "Venda seu imóvel" em DESTAQUE (laranja da marca) */
.hx-seller-band2 { display: flex; align-items: center; gap: 18px; margin: 18px 0 22px; padding: 22px 26px; border-radius: 18px; background: linear-gradient(115deg, #FC5412, #ff7a3c 60%, #ffa04d); color: #fff; box-shadow: 0 14px 34px rgba(252,84,18,.35); }
.hx-sb2-ic { font-size: 2.6rem; flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.hx-sb2-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hx-sb2-eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .12em; opacity: .9; }
.hx-sb2-tx b { font-size: 1.35rem; line-height: 1.2; }
.hx-sb2-tx span { font-size: .9rem; opacity: .95; line-height: 1.45; }
.hx-sb2-cta { flex: 0 0 auto; border: 0; background: #fff; color: #d84408; font-weight: 800; font-size: .95rem; padding: 14px 22px; border-radius: 12px; cursor: pointer; font-family: inherit; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: transform .15s; }
.hx-sb2-cta:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .hx-seller-band2 { flex-direction: column; text-align: center; gap: 10px; padding: 20px 16px; } .hx-sb2-tx { align-items: center; } .hx-sb2-cta { width: 100%; } }
/* tabela de unidades do lançamento (editor + exibição viva) */
.hx-units-edit { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hx-units-edit th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hx-muted); padding: 4px 6px; }
.hx-units-edit td { padding: 3px 4px; }
.hx-units-edit input, .hx-units-edit select { width: 100%; min-width: 70px; padding: 7px 9px; border: 1px solid var(--hx-line, #d5dbe1); border-radius: 8px; font: inherit; font-size: .85rem; }
.hx-units-tower { font-weight: 700; margin: 10px 0 4px; }
.hx-units-tb td, .hx-units-tb th { font-size: .86rem; }
.hx-unit-sold td { opacity: .45; }
.hx-units-sum { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--hx-line, #e6e6e6); border-radius: 12px; background: var(--hx-bg-soft, rgba(252,84,18,.04)); font-size: .92rem; }
/* hub de lançamentos (aba Construtoras) */
.hx-lc-card { display: flex; gap: 16px; background: var(--hx-card, #fff); border: 1px solid var(--hx-line, #e6e6e6); border-radius: 16px; padding: 14px; margin-bottom: 14px; box-shadow: var(--hx-shadow); }
.hx-lc-photo { flex: 0 0 150px; height: 118px; border-radius: 12px; background-size: cover; background-position: center; }
.hx-lc-noimg { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; background: #eef1f4; }
.hx-lc-body { flex: 1; min-width: 0; }
.hx-lc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hx-lc-head h3 { margin: 0; font-size: 1.05rem; }
.hx-lc-docs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.hx-lc-doc { font-size: .78rem; border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.hx-lc-doc small { opacity: .7; }
.hx-lc-doc.ok { background: #f3f8e0; color: #4c5c00; }
.hx-lc-doc.miss { background: #f2f2f2; color: #888; }
.hx-lc-doc.warn { background: #fff3e0; color: #a04d00; font-weight: 600; }
@media (max-width: 620px) { .hx-lc-card { flex-direction: column; } .hx-lc-photo { flex: none; width: 100%; } }
/* quadro explicativo da modalidade EXCLUSIVA (/anunciar): abre no hover/toque */
.hx-excl-wrap { position: relative; }
.hx-excl-wrap:hover .hx-excl-pop, .hx-excl-wrap:focus-within .hx-excl-pop { display: block; }
.hx-excl-pop { display: none; position: absolute; left: 8px; right: 8px; top: calc(100% + 6px); z-index: 60; background: #101921; color: #fff; border-radius: 14px; padding: 16px 18px; font-size: .86rem; line-height: 1.5; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.hx-excl-pop::before { content: ""; position: absolute; top: -7px; left: 34px; border: 7px solid transparent; border-bottom-color: #101921; border-top: none; }
.hx-excl-pop b { color: #FFB289; }
.hx-excl-pop ul { margin: 8px 0 0; padding-left: 18px; }
.hx-excl-pop li { margin: 4px 0; }
.hx-portal-empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--hx-line); border-radius: 16px; }
.hx-portal-empty-ic { font-size: 3rem; }
.hx-portal-empty h3 { margin: 10px 0 4px; }
.hx-portal-empty p { color: var(--hx-muted); margin: 0 0 18px; }
.hx-portal-empty-ct { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hx-pgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hx-portal-hero2 h1 { font-size: 1.7rem; }
  .hx-portal-hero2 { padding: 30px 16px 34px; }
  .hx-searchbar-row { flex-direction: column; }
  .hx-sb-input, .hx-sb-sel, .hx-sb-go { flex: 1 1 auto; width: 100%; box-sizing: border-box; }
  .hx-trans-tabs { display: flex; width: 100%; }
  .hx-trans-tabs button { flex: 1; padding: 9px 6px; }
  .hx-portal-map { height: 420px; }
}
@media (max-width: 560px) {
  .hx-pgrid { grid-template-columns: 1fr; }
  .hx-portal-toolbar { align-items: flex-start; flex-direction: column; }
}

/* galeria mosaico: selo "+N fotos · ver todas" na última miniatura */
.hx-gal-more { position: absolute; inset: 0; background: rgba(16,25,33,.62); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; z-index: 2; text-align: center; line-height: 1.3; }
.hx-gal-more small { font-weight: 500; font-size: .78rem; opacity: .85; }

/* sub-navegação em abas (âncoras com o visual do alternador) */
.hx-subnav a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--hx-muted, #606E89); text-decoration: none; }
.hx-subnav a.on { background: var(--hx-primary, #FC5412); color: #fff; }
.hx-subnav { flex-wrap: wrap; }

/* 🏆 Pontos Xpert — popup de recompensa (toast) */
/* 💬 o botão de WhatsApp mora no canto inferior direito: os avisos sobem 68px
   para empilhar ACIMA dele em vez de cobri-lo */
#hx-xp-toasts { position: fixed; right: 18px; bottom: 86px; z-index: 12000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.hx-xp-toast { display: flex; align-items: center; gap: 12px; min-width: 240px; max-width: 320px; padding: 13px 16px; border-radius: 14px; color: #fff; background: linear-gradient(120deg, #FC5412 0%, #FF7F00 100%); box-shadow: 0 12px 30px rgba(252, 84, 18, .38); transform: translateX(120%); opacity: 0; transition: transform .35s cubic-bezier(.2,.9,.3,1.3), opacity .35s; }
.hx-xp-toast.in { transform: translateX(0); opacity: 1; }
.hx-xp-toast.neg { background: linear-gradient(120deg, #101921 0%, #2e3a48 100%); box-shadow: 0 12px 30px rgba(16, 25, 33, .4); }
.hx-xp-toast-ic { font-size: 1.7rem; line-height: 1; }
.hx-xp-toast-pts { font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.hx-xp-toast-lb { font-size: .8rem; opacity: .95; margin-top: 1px; }
/* contador de XP no topo/painel */
.hx-xp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(252,84,18,.1); color: #FC5412; font-weight: 800; font-size: .9rem; border: 1px solid rgba(252,84,18,.25); }


/* bolha de agrupamento do mapa (zoom out): mostra quantos imóveis há ali.
   Sem isso, com o país inteiro na tela os pinos ficam um por cima do outro e
   parece que os imóveis sumiram. */
.hx-cluster-pin span{
  display:flex;align-items:center;justify-content:center;
  background:#FC5412;color:#fff;font-weight:800;font-size:.9rem;
  border:3px solid #fff;border-radius:50%;
  box-shadow:0 4px 14px rgba(16,25,33,.35);cursor:pointer;
  transition:transform .12s;
}
.hx-cluster-pin:hover span{ transform:scale(1.08); }

/* ☑️ comparável desmarcado no ACM: fica apagado na tela e NÃO SAI no documento
   impresso — o proprietário só pode ver o que entrou na conta */
.hx-anchor-row.off { opacity: .42; }
.hx-anchor-row.off .hx-anchor-price { text-decoration: line-through; }
@media print {
  .hx-anchor-row.off { display: none !important; }
  .hx-anchor-row input[type="checkbox"] { display: none !important; }
}

/* 🩶 assinatura da plataforma no pé do documento quando ele sai com a marca do
   corretor (plano Pro). Cinza sutil: informa sem competir com a marca dele. */
.hx-doc-rodape { margin-top: 26px; padding-top: 10px; border-top: 1px solid #eef1f4;
  text-align: center; font-size: .72rem; color: #9aa5b1; letter-spacing: .01em; }
.hx-doc-rodape b { color: #8b96a3; font-weight: 600; }
@media print { .hx-doc-rodape { color: #a8b0b8; border-top-color: #eee; } }

/* 📱 com um modal aberto, o botão flutuante do WhatsApp fica EM CIMA dos botões do
   rodapé — no print dela ele cobria metade do "Cancelar". Enquanto houver modal, some. */
body.hx-modal-aberto #hx-wa-fab { display: none !important; }
