/* ===== Página inicial: mapa em tela cheia ===== */
body.home { height: 100vh; height: 100dvh; overflow: hidden; background: #E2E8F0; }

body.home #mapa { position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh; z-index: 1; }
body.home #mapa .leaflet-tile-pane.mapa-base-clara { filter: brightness(1.015) contrast(.99); }

/* ============================================================
   CABEÇALHO FLUTUANTE (Desktop & Base) conforme Instrução 1
   ============================================================ */
.topo-home {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 1200px;
  margin: 0;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.85);
  z-index: 1100;
  box-sizing: border-box;
}
.topo-home .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.topo-home .logo::after { display: none; }
.topo-home .logo-nome { display: none; }
.topo-home .logo-icone {
  height: 38px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  mix-blend-mode: multiply;
}

/* Abas com divisórias verticais finas em cinza claro */
.topo-home .seg {
  background: #F8FAFC;
  border-radius: 9999px;
  padding: 4px;
  border: 1px solid #E2E8F0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
}
.topo-home .seg button {
  border: 0 !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  background: transparent;
  padding: 8px 18px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .topo-home .seg button:not(.ativo):hover {
    background: #E2E8F0;
    color: #0F172A;
    transform: translateY(-1px);
  }
}
.topo-home .seg button:active {
  transform: scale(0.95) !important;
}
.topo-home .seg button:focus-visible {
  outline: 2px solid #E52E2E !important;
  outline-offset: 2px !important;
}
.topo-home .seg button:not(:first-child):not(.ativo):not(.ativo + button)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: #CBD5E1;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.topo-home .seg button:hover::before,
.topo-home .seg button:hover + button::before {
  opacity: 0;
}
.topo-home .seg button.ativo {
  background: #E52E2E !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 14px rgba(229, 46, 46, 0.35) !important;
  animation: filterPop 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  font-weight: 700;
}

@keyframes filterPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topo-home .seg button,
  .topo-home .seg button.ativo {
    animation: none !important;
    transition: none !important;
  }
}
.txt-seg-curto { display: none; }
.txt-seg-longo { display: inline; }

.topo-acoes-dir {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-anuncie {
  padding: 8px 16px;
  font-size: 0.88rem;
  height: 42px;
  border-radius: 9999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFF5F4;
  border: 1.5px solid #FCDAD5;
  color: #E52E2E;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.btn-anuncie:hover {
  background: #FFE8E5;
  border-color: #E52E2E;
  transform: translateY(-1px);
}
.btn-anuncie svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-anuncie .txt-anuncie-longo, .btn-anuncie .txt-anuncie { display: inline !important; }
.btn-anuncie .txt-anuncie-curto { display: none !important; }

.btn-corretor {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #E2E8F0;
  background: #ffffff;
  color: #1E293B;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
  text-decoration: none;
}
.btn-corretor:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}
.btn-corretor svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-corretor .txt-corretor { display: none !important; }

/* ============================================================
   CHIPS DAS REGIÕES (Alinhado exatamente com o cabeçalho)
   ============================================================ */
.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;
}

/* Indicadores de rolagem (fades laterais e setas) */
.barra-zonas-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.2s ease;
}
.barra-zonas-fade.fade-esq {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
  opacity: 0;
}
.barra-zonas-fade.fade-dir {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
  opacity: 1;
}
.barra-zonas-fade.visivel {
  opacity: 1;
}
.barra-zonas-fade.oculto {
  opacity: 0;
}

.seta-scroll-chips {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: none !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  color: #0F172A;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  pointer-events: auto;
}
.seta-scroll-chips:hover {
  background: #F8FAFC;
  transform: translateY(-50%) scale(1.08);
}
.seta-scroll-chips.seta-esq {
  left: -6px;
}
.seta-scroll-chips.seta-dir {
  right: -6px;
}
.seta-scroll-chips[hidden] {
  display: none !important;
}

