* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
}

/* ==========================
   NAVBAR
========================== */

.topbar {
  height: 65px;
  background: #081226;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  z-index: 1000;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #16c45b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-area h1 {
  color: white;
  font-size: 26px;
  line-height: 1;
}

.logo-area span {
  color: #94a3b8;
  font-size: 11px;
}

/* MENU DESKTOP */
.desktop-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-menu a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s;
}

.desktop-menu a:hover {
  color: #16c45b;
}

/* AÇÕES DIREITA */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  transition: 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-login {
  border: none;
  background: #16c45b;
  color: white;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  transition: 0.2s;
}

.btn-login:hover {
  background: #13a84e;
}

/* hamburguer só no mobile */
.hamburger-btn {
  display: none;
}

/* ==========================
   DRAWER MENU MOBILE
========================== */

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.menu-overlay.open {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #081226;
  z-index: 2100;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .logo-area h1 {
  font-size: 22px;
}

.close-menu-btn {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
}

.mobile-menu-links a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: 0.2s;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:active {
  background: rgba(255, 255, 255, 0.1);
  color: #16c45b;
}

.mobile-menu-links a i {
  width: 20px;
  text-align: center;
  color: #16c45b;
}

.mobile-menu-login {
  margin: 16px;
  background: #16c45b;
  color: white;
  text-decoration: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s;
}

/* ==========================
   PAINEL DE FILTROS
========================== */

.filtros-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
}

.filtros-overlay.open {
  display: block;
}

.filtros-panel {
  position: fixed;
  top: 65px;
  right: -340px;
  width: 320px;
  background: white;
  border-radius: 0 0 0 20px;
  box-shadow: -4px 4px 30px rgba(0, 0, 0, 0.15);
  z-index: 1600;
  transition: right 0.3s ease;
  padding: 0 0 20px 0;
  overflow: hidden;
}

.filtros-panel.open {
  right: 0;
}

.filtros-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #081226;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.filtros-header button {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filtro-item {
  padding: 14px 20px 0;
}

.filtro-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.filtro-item label i {
  color: #16c45b;
}

.filtro-item select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dde3ee;
  font-size: 15px;
  background: #f8fafc;
  color: #111827;
  outline: none;
  transition: 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2316c45b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.filtro-item select:focus {
  border-color: #16c45b;
  box-shadow: 0 0 0 3px rgba(22, 196, 91, 0.15);
}

.buscar-btn {
  margin: 20px 20px 0;
  width: calc(100% - 40px);
  border: none;
  background: #081226;
  color: white;
  padding: 15px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s;
}

.buscar-btn:hover {
  background: #16c45b;
}

/* ==========================
   CONTAINER + MAPA
========================== */

.container {
  display: flex;
  width: 100%;
  height: calc(100vh - 65px);
  overflow: hidden;
}

#mapa-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}

#map {
  width: 100%;
  height: 100%;
}

.hidden {
  display: none;
}

#container.ativo #mapa-container {
  width: calc(100% - 460px);
}

#comparacao {
  width: 650px;
  min-width: 650px;
  background: white;
  border-left: 1px solid #ddd;
  overflow-y: auto;
  padding: 20px;
}

/* ==========================
   TOPO COMPARAÇÃO
========================== */

.comparacao-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.acoes-comparacao {
  display: flex;
  gap: 10px;
}

