:root {
  --cor: #F0442E;
  --cor-escura: #171C21;
  --cor-clara: #F4F6F8;
  --destaque: #F0442E;
  --aluguel: #171C21;
  --texto: #171C21;
  --cinza: #667085;
  --borda: #F4F6F8;
  --fundo: #F4F6F8;
  --raio: 12px;
  --sombra: 0 4px 18px rgba(23, 28, 33, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100vw; overflow-x: hidden; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--texto); background: var(--fundo); }
a { color: var(--cor); text-decoration: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

/* Quando o painel admin estiver aberto, oculta o cabeçalho/menu e elementos do site público */
body.admin-aberto { overflow: hidden !important; }
body.admin-aberto .topo:not(.topo-admin),
body.admin-aberto .topo-home,
body.admin-aberto .barra-zonas,
body.admin-aberto .whats-flutuante,
body.admin-aberto .fab-grupo,
body.admin-aberto #mapa {
  display: none !important;
}

/* Cabeçalho */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; height: 64px; background: #fff; border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 1100; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--cor); }
.logo-icone { display: block; flex: 0 0 auto; height: 44px; width: auto; max-width: 175px; aspect-ratio: 450 / 128; border: 0; border-radius: 0; background: transparent; object-fit: contain; object-position: left center; }
.topo-acoes { display: flex; gap: 10px; align-items: center; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--borda); background: #fff; color: var(--texto); padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; transition: .15s; white-space: nowrap; }
.btn:hover { background: var(--fundo); }
.btn-primario { background: var(--cor); border-color: var(--cor); color: #fff; }
.btn-primario:hover { background: var(--cor-escura); }
.btn-whats { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whats:hover { background: #1EBE5A; border-color: #1EBE5A; }
.btn-perigo { color: #F0442E; border-color: #F4F6F8; }
.btn-perigo:hover { background: #F4F6F8; }
.btn-anuncie { background: #FFF5F4; border-color: #FCDAD5; color: var(--cor); font-weight: 600; text-decoration: none; }
.btn-anuncie:hover { background: #FFE8E5; border-color: var(--cor); color: var(--cor); }
.btn-anuncie svg, .btn-corretor svg, .btn-editar svg { flex-shrink: 0; }
.btn-anuncie .txt-anuncie-curto { display: none; }
.btn-editar { background: #fff; border-color: var(--borda); color: var(--texto); font-weight: 600; text-decoration: none; }
.btn-editar:hover { background: var(--cor-clara); border-color: var(--cor); color: var(--cor); }
.topo-acoes-dir { display: flex; align-items: center; gap: 8px; }

/* Filtros */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--borda); align-items: center; }
.filtros select, .filtros input, .campo input, .campo select, .campo textarea { border: 1px solid var(--borda); border-radius: 10px; padding: 9px 12px; background: #fff; min-width: 0; }
.filtros input[type=search] { flex: 1 1 220px; }
.filtros input[type=number] { width: 130px; }
.seg { display: inline-flex; border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 9px 14px; cursor: pointer; font-weight: 600; color: var(--cinza); }
.seg button.ativo { background: var(--cor); color: #fff; }

/* Layout mapa + lista */
.principal { display: grid; grid-template-columns: 1fr 440px; height: calc(100vh - 64px - 63px); }
#mapa { width: 100%; height: 100%; }
.lateral { overflow-y: auto; background: var(--fundo); border-left: 1px solid var(--borda); }
.lateral-topo { padding: 14px 16px 6px; display: flex; justify-content: space-between; align-items: center; color: var(--cinza); font-size: .9rem; gap: 8px; }
.lista { display: grid; gap: 12px; padding: 8px 16px 20px; }

/* Card */
.card { display: grid; grid-template-columns: 150px 1fr; background: #fff; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); cursor: pointer; transition: .15s; border: 2px solid transparent; color: inherit; }
.card:hover, .card.hover { border-color: var(--cor); transform: translateY(-1px); }
.card-foto { position: relative; background: #F4F6F8 center/cover no-repeat; min-height: 130px; }
.card-corpo { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-preco { font-weight: 800; font-size: 1.1rem; }
.card-titulo { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-local { font-size: .8rem; color: var(--cinza); }
.card-info { display: flex; gap: 10px; font-size: .8rem; color: var(--cinza); flex-wrap: wrap; margin-top: auto; }
.selo { position: absolute; top: 8px; left: 8px; background: var(--cor); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.selo.aluguel { background: var(--aluguel); }
.selo-destaque { position: absolute; bottom: 8px; left: 8px; background: var(--destaque); color: #171C21; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.selo-sombra { position: absolute; top: 8px; right: 8px; background: rgba(23, 28, 33, 0.78); color: #FFD54F; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.vazio { text-align: center; color: var(--cinza); padding: 40px 10px; }

/* Marcadores de preço */
.marcador-preco { background: var(--cor); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 8px; border-radius: 14px; white-space: nowrap; box-shadow: 0 2px 6px rgba(23,28,33,.3); border: 2px solid #fff; transform: translate(-50%, -50%); display: inline-block; transition: transform .1s; }
.marcador-preco.aluguel { background: var(--aluguel); }
.marcador-preco.ativo, .marcador-preco:hover { background: var(--destaque); color: #171C21; transform: translate(-50%, -50%) scale(1.15); z-index: 1000; }
.icone-vazio { background: transparent; border: 0; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(240, 68, 46, .25) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: rgba(240, 68, 46, .85) !important; color: #fff !important; font-weight: 700; }

/* Popup */
.popup { width: 240px; }
.popup img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; display: block; background: #F4F6F8; }
.popup-preco { font-weight: 800; font-size: 1.05rem; margin: 6px 0 2px; }
.popup-titulo { font-size: .85rem; margin-bottom: 4px; }
.popup .card-info { margin-bottom: 8px; }
.popup .btn { width: 100%; color: #fff; }
.leaflet-popup-content { margin: 10px; }

/* Página do imóvel */
.container { max-width: 1180px; margin: 0 auto; padding: 20px; }
.voltar { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 14px; font-weight: 600; }
.galeria { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; border-radius: var(--raio); overflow: hidden; }
.galeria img, .galeria .galeria-video { width: 100%; height: 100%; object-fit: cover; background: #F4F6F8; display: block; overflow: hidden; border-radius: 6px; }
.galeria img { cursor: zoom-in; }
.galeria .galeria-video { background: #000; position: relative; }
.galeria .galeria-video-ampliar { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(15,23,42,.82); color: #fff; cursor: pointer; }
.galeria .galeria-video-ampliar svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.galeria .galeria-video-ampliar:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.galeria > :first-child { grid-row: span 2; }
.detalhe-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-top: 24px; align-items: start; min-width: 0; max-width: 100%; }
.detalhe-grid > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.bloco { background: #fff; border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra); margin-bottom: 20px; max-width: 100%; box-sizing: border-box; }
.bloco h2 { margin: 0 0 14px; font-size: 1.15rem; }
.detalhe-titulo { font-size: 1.6rem; margin: 0 0 4px; word-break: break-word; overflow-wrap: break-word; }
.detalhe-preco { font-size: 2rem; font-weight: 800; color: #0E7A4B; letter-spacing: -0.5px; line-height: 1.15; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.detalhe-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.detalhe-tags .tag { display: inline-flex; align-items: center; white-space: nowrap; }
.detalhe-tags .tag-destaque { background: #F4F6F8; color: #171C21; }
.detalhe-endereco { color: var(--cinza); margin: 0 0 16px; word-break: break-word; }
.icones { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.icone-item { background: var(--fundo); border-radius: 10px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.icone-item svg { width: 22px; height: 22px; margin-bottom: 4px; color: var(--cor); flex-shrink: 0; }
.icone-item b { display: block; font-size: 1.15rem; line-height: 1.2; }
.icone-item span { font-size: .78rem; color: var(--cinza); margin-top: 2px; }
.descricao { white-space: pre-line; line-height: 1.6; word-break: break-word; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--cor-clara); color: var(--cor-escura); padding: 6px 12px; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.tag svg { flex-shrink: 0; }
.tag-financiamento { background: #E8F5E9; color: #1B5E20; border: 1px solid #C8E6C9; font-weight: 700; }
.tag-sombra { background: #FFF8E1; color: #B25E00; border: 1px solid #FFE082; font-weight: 700; }
.tag-destaque { background: #FFF3E0; color: #D84315; border: 1px solid #FFCCBC; font-weight: 700; }
.tag-btn {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tag-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}
.tag-btn:active {
  transform: translateY(0);
}
.tag-btn:focus-visible {
  outline: 2px solid #0E7A4B;
  outline-offset: 2px;
}
#info-financiamento, #info-sombra {
  scroll-margin-top: 100px;
}
.destaque-flash-fin {
  animation: flashQuadroFin 1.5s ease-out forwards;
}
@keyframes flashQuadroFin {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(27, 94, 32, 0); }
  25% { transform: scale(1.02); box-shadow: 0 0 0 3px #1B5E20, 0 8px 24px rgba(27, 94, 32, 0.22); }
  60% { transform: scale(1.01); box-shadow: 0 0 0 2px rgba(27, 94, 32, 0.5), 0 4px 14px rgba(27, 94, 32, 0.14); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(27, 94, 32, 0); }
}
.destaque-flash-som {
  animation: flashQuadroSom 1.5s ease-out forwards;
}
@keyframes flashQuadroSom {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(178, 94, 0, 0); }
  25% { transform: scale(1.02); box-shadow: 0 0 0 3px #B25E00, 0 8px 24px rgba(178, 94, 0, 0.22); }
  60% { transform: scale(1.01); box-shadow: 0 0 0 2px rgba(178, 94, 0, 0.5), 0 4px 14px rgba(178, 94, 0, 0.14); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(178, 94, 0, 0); }
}
.card-quadros-destaque {
  margin-top: 20px;
  margin-bottom: 20px;
}
.card-quadros-destaque .bloco-destaque-financiamento:first-child,
.card-quadros-destaque .bloco-destaque-sombra:first-child {
  margin-top: 0;
}
.bloco-destaque-financiamento, .bloco-destaque-sombra { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; margin-top: 14px; box-sizing: border-box; }
.bloco-destaque-financiamento { background: #E8F5E9; border: 1px solid #C8E6C9; }
.bloco-destaque-financiamento b { color: #1B5E20; display: block; font-size: .95rem; margin-bottom: 2px; }
.bloco-destaque-financiamento p { color: #2E7D32; margin: 0; font-size: .86rem; line-height: 1.45; }
.bloco-destaque-sombra { background: #FFF8E1; border: 1px solid #FFE082; }
.bloco-destaque-sombra b { color: #B25E00; display: block; font-size: .95rem; margin-bottom: 2px; }
.bloco-destaque-sombra p { color: #8C4700; margin: 0; font-size: .86rem; line-height: 1.45; }
.bdf-icone, .bds-icone { font-size: 1.4rem; flex-shrink: 0; line-height: 1.2; }
.caixa-preco { position: sticky; top: 84px; }
.preco-grande { font-size: 2rem; font-weight: 800; margin: 4px 0 12px; word-break: break-word; }
.linha-valor { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--borda); font-size: .92rem; }
/* Backup do estilo anterior:
.caixa-preco .btn { width: 100%; margin-top: 10px; padding: 12px; white-space: normal !important; text-align: center; line-height: 1.35; box-sizing: border-box; }
*/
/* ===== BOTÕES DO CARD DE DETALHES (PADRONIZADOS - 48px, raio 12px, contorno 1.5px) ===== */
.caixa-preco .btn {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border-radius: 12px !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
}

.caixa-preco .btn svg {
  flex-shrink: 0;
  vertical-align: middle;
}

/* Hover e Active padrão nos botões do card de detalhes */
@media (hover: hover) and (pointer: fine) {
  .caixa-preco .btn:hover {
    transform: translateY(-1px);
  }
}

.caixa-preco .btn:active {
  transform: scale(0.98) !important;
}

/* Acessibilidade: foco por teclado */
.caixa-preco .btn:focus-visible {
  outline: 2px solid var(--cor, #E52E2E) !important;
  outline-offset: 2px !important;
}
.caixa-preco .btn-whats:focus-visible {
  outline: 2px solid #25D366 !important;
  outline-offset: 2px !important;
}
.caixa-preco .btn-agendar-visita:focus-visible {
  outline: 2px solid #FB923C !important;
  outline-offset: 2px !important;
}
.caixa-preco .btn-simular-cta:focus-visible {
  outline: 2px solid #60A5FA !important;
  outline-offset: 2px !important;
}
.caixa-preco .btn-fazer-proposta:focus-visible {
  outline: 2px solid #FBBF24 !important;
  outline-offset: 2px !important;
}

/* 1. WhatsApp */
.caixa-preco .btn-whats {
  background: #25D366 !important;
  border-color: #1EBE5A !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3) !important;
}
@media (hover: hover) and (pointer: fine) {
  .caixa-preco .btn-whats:hover {
    background: #20BA56 !important;
    border-color: #128C7E !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5) !important;
  }
}
.caixa-preco .btn-whats:active {
  transform: scale(0.97) !important;
}

/* 2. Agendar Visita Presencial */
.caixa-preco .btn-agendar-visita {
  background: #FFF7ED !important;
  border-color: #FB923C !important;
  color: #C2410C !important;
}
@media (hover: hover) and (pointer: fine) {
  .caixa-preco .btn-agendar-visita:hover {
    background: #FFEDD5 !important;
    border-color: #EA580C !important;
    color: #9A3412 !important;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15) !important;
  }
}

/* 3. Simular Financiamento */
.caixa-preco .btn-simular-cta {
  background: #EFF6FF !important;
  border-color: #60A5FA !important;
  color: #1D4ED8 !important;
}
@media (hover: hover) and (pointer: fine) {
  .caixa-preco .btn-simular-cta:hover {
    background: #DBEAFE !important;
    border-color: #2563EB !important;
    color: #1E40AF !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
  }
}

/* 4. Fazer uma Proposta */
.caixa-preco .btn-fazer-proposta {
  background: #FFFBEB !important;
  border-color: #FBBF24 !important;
  color: #B45309 !important;
}
@media (hover: hover) and (pointer: fine) {
  .caixa-preco .btn-fazer-proposta:hover {
    background: #FEF3C7 !important;
    border-color: #D97706 !important;
    color: #92400E !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15) !important;
  }
}

/* 5, 6, 7, 8. Enviar para Cônjuge/Família, Telefone, Outras opções de link, Editar este imóvel */
.caixa-preco .btn-compartilhar-familia,
.caixa-preco a.btn[href^="tel:"],
.caixa-preco #compartilhar,
.caixa-preco .btn-editar {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}
@media (hover: hover) and (pointer: fine) {
  .caixa-preco .btn-compartilhar-familia:hover,
  .caixa-preco a.btn[href^="tel:"]:hover,
  .caixa-preco #compartilhar:hover,
  .caixa-preco .btn-editar:hover {
    background: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  }
}

/* ===== ANIMAÇÕES DOS BOTÕES DO WHATSAPP (Card + Barra Fixa Mobile) ===== */
/* Pulso externo via box-shadow animado + brilho interno contido por overflow: hidden e contain: paint */
.caixa-preco .btn-whats,
.bwm-btn {
  position: relative !important;
  overflow: hidden !important;
  contain: paint !important;
  isolation: isolate !important;
  will-change: transform, box-shadow;
  --mpa-cor: rgba(37, 211, 102, 0.85);
  --mpa-cor-fade: rgba(37, 211, 102, 0);
  animation: mpaPulseBoxShadow 4s cubic-bezier(0.25, 1, 0.5, 1) infinite !important;
  animation-delay: 0s !important;
}

.caixa-preco .btn-whats::after,
.bwm-btn::after {
  display: none !important;
  content: none !important;
}

/* Brilho diagonal ("shine") que cruza o botão de forma lenta e suave (~2.7s), 100% contido via overflow: hidden e contain: paint */
.caixa-preco .btn-whats::before,
.bwm-btn::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 55% !important;
  height: 100% !important;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.70) 50%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  will-change: transform !important;
  transform: translateX(-160%) skewX(-20deg);
  animation: mpaShineLento 6.5s cubic-bezier(0.35, 0, 0.25, 1) infinite !important;
  animation-delay: 0s !important;
}

@keyframes mpaShineLento {
  0% {
    transform: translateX(-160%) skewX(-20deg);
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  42% {
    transform: translateX(280%) skewX(-20deg);
    opacity: 1;
  }
  43%, 100% {
    transform: translateX(280%) skewX(-20deg);
    opacity: 0;
  }
}

/* Ícone do WhatsApp com leve balanço a cada ~5s */
.caixa-preco .btn-whats svg,
.bwm-btn svg {
  display: inline-block;
  transform-origin: center center;
  animation: whatsIconWobble 5s ease-in-out infinite;
  will-change: transform;
  position: relative;
  z-index: 2;
}

.caixa-preco .btn-whats span,
.bwm-btn span {
  position: relative;
  z-index: 2;
}

@keyframes whatsIconWobble {
  0%, 80%, 100% {
    transform: rotate(0deg);
  }
  83% {
    transform: rotate(-14deg);
  }
  86% {
    transform: rotate(12deg);
  }
  89% {
    transform: rotate(-8deg);
  }
  92% {
    transform: rotate(6deg);
  }
  95% {
    transform: rotate(-3deg);
  }
  98% {
    transform: rotate(0deg);
  }
}

/* Hover e Active no botão fixo da barra mobile */
@media (hover: hover) and (pointer: fine) {
  .bwm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5) !important;
    border-color: #128C7E !important;
  }
}
.bwm-btn:active {
  transform: scale(0.97) !important;
}

/* Respeitar prefers-reduced-motion: desligar animações */
@media (prefers-reduced-motion: reduce) {
  .caixa-preco .btn-whats,
  .bwm-btn,
  .caixa-preco .btn-whats::before,
  .bwm-btn::before,
  .caixa-preco .btn-whats::after,
  .bwm-btn::after,
  .caixa-preco .btn-whats svg,
  .bwm-btn svg,
  .caixa-preco .btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Card do Corretor */
.corretor-box { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; padding: 12px; background: #F8FAFC; border-radius: 12px; border: 1px solid var(--borda); }
.corretor-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cor); flex-shrink: 0; box-shadow: 0 2px 6px rgba(23,28,33,.12); }
.corretor-dados { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.corretor-dados b { font-size: .95rem; color: var(--texto); font-weight: 700; }
.corretor-dados span { font-size: .78rem; color: var(--cinza); margin-top: 3px; }
.bwm-corretor-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bwm-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cor); flex-shrink: 0; }

#mapa-detalhe { height: 320px; border-radius: 10px; }
.lista-videos-imovel { display: flex; flex-direction: column; gap: 14px; }
.video-responsivo { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 4px 14px rgba(23, 28, 33, 0.12); }
.video-responsivo iframe, .video-responsivo video { width: 100%; height: 100%; border: 0; display: block; }
.bloco-adsense { padding: 14px 16px; border: 1px dashed #CBD5E1; background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%); }
.adsense-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #64748B; margin-bottom: 10px; }
.adsense-status-ativo { color: #0E7A4B; background: #E8F8F0; border: 1px solid #A7F3D0; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.adsense-cfg-link { color: var(--primaria); text-decoration: none; font-weight: 700; font-size: .74rem; }
.adsense-cfg-link:hover { text-decoration: underline; }
.adsense-corpo { position: relative; min-height: 96px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: #fff; border: 1px solid #E2E8F0; }
.adsense-corpo::before { content: "Espaço Google AdSense conectado (pub-2591394190350616) · Os anúncios são exibidos automaticamente pelo Google"; position: absolute; font-size: .82rem; color: #64748B; font-weight: 600; text-align: center; padding: 0 16px; line-height: 1.4; pointer-events: none; z-index: 0; }
.adsense-corpo ins { position: relative; z-index: 1; }
.adsense-placeholder { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 10px; background: #fff; border: 1px solid #E2E8F0; min-height: 90px; }
.adsense-icone { width: 46px; height: 46px; border-radius: 12px; background: #EEF4FF; color: var(--primaria); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adsense-texto { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; color: var(--cinza); line-height: 1.4; }
.adsense-texto b { color: var(--texto); font-size: .94rem; }
.adsense-texto code { background: #F1F5F9; padding: 2px 6px; border-radius: 4px; font-size: .8rem; color: var(--primaria); }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px 24px 96px;
  overflow: hidden;
  background: rgba(0, 0, 0, .94);
  z-index: 20000;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.lightbox.aberto { display: flex; }
.lb-palco {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: calc(100vh - 140px);
  height: calc(100dvh - 140px);
  min-height: 0;
  padding: 0 72px;
}
.lb-conteudo {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.lb-conteudo > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  transform-origin: 50% 50%;
  transition: transform .22s ease;
}
.lb-conteudo > img.arrastando { cursor: grabbing; transition: none; }
.lb-video {
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.lb-video iframe, .lb-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain !important;
}
.lightbox button {
  appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(240,68,46,.2);
  border-radius: 50%;
  background: #fff;
  color: #F0442E;
  box-shadow: 0 4px 16px rgba(0,0,0,.24);
  font: 700 1.6rem/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.lightbox button svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox button:active { transform: scale(.96); }
.lightbox button:focus-visible { outline: 3px solid rgba(240,68,46,.55); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .lightbox button:hover { transform: scale(1.06); box-shadow: 0 7px 20px rgba(0,0,0,.32); }
}
.lb-fechar {
  position: fixed !important;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 20002;
  font-size: 1.3rem !important;
}
.lb-controles {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 20001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(23,28,33,.72);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}
.lb-contador {
  min-width: 54px;
  color: #fff;
  text-align: center;
  font: 700 1rem/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
.lightbox .lb-dica-reabrir {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: none;
  font-size: 1rem;
}
.lb-dica {
  position: fixed;
  top: calc(68px + env(safe-area-inset-top));
  right: 14px;
  z-index: 20003;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(23,28,33,.86);
  color: #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  font: 500 .88rem/1.35 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.lb-dica.visivel { opacity: 1; transform: translateY(0); }
.lb-dica-icone { flex: 0 0 auto; font-size: 1.1rem; }
.lb-dica-texto { white-space: pre-line; }
@media (max-width: 700px) {
  .lightbox {
    padding: calc(56px + env(safe-area-inset-top)) 12px calc(92px + env(safe-area-inset-bottom));
  }
  .lb-palco {
    width: 100%;
    height: calc(100vh - 168px);
    height: calc(100dvh - 168px);
    padding: 0;
  }
  .lb-conteudo > img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 140px);
  }
  .lb-video { width: min(100%, 960px); }
  .lb-controles {
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    min-height: 54px;
    padding: 5px 9px;
  }
  .lightbox .lb-ant, .lightbox .lb-prox {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  .lb-contador { min-width: 48px; font-size: .95rem; }
  .lightbox .lb-dica-reabrir { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
  .lb-dica {
    top: calc(68px + env(safe-area-inset-top));
    right: 10px;
    max-width: calc(100vw - 20px);
    padding: 9px 12px;
    border-radius: 14px;
    font-size: .8rem;
  }
  .lb-fechar { top: calc(10px + env(safe-area-inset-top)); right: 10px; }
}
#lightbox > .lb-fechar {
  position: fixed !important;
  top: calc(14px + env(safe-area-inset-top)) !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
}
#lightbox > .lb-dica { top: calc(68px + env(safe-area-inset-top)) !important; right: 14px !important; left: auto !important; }
@media (max-width: 700px) {
  #lightbox > .lb-fechar { top: calc(10px + env(safe-area-inset-top)) !important; right: 10px !important; width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; font-size: 1.2rem !important; }
  #lightbox > .lb-dica { top: calc(54px + env(safe-area-inset-top)) !important; right: 10px !important; }
}
@media (max-width: 768px) {
  #lightbox .lb-palco {
    position: fixed;
    top: calc(82px + env(safe-area-inset-top));
    right: 12px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    height: auto;
    padding: 0;
  }
  #lightbox .lb-conteudo > img {
    max-width: 100%;
    max-height: 100%;
  }
  #lightbox .lb-controles {
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 20002;
  }
  #lightbox > .lb-fechar {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: calc(16px + env(safe-area-inset-bottom) + 9px) !important;
    left: calc(50% + 102px) !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    z-index: 20003;
  }
  #lightbox > .lb-fechar:focus {
    outline: none !important;
    outline-offset: 0 !important;
  }
  #lightbox > .lb-fechar > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 29px;
    box-sizing: border-box;
    width: 29px;
    height: 29px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #F0442E;
    box-shadow: 0 4px 16px rgba(0,0,0,.24);
    font: 700 .72rem/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  #lightbox > .lb-dica {
    position: fixed !important;
    top: var(--lb-dica-mobile-top, calc(12px + env(safe-area-inset-top))) !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    width: min(248px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    justify-content: center !important;
    text-align: center !important;
    pointer-events: none !important;
    z-index: 20001 !important;
  }
}
/* Rodapé */
.rodape { text-align: center; color: var(--cinza); font-size: .85rem; padding: 30px 20px; }

/* Botão ver lista no celular */
.alternar-vista { display: none; }

/* Barra fixa WhatsApp no celular */
.barra-whats-mobile { display: none; }

@media (max-width: 900px) {
  .principal { grid-template-columns: 1fr; height: auto; }
  #mapa { height: calc(100vh - 64px - 110px); }
  .principal.modo-lista #mapa { display: none; }
  .principal:not(.modo-lista) .lateral { display: none; }
  .lateral { border-left: 0; }
  .alternar-vista { display: inline-flex; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1200; box-shadow: var(--sombra); }
  .detalhe-grid { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px; }
  .galeria > :first-child { grid-column: span 2; grid-row: span 1; }
  .galeria > :nth-child(2):last-child { grid-column: span 2; }
  .galeria > :nth-child(n+4) { display: none; }
  .filtros input[type=number] { width: 110px; }
  .topo:not(.topo-home):not(.topo-admin) { height: 58px; padding: 0 10px; gap: 8px; box-sizing: border-box; width: 100%; max-width: 100vw; }
  .topo:not(.topo-admin) .logo { min-width: 0; flex: 0 1 auto; display: flex; align-items: center; }
  .topo:not(.topo-admin) .logo-icone { height: 38px; width: auto; max-width: 135px; aspect-ratio: 450 / 128; object-fit: contain; object-position: left center; flex-shrink: 0; }
  .topo:not(.topo-admin) .topo-acoes { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
  .btn-anuncie { padding: 6px 10px; font-size: .8rem; height: 34px; border-radius: 9999px; white-space: nowrap; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
  .btn-anuncie .txt-anuncie-longo, .btn-anuncie .txt-anuncie { display: none !important; }
  .btn-anuncie .txt-anuncie-curto { display: inline !important; }
  .topo .btn-editar, #btn-editar-topo { width: 34px; height: 34px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
  .topo .btn-editar span, #btn-editar-topo span, .topo .btn-editar .txt-btn { display: none !important; }
  .topo .btn-editar svg, #btn-editar-topo svg { width: 16px; height: 16px; flex-shrink: 0; }
  .topo .btn-mapa-topo, .btn-mapa-topo { width: 34px; height: 34px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
  .topo .btn-mapa-topo .txt-mapa, .btn-mapa-topo .txt-mapa { display: none !important; }
  .topo .btn-mapa-topo svg, .btn-mapa-topo svg { width: 16px; height: 16px; flex-shrink: 0; }

  .barra-whats-mobile { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); box-shadow: 0 -4px 18px rgba(23, 28, 33, 0.12); z-index: 2000; box-sizing: border-box; width: 100%; max-width: 100vw; }
  .bwm-corretor-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
  .bwm-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cor); flex-shrink: 0; }
  .bwm-info { display: flex; flex-direction: column; min-width: max-content; flex: 1 1 auto; justify-content: center; }
  .bwm-rotulo { font-size: .70rem; color: var(--cinza); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
  .bwm-preco { font-size: 1.45rem; font-weight: 800; color: var(--texto); margin-top: 2px; white-space: nowrap; overflow: visible; text-overflow: clip; line-height: 1.15; font-variant-numeric: tabular-nums; }
  .bwm-btn { flex: 0 0 auto; height: 44px; padding: 0 16px; font-size: .92rem; font-weight: 700; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35); text-decoration: none; white-space: nowrap; }
  .container { padding: 16px 12px calc(75px + env(safe-area-inset-bottom)); max-width: 100vw; box-sizing: border-box; overflow-x: hidden; }
  .bloco { padding: 16px 14px; }
  .detalhe-titulo { font-size: 1.35rem; }
  .rodape { padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .topo { padding: 0 8px; gap: 6px; }
  .topo .logo-icone { height: 34px; max-width: 122px; }
  .topo-acoes { gap: 5px; }
  .btn-anuncie { padding: 5px 8px; font-size: .76rem; height: 32px; }
  .btn-anuncie .txt-anuncie-longo, .btn-anuncie .txt-anuncie { display: none !important; }
  .btn-anuncie .txt-anuncie-curto { display: inline !important; }
  .topo .btn-editar, #btn-editar-topo, .btn-mapa-topo { width: 32px; height: 32px; }
  .card { grid-template-columns: 120px 1fr; }
  .barra-whats-mobile { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 10px; }
  .bwm-corretor-info { gap: 8px; }
  .bwm-avatar { width: 38px; height: 38px; }
  .bwm-rotulo { font-size: .65rem; }
  .bwm-preco { font-size: 1.35rem; }
  .bwm-btn { height: 42px; padding: 0 12px; font-size: .88rem; gap: 6px; }
  .bwm-btn svg { width: 18px; height: 18px; }
  .container { padding: 12px 10px calc(75px + env(safe-area-inset-bottom)); }
  .bloco { padding: 14px 10px; }
  .detalhe-titulo { font-size: 1.25rem; }
  .detalhe-preco { font-size: 1.65rem; margin: 4px 0 8px; }
}
@media (max-width: 390px) {
  .barra-whats-mobile { padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); gap: 8px; }
  .bwm-corretor-info { gap: 8px; }
  .bwm-avatar { width: 36px; height: 36px; }
  .bwm-rotulo { font-size: .62rem; }
  .bwm-preco { font-size: 1.25rem; }
  .bwm-btn { height: 40px; padding: 0 10px; font-size: .84rem; gap: 5px; }
  .bwm-btn svg { width: 17px; height: 17px; }
}
@media (max-width: 360px) {
  .topo { padding: 0 4px; gap: 4px; }
  .topo .logo-icone { height: 30px; max-width: 108px; }
  .topo-acoes { gap: 4px; }
  .btn-anuncie { padding: 5px 6px; font-size: .72rem; height: 30px; }
  .btn-anuncie .txt-anuncie-longo, .btn-anuncie .txt-anuncie { display: none !important; }
  .btn-anuncie .txt-anuncie-curto { display: inline !important; }
  .topo .btn-editar, #btn-editar-topo, .btn-mapa-topo { width: 30px; height: 30px; }
  .detalhe-preco { font-size: 1.45rem; margin: 3px 0 6px; }
  .barra-whats-mobile { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .bwm-corretor-info { gap: 6px; }
  .bwm-avatar { width: 34px; height: 34px; }
  .bwm-rotulo { font-size: .60rem; letter-spacing: .3px; }
  .bwm-preco { font-size: 1.15rem; }
  .bwm-btn { height: 38px; padding: 0 9px; font-size: .80rem; gap: 5px; }
  .bwm-btn svg { width: 16px; height: 16px; }
}
@media (max-width: 330px) {
  .barra-whats-mobile { padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 5px; }
  .bwm-corretor-info { gap: 5px; }
  .bwm-avatar { width: 32px; height: 32px; }
  .bwm-rotulo { font-size: .56rem; letter-spacing: 0; }
  .bwm-preco { font-size: 1.05rem; }
  .bwm-btn { height: 36px; padding: 0 8px; font-size: .76rem; gap: 4px; }
  .bwm-btn svg { width: 15px; height: 15px; }
}

/* ===== SEO & IA (GEO) Estilos ===== */
.card-imovel-ssr { margin-bottom: 12px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(23,28,33,.08); border: 1px solid var(--borda); }
.card-imovel-ssr a { display: block; text-decoration: none; color: inherit; }
.card-imovel-ssr img { width: 100%; height: 180px; object-fit: cover; display: block; background: #EAEFF3; }
.card-imovel-ssr-corpo { padding: 12px; }
.card-imovel-ssr-topo { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tag-ssr { font-size: .7rem; font-weight: 700; text-transform: uppercase; background: var(--fundo); padding: 2px 7px; border-radius: 6px; }
.tag-ssr-fin { font-size: .7rem; font-weight: 700; color: #1B5E20; background: #E8F5E9; padding: 2px 7px; border-radius: 6px; }
.tag-ssr-som { font-size: .7rem; font-weight: 700; color: #B25E00; background: #FFF3E0; padding: 2px 7px; border-radius: 6px; }
.card-imovel-ssr-preco { font-size: 1.15rem; font-weight: 800; color: var(--texto); display: block; margin-bottom: 4px; }
.card-imovel-ssr-titulo { font-size: .92rem; font-weight: 700; color: var(--texto); margin: 0 0 4px; line-height: 1.3; }
.card-imovel-ssr-local { font-size: .8rem; color: var(--cinza); margin: 0 0 6px; }
.card-imovel-ssr-detalhes { font-size: .78rem; color: var(--cinza); margin: 0; font-weight: 600; }

/* ===== Guia & Dúvidas FAQ (Design 100% harmonizado com o Mappa Imobiliário) ===== */
.ia-faq-secao {
  margin: 14px 12px 32px 12px;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.ia-faq-card-principal {
  background: #ffffff;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 16px;
  box-shadow: var(--sombra);
  box-sizing: border-box;
}
.ia-faq-corretor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--borda);
  margin-bottom: 12px;
}
.ia-faq-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.ia-faq-corretor-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ia-faq-nome-linha {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ia-faq-nome {
  font-size: .95rem;
  font-weight: 800;
  color: var(--texto);
}
.ia-faq-creci {
  font-size: .7rem;
  font-weight: 700;
  background: var(--cor-clara);
  color: var(--cor-escura);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.ia-faq-sub {
  font-size: .78rem;
  color: var(--cinza);
}
.ia-faq-whats {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: .82rem;
  height: 36px;
  border-radius: 8px;
  text-decoration: none;
}
.ia-faq-intro {
  font-size: .84rem;
  color: var(--cinza);
  line-height: 1.5;
  margin: 0 0 14px 0;
}
.ia-faq-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ia-faq-item {
  border: 1px solid var(--borda);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s;
}
.ia-faq-item:hover {
  border-color: #cbd5e1;
}
.ia-faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #F8FAFC;
  cursor: pointer;
  user-select: none;
  font-size: .86rem;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.35;
}
.ia-faq-item summary::-webkit-details-marker,
.ia-faq-item summary::marker {
  display: none !important;
}
.ia-faq-chevron {
  flex-shrink: 0;
  color: var(--cinza);
  transition: transform .2s ease;
}
.ia-faq-item[open] summary {
  background: #EEF2F6;
  border-bottom: 1px solid var(--borda);
}
.ia-faq-item[open] .ia-faq-chevron {
  transform: rotate(180deg);
  color: var(--cor);
}
.ia-faq-conteudo {
  padding: 12px 14px;
  background: #ffffff;
}
.ia-faq-conteudo p {
  margin: 0;
  font-size: .83rem;
  color: #4B5563;
  line-height: 1.55;
}
.ia-faq-conteudo a {
  color: var(--cor);
  font-weight: 700;
  text-decoration: none;
}

/* ===== 1. SIMULADOR DE FINANCIAMENTO CAIXA ===== */
.bloco-simulador-caixa {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1.5px solid #005CA9;
  border-radius: 14px;
  padding: 22px;
  margin-top: 18px;
  box-shadow: 0 4px 18px rgba(0, 92, 169, 0.08);
}
.bsc-topo {
  margin-bottom: 18px;
}
.bsc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EBF4FC;
  color: #005CA9;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid #D0E4F7;
}
.bsc-titulo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bsc-sub {
  font-size: 0.88rem;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}
.bsc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.bsc-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bsc-campo label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}
.bsc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.bsc-moeda {
  position: absolute;
  left: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #64748B;
  pointer-events: none;
}
.bsc-input-wrap input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bsc-input-wrap input:focus, .bsc-campo select:focus {
  border-color: #005CA9;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 92, 169, 0.15);
}
.bsc-campo select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0F172A;
  background: #fff;
}
.bsc-botoes-entrada {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.bsc-btn-pct {
  padding: 6px 0;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.bsc-btn-pct:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}
.bsc-btn-pct.ativo {
  background: #005CA9;
  color: #fff;
  border-color: #005CA9;
}
.bsc-resultado {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  text-align: center;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .bsc-resultado {
    grid-template-columns: 1fr 1.3fr 1fr;
    text-align: left;
    padding: 16px;
  }
}
.bsc-res-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bsc-res-destaque {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.bsc-res-label {
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bsc-res-destaque .bsc-res-label {
  color: #166534;
  font-weight: 700;
}
.bsc-res-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
}
.bsc-res-parcela {
  font-size: 1.55rem;
  color: #16A34A;
  line-height: 1.2;
}
.bsc-res-sub {
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 4px;
  display: block;
}
.bsc-rodape {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bsc-info-fgts {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #15803D;
  background: #DCFCE7;
  padding: 9px 13px;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.35;
}
.bsc-btn-whats {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: normal !important;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
}
.bsc-btn-whats:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Responsividade do simulador */
@media (max-width: 640px) {
  .bloco-simulador-caixa {
    padding: 16px 14px;
  }
  .bsc-resultado {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }
  .bsc-res-item {
    align-items: center;
  }
}

/* ===== 2. BOTÕES DE ALTA CONVERSÃO NA BARRA LATERAL (Substituídos pelas regras padronizadas de .caixa-preco .btn) =====
.btn-agendar-visita {
  background: #FFF7ED;
  color: #C2410C;
  border-color: #FFEDD5;
  font-weight: 700;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
  white-space: normal !important;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
}
.btn-agendar-visita:hover {
  background: #FFEDD5;
  border-color: #FDBA74;
  color: #9A3412;
  transform: translateY(-1px);
}
.btn-fazer-proposta {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-weight: 700;
  width: 100%;
  padding: 11px;
  margin-top: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  box-sizing: border-box;
}
.btn-fazer-proposta:hover {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #92400E;
}
.btn-compartilhar-familia {
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #CBD5E1;
  font-weight: 700;
  width: 100%;
  padding: 11px;
  margin-top: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  box-sizing: border-box;
}
.btn-compartilhar-familia:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}
*/
.banner-anuncie-lista {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bal-tag {
  display: inline-block;
  background: rgba(229, 46, 46, 0.2);
  color: #FF8585;
  border: 1px solid rgba(229, 46, 46, 0.35);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.bal-titulo {
  font-size: 1.05rem;
  line-height: 1.35;
  color: #FFFFFF;
  display: block;
}
.bal-texto {
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.45;
  margin: 4px 0 8px;
}
.bal-btn {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.bal-btn:hover {
  background: #20BA56;
}
.secao-buscas-locais {
  margin-top: 24px;
  padding: 18px 16px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}
.sbl-titulo {
  font-size: 0.88rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}
.sbl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sbl-chip {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #CBD5E1;
  padding: 7px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  cursor: pointer;
}
.sbl-chip:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
  transform: translateY(-1px);
}
/* .btn-simular-cta substituído pelas regras padronizadas de .caixa-preco .btn
.btn-simular-cta {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #DBEAFE;
  font-weight: 700;
  width: 100%;
  padding: 11px;
  margin-top: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal !important;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
}
.btn-simular-cta:hover {
  background: #DBEAFE;
  color: #1E40AF;
}
*/

/* ===== 3. BARRA DE ATALHOS RÁPIDOS DE ZONAS DE TERESINA ===== */
.barra-zonas {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 1200px;
  z-index: 1050;
  pointer-events: auto;
  box-sizing: border-box;
}
.chips-zonas-container {
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding: 4px 6px;
}
.chips-zonas-container::-webkit-scrollbar {
  display: none;
}
.chip-zona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.chip-zona:hover {
  background: #ffffff;
  color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}
.chip-zona:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(229, 46, 46, 0.25), 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}
.chip-zona.ativo {
  background: #E52E2E !important;
  color: #ffffff !important;
  border: none !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(229, 46, 46, 0.35) !important;
}
.chip-zona.ativo:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(229, 46, 46, 0.4), 0 4px 14px rgba(229, 46, 46, 0.35) !important;
}

/* ===== 4. CARD DE CAPTAÇÃO PASSIVA DE COMPRADORES ===== */
.card-captacao-leads {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%);
  border: 1.5px solid #FDBA74;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08);
}
.ccl-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ccl-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #EA580C;
}
.ccl-info {
  display: flex;
  flex-direction: column;
}
.ccl-nome {
  font-size: 0.95rem;
  font-weight: 800;
  color: #171C21;
}
.ccl-creci {
  font-size: 0.76rem;
  color: #C2410C;
  font-weight: 700;
}
.ccl-texto b {
  font-size: 0.92rem;
  color: #9A3412;
  display: block;
  margin-bottom: 4px;
}
.ccl-texto p {
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}
.ccl-btn {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal !important;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
}

/* ===== 5. MODAL INTERATIVO "ANUNCIE SEU IMÓVEL" ===== */
.modal-anuncie-fundo {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-anuncie-fundo.aberto {
  opacity: 1;
  pointer-events: auto;
}
.modal-anuncie-caixa {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-anuncie-fundo.aberto .modal-anuncie-caixa {
  transform: none;
}
.modal-anuncie-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
}
.modal-anuncie-topo h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-anuncie-fechar {
  background: #F1F5F9;
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #475569;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.15s;
}
.modal-anuncie-fechar:hover {
  background: #E2E8F0;
  color: #0F172A;
}
.modal-anuncie-corpo {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-anuncie-banner {
  display: none !important;
}
.modal-anuncie-campo {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.modal-anuncie-campo label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}
.modal-anuncie-campo input, .modal-anuncie-campo select, .modal-anuncie-campo textarea {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: #0F172A;
  background-color: #fff;
  font-family: inherit;
}
.modal-anuncie-campo select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  cursor: pointer;
}
.modal-anuncie-campo input:focus, .modal-anuncie-campo select:focus, .modal-anuncie-campo textarea:focus {
  border-color: var(--cor);
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 68, 46, 0.15);
}
.seg-anuncie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  overflow: hidden;
}
.seg-anuncie button {
  padding: 10px;
  border: 0;
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
}
.seg-anuncie button.ativo {
  background: var(--cor);
  color: #fff;
}
.modal-anuncie-rodape {
  padding: 16px 20px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAFC;
  border-radius: 0 0 18px 18px;
}
.btn-enviar-anuncio {
  width: 100%;
  padding: 14px;
  font-size: 0.98rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  white-space: normal !important;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
}
.btn-enviar-anuncio:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}
.link-direto-anuncie {
  text-align: center;
  font-size: 0.8rem;
  color: #64748B;
  text-decoration: underline;
  cursor: pointer;
}
.link-direto-anuncie:hover {
  color: var(--cor);
}

/* Checkbox horizontal com texto alinhado */
label.check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  cursor: pointer !important;
  padding: 8px 6px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: var(--texto) !important;
  user-select: none !important;
  line-height: 1.35 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}
label.check input[type="checkbox"] {
  display: inline-block !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 20px !important;
  accent-color: var(--cor) !important;
  cursor: pointer !important;
}
label.check span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  cursor: pointer !important;
}

/* Acessibilidade e SEO semântico invisível */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}