/* Leaflet sem contornos pretos */
.leaflet-container a,
.leaflet-interactive,
.leaflet-marker-icon,
.leaflet-control a,
.leaflet-popup-close-button {
  outline: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.leaflet-container a:focus-visible,
.leaflet-interactive:focus-visible,
.leaflet-control a:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(229, 46, 46, 0.25) !important;
}

/* Etiquetas de preço */
body.home .marcador-preco { position: absolute; top: 50%; left: 50%; display: inline-flex; justify-content: center; align-items: center; min-height: 32px; max-width: 112px; padding: 5px 10px; border: 1px solid #F4F6F8; border-radius: 11px; background: #fff; color: #171C21; font-size: .76rem; font-weight: 800; letter-spacing: -.01em; box-shadow: 0 2px 8px rgba(23,28,33,.2); transform: translate(-50%, -50%); transition: background .14s, color .14s, border-color .14s, box-shadow .14s, transform .14s; }
body.home .marcador-preco.aluguel { background: #fff; color: #171C21; border-color: #F4F6F8; }
body.home .marcador-preco.ativo { z-index: 1; background: var(--cor); color: #fff; border-color: var(--cor-escura); box-shadow: 0 4px 12px rgba(240,68,46,.34); transform: translate(-50%, -50%) scale(1.09); }
body.home .marcador-preco.ativo.aluguel { background: #171C21; border-color: #171C21; color: #fff; }
/* No zoom inicial e ao clicar nos botões, marcadores individuais ficam sempre como círculo vermelho com '1'. */
body.home #mapa.precos-ocultos .marcador-preco,
body.home #mapa.precos-ocultos .marcador-preco.aluguel,
body.home #mapa.precos-ocultos .marcador-preco.ativo,
body.home #mapa.precos-ocultos .marcador-preco.ativo.aluguel,
body.home .marcador-preco.modo-numero {
  box-sizing: border-box !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: #F0442E !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(23,28,33,.35) !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  line-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.home #mapa.precos-ocultos .marcador-preco:not(.modo-numero) {
  color: transparent !important;
  font-size: 0 !important;
}
body.home #mapa.precos-ocultos .marcador-preco:not(.modo-numero)::after {
  content: '1';
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  line-height: 30px;
}
.icone-vazio { overflow: visible; }

/* Agrupamentos discretos para áreas com muitos anúncios */
body.home .marker-cluster-small, body.home .marker-cluster-medium, body.home .marker-cluster-large { background: rgba(240,68,46,.16) !important; }
body.home .marker-cluster-small div, body.home .marker-cluster-medium div, body.home .marker-cluster-large div { width: 34px; height: 34px; margin: 3px; border: 2px solid #fff; border-radius: 50%; background: #F0442E !important; color: #fff !important; font-size: .78rem; line-height: 30px; font-weight: 800; box-shadow: 0 2px 7px rgba(23,28,33,.25); }

/* ============================================================
   CARTÃO DO IMÓVEL (Popup Moderno Flutuante conforme Mockup)
   ============================================================ */
body.home .leaflet-popup-pane {
  z-index: 1020 !important;
}
body.home .leaflet-popup-content-wrapper {
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
body.home .leaflet-popup-content {
  margin: 0;
  width: 336px !important;
  max-width: calc(100vw - 28px) !important;
  box-sizing: border-box;
  font-family: inherit;
}
body.home .leaflet-popup-tip-container {
  display: none !important;
}
body.home #mapa.mappa-previa-aberta .leaflet-popup-content-wrapper {
  display: flex;
  box-sizing: border-box;
  max-height: var(--mappa-popup-altura-maxima);
}
body.home #mapa.mappa-previa-aberta .leaflet-popup-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(var(--mappa-popup-altura-maxima) - 2px);
  overflow: hidden;
}
body.home #mapa.mappa-previa-aberta .popup {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  max-height: calc(var(--mappa-popup-altura-maxima) - 2px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.home #mapa.mappa-previa-aberta .popup-foto-wrap {
  height: var(--mappa-popup-foto-altura-base, 195px);
  flex: 0 0 var(--mappa-popup-foto-altura-base, 195px);
}
body.home #mapa.mappa-previa-aberta .popup-corpo {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}
body.home #mapa.mappa-previa-aberta .barra-zonas {
  z-index: 1010 !important;
}
body.home .leaflet-popup-close-button {
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
  top: 14px !important;
  right: 14px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff !important;
  font: 20px/1 Arial, sans-serif !important;
  text-decoration: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.15s, background 0.15s;
}
body.home .leaflet-popup-close-button:hover {
  background: rgba(15, 23, 42, 0.9) !important;
  transform: scale(1.08);
}

body.home .popup {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background: #ffffff;
  border-radius: 24px;
}

/* Foto & Carrossel */
body.home .popup-foto-wrap {
  position: relative;
  width: 100%;
  height: 195px;
  border-radius: 16px;
  overflow: hidden;
  background: #0F172A;
}
body.home .popup-foto-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
body.home .popup-foto {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
body.home .popup-foto-wrap:hover .popup-foto {
  transform: scale(1.03);
}

/* Badges da Foto */
body.home .popup-badge-destaque {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FBBF24;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
body.home .popup-badge-contador {
  position: absolute;
  top: 10px;
  right: 48px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Setas de navegação da foto */
body.home .popup-nav-foto {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 0;
  color: #0F172A;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, background 0.15s;
  padding: 0;
  line-height: 1;
}
body.home .popup-nav-foto:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}
body.home .popup-nav-foto.ant {
  left: 8px;
}
body.home .popup-nav-foto.prox {
  right: 8px;
}

/* Badges inferiores na foto */
body.home .popup-foto-badges {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
body.home .pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

/* Corpo do Cartão */
body.home .popup-corpo {
  padding: 10px 4px 2px 4px;
  display: flex;
  flex-direction: column;
}
body.home .popup-tipo {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
body.home .popup-preco-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body.home .popup-preco {
  color: #0F172A;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
body.home .popup-btn-fav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  padding: 0;
  flex-shrink: 0;
}
body.home .popup-btn-fav:hover {
  transform: scale(1.08);
  border-color: #CBD5E1;
}
body.home .popup-btn-fav.ativo svg {
  fill: #E52E2E !important;
}

body.home .popup-localizacao {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 4px 0 10px 0;
}
body.home .popup-localizacao svg {
  flex-shrink: 0;
}
body.home .popup-localizacao span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Grid de Especificações */
body.home .popup-specs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 6px;
  margin-bottom: 10px;
}
body.home .popup-spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}
body.home .popup-spec-item:not(:last-child) {
  border-right: 1px solid #E2E8F0;
}
body.home .popup-spec-item svg {
  flex-shrink: 0;
  color: #1E293B;
  width: 17px;
  height: 17px;
}
body.home .popup-spec-item div {
  min-width: 0;
  overflow: hidden;
}
body.home .popup-spec-item b {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.home .popup-spec-item span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748B;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botões de Ação do Card */
body.home .popup-btn-ver {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  background: #E52E2E !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(229, 46, 46, 0.3) !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
}
body.home .popup-btn-ver:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(229, 46, 46, 0.42) !important;
}
body.home .popup-btn-ver .seta-dir,
body.home .popup-btn-whats .seta-dir {
  margin-left: auto;
  opacity: 0.85;
}

body.home .popup-btn-whats {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  background: #00C853 !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(0, 200, 83, 0.26) !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
}
body.home .popup-btn-whats:hover {
  background: #00B248 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0, 200, 83, 0.38) !important;
}

/* Linha secundária (Compartilhar | Ver no mapa) */
body.home .popup-sec-linha {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
  margin-top: 2px;
}
body.home .popup-sec-btn {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
body.home .popup-sec-btn:hover {
  color: #0F172A;
  background: #F1F5F9;
}
body.home .popup-sec-btn svg {
  color: #64748B;
}
body.home .popup-sec-div {
  width: 1px;
  height: 16px;
  background: #E2E8F0;
}

/* Controles de Zoom Leaflet */
body.home .leaflet-top.leaflet-left {
  top: 92px;
  left: 16px;
}
body.home .leaflet-bar {
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #ffffff;
}
body.home .leaflet-bar a {
  background: #ffffff !important;
  color: #0F172A !important;
  border-bottom: 1px solid #F1F5F9 !important;
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  transition: background 0.15s;
}
body.home .leaflet-bar a:hover {
  background: #F8FAFC !important;
}
body.home .leaflet-bar a:last-child {
  border-bottom: none !important;
}

.aviso-resultados { position: fixed; z-index: 1250; top: 76px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 28px)); padding: 14px 18px; border: 1px solid #F4F6F8; border-radius: 12px; background: #F4F6F8; color: #171C21; box-shadow: 0 6px 22px rgba(23,28,33,.2); text-align: center; font-weight: 600; line-height: 1.45; }
.aviso-resultados[hidden] { display: none; }

/* ============================================================
   BARRA FLUTUANTE INFERIOR (FAB) conforme Mockup
   ============================================================ */
.fab-grupo {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 16px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1100;
  pointer-events: auto;
}
.fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 22px;
  border-radius: 9999px;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
}
.fab:hover {
  transform: translateY(-2px);
}
.fab:active {
  transform: scale(0.97);
}
.fab-busca {
  background: #E52E2E !important;
  color: #ffffff !important;
  box-shadow: 0 6px 22px rgba(229, 46, 46, 0.38) !important;
}
.fab-busca:hover {
  box-shadow: 0 8px 26px rgba(229, 46, 46, 0.48) !important;
}
.fab-lista {
  background: #ffffff !important;
  color: #0F172A !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.09) !important;
  padding: 0 16px 0 18px !important;
}
.fab-lista:hover {
  background: #F8FAFC !important;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.14) !important;
}
.fab-lista b, #qtd-lista {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-radius: 20px !important;
  padding: 2px 8px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  margin-left: 2px;
}
.fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #E52E2E;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.fab-gps {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #0F172A !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.09) !important;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  padding: 0 !important;
}
.fab-gps:hover {
  background: #F8FAFC !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.14) !important;
}
.fab-gps:active {
  transform: scale(0.96);
}