.btn-fechar, .btn-limpar {
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.btn-fechar { background: #081226; color: white; }
.btn-limpar { background: #ef4444; color: white; }

/* ==========================
   PLACEHOLDER
========================== */

.placeholder-comparacao {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ==========================
   CARD COMPARAÇÃO
========================== */

.card-comparacao {
  background: white;
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}

.card-comparacao img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

.btn-remover {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.linha-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #475569;
}

.tag-local {
  background: #dcfce7;
  color: #166534;
  padding: 8px 12px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

.score {
  margin-top: 14px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  color: white;
  font-weight: bold;
}

.score.verde  { background: #16a34a; }
.score.laranja{ background: #f59e0b; }
.score.vermelho{ background: #ef4444; }

.badge-score {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
}

.badge-score.verde  { background: #dcfce7; color: #166534; }
.badge-score.laranja{ background: #fef3c7; color: #92400e; }
.badge-score.vermelho{ background: #fee2e2; color: #991b1b; }

.analise-box {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
}

/* ==========================
   POPUP
========================== */

.popup-imovel { width: 280px; }

.popup-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
}

.popup-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tipo-badge {
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.tipo-badge.terreno  { background: #16a34a; }
.tipo-badge.casa     { background: #2563eb; }
.tipo-badge.predio   { background: #dc2626; }
.tipo-badge.Apartamento { background: #08122666; }

.score-popup {
  background: #081226;
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

.popup-imovel h2 { color: #081226; margin-bottom: 10px; }

.popup-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #475569;
}

.valor-m2 {
  color: #16a34a;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
}

.btn-comparar-popup {
  width: 100%;
  border: none;
  background: #16a34a;
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: bold;
  margin-top: 14px;
  cursor: pointer;
}

.finalidade-badge {
  margin-top: 6px;
  background: #111827;
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* ==========================
   LEGENDA
========================== */

.legenda {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 898;
  background: white;
  padding: 8px 14px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
  /* empurrada para cima pelo resumo via variável CSS injetada por JS */
  margin-bottom: 0;
}

/* quando o resumo-cidade existe, a legenda sobe */
.resumo-cidade ~ .legenda,
.legenda.acima-resumo {
  bottom: calc(15px + var(--resumo-h, 100px) + 8px);
}

.legenda div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.leg {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terreno    { background: #16a34a; }
.casa       { background: #2563eb; }
.predio     { background: #dc2626; }
.Apartamento{ background: #08122666; }

/* ==========================
   SESSÃO USUÁRIO LOGADO
========================== */

.user-session-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #16c45b;
  cursor: pointer;
  transition: 0.2s;
}

.topbar-avatar:hover {
  transform: scale(1.08);
  border-color: white;
}

.btn-sair {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  transition: 0.2s;
}

.btn-sair:hover {
  background: #ef4444;
}

/* Mobile drawer — usuário logado */
.mobile-user-session {
  margin: 16px;
  background: rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #16c45b;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-user-session strong {
  display: block;
  color: white;
  font-size: 15px;
  margin-bottom: 8px;
}

.mobile-sair-btn {
  border: none;
  background: #ef4444;
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile drawer — não logado */
.mobile-menu-login {
  margin: 16px;
  background: #16c45b;
  color: white;
  text-decoration: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s;
}

/* ==========================
   BOTÃO SIMULADOR NAVBAR
========================== */

.simulador-nav-btn {
  background: rgba(255, 200, 0, 0.12);
  color: #ffd700;
  border: 1px solid rgba(255, 200, 0, 0.2);
}
.simulador-nav-btn:hover {
  background: #ffd700;
  color: #081226;
}

/* ==========================
   MODAL SIMULADOR
========================== */

.simulador-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 3000;
}
.simulador-overlay.open { display: block; }

.simulador-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  width: min(780px, 96vw);
  max-height: 90vh;
  background: white;
  border-radius: 24px;
  z-index: 3100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
}
.simulador-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.simulador-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 20px;
  background: #081226;
  color: white;
  flex-shrink: 0;
}
.simulador-header h2 {
  font-size: 20px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.simulador-header h2 i { color: #ffd700; }
.simulador-header p { color: #94a3b8; font-size: 13px; }

.simulador-close {
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 17px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simulador-body {
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.simulador-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sim-field { display: flex; flex-direction: column; gap: 8px; }

.sim-field label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sim-field label i { color: #16c45b; }

.input-prefix, .input-suffix {
  display: flex;
  align-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: 0.2s;
}
.input-prefix:focus-within, .input-suffix:focus-within {
  border-color: #16c45b;
  box-shadow: 0 0 0 3px rgba(22,196,91,0.15);
}
.input-prefix span, .input-suffix span {
  padding: 0 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid #dbe3ee;
}
.input-suffix span { border-right: none; border-left: 1px solid #dbe3ee; }
.input-prefix input, .input-suffix input {
  flex: 1;
  border: none;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
  background: transparent;
}

.sistema-toggle { display: flex; gap: 8px; }

.sistema-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #dbe3ee;
  border-radius: 12px;
  background: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  color: #64748b;
}
.sistema-btn.active { border-color: #16c45b; background: #16c45b; color: white; }

.simular-btn {
  grid-column: 1 / -1;
  border: none;
  background: #081226;
  color: white;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s;
}
.simular-btn:hover { background: #16c45b; }

.sim-resultado { display: flex; flex-direction: column; gap: 16px; }

.sim-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.sim-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
}
.sim-card.destaque { background: #081226; border-color: #081226; color: white; }
.sim-card span { font-size: 12px; color: #64748b; display: block; margin-bottom: 6px; }
.sim-card.destaque span { color: #94a3b8; }
.sim-card h2 { font-size: 22px; color: #031633; }
.sim-card.destaque h2 { color: #16c45b; }

.sim-sac-info {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: #92400e;
}

.sim-grafico-wrap { background: #f8fafc; border-radius: 16px; padding: 16px; }

.filtrar-mapa-btn {
  border: none;
  background: #16c45b;
  color: white;
  padding: 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s;
}
.filtrar-mapa-btn:hover { background: #13a84e; transform: translateY(-2px); }

.aviso-simulacao {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 999;
  background: #081226;
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.aviso-simulacao i { color: #ffd700; }
.aviso-simulacao button {
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

@media (max-width: 600px) {
  .simulador-form { grid-template-columns: 1fr; }
  .sim-cards { grid-template-columns: 1fr 1fr; }
  .simulador-body { padding: 18px; }
  .simulador-header { padding: 18px 18px 16px; }
}



/* ==========================
   BADGES ORÇAMENTO NO POPUP
========================== */

.popup-orcamento-ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.popup-orcamento-fora {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Badge no mini-card do mapa */
.mini-badge-orcamento {
  font-size: 8px;
  font-weight: 700;
  color: #16a34a;
  margin-top: 4px;
  background: #dcfce7;
  border-radius: 6px;
  padding: 2px 5px;
  display: inline-block;
}

.rodape {
  height: 60px;
  background: #081226;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 13px;
}

.rodape-links { display: flex; gap: 20px; }
.rodape-links a { color: white; text-decoration: none; }

/* ==========================
   GRID COMPARAÇÃO
========================== */

.cards-comparacao {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.slot-comparacao { width: 100%; }

/* ==========================
   MODO COMPARAÇÃO
========================== */

.modo-info {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #16c45b;
  color: white;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================
   LISTA IMÓVEIS
========================== */

.lista-imoveis {
  width: 420px;
  height: 100vh;
  background: white;
  overflow-y: auto;
  border-right: 1px solid #ddd;
  position: relative;
  z-index: 1000;
}

.lista-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.lista-topo h2 { font-size: 20px; color: #081226; }

.lista-topo button {
  border: none;
  background: #ef4444;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

#cards-imoveis {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-lista {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid #eee;
}

.card-lista:hover { transform: translateY(-3px); }

.card-lista img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-lista-info { padding: 16px; }
.card-lista-info h3 { color: #081226; margin-bottom: 8px; font-size: 20px; }
.card-lista-info p  { color: #475569; margin-bottom: 6px; font-size: 14px; }

/* ==========================
   CARROSSEL POPUP
========================== */

.carrossel { position: relative; width: 100%; margin-bottom: 14px; }
.slide { display: none; }
.slide.ativo { display: block; }

.btn-carrossel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  cursor: pointer;
  font-size: 18px;
}

.btn-carrossel.prev { left: 10px; }
.btn-carrossel.next { right: 10px; }

.btn-favorito {
  border: none;
  background: #ffeded;
  color: #e63946;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s;
}

.btn-favorito:hover {
  transform: scale(1.05);
  background: #ffd6d6;
}

/* ==========================
   MINI CARD MARKER  (novo design)
========================== */

.mini-card-marker { background: transparent !important; border: none !important; }

.mini-card {
  width: 210px;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: 2px solid transparent;
}

.mini-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
  border-color: #16c45b;
}

/* seta cauda */
.mini-card::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: white transparent transparent;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.12));
}

/* destaque borda verde */
.mini-card.destaque { border-color: #16c45b; }
.mini-card.destaque::before {
  content: "Destaque";
  position: absolute;
  top: 8px; left: 8px; z-index: 4;
  background: #16c45b; color: white;
  font-size: 9px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ── FOTO ── */
.mini-foto-wrap {
  position: relative;
  width: 80px;
  flex-shrink: 0;
  overflow: hidden;
  background: #e2e8f0;
}
.mini-foto-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mini-foto-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: #f1f5f9; color: #94a3b8;
}

/* ── BODY ── */
.mini-body {
  display: flex;
  flex-direction: column;
  padding: 9px 10px 8px;
  flex: 1;
  gap: 3px;
}

/* layout interno: foto + body lado a lado */
.mini-inner {
  display: flex;
  height: 80px;
}

/* preço */
.mini-preco {
  font-size: 13px;
  font-weight: 900;
  color: #081226;
  line-height: 1;
  margin-bottom: 2px;
}

/* feats (quartos, banheiros, área) */
.mini-feats {
  display: flex;
  gap: 7px;
  font-size: 9px;
  color: #64748b;
  flex-wrap: wrap;
}
.mini-feats span { display: flex; align-items: center; gap: 3px; }
.mini-feats i    { color: #16c45b; font-size: 8px; }

/* bairro */
.mini-bairro {
  font-size: 9px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* score ring pequeno */
.mini-score-wrap {
  position: absolute;
  top: 7px; right: 7px; z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  background: white;
  border-radius: 8px;
  padding: 2px 3px 0;
}
.mini-score-circle {
  width: 36px; height: 36px; position: relative;
}
.mini-score-circle svg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.mini-score-circle svg circle { fill: none; stroke-width: 3.5; }
.mini-score-circle .msc-bg   { stroke: #e2e8f0; }
.mini-score-circle .msc-fill { stroke-linecap: round; transition: stroke-dashoffset 0.8s; }
.msc-fill.verde   { stroke: #16c45b; }
.msc-fill.laranja { stroke: #f59e0b; }
.msc-fill.vermelho{ stroke: #ef4444; }

.mini-score-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
  color: #081226; line-height: 1;
}

/* label score embaixo */
.mini-score-label {
  text-align: right;
  font-size: 8px;
  font-weight: 700;
  margin-top: 2px;
}
.mini-score-label.verde   { color: #16a34a; }
.mini-score-label.laranja { color: #d97706; }
.mini-score-label.vermelho{ color: #ef4444; }

/* linha inferior: bairro + score-label */
.mini-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}

/* badge orçamento */
.mini-badge-orcamento {
  font-size: 8px; font-weight: 700; color: #16a34a;
  background: #dcfce7; border-radius: 6px;
  padding: 2px 5px; display: inline-block;
}

/* ==========================
   BARRA DE BUSCA NO MAPA
========================== */

.mapa-search-bar {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 900;
  display: flex; align-items: center; gap: 8px;
  background: white;
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  width: 240px;
  border: 1px solid #e2e8f0;
}
.mapa-search-bar i { color: #94a3b8; font-size: 14px; flex-shrink: 0; }
.mapa-search-bar input {
  border: none; outline: none; flex: 1;
  font-size: 13px; color: #334155;
  background: transparent;
}
.mapa-search-bar input::placeholder { color: #94a3b8; }
.mapa-search-bar .mapa-search-icon-right {
  color: #94a3b8; font-size: 13px; cursor: pointer; flex-shrink: 0;
}

/* ==========================
   INDICE HABITYE DA CIDADE (popup mapa)
========================== */

.cidade-index-popup {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: white;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  display: flex; align-items: center; gap: 14px;
  width: 280px;
  border: 1px solid #e2e8f0;
  font-family: Arial, Helvetica, sans-serif;
}
.cidade-index-ring { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.cidade-index-ring svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.cidade-index-ring svg circle { fill: none; stroke-width: 5; }
.cidade-index-ring .cir-bg   { stroke: #e2e8f0; }
.cidade-index-ring .cir-fill { stroke: #16c45b; stroke-linecap: round; }
.cidade-index-ring-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #081226; line-height: 1;
}
.cidade-index-ring-num small { font-size: 9px; color: #94a3b8; font-weight: 500; }
.cidade-index-info { flex: 1; }
.cidade-index-titulo { font-size: 11px; color: #64748b; font-weight: 600; margin-bottom: 4px; }
.cidade-index-stats { display: flex; flex-direction: column; gap: 3px; }
.cidade-index-stat  { font-size: 11px; color: #475569; display: flex; align-items: center; gap: 5px; }
.cidade-index-stat strong { color: #16c45b; font-weight: 800; }
.cidade-index-label { font-size: 11px; font-weight: 700; color: #16a34a; margin-top: 3px; }

/* ==========================
   RESUMO DA CIDADE (canto inferior esq)
========================== */

.resumo-cidade {
  position: absolute;
  bottom: 14px; left: 14px; z-index: 900;
  background: white; border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  border: 1px solid #e2e8f0;
  font-family: Arial, Helvetica, sans-serif;
  min-width: 200px;
  max-width: 280px;
}
.resumo-cidade h4 {
  font-size: 12px; font-weight: 800; color: #081226;
  margin-bottom: 8px;
}
.resumo-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.resumo-stat  { display: flex; flex-direction: column; align-items: flex-start; }
.resumo-stat-val {
  font-size: 14px; font-weight: 900;
  display: flex; align-items: center; gap: 3px;
}
.resumo-stat-val i { font-size: 12px; }
.resumo-stat-desc { font-size: 9px; color: #64748b; font-weight: 500; margin-top: 1px; }
.rv-imoveis  { color: #081226; }
.rv-bairros  { color: #081226; }
.rv-valorizacao { color: #16c45b; }
.rv-liquidez    { color: #16c45b; }

/* ==========================
   SIDEBAR DIREITA (preview imóvel)
========================== */

.mapa-sidebar-direita {
  position: absolute;
  top: 14px; right: 14px;
  bottom: 68px; /* deixa espaço para os botões inferiores */
  z-index: 900;
  width: 290px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid #e2e8f0;
  font-family: Arial, Helvetica, sans-serif;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), opacity 0.28s ease;
}
.mapa-sidebar-direita.hidden-sidebar {
  transform: translateX(310px); opacity: 0; pointer-events: none;
}

.msb-fechar {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  border: none; background: white; color: #334155;
  width: 30px; height: 30px; border-radius: 50%; font-size: 14px;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.msb-fechar:hover { background: #ef4444; color: white; }

/* foto */
.msb-foto { position: relative; height: 160px; overflow: hidden; background: #e2e8f0; flex-shrink: 0; }
.msb-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msb-foto-counter {
  position: absolute; bottom: 8px; left: 10px;
  background: rgba(0,0,0,0.6); color: white;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}
.msb-foto-counter i { font-size: 10px; }
.msb-badge-destaque {
  position: absolute; top: 10px; left: 10px;
  background: #16c45b; color: white;
  font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.3px;
}
.msb-indice-badge {
  position: absolute; top: 10px; right: 40px;
  background: #081226; color: white;
  font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}
.msb-indice-badge strong { color: #16c45b; }

/* corpo */
.msb-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msb-body::-webkit-scrollbar { width: 3px; }
.msb-body::-webkit-scrollbar-thumb { background: #e2e8f0; }

.msb-preco { font-size: 22px; font-weight: 900; color: #081226; }

.msb-atributos {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #64748b;
}
.msb-atributos span { display: flex; align-items: center; gap: 4px; }
.msb-atributos i { color: #16c45b; }

.msb-local { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 5px; }
.msb-local i { color: #16c45b; }

/* insights */
.msb-insights-titulo {
  font-size: 12px; font-weight: 800; color: #081226;
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.msb-insights-titulo i { color: #16c45b; }
.msb-insights-lista { display: flex; flex-direction: column; gap: 5px; }
.msb-insight-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: #475569; padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}
.msb-insight-row:last-child { border-bottom: none; }
.msb-insight-row-left { display: flex; align-items: center; gap: 6px; }
.msb-insight-row-left i { color: #94a3b8; width: 14px; text-align: center; }
.msb-insight-val { font-weight: 700; }
.msb-insight-val.verde   { color: #16a34a; }
.msb-insight-val.azul    { color: #2563eb; }
.msb-insight-val.checked { color: #16c45b; font-size: 13px; }

/* botões */
.msb-btn-detalhe {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: #16c45b; color: white; border: none;
  padding: 13px; border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: 0.2s; text-decoration: none;
  box-shadow: 0 4px 14px rgba(22,196,91,0.28);
}
.msb-btn-detalhe:hover { background: #13a84e; transform: translateY(-1px); }

.msb-btn-salvar {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; background: white; color: #475569; border: 1px solid #e2e8f0;
  padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: 0.2s;
}
.msb-btn-salvar:hover { background: #f8fafc; border-color: #cbd5e1; }

/* ==========================
   BOTÕES INFERIORES DO MAPA (Camadas / Heatmap / Explorar)
========================== */

.mapa-btns-baixo {
  position: absolute;
  bottom: 14px; right: 14px; z-index: 901;
  display: flex; gap: 8px;
}
.mapa-btn-baixo {
  background: white; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; transition: 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  font-family: Arial, Helvetica, sans-serif;
  min-width: 64px;
}
.mapa-btn-baixo:hover { border-color: #16c45b; background: #f0fdf4; }
.mapa-btn-baixo i { font-size: 16px; color: #16c45b; }
.mapa-btn-baixo span { font-size: 10px; font-weight: 700; color: #334155; }

/* ==========================
   RESPONSIVO
========================== */

@media (max-width: 900px) {

  /* esconde menu desktop e label "Filtros" */
  .desktop-menu { display: none; }
  .desktop-label { display: none; }
  .hamburger-btn { display: flex; }

  /* esconde botão login do topbar no mobile (fica no drawer) */
  .btn-login { display: none; }

  /* filtros panel ocupa largura total no mobile */
  .filtros-panel {
    width: 100%;
    right: -100%;
    border-radius: 0;
  }

  /* lista full width */
  .lista-imoveis {
    width: 100%;
    position: fixed;
    top: 65px;
    left: 0;
    height: calc(100vh - 65px);
    z-index: 1200;
  }

  /* comparação full width */
  #comparacao {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100% !important;
    min-width: unset;
    height: calc(100vh - 65px);
    z-index: 1200;
  }

  #container.ativo #mapa-container {
    width: 100%;
  }

  .cards-comparacao {
    grid-template-columns: 1fr;
  }

  .legenda {
    font-size: 11px;
    gap: 10px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .logo-area h1 { font-size: 22px; }
  .logo-area span { display: none; }
}

@media (max-width: 900px) {
  /* Novos elementos do mapa ficam ocultos no mobile */
  .mapa-sidebar-direita  { display: none !important; }
  .cidade-index-popup    { display: none !important; }
  .mapa-btns-baixo       { display: none !important; }
  .resumo-cidade         { display: none !important; }
  .mapa-search-bar       { width: calc(100vw - 80px); max-width: 280px; }
}

/* ==========================
   BARRA COMPARAÇÃO MOBILE
========================== */
.barra-comparacao-mobile {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: #081226; color: white; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 3px solid #16c45b; box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.barra-comparacao-mobile.hidden { display: none; }
.barra-comp-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.barra-comp-num { background: #16c45b; color: white; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 20px; flex-shrink: 0; }
.barra-comp-info strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-comp-info span { font-size: 12px; color: #94a3b8; }
.barra-comp-acoes { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.barra-comp-dica { font-size: 11px; color: #16c45b; font-weight: 600; white-space: nowrap; }
.barra-comp-ver { border: none; background: #16c45b; color: white; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.barra-comp-cancelar { border: none; background: rgba(255,255,255,0.1); color: white; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; }

/* ==========================
   POPUP RENOVADO
========================== */
.popup-stats-row { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; font-size: 12px; color: #64748b; }
.btn-whatsapp-popup {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: #25d366; color: white; border: none;
  padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; margin-top: 10px; transition: 0.2s;
}
.btn-whatsapp-popup:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn-compartilhar-popup {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: #f1f5f9; color: #334155; border: none;
  padding: 11px; border-radius: 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 8px; transition: 0.2s;
}
.btn-compartilhar-popup:hover { background: #e2e8f0; }

/* CARACTERÍSTICAS NO POPUP */
.pop-caracteristicas { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 12px; background: #f8fafc; border-radius: 12px; }
.pop-feat { display: flex; align-items: center; gap: 5px; background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: #475569; font-weight: 600; }
.pop-feat i { color: #16c45b; font-size: 11px; }

/* ==========================
   MODAL COMPARTILHAR
========================== */
#modal-compartilhar { display: none; position: fixed; inset: 0; z-index: 9999; }
#modal-compartilhar.open { display: block; }
.compartilhar-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.compartilhar-box {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: white; border-radius: 24px 24px 0 0; padding: 28px 24px 40px;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.compartilhar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.compartilhar-header h3 { font-size: 18px; color: #081226; display: flex; align-items: center; gap: 10px; }
.compartilhar-header h3 i { color: #16c45b; }
.compartilhar-header button { border: none; background: #f1f5f9; color: #334155; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.compartilhar-titulo { color: #64748b; font-size: 13px; margin-bottom: 22px; }
.compartilhar-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.comp-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 10px; border-radius: 16px; text-decoration: none; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
.comp-btn i { font-size: 26px; }
.comp-btn.whatsapp  { background: #e7faea; color: #128c7e; }
.comp-btn.telegram  { background: #e8f4fd; color: #0088cc; }
.comp-btn.facebook  { background: #e8eefb; color: #1877f2; }
.comp-btn.twitter   { background: #f0f0f0; color: #000; }
.comp-btn.copiar    { background: #f1f5f9; color: #334155; }
.comp-btn:hover { transform: translateY(-3px); filter: brightness(0.95); }
@media (min-width: 600px) {
  .compartilhar-box { bottom: auto; top: 50%; left: 50%; right: auto; transform: translate(-50%,-50%); width: min(460px, 95vw); border-radius: 24px; animation: none; }
}

/* ==========================
   GALERIA TELA CHEIA
========================== */
#galeria-modal { display: none; position: fixed; inset: 0; z-index: 4000; background: #f4f7fb; flex-direction: column; overflow: hidden; }
#galeria-modal.open { display: flex; }
.galeria-topbar { background: #081226; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 16px; flex-shrink: 0; z-index: 10; box-shadow: 0 2px 12px rgba(0,0,0,0.2); position: relative; }
.galeria-logo { display: flex; align-items: center; gap: 10px; color: white; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.galeria-logo i { color: #16c45b; font-size: 20px; }
.galeria-filtros { display: flex; align-items: center; gap: 10px; flex: 1; overflow-x: auto; }
.gf-item { display: flex; flex-direction: column; gap: 2px; }
.gf-item label { font-size: 10px; color: #94a3b8; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.gf-item select, .gf-item input { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; color: white; padding: 7px 12px; font-size: 13px; outline: none; min-width: 120px; }
.gf-item input { min-width: 100px; }
.gf-item select:focus, .gf-item input:focus { border-color: #16c45b; }
.gf-item select option { background: #081226; color: white; }
.gf-item input::placeholder { color: #64748b; }
.gf-btn-buscar { border: none; background: #16c45b; color: white; padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0; transition: 0.2s; }
.gf-btn-buscar:hover { background: #13a84e; }
.gf-filtro-toggle { display: none; border: none; background: rgba(255,255,255,0.1); color: white; padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; align-items: center; gap: 7px; }
.galeria-fechar { border: none; background: rgba(255,255,255,0.1); color: white; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.galeria-fechar:hover { background: #ef4444; }
.galeria-filtros-mobile { position: absolute; top: 64px; left: 0; right: 0; background: #081226; z-index: 200; }
.galeria-filtros-mobile.hidden { display: none; }
.gfm-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.gfm-header h3 { color: white; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.gfm-header h3 i { color: #16c45b; }
.gfm-header button { border: none; background: rgba(255,255,255,0.1); color: white; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.gfm-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.gfm-body .gf-item select, .gfm-body .gf-item input { width: 100%; }
.gfm-body .gf-btn-buscar { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
.galeria-resultados { flex: 1; overflow-y: auto; padding: 24px; display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; align-content: start; }
.galeria-card { background: white; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.07); cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; }
.galeria-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.gc-img-wrap { position: relative; width: 100%; height: 160px; overflow: hidden; }
.gc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.galeria-card:hover .gc-img-wrap img { transform: scale(1.04); }
.gc-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.gc-tipo { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; color: white; background: #2563eb; }
.gc-tipo.casa { background: #2563eb; } .gc-tipo.apartamento { background: #7c3aed; } .gc-tipo.terreno { background: #16a34a; } .gc-tipo.predio { background: #dc2626; }
.gc-finalidade { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,0.55); color: white; }
.gc-tempo { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.6); color: white; font-size: 10px; padding: 3px 8px; border-radius: 8px; }
.gc-acoes-hover { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: 0.2s; }
.galeria-card:hover .gc-acoes-hover { opacity: 1; }
.gc-acoes-hover button { border: none; background: rgba(255,255,255,0.9); color: #334155; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.gc-info { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.gc-info h3 { font-size: 18px; color: #081226; font-weight: 800; }
.gc-titulo { font-size: 12px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-local { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 4px; }
.gc-local i { color: #16c45b; font-size: 10px; }
.gc-dados { display: flex; gap: 10px; font-size: 11px; color: #94a3b8; margin-top: 4px; }
.gc-rodape { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.gc-stats { font-size: 12px; color: #94a3b8; }
.gc-mapa-btn { border: none; background: #16c45b; color: white; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.galeria-paginacao { flex-shrink: 0; background: white; border-top: 1px solid #e2e8f0; padding: 14px 24px; }
.paginacao-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.paginacao-wrap > span { font-size: 13px; color: #64748b; }
.pag-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.pag-btn { border: 1px solid #dde3ee; background: white; color: #334155; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: 0.2s; }
.pag-btn.active, .pag-btn:hover { background: #081226; color: white; border-color: #081226; }
.galeria-vazio { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: #94a3b8; }
.galeria-vazio i { font-size: 48px; display: block; margin-bottom: 16px; color: #cbd5e1; }
.galeria-loading { grid-column: 1/-1; text-align: center; padding: 80px; color: #64748b; }
.galeria-card-lista { grid-column: 1/-1; background: white; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.07); display: flex; cursor: pointer; transition: 0.2s; border: 1px solid #f1f5f9; }
.galeria-card-lista:hover { transform: translateY(-2px); }
.galeria-card-lista img { width: 130px; min-width: 130px; height: 130px; object-fit: cover; }
.gcl-info { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gcl-topo { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gcl-tipo { padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; color: white; background: #2563eb; }
.gcl-tipo.casa{background:#2563eb;} .gcl-tipo.apartamento{background:#7c3aed;} .gcl-tipo.terreno{background:#16a34a;} .gcl-tipo.predio{background:#dc2626;}
.gcl-finalidade { padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; background: #f1f5f9; color: #334155; }
.gcl-tempo { font-size: 10px; color: #94a3b8; }
.gcl-info h3 { font-size: 17px; color: #081226; font-weight: 800; margin-top: 2px; }
.gcl-titulo { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcl-local { font-size: 12px; color: #64748b; }
.gcl-dados { display: flex; gap: 8px; font-size: 11px; color: #94a3b8; flex-wrap: wrap; }
.gcl-acoes { display: flex; gap: 8px; margin-top: 8px; }
.gcl-btn-mapa { flex: 1; border: none; background: #081226; color: white; padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.gcl-btn-comp { border: none; background: #f1f5f9; color: #334155; width: 36px; border-radius: 10px; cursor: pointer; font-size: 14px; }
@media (max-width: 1400px) { .galeria-resultados { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 1100px) { .galeria-resultados { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px) {
  .galeria-filtros { display: none; }
  .gf-filtro-toggle { display: flex; }
  .galeria-resultados { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .galeria-topbar { padding: 0 14px; gap: 10px; }
}
/* CHECK-CARD COM ÍCONE */
.check-card i { color: #16c45b; font-size: 16px; width: 20px; text-align: center; }


/*explicacao score*/

.perfil-score{

  margin-top: 10px;

  font-size: 13px;

  color: #94a3b8;

  font-weight: 600;

}

.mini-analise{

  margin-top: 14px;

  padding: 12px;

  border-radius: 12px;

  background: rgba(255,255,255,0.05);

  color: #d1d5db;

  font-size: 13px;

  line-height: 1.5;

  border: 1px solid rgba(255,255,255,0.08);

}




/* ============================================
   LANDING PAGE
============================================ */

.lp-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: white;
  overflow-x: hidden;
}

/* NAV */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.lp-logo-icon {
  width: 42px;
  height: 42px;
  background: #16c45b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.lp-logo-nome {
  font-size: 22px;
  font-weight: 800;
  color: #081226;
  display: block;
  line-height: 1;
}

.lp-logo-sub {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.lp-nav-links {
  display: flex;
  gap: 32px;
}

.lp-nav-links a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s;
}

.lp-nav-links a:hover { color: #16c45b; }

.lp-nav-acoes {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lp-btn-entrar {
  color: #081226;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  transition: 0.2s;
}

.lp-btn-entrar:hover { background: #f1f5f9; }

.lp-btn-cadastro {
  background: #16c45b;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 10px;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}

.lp-btn-cadastro:hover { background: #13a84e; }

.lp-hamburger {
  display: none;
  border: none;
  background: #f1f5f9;
  color: #334155;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.lp-mobile-menu {
  background: white;
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.lp-mobile-menu a {
  color: #334155;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
}

.lp-mobile-menu.hidden { display: none; }

/* HERO */
.lp-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 40px 60px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 50%, #e8f4fd 100%);
  min-height: calc(100vh - 70px);
  position: relative;
  overflow: hidden;
}

/* Círculos decorativos */
.lp-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,196,91,0.08) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.lp-hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
  pointer-events: none;
}

.lp-hero-content {
  flex: 1;
  max-width: 580px;
  position: relative;
  z-index: 1;
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: white;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(22,196,91,0.1);
}

.lp-hero-badge i { color: #fbbf24; }

.lp-hero-titulo {
  font-size: 52px;
  font-weight: 900;
  color: #081226;
  line-height: 1.1;
  margin-bottom: 20px;
}

.lp-destaque {
  color: #16c45b;
  position: relative;
}

.lp-hero-sub {
  font-size: 18px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

/* BUSCA */
.lp-busca {
  display: flex;
  gap: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.lp-busca-campo {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid #f1f5f9;
}

.lp-busca-campo i {
  color: #16c45b;
  font-size: 15px;
  flex-shrink: 0;
}

.lp-busca-campo select {
  border: none;
  outline: none;
  font-size: 14px;
  color: #334155;
  background: transparent;
  width: 100%;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
}

.lp-busca-btn {
  border: none;
  background: #16c45b;
  color: white;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
  white-space: nowrap;
}

.lp-busca-btn:hover { background: #13a84e; }

/* TAGS RÁPIDAS */
.lp-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lp-tags span {
  background: white;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.lp-tags span:hover {
  border-color: #16c45b;
  color: #16c45b;
  background: #f0fdf4;
}

/* CARD FLUTUANTE */
.lp-hero-card {
  position: relative;
  width: 340px;
  flex-shrink: 0;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 1;
  animation: lp-float 4s ease-in-out infinite;
}

@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.lp-card-img {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #081226 0%, #0f2a5c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-card-placeholder { font-size: 60px; color: rgba(255,255,255,0.15); }

.lp-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #16c45b;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.lp-card-score {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #081226;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.lp-card-body { padding: 20px; }

.lp-card-preco {
  font-size: 26px;
  font-weight: 900;
  color: #081226;
  margin-bottom: 8px;
}

.lp-card-local {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lp-card-local i { color: #16c45b; }

.lp-card-feats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #475569;
  margin-bottom: 12px;
}

.lp-card-feats span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lp-card-feats i { color: #16c45b; }

.lp-card-m2 {
  font-size: 18px;
  font-weight: 700;
  color: #16c45b;
}

.lp-card-pulse {
  position: absolute;
  bottom: -6px;
  right: 30px;
  width: 14px;
  height: 14px;
  background: #16c45b;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(22,196,91,0.5);
  animation: lp-pulse 2s infinite;
}

@keyframes lp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,196,91,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(22,196,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,196,91,0); }
}

/* STATS */
.lp-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 50px 40px;
  background: #081226;
}

.lp-stat {
  flex: 1;
  text-align: center;
  padding: 20px;
}

.lp-stat h2 {
  font-size: 36px;
  font-weight: 900;
  color: #16c45b;
  margin-bottom: 6px;
}

.lp-stat span {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

.lp-stat-div {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* COMO FUNCIONA */
.lp-como {
  padding: 80px 40px;
  background: white;
}

.lp-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.lp-section-header h2 {
  font-size: 38px;
  font-weight: 900;
  color: #081226;
  margin-bottom: 12px;
}

.lp-section-header p {
  font-size: 17px;
  color: #64748b;
}

.lp-passos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.lp-passo {
  flex: 1;
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.lp-passo-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: #16c45b;
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-passo-icon {
  width: 70px;
  height: 70px;
  background: #f0fdf4;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #16c45b;
  margin: 20px auto 16px;
}

.lp-passo h3 {
  font-size: 18px;
  font-weight: 700;
  color: #081226;
  margin-bottom: 10px;
}

.lp-passo p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.lp-passo-seta {
  color: #cbd5e1;
  font-size: 22px;
  flex-shrink: 0;
  padding-bottom: 20px;
}

/* FEATURES */
.lp-features {
  padding: 80px 40px;
  background: #f8fafc;
}

.lp-section-header-dark h2 { color: #081226; }

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.lp-feature-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  transition: 0.2s;
}

.lp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.lp-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.lp-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #081226;
  margin-bottom: 8px;
}

.lp-feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* CTA */
.lp-cta {
  padding: 80px 40px;
  background: linear-gradient(135deg, #081226 0%, #0f2a5c 100%);
  text-align: center;
}

.lp-cta-content { max-width: 600px; margin: 0 auto; }

.lp-cta h2 {
  font-size: 38px;
  font-weight: 900;
  color: white;
  margin-bottom: 14px;
}

.lp-cta p {
  font-size: 17px;
  color: #94a3b8;
  margin-bottom: 36px;
}

.lp-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.lp-cta-principal {
  background: #16c45b;
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
}

.lp-cta-principal:hover { background: #13a84e; transform: translateY(-2px); }

.lp-cta-secundario {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.lp-cta-secundario:hover { background: rgba(255,255,255,0.15); }

/* FOOTER */
.lp-footer {
  background: #050e1a;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.lp-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.lp-footer p { color: #64748b; font-size: 13px; }

.lp-footer-links {
  display: flex;
  gap: 20px;
}

.lp-footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}
.lp-footer-links a:hover { color: #16c45b; }

/* CONTROLE LANDING x MAPA via classes no body */

/* Estado inicial: landing visível, app escondido */
body:not(.modo-mapa) > .topbar,
body:not(.modo-mapa) > .menu-overlay,
body:not(.modo-mapa) > #mobile-menu,
body:not(.modo-mapa) > .filtros-overlay,
body:not(.modo-mapa) > #filtros-panel,
body:not(.modo-mapa) > #container,
body:not(.modo-mapa) > .rodape,
body:not(.modo-mapa) > #simulador-overlay,
body:not(.modo-mapa) > .simulador-modal {
  display: none !important;
}

/* Estado mapa: landing escondida */
body.modo-mapa > #landing-page {
  display: none !important;
}

/* RESPONSIVO LANDING */
@media (max-width: 1024px) {
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-hero-card { width: 280px; }
}

@media (max-width: 768px) {
  .lp-nav { padding: 0 20px; }
  .lp-nav-links, .lp-nav-acoes { display: none; }
  .lp-hamburger { display: flex; }

  .lp-hero {
    flex-direction: column;
    padding: 40px 20px;
    min-height: auto;
    text-align: center;
  }

  .lp-hero-titulo { font-size: 34px; }
  .lp-hero-sub { font-size: 15px; }

  .lp-busca {
    flex-direction: column;
    border-radius: 14px;
  }
  .lp-busca-campo { border-right: none; border-bottom: 1px solid #f1f5f9; }
  .lp-busca-btn   { padding: 16px; border-radius: 0 0 14px 14px; justify-content: center; }

  .lp-tags { justify-content: center; }

  .lp-hero-card { width: 100%; max-width: 360px; animation: none; }

  .lp-stats { flex-wrap: wrap; gap: 0; padding: 40px 20px; }
  .lp-stat { min-width: 50%; }
  .lp-stat-div { display: none; }
  .lp-stat h2 { font-size: 28px; }

  .lp-como, .lp-features, .lp-cta { padding: 50px 20px; }

  .lp-passos { flex-direction: column; gap: 20px; }
  .lp-passo-seta { transform: rotate(90deg); }

  .lp-features-grid { grid-template-columns: 1fr; }

  .lp-section-header h2 { font-size: 28px; }
  .lp-cta h2 { font-size: 28px; }

  .lp-footer { flex-direction: column; text-align: center; padding: 24px 20px; }
  .lp-footer-links { justify-content: center; }
}

/* ==========================
   AVISO SEM IMÓVEIS
========================== */
.aviso-sem-imoveis {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  background: white;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  font-size: 15px;
  color: #475569;
  font-weight: 600;
  min-width: 280px;
}
.aviso-sem-imoveis i {
  font-size: 40px;
  color: #cbd5e1;
}
.aviso-sem-imoveis button {
  border: none;
  background: #16c45b;
  color: white;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.aviso-sem-imoveis button:hover { background: #13a84e; }

/* ==========================
   MODAL GRANDE DO IMÓVEL
========================== */
#modal-imovel-detalhe { display:none; position:fixed; inset:0; z-index:5000; }
#modal-imovel-detalhe.open { display:block; }

.mid-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); }

.mid-box {
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:min(1080px,96vw); max-height:92vh;
  background:white; border-radius:24px;
  overflow:hidden; display:flex;
  box-shadow:0 30px 80px rgba(0,0,0,0.35);
  animation:midEntra 0.28s cubic-bezier(0.22,1,0.36,1);
}
@keyframes midEntra {
  from { opacity:0; transform:translate(-50%,-46%) scale(0.96); }
  to   { opacity:1; transform:translate(-50%,-50%) scale(1); }
}

/* ── FECHAR ── */
.mid-fechar {
  position:absolute; top:14px; right:14px; z-index:20;
  border:none; background:white; color:#334155;
  width:38px; height:38px; border-radius:50%; font-size:17px;
  cursor:pointer; box-shadow:0 2px 10px rgba(0,0,0,0.18);
  display:flex; align-items:center; justify-content:center; transition:0.2s;
}
.mid-fechar:hover { background:#ef4444; color:white; transform:scale(1.08); }

/* ── COLUNA ESQUERDA (galeria) ── */
.mid-esquerda {
  width:52%; flex-shrink:0; display:flex; flex-direction:column; background:#000; position:relative;
}

/* badges flutuantes sobre a foto */
.mid-foto-badges {
  position:absolute; top:14px; left:14px; right:60px; z-index:5;
  display:flex; align-items:center; gap:8px;
}
.mid-foto-badge-novo {
  background:#16c45b; color:white; padding:5px 12px 5px 10px;
  border-radius:20px; font-size:12px; font-weight:700;
  display:flex; align-items:center; gap:5px;
}
.mid-foto-badge-novo i { font-size:11px; }

.mid-foto-favoritar {
  margin-left:auto; background:white; border:none;
  padding:6px 12px; border-radius:20px; font-size:12px; font-weight:700;
  cursor:pointer; display:flex; align-items:center; gap:6px;
  color:#334155; transition:0.2s; box-shadow:0 2px 8px rgba(0,0,0,0.12);
}
.mid-foto-favoritar:hover { background:#fee2e2; color:#ef4444; }

/* score flutuante no canto inferior esq da foto */
.mid-foto-score-circle {
  position:absolute; bottom:90px; left:16px; z-index:5;
  background:rgba(8,18,38,0.88); backdrop-filter:blur(6px);
  border-radius:16px; padding:12px 16px;
  display:flex; align-items:center; gap:14px; min-width:260px;
  border:1px solid rgba(255,255,255,0.08);
}
.mid-score-ring {
  position:relative; width:66px; height:66px; flex-shrink:0;
}
.mid-score-ring svg {
  position:absolute; top:0; left:0; width:100%; height:100%;
  transform:rotate(-90deg);
}
.mid-score-ring svg circle { fill:none; stroke-width:5; }
.mid-score-ring .ring-bg { stroke:rgba(255,255,255,0.12); }
.mid-score-ring .ring-fill { stroke:#16c45b; stroke-linecap:round; transition:stroke-dashoffset 1s ease; }
.mid-score-ring-num {
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  font-size:20px; font-weight:900; color:white; line-height:1;
}
.mid-score-ring-num small { font-size:9px; color:#94a3b8; font-weight:500; margin-top:1px; }
.mid-foto-score-info { flex:1; }
.mid-foto-score-titulo { font-size:11px; color:#94a3b8; font-weight:600; margin-bottom:2px; letter-spacing:0.5px; text-transform:uppercase; }
.mid-foto-score-label { font-size:15px; font-weight:800; color:#16c45b; margin-bottom:3px; }
.mid-foto-score-desc { font-size:11px; color:#cbd5e1; line-height:1.4; }

.mid-foto-stats-bar {
  position:absolute; bottom:90px; right:14px; z-index:5;
  background:rgba(8,18,38,0.88); backdrop-filter:blur(6px);
  border-radius:12px; padding:10px 12px;
  display:flex; flex-direction:column; gap:6px; min-width:160px;
  border:1px solid rgba(255,255,255,0.08);
}
.mid-foto-stat-row {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  font-size:12px; color:#94a3b8;
}
.mid-foto-stat-row i { color:#16c45b; width:14px; text-align:center; flex-shrink:0; }
.mid-foto-stat-val { font-weight:700; color:white; }
.mid-foto-stat-val.verde { color:#16c45b; }

.mid-foto-principal { flex:1; position:relative; overflow:hidden; }
.mid-foto-principal img { width:100%; height:100%; object-fit:cover; display:block; max-height:520px; }

.mid-nav {
  position:absolute; top:50%; transform:translateY(-50%);
  border:none; background:rgba(0,0,0,0.5); color:white;
  width:42px; height:42px; border-radius:50%; font-size:22px;
  cursor:pointer; display:flex; align-items:center; justify-content:center; transition:0.2s;
  backdrop-filter:blur(4px);
}
.mid-nav:hover { background:rgba(0,0,0,0.85); transform:translateY(-50%) scale(1.05); }
.mid-nav.prev { left:12px; } .mid-nav.next { right:12px; }

.mid-thumbs {
  display:flex; gap:6px; padding:10px 12px; background:#0d0d0d; overflow-x:auto;
}
.mid-thumbs::-webkit-scrollbar { height:3px; }
.mid-thumbs::-webkit-scrollbar-thumb { background:#16c45b; border-radius:2px; }

.mid-thumb {
  width:74px; height:52px; border-radius:8px; overflow:hidden;
  flex-shrink:0; cursor:pointer; border:2px solid transparent;
  transition:0.2s; opacity:0.6; position:relative;
}
.mid-thumb.active { border-color:#16c45b; opacity:1; }
.mid-thumb:hover { opacity:1; border-color:rgba(22,196,91,0.5); }
.mid-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.mid-thumb-mais {
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  background:rgba(255,255,255,0.08); color:white; font-size:13px; font-weight:800;
  gap:2px;
}
.mid-thumb-mais small { font-size:9px; color:#94a3b8; font-weight:500; }

.mid-foto-loc-bar {
  display:flex; gap:16px; padding:10px 14px; background:#0d0d0d;
  border-top:1px solid rgba(255,255,255,0.05);
  font-size:12px; color:#94a3b8;
}
.mid-foto-loc-bar span { display:flex; align-items:center; gap:5px; }
.mid-foto-loc-bar i { color:#16c45b; }

/* ── COLUNA DIREITA ── */
.mid-direita {
  flex:1; overflow-y:auto; padding:24px 24px 20px;
  display:flex; flex-direction:column; gap:14px; background:white;
}
.mid-direita::-webkit-scrollbar { width:4px; }
.mid-direita::-webkit-scrollbar-thumb { background:#e2e8f0; border-radius:2px; }

/* TOPO */
.mid-topo { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.mid-badges { display:flex; gap:8px; flex-wrap:wrap; }

.mid-badge-tipo {
  padding:6px 14px; border-radius:20px; font-size:12px; font-weight:700; color:white;
  background:#2563eb;
}
.mid-badge-tipo.casa{background:#2563eb;} .mid-badge-tipo.apartamento{background:#7c3aed;}
.mid-badge-tipo.terreno{background:#16a34a;} .mid-badge-tipo.predio{background:#dc2626;}

.mid-badge-fin {
  padding:6px 14px; border-radius:20px; font-size:12px; font-weight:700;
  background:#1e293b; color:white;
}

.mid-score {
  background:#f8fafc; border:1px solid #e2e8f0; color:#081226;
  padding:6px 14px; border-radius:20px; font-size:12px; font-weight:700;
  display:flex; align-items:center; gap:6px;
}
.mid-score strong { color:#16c45b; font-size:15px; }

/* PREÇO */
.mid-preco { font-size:34px; font-weight:900; color:#081226; line-height:1; letter-spacing:-0.5px; }

.mid-local { display:flex; gap:16px; color:#64748b; font-size:13px; flex-wrap:wrap; align-items:center; }
.mid-local i { color:#16c45b; margin-right:4px; }

/* VALOR M2 CARD */
.mid-m2-card {
  background:#f0fdf4; border:1px solid #bbf7d0; border-radius:12px;
  padding:10px 16px;
}
.mid-m2-card label { display:block; font-size:11px; color:#64748b; font-weight:600; margin-bottom:3px; text-transform:uppercase; letter-spacing:0.4px; }
.mid-m2 { font-size:20px; font-weight:800; color:#16a34a; }

/* ORÇAMENTO */
.mid-orcamento { padding:8px 14px; border-radius:10px; font-size:13px; font-weight:600; display:flex; align-items:center; gap:7px; }
.mid-orcamento.ok   { background:#dcfce7; color:#166534; }
.mid-orcamento.fora { background:#fee2e2; color:#991b1b; }

/* FEATS */
.mid-feats { display:flex; flex-wrap:wrap; gap:7px; }
.mid-feat {
  display:flex; align-items:center; gap:6px;
  background:#f8fafc; border:1px solid #e2e8f0;
  border-radius:10px; padding:7px 12px;
  font-size:13px; font-weight:600; color:#334155;
}
.mid-feat i { color:#16c45b; font-size:13px; }

/* TAGS (esquina, avenida) */
.mid-tag {
  background:#f0fdf4; border:1px solid #bbf7d0; border-radius:12px;
  padding:9px 16px; font-size:14px; font-weight:600; color:#166534;
  display:flex; align-items:center; gap:8px;
}
.mid-tag i { color:#16c45b; }

/* INSIGHTS HABITYE */
.mid-insights-titulo {
  display:flex; align-items:center; gap:8px;
  font-size:14px; font-weight:800; color:#081226;
  margin-bottom:10px;
}
.mid-insights-titulo i { color:#16c45b; }
.mid-insights-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.mid-insight-card {
  background:#f0fdf4; border:1px solid #bbf7d0; border-radius:12px;
  padding:10px 12px; transition:0.2s;
}
.mid-insight-card:hover { border-color:#16c45b; background:#ecfdf5; }
.mid-insight-card strong { display:block; font-size:12px; font-weight:800; color:#166534; margin-bottom:3px; }
.mid-insight-card p { font-size:11px; color:#4ade80; line-height:1.4; margin-bottom:6px; }
.mid-insight-card i.icon-bottom { font-size:14px; color:#16c45b; display:block; }

/* SCORE BADGE */
.mid-score-badge {
  padding:9px 16px; border-radius:12px; font-size:13px; font-weight:700;
  text-align:center; color:white; display:flex; align-items:center; justify-content:center; gap:6px;
}
.mid-score-badge.verde   { background:linear-gradient(135deg,#16a34a,#15803d); }
.mid-score-badge.laranja { background:linear-gradient(135deg,#f59e0b,#d97706); }
.mid-score-badge.vermelho{ background:linear-gradient(135deg,#ef4444,#dc2626); }

/* STATS BAR */
.mid-stats {
  display:flex; align-items:center; justify-content:space-between;
  font-size:13px; color:#64748b;
  padding:10px 0; border-top:1px solid #f1f5f9; border-bottom:1px solid #f1f5f9;
}
.mid-stats .btn-favorito { border:none; background:none; cursor:pointer; font-size:13px; color:#64748b; }

/* BOTÕES */
.mid-btn-whatsapp {
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; background:#16c45b; color:white; border:none;
  padding:16px; border-radius:14px; font-size:16px; font-weight:700;
  cursor:pointer; text-decoration:none; transition:0.2s;
  box-shadow:0 4px 16px rgba(22,196,91,0.3);
}
.mid-btn-whatsapp:hover { background:#13a84e; transform:translateY(-2px); box-shadow:0 8px 24px rgba(22,196,91,0.35); }

.mid-btn-compartilhar {
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; background:#f8fafc; color:#334155; border:1px solid #e2e8f0;
  padding:12px; border-radius:14px; font-size:14px; font-weight:600;
  cursor:pointer; transition:0.2s;
}
.mid-btn-compartilhar:hover { background:#e2e8f0; }

.mid-descricao {
  background:#f8fafc; border-radius:12px; padding:14px;
  font-size:13px; color:#475569; line-height:1.6; border:1px solid #e2e8f0;
}

/* ── MOBILE ── */
@media (max-width:768px) {
  .mid-box {
    flex-direction:column; top:0; left:0; transform:none;
    width:100%; max-height:100dvh; border-radius:0; overflow-y:auto;
  }
  .mid-esquerda { width:100%; }
  .mid-foto-principal img { max-height:240px; }
  .mid-foto-score-circle { display:none; }
  .mid-foto-stats-bar { display:none; }
  .mid-direita { padding:18px 16px; gap:11px; }
  .mid-preco { font-size:26px; }
  .mid-insights-grid { grid-template-columns:1fr 1fr; }
}

/* ==========================
   MODAL SOBRE
========================== */

.sobre-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 4500;
}
.sobre-overlay.open { display: block; }

.sobre-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  opacity: 0;
  width: min(820px, 96vw);
  max-height: 90vh;
  background: white;
  border-radius: 24px;
  z-index: 4600;
  overflow: hidden;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  transition: 0.25s ease;
}

.sobre-modal.open {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* HEADER */
.sobre-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: #081226;
  color: white;
  flex-shrink: 0;
}

.sobre-header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sobre-logo-icon {
  width: 44px;
  height: 44px;
  background: #16c45b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.sobre-header h2 { font-size: 22px; color: white; margin: 0; line-height: 1; }
.sobre-header span { font-size: 12px; color: #94a3b8; }

.sobre-fechar {
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  flex-shrink: 0;
}
.sobre-fechar:hover { background: #ef4444; }

/* BODY */
.sobre-body {
  overflow-y: auto;
  padding: 0;
  flex: 1;
}

/* SEÇÕES */
.sobre-secao {
  padding: 28px 32px;
  border-bottom: 1px solid #f1f5f9;
}

.sobre-secao:last-child { border-bottom: none; }

.sobre-secao h3 {
  font-size: 17px;
  font-weight: 700;
  color: #081226;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sobre-secao h3 i { color: #16c45b; }

.sobre-secao p {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 10px;
}

.sobre-secao p:last-child { margin-bottom: 0; }

/* RECURSOS */
.sobre-recursos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.sobre-recurso {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  transition: 0.2s;
}

.sobre-recurso:hover { border-color: #16c45b; background: #f0fdf4; }

.sobre-recurso i {
  color: #16c45b;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.sobre-recurso strong {
  display: block;
  font-size: 13px;
  color: #081226;
  margin-bottom: 3px;
}

.sobre-recurso span {
  font-size: 12px;
  color: #64748b;
}

/* SCORE */
.sobre-score { background: #f8fafc; }

.score-formula {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
}

.score-item-num {
  font-size: 18px;
  font-weight: 900;
  min-width: 48px;
  text-align: center;
  border-radius: 8px;
  padding: 4px 8px;
}

.score-base .score-item-num  { background: #f1f5f9; color: #475569; }
.score-pos  .score-item-num  { background: #dcfce7; color: #166534; }

.score-item strong { display: block; font-size: 13px; color: #081226; margin-bottom: 3px; }
.score-item span   { font-size: 12px; color: #64748b; }

/* CLASSIFICAÇÃO */
.score-classificacao {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.score-class {
  flex: 1;
  min-width: 160px;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}

.score-class strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 6px; color: white; }
.score-class span   { font-size: 12px; color: rgba(255,255,255,0.85); }
.score-class.verde   { background: #16a34a; }
.score-class.laranja { background: #f59e0b; }
.score-class.vermelho{ background: #ef4444; }

.score-obs {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px !important;
  color: #92400e !important;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5 !important;
}

.score-obs i { color: #f59e0b; flex-shrink: 0; margin-top: 1px; }

/* MISSÃO E VISÃO */
.sobre-mv {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sobre-mv-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.sobre-mv-icon {
  width: 46px;
  height: 46px;
  background: #081226;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16c45b;
  font-size: 20px;
  flex-shrink: 0;
}

.sobre-mv-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #081226;
  margin-bottom: 8px;
}

.sobre-mv-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 !important;
}

/* MOBILE */
@media (max-width: 600px) {
  .sobre-secao { padding: 20px 18px; }
  .sobre-recursos { grid-template-columns: 1fr; }
  .score-classificacao { flex-direction: column; }
  .sobre-header { padding: 16px 18px; }
  .score-item-num { min-width: 42px; font-size: 16px; }
}
