/* ── Base ─────────────────────────────────────── */
body {
  background: #f0f2f5;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #1a1a2e;
}

/* ── Loading overlay ─────────────────────────── */
#loadingOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
#loadingOverlay.active { display: flex; }
.loading-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  min-width: 260px;
}

/* ── Hero ────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  min-height: 280px;
}

/* ── Form labels ────────────────────────────── */
.label-sm {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c757d;
  margin-bottom: .35rem;
}

/* ── Feature cards (home) ───────────────────── */
.feature-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.feature-icon { font-size: 2.4rem; line-height: 1; }

/* ═══════════════════════════════════════════════
   CARD DE IMÓVEL — design igual ao leilaoimovel
   ═══════════════════════════════════════════════ */
.imovel-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.imovel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}

/* Imagem */
.imovel-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e9ecef;
}
.imovel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.imovel-card:hover .imovel-img-wrap img { transform: scale(1.04); }
.no-img-ph {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #adb5bd;
}

/* Data de encerramento sobre a imagem */
.date-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(220, 90, 30, .88);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .7rem;
  display: flex;
  align-items: center;
  backdrop-filter: blur(2px);
}

/* Tags (FGTS, Venda Online, Compra Direta…) */
.imovel-tag {
  display: inline-block;
  background: #f0f2f5;
  color: #495057;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 20px;
  padding: .2rem .65rem;
  border: 1px solid #dee2e6;
}

/* Preço atual — laranja */
.preco-atual {
  font-size: 1.25rem;
  font-weight: 800;
  color: #e67e22;
  letter-spacing: -.01em;
}

/* Badge de desconto — verde */
.desconto-badge {
  display: inline-flex;
  align-items: center;
  background: #27ae60;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
}

/* Preço original riscado */
.preco-original {
  font-size: .85rem;
  color: #868e96;
  text-decoration: line-through;
  margin-bottom: .25rem;
}

/* Título do imóvel */
.imovel-titulo {
  font-size: .9rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.35;
}

/* Endereço */
.imovel-endereco {
  font-size: .78rem;
  color: #6c757d;
  margin-bottom: .3rem;
  line-height: 1.4;
}
.imovel-endereco .fas { color: #e67e22; }

/* Data de encerramento (rodapé) */
.imovel-data-fim {
  font-size: .75rem;
  color: #868e96;
  margin-bottom: 0;
}

/* Ações no rodapé do card */
.card-actions {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid #f0f2f5;
  margin-top: auto;
}
.card-actions .btn-sm { font-size: .8rem; }

/* ── Navbar ─────────────────────────────────── */
.navbar-brand { font-size: 1.1rem; }

/* ── Filter bar (results page) ──────────────── */
.bg-white.border-bottom { background: #fff !important; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 576px) {
  .hero-section { min-height: auto; }
  .imovel-img-wrap { height: 170px; }
  .preco-atual { font-size: 1.1rem; }
}