/* Botão flutuante WhatsApp com o corretor */
.whats-flutuante { position: fixed; z-index: 1100; bottom: calc(22px + env(safe-area-inset-bottom)); right: 22px; display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; padding: 6px 18px 6px 6px; border-radius: 40px; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42); text-decoration: none; font-weight: 700; font-size: .95rem; transition: transform .18s, box-shadow .18s, background .18s; }
.whats-flutuante:hover { background: #1EBE5A; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.55); }
.whats-flutuante:active { transform: scale(.97); }
.whats-flutuante-avatar-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.whats-flutuante-foto { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; display: block; }
.whats-flutuante-badge-icon { position: absolute; bottom: -2px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: #25D366; border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.whats-flutuante-texto { line-height: 1; }

/* Painéis */
.painel-fundo { position: fixed; inset: 0; background: rgba(23,28,33,.35); z-index: 1200; opacity: 0; pointer-events: none; transition: opacity .2s; }
.painel-fundo.aberto { opacity: 1; pointer-events: auto; }
.painel { position: fixed; z-index: 1300; background: #fff; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(23,28,33,.25); transition: transform .25s ease, opacity .25s; }
.painel-topo { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--borda); }
.painel-topo h2 { margin: 0; font-size: 1.1rem; flex: 1; }
.painel-topo #contador { flex: 1; color: var(--cinza); font-size: .9rem; }
.painel-fechar { border: 0; background: var(--fundo); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--texto); }
.painel-corpo { overflow-y: auto; flex: 1; }
.painel-rodape { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--borda); }
.painel-rodape .btn { flex: 1; padding: 12px; }
.painel-rodape .btn-primario { flex: 2; }

