/* ==========================================================================
   CATÁLOGO DE IMÓVEIS (catalogo.js) — aba Imóveis / Comprar / Alugar
   ========================================================================== */
.hbc{position:fixed;inset:0;z-index:9000;background:#f4f6fa;display:none;flex-direction:column;font-family:'DM Sans',Arial,Helvetica,sans-serif;color:#0f172a}
.hbc.aberto{display:flex;animation:hbc-entra .22s ease-out}
@keyframes hbc-entra{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.hbc *{box-sizing:border-box}
.hbc button{font-family:inherit}

/* barra do topo */
.hbc-barra{display:flex;align-items:center;gap:18px;height:64px;padding:0 22px;background:#081226;color:#fff;flex-shrink:0}
.hbc-marca{display:flex;align-items:center;gap:9px;font-weight:800;font-size:21px;letter-spacing:-.3px}
.hbc-marca img{border-radius:8px}
.hbc-nav{display:flex;gap:6px;margin-left:18px}
.hbc-nav button{background:transparent;border:0;color:#cbd5e1;font-weight:700;font-size:14.5px;padding:9px 16px;border-radius:999px;cursor:pointer;display:flex;align-items:center;gap:7px}
.hbc-nav button:hover{color:#fff;background:rgba(255,255,255,.07)}
.hbc-nav button.ativo{background:#16c45b;color:#fff}
.hbc-voltar{display:none}
.hbc-fechar,.hbc-voltar{margin-left:auto;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;font-size:17px;cursor:pointer}
.hbc-fechar:hover{background:#ef4444;border-color:#ef4444}

.hbc-rolagem{flex:1;overflow-y:auto;overscroll-behavior:contain}

/* faixa com foto */
.hbc-hero{position:relative;min-height:210px;padding:34px 40px 30px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;
  background:linear-gradient(90deg,rgba(8,18,38,.96) 0%,rgba(8,18,38,.82) 34%,rgba(8,18,38,.25) 70%,rgba(8,18,38,.45) 100%),url('/img/hero-casa.jpg') right 30%/cover no-repeat #081226;color:#fff}
.hbc-hero h1{margin:0;font-size:38px;line-height:1.12;font-weight:800;letter-spacing:-.6px}
.hbc-hero h1 span{color:#22d36b}
.hbc-hero p{margin:10px 0 0;color:#e2e8f0;font-size:16px}
.hbc-stats{display:flex;background:rgba(8,18,38,.72);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:12px 6px}
.hbc-stats>div{display:flex;align-items:center;gap:11px;padding:2px 20px}
.hbc-stats>div+div{border-left:1px solid rgba(255,255,255,.14)}
.hbc-stats i{color:#22d36b;font-size:22px}
.hbc-stats b{display:block;font-size:16px}
.hbc-stats small{display:block;color:#cbd5e1;font-size:12px}

/* corpo: filtros + resultados */
.hbc-corpo{display:grid;grid-template-columns:300px 1fr;gap:24px;max-width:1500px;margin:-14px auto 0;padding:0 24px 40px;position:relative}
.hbc-filtros{background:#fff;border-radius:18px;box-shadow:0 6px 24px rgba(15,23,42,.07);padding:20px 20px 18px;align-self:start;position:sticky;top:16px}
.hbc-f-topo{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.hbc-f-topo h2{margin:0;font-size:20px;display:flex;gap:9px;align-items:center}
.hbc-limpar{background:none;border:0;color:#2563eb;font-weight:700;font-size:13.5px;cursor:pointer;display:flex;gap:6px;align-items:center}
.hbc-f-fechar{display:none}
.hbc-rot{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;margin:16px 0 7px;color:#0f172a}
.hbc-rot i{width:16px;text-align:center;color:#0f172a}
.hbc-filtros select,.hbc-filtros input[type=text]{width:100%;height:44px;border:1.5px solid #e2e8f0;border-radius:11px;padding:0 13px;font-size:14.5px;font-family:inherit;color:#0f172a;background:#fff}
.hbc-filtros select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23334155' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;padding-right:36px;cursor:pointer}
.hbc-filtros select:focus,.hbc-filtros input:focus{outline:none;border-color:#16c45b;box-shadow:0 0 0 3px rgba(22,196,91,.15)}
.hbc-faixa-txt{height:44px;border:1.5px solid #e2e8f0;border-radius:11px;padding:0 13px;display:flex;align-items:center;font-size:14.5px}
.hbc-faixa{position:relative;height:30px;margin:6px 8px 0}
.hbc-faixa-trilho{position:absolute;left:0;right:0;top:13px;height:4px;border-radius:4px;background:#e2e8f0}
.hbc-faixa-cheio{position:absolute;top:0;bottom:0;background:#16c45b;border-radius:4px}
.hbc-faixa input{position:absolute;left:-8px;right:-8px;width:calc(100% + 16px);top:4px;margin:0;height:22px;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.hbc-faixa input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:20px;height:20px;border-radius:50%;background:#fff;border:4px solid #16c45b;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.hbc-faixa input::-moz-range-thumb{pointer-events:auto;width:14px;height:14px;border-radius:50%;background:#fff;border:4px solid #16c45b;cursor:pointer}
.hbc-faixa input::-moz-range-track{background:none}
.hbc-buscar{width:100%;margin-top:20px;height:50px;border:0;border-radius:12px;background:#16c45b;color:#fff;font-size:16px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px}
.hbc-buscar:hover{background:#12a94e}
.hbc-dica{display:flex;gap:10px;margin-top:16px;background:#f1f5f9;border-radius:12px;padding:12px;font-size:12.5px;line-height:1.5;color:#475569}
.hbc-dica i{color:#16c45b;margin-top:2px}

.hbc-r-topo{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:30px 0 16px}
.hbc-r-topo h2{margin:0;font-size:21px;font-weight:600;flex:1}
.hbc-r-topo h2 b{color:#16a34a}
.hbc-btn-filtros{display:none}
.hbc-r-acoes{display:flex;gap:10px;align-items:center}
.hbc-ordem{display:flex;align-items:center;gap:7px;background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;padding:0 6px 0 14px;height:46px;font-size:14px;color:#475569}
.hbc-ordem select{border:0;background:transparent;font-weight:700;font-size:14px;color:#0f172a;font-family:inherit;cursor:pointer;height:100%}
.hbc-ordem select:focus{outline:none}
.hbc-vistas{display:flex;gap:6px}
.hbc-vistas button{width:46px;height:46px;border-radius:12px;border:1.5px solid #e2e8f0;background:#fff;color:#334155;font-size:17px;cursor:pointer}
.hbc-vistas button.ativo{background:#081226;border-color:#081226;color:#fff}

/* cards */
.hbc-grade{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.hbc-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 4px 18px rgba(15,23,42,.07);cursor:pointer;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.hbc-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(15,23,42,.13)}
.hbc-foto{position:relative;aspect-ratio:16/10.5;background:#e2e8f0;overflow:hidden}
.hbc-foto img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.hbc-card:hover .hbc-foto img{transform:scale(1.04)}
.hbc-semfoto{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:34px;color:#94a3b8}
.hbc-selos{position:absolute;top:11px;left:11px;display:flex;gap:6px;flex-wrap:wrap;max-width:calc(100% - 60px)}
.hbc-selo{font-size:12.5px;font-weight:800;color:#fff;padding:5px 11px;border-radius:999px;display:inline-flex;gap:5px;align-items:center;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.hbc-selo.tipo{background:#2563eb}
.hbc-selo.destaque{background:#16c45b}
.hbc-selo.destaque i{color:#fde047}
.hbc-selo.novo{background:#7c3aed}
.hbc-fav{position:absolute;top:9px;right:9px;width:36px;height:36px;border-radius:50%;border:0;background:rgba(15,23,42,.45);color:#fff;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.hbc-fav:hover{background:rgba(15,23,42,.7)}
.hbc-fav .fa-solid{display:none;color:#ef4444}
.hbc-fav.ativo{background:#fff}
.hbc-fav.ativo .fa-solid{display:inline}
.hbc-fav.ativo .fa-regular{display:none}
.hbc-nfotos{position:absolute;right:10px;bottom:10px;background:rgba(15,23,42,.72);color:#fff;font-size:12.5px;font-weight:700;padding:5px 10px;border-radius:9px;display:flex;gap:6px;align-items:center}
.hbc-info{padding:14px 15px 13px;display:flex;flex-direction:column;flex:1}
.hbc-linha1{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.hbc-preco{font-size:21px;font-weight:800;letter-spacing:-.3px;line-height:1.2}
.hbc-preco small{font-size:13px;color:#64748b;font-weight:600;margin-left:2px}
.hbc-preco.hbc-sob{font-size:16px;color:#475569}
.hbc-preco2{font-size:12.5px;color:#64748b;font-weight:600;margin-top:1px}
.hbc-indice{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:1px;background:#f0fdf4;border-radius:12px;padding:5px 7px 4px;cursor:help}
.hbc-anel{position:relative;width:38px;height:38px;display:flex;align-items:center;justify-content:center}
.hbc-anel svg{position:absolute;inset:0;width:38px;height:38px}
.hbc-anel b{font-size:15px;line-height:1;position:relative}
.hbc-indice small{font-size:9.5px;color:#64748b;font-weight:700}
.hbc-titulo{margin:6px 0 0;font-size:13.5px;font-weight:600;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbc-titulo i,.hbc-local i{width:13px;color:#0f172a;font-size:12px}
.hbc-local{margin:4px 0 0;font-size:13px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbc-local i{color:#94a3b8}
.hbc-dados{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:13px;color:#334155}
.hbc-dados i{color:#64748b;margin-right:3px}
.hbc-rodape{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:12px}
.hbc-status{font-size:13px;color:#334155;display:flex;align-items:center;gap:7px}
.hbc-status::before{content:'';width:9px;height:9px;border-radius:50%;background:#16c45b}
.hbc-status.aluguel::before{background:#2563eb}
.hbc-acoes{display:flex;align-items:center;gap:6px}
.hbc-mini{width:30px;height:30px;border-radius:8px;border:1px solid #e2e8f0;background:#f8fafc;color:#334155;cursor:pointer;font-size:13px}
.hbc-mini:hover,.hbc-mini.ativo{background:#16c45b;border-color:#16c45b;color:#fff}
.hbc-detalhes{color:#2563eb;font-weight:800;font-size:13.5px;text-decoration:none;display:flex;gap:6px;align-items:center;white-space:nowrap}
.hbc-detalhes:hover{text-decoration:underline}

/* lista */
.hbc-grade.em-lista{grid-template-columns:1fr}
.hbc-grade.em-lista .hbc-card{flex-direction:row}
.hbc-grade.em-lista .hbc-foto{width:320px;aspect-ratio:auto;height:210px;flex-shrink:0}
.hbc-grade.em-lista .hbc-info{padding:18px 20px}
.hbc-grade.em-lista .hbc-preco{font-size:24px}
.hbc-grade.em-lista .hbc-titulo{font-size:15px;white-space:normal}

/* carregando / vazio / paginação */
.hbc-carregando{pointer-events:none}
.hbc-carregando .hbc-foto,.hbc-carregando .hbc-info i{background:linear-gradient(90deg,#e2e8f0 25%,#f1f5f9 50%,#e2e8f0 75%);background-size:200% 100%;animation:hbc-brilho 1.2s infinite}
.hbc-carregando .hbc-info i{display:block;height:13px;border-radius:6px;margin:6px 0}
.hbc-carregando .hbc-info i:first-child{width:55%;height:20px}
.hbc-carregando .hbc-info i:nth-child(3){width:70%}
@keyframes hbc-brilho{to{background-position:-200% 0}}
.hbc-vazio{grid-column:1/-1;text-align:center;padding:60px 20px;color:#64748b;background:#fff;border-radius:16px}
.hbc-vazio i{font-size:44px;color:#cbd5e1}
.hbc-vazio .hbc-buscar{max-width:240px;margin:16px auto 0}
.hbc-paginas{display:flex;justify-content:center;align-items:center;gap:6px;margin:28px 0 8px;flex-wrap:wrap}
.hbc-paginas button{min-width:42px;height:42px;border-radius:11px;border:1.5px solid #e2e8f0;background:#fff;font-weight:700;color:#334155;cursor:pointer;font-size:14px}
.hbc-paginas button.ativo{background:#16c45b;border-color:#16c45b;color:#fff}
.hbc-paginas button:disabled{opacity:.4;cursor:default}
.hbc-paginas span{color:#94a3b8}
.hbc-aviso{margin:22px 0 0;font-size:12px;line-height:1.6;color:#64748b;text-align:center}
.hbc-fundo-filtros{display:none}

/* telas médias */
@media (max-width:1400px){.hbc-grade{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1150px){
  .hbc-grade{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hbc-corpo{grid-template-columns:270px 1fr}
  .hbc-stats{display:none}
}
/* celular / tablet: filtros viram gaveta */
@media (max-width:900px){
  .hbc-barra{height:56px;padding:0 12px;gap:10px}
  .hbc-voltar{display:block;margin-left:0}
  .hbc-fechar{display:none}
  .hbc-marca{font-size:18px}
  .hbc-marca img{width:26px;height:26px}
  .hbc-nav{margin-left:auto;gap:2px}
  .hbc-nav button{padding:7px 11px;font-size:13px}
  .hbc-nav{overflow-x:auto;scrollbar-width:none}.hbc-nav::-webkit-scrollbar{display:none}
  .hbc-nav button{flex-shrink:0}
  .hbc-nav button[data-hbc="mapa"],.hbc-nav button[data-hbc="todos"] i{display:none}
  .hbc-hero{min-height:150px;padding:22px 16px 30px;background-position:70% 30%}
  .hbc-hero h1{font-size:25px}
  .hbc-hero p{font-size:14px}
  .hbc-corpo{display:block;padding:0 16px 30px;margin-top:-14px}
  .hbc-r-topo{background:#fff;border-radius:14px;padding:12px;box-shadow:0 4px 16px rgba(15,23,42,.07);gap:10px;margin-bottom:14px}
  .hbc-r-topo h2{order:-1;flex-basis:100%;font-size:17px}
  .hbc-btn-filtros{display:flex;align-items:center;gap:7px;height:42px;padding:0 14px;border-radius:11px;border:0;background:#081226;color:#fff;font-weight:700;font-size:14px;cursor:pointer}
  .hbc-r-acoes{flex:1;justify-content:flex-end}
  .hbc-ordem{height:42px;padding:0 4px 0 10px}
  .hbc-ordem span{display:none}
  .hbc-vistas{display:none}
  .hbc-grade,.hbc-grade.em-lista{grid-template-columns:1fr;gap:16px}
  .hbc-grade.em-lista .hbc-card{flex-direction:column}
  .hbc-grade.em-lista .hbc-foto{width:auto;aspect-ratio:16/10.5;min-height:0}
  .hbc-filtros{position:fixed;top:0;bottom:0;left:0;width:min(340px,88vw);z-index:9002;border-radius:0 18px 18px 0;overflow-y:auto;transform:translateX(-105%);transition:transform .25s ease}
  .hbc.filtros-abertos .hbc-filtros{transform:none}
  .hbc-f-fechar{display:block;background:#f1f5f9;border:0;width:36px;height:36px;border-radius:50%;font-size:16px;cursor:pointer}
  .hbc-fundo-filtros{position:fixed;inset:0;background:rgba(8,18,38,.55);z-index:9001}
  .hbc.filtros-abertos .hbc-fundo-filtros{display:block}
}
@media (prefers-reduced-motion:reduce){.hbc.aberto,.hbc-card,.hbc-foto img,.hbc-filtros{animation:none;transition:none}}