.filtros-painel { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.filtros-painel label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--cinza); }
.filtros-painel input:not([type="checkbox"]), .filtros-painel select { border: 1px solid var(--borda); border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--texto); width: 100%; font-size: 1rem; }
.filtros-painel label.check,
label.check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
  padding: 8px 4px !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;
  transition: background 0.15s !important;
}
.filtros-painel label.check:hover,
label.check:hover {
  background: #F8FAFC !important;
}
.filtros-painel label.check input[type="checkbox"],
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;
}
.filtros-painel label.check span,
label.check span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  cursor: pointer !important;
}
.linha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Desktop: pesquisa flutua à esquerda, lista à direita */
.painel-busca { top: 76px; left: 16px; width: 360px; max-height: calc(100vh - 92px); border-radius: 16px; opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none; }
.painel-busca.aberto { opacity: 1; transform: none; pointer-events: auto; }
.painel-lista { top: 60px; right: 0; bottom: 0; width: 440px; transform: translateX(100%); }
.painel-lista.aberto { transform: none; }
.painel-lista .lista { background: var(--fundo); min-height: 100%; padding: 12px; }

/* Celular e Telas Médias */
@media (max-width: 768px) {
  .topo-home {
    position: fixed;
    top: 10px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 24px) !important;
    max-width: 1200px !important;
    height: auto;
    padding: 10px 14px 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 6px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.9);
    z-index: 1100;
    box-sizing: border-box;
  }
  .topo-home .logo {
    order: 1;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
  }
  .topo-home .logo::after { display: none; }
  .topo-home .logo-nome { display: none; }
  .topo-home .logo-icone {
    height: 30px;
    width: auto;
    max-width: 115px;
    aspect-ratio: 450 / 128;
    object-fit: contain;
    object-position: left center;
    display: block;
    mix-blend-mode: multiply;
  }

  .topo-acoes-dir {
    order: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .btn-anuncie {
    padding: 6px 10px;
    font-size: 0.78rem;
    height: 34px;
    border-radius: 9999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFF5F4;
    border: 1.5px solid #FCDAD5;
    color: #E52E2E;
    font-weight: 700;
    text-decoration: none;
  }
  .btn-anuncie svg { width: 14px; height: 14px; flex-shrink: 0; }
  .btn-anuncie .txt-anuncie-longo, .btn-anuncie .txt-anuncie { display: none !important; }
  .btn-anuncie .txt-anuncie-curto { display: inline !important; }

  .btn-corretor {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #E2E8F0;
    background: #ffffff;
    color: #1E293B;
  }
  .btn-corretor svg { width: 15px; height: 15px; flex-shrink: 0; }
  .btn-corretor .txt-corretor { display: none !important; }

  /* 2ª Linha: Segmented bar com Todos | Comprar | Alugar | Terrenos */
  .topo-home .seg {
    order: 3;
    width: 100%;
    margin-top: 4px;
    display: flex;
    background: #F1F5F9;
    border-radius: 12px;
    padding: 2px;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    gap: 0;
  }
  .topo-home .seg button {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 1px;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: #475569;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.15s ease;
    position: relative;
  }
  .topo-home .seg button:not(:first-child):not(.ativo):not(.ativo + button)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22.5%;
    height: 55%;
    width: 1px;
    background: #D9DEE5;
    display: block !important;
  }
  .topo-home .seg button.ativo {
    background: #E52E2E !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(229, 46, 46, 0.35);
  }

  body.home #mapa { top: 0; }
  .painel-busca, .painel-lista { top: auto; left: 0; right: 0; bottom: 0; width: 100%; border-radius: 18px 18px 0 0; opacity: 1; transform: translateY(105%); padding-bottom: env(safe-area-inset-bottom); }
  .painel-busca { max-height: 88vh; max-height: 88dvh; }
  .painel-lista { height: 80vh; height: 80dvh; }
  .painel-busca.aberto, .painel-lista.aberto { transform: none; }
  .painel-topo::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 2px; background: #F4F6F8; }
  .painel-topo { position: relative; padding-top: 18px; }

  /* Barra de Chips e Controles Leaflet Mobile */
  .barra-zonas {
    top: 118px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 24px) !important;
    max-width: 1200px !important;
    z-index: 1050 !important;
  }
  .chips-zonas-container {
    justify-content: flex-start !important;
  }
  .chip-zona {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  body.home .leaflet-top.leaflet-left {
    top: 164px !important;
    left: 12px !important;
  }
  .aviso-mapa { top: 168px !important; left: 8px !important; width: calc(100% - 16px) !important; transform: none; padding: 10px 12px; font-size: .82rem; }

  /* FAB Mobile */
  .fab-grupo {
    bottom: calc(14px + env(safe-area-inset-bottom, 14px));
    gap: 8px;
  }
  .fab {
    height: 44px;
    padding: 0 16px;
    font-size: 0.88rem;
  }
  .fab-lista {
    padding: 0 12px 0 14px !important;
  }
  .fab-gps {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  /* Popup Mobile */
  body.home #mapa.mappa-previa-aberta .popup-foto-wrap {
    --mappa-popup-foto-altura-base: 175px;
  }
  body.home .leaflet-popup-content {
    width: min(324px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
  }
  body.home .popup {
    max-height: 68vh;
    max-height: 68dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 10px 16px 10px;
  }
  body.home .popup-foto-wrap {
    height: 175px;
  }
  body.home .popup-preco {
    font-size: 1.45rem;
  }

  .whats-flutuante { position: fixed; z-index: 1100; bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; left: auto; padding: 0; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(23, 28, 33, 0.28); background: transparent; }
  .whats-flutuante-foto { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #25D366; display: block; object-fit: cover; }
  .whats-flutuante-badge-icon { position: absolute; bottom: 0; right: 0; width: 18px; height: 18px; border-radius: 50%; background: #25D366; border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; }
  .whats-flutuante-badge-icon svg { width: 12px; height: 12px; }
  .whats-flutuante-texto { display: none; }
  .topo-home .seg button .txt-seg-longo { display: none; }
  .topo-home .seg button .txt-seg-curto { display: inline; }
}
@media (max-width: 360px) {
  .topo-home {
    top: 8px;
    width: calc(100% - 16px) !important;
    padding: 8px 8px;
    gap: 6px 4px;
  }
  .topo-home .logo-icone { height: 30px; width: auto; max-width: 115px; }
  .btn-anuncie { padding: 4px 8px; font-size: 0.75rem; height: 32px; }
  .btn-corretor { width: 32px; height: 32px; }
  .topo-home .seg button { padding: 6px 2px; font-size: 0.74rem; }
  body.home #mapa { top: 0; }
  body.home .leaflet-top.leaflet-left { top: 156px !important; left: 8px !important; }
  .barra-zonas {
    top: 110px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 16px) !important;
    max-width: 1200px !important;
  }
  .chip-zona {
    padding: 6px 11px;
    font-size: 0.75rem;
  }
  .fab-grupo { gap: 6px; }
  .fab { height: 42px; padding: 0 10px; font-size: 0.8rem; }
  .fab-lista { padding: 0 8px 0 10px !important; }
  .fab-gps { width: 42px !important; height: 42px !important; min-width: 42px !important; }
  body.home .leaflet-popup-content { width: min(296px, calc(100vw - 12px)) !important; }
  body.home #mapa.mappa-previa-aberta .popup-foto-wrap { --mappa-popup-foto-altura-base: 155px; }
  body.home .popup-foto-wrap { height: 155px; }
  body.home .popup-preco { font-size: 1.32rem; }
  body.home .popup-spec-item b { font-size: 0.74rem; }
  body.home .popup-spec-item span { font-size: 0.6rem; }
  .aviso-mapa { top: 148px !important; }
  .whats-flutuante { right: 10px; width: 46px; height: 46px; }
  .whats-flutuante-foto { width: 44px; height: 44px; }
}

/* ===== 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;
}


