/* ============================================================
   CATÁLOGO DE IMÓVEIS — MARCELO MOREIRA CORRETOR
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --ink:       #0d0d0d;
  --ink-soft:  #1a1a1a;
  --paper:     #f5f1eb;
  --paper-alt: #ede9e0;
  --gold:      #c9a84c;
  --gold-lt:   #e8c96a;
  --gold-dk:   #9b7a2e;
  --slate:     #2a2a2a;
  --mist:      #5a5550;
  --white:     #ffffff;
  --blue-acc:  #1a3a5c;
  --whatsapp:  #25D366;

  --ff-display:  'Cormorant Garamond', Georgia, serif;
  --ff-cursive:  'Great Vibes', cursive;
  --ff-serif:    'Playfair Display', Georgia, serif;
  --ff-body:     'sans-serif';
  --ff-mono:     'IBM Plex Mono', monospace;
  --ff-card:     'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --fs-body:   1.05rem;
  --fw-body:   800;
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden !important;
  max-width: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  button, a,
  .btn-filtrar, .btn-filtros-avancados, .btn-limpar, .btn-detalhes {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(201,168,76,0.2);
  }
  select, input { font-size: 16px !important; }
}

/* ============================================================
   CONTAINER PRINCIPAL
   ============================================================ */
.catalogo-container {
  min-height: 100vh;
}

.catalogo-container > *:not(.catalogo-header) {
  padding-left: 8vw;
  padding-right: 8vw;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes expandBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ============================================================
   HEADER
   ============================================================ */
.catalogo-header {
  position: relative;
  width: 100%;
  background: var(--white);
  overflow: hidden;
  border-bottom: none;
}

.header-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 5vw, 52px) clamp(4vw, 8vw, 8vw) clamp(20px, 4vw, 44px);
  background-color: var(--white);
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(13,13,13,0.025) 18px,
      rgba(13,13,13,0.025) 19px
    );
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* Eyebrow */
.header-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dk);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  opacity: 0;
  animation: slideUp 0.55s 0.15s var(--ease-smooth) forwards;
}

.header-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold-dk);
  flex-shrink: 0;
}

/* Título principal */
.catalogo-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  opacity: 0;
  animation: slideUp 0.65s 0.3s var(--ease-smooth) forwards;
}

.catalogo-header h1 em {
  font-style: italic;
  color: var(--gold-dk);
}

/* Subtítulo */
.header-sub {
  font-family: var(--ff-body);
  font-size: clamp(0.75rem, 1.6vw, 0.92rem);
  font-weight: 700;
  color: var(--mist);
  line-height: 1.65;
  max-width: 100%;
  opacity: 0;
  animation: slideUp 0.65s 0.45s var(--ease-smooth) forwards;
}

/* ============================================================
   HEADER STATS — CORRIGIDO
   ============================================================ */
.header-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(13,13,13,0.1);
  border-radius: 2px;
  overflow: hidden;
  min-width: clamp(110px, 22vw, 200px);
  width:     clamp(110px, 22vw, 200px);
  flex-shrink: 0;
  align-self: stretch;        /* estica para a altura total do header-inner */
  opacity: 0;
  animation: slideUp 0.65s 0.5s var(--ease-smooth) forwards;
}

.header-stat {
  padding: clamp(8px, 1.5vw, 18px) clamp(10px, 2vw, 24px);
  background: var(--paper);
  border-bottom: 1px solid rgba(13,13,13,0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;    /* centraliza conteúdo verticalmente */
  gap: 4px;                   /* espaço uniforme entre num e label */
  flex: 1;                    /* divide a altura igualmente entre os 3 stats */
}

.header-stat:last-child {
  border-bottom: none;
}

.header-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.header-stat-num {
  font-family: var(--ff-display);
  font-size: clamp(0.85rem, 2vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.header-stat-label {
  font-family: var(--ff-mono);
  font-size: clamp(0.45rem, 0.9vw, 0.60rem);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;        /* permite quebra de linha */
  word-break: break-word;     /* garante quebra em textos longos */
  overflow-wrap: break-word;  /* fallback para Safari */
}

/* Barra dourada inferior */
.header-bar {
  height: 2px;
  background: linear-gradient(90deg,
    var(--gold-dk) 0%,
    var(--gold) 45%,
    var(--gold-lt) 72%,
    transparent 100%);
  transform-origin: left;
  animation: expandBar 0.9s 0.3s var(--ease-smooth) both;
}

/* ============================================================
   FILTROS
   ============================================================ */
.filtros-container {
  max-width: 100%;
  margin: 0;
  padding: 32px 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.filtros-container::before {
  content: 'FILTRO DE IMÓVEIS';
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.30em;
  color: var(--mist);
  margin-bottom: 16px;
  line-height: 1;
  padding-bottom: 14px;
  border-bottom: none;
}

.filtros-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filtros-simples {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  max-width: 760px;
  box-shadow: 0 4px 20px rgba(13,13,13,0.08);
}

.filtro-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(13,13,13,0.12);
  background: var(--white);
  position: relative;
  transition: background 0.2s ease;
}

.filtro-item:last-child {
  border-right: none;
}

.filtros-simples .filtro-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-smooth);
}

.filtros-simples .filtro-item:focus-within::after {
  transform: scaleX(1);
}

.filtros-simples .filtro-item select:focus,
.filtros-simples .filtro-item input:focus {
  background: var(--paper);
}

.filtros-simples .filtro-item label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 500;
  padding: 14px 18px 4px;
  margin: 0;
  pointer-events: none;
  border-bottom: 1px solid rgba(13,13,13,0.06);
}

.filtros-simples .filtro-item input,
.filtros-simples .filtro-item select {
  padding: 10px 18px 14px;
  border: none;
  background: transparent;
  font-family: var(--ff-body);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  height: auto;
  border-radius: 0;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.filtros-simples .filtro-item select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
}

/* ============================================================
   AÇÕES — botões
   ============================================================ */
.filtros-acoes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 700px;
}

.btn-filtrar,
.btn-filtros-avancados,
.btn-limpar {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 1px;
  box-sizing: border-box;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease;
}

.btn-filtrar {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}

.btn-filtrar:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateX(3px);
}

.btn-filtros-avancados {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-filtros-avancados:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-limpar {
  background: transparent;
  color: var(--mist);
  border: 1px solid rgba(13,13,13,0.18);
  font-weight: 400;
}

.btn-limpar:hover {
  color: var(--ink);
  border-color: rgba(13,13,13,0.4);
}

/* Tags de filtros ativos */
.filtros-avancados-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  min-height: 0;
  align-items: center;
  max-width: 760px;
}

.filtros-avancados-labels span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--gold-dk);
  border: 1px solid rgba(155,122,46,0.4);
  padding: 5px 12px;
  border-radius: 1px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 400;
  animation: slideUp 0.3s var(--ease-smooth);
}

.filtros-avancados-labels span::before {
  content: '—';
  color: var(--gold);
  font-size: 0.7rem;
}

/* Contador de resultados */
.resultados-info {
  margin-top: 16px;
  margin-bottom: 28px;
  padding: 0;
  background: transparent;
  border: none;
}

.resultados-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 400;
}

.resultados-count::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold-dk);
}

.resultados-count i { display: none; }

.resultados-count strong {
  color: var(--ink);
  font-weight: 500;
  font-size: inherit;
}

/* ============================================================
   GRID DE IMÓVEIS
   ============================================================ */
.imoveis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 0;
  margin-bottom: 64px;
}

.imovel-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(13,13,13,0.1);
  box-shadow: 0 2px 8px rgba(13,13,13,0.06);
  cursor: pointer;
  animation: fadeInUp 0.6s var(--ease-smooth) backwards;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.imovel-card:nth-child(1)  { animation-delay: 0.05s; }
.imovel-card:nth-child(2)  { animation-delay: 0.10s; }
.imovel-card:nth-child(3)  { animation-delay: 0.15s; }
.imovel-card:nth-child(4)  { animation-delay: 0.20s; }
.imovel-card:nth-child(5)  { animation-delay: 0.25s; }
.imovel-card:nth-child(6)  { animation-delay: 0.30s; }

.imovel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(13,13,13,0.14);
}

.imovel-image-container {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.imovel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: filter 0.6s var(--ease-smooth);
  filter: saturate(0.85);
}

.imovel-card:hover .imovel-image {
  filter: saturate(1);
}

.property-card__labels {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.badge-negociacao,
.badge-compra,
.badge-aluguel,
.badge-compra-aluguel {
  background: var(--ink);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 1px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.property-card__labels .badge-tipo {
  background: var(--gold);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 1px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ============================================================
   CARD CONTENT
   ============================================================ */
.imovel-content {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  font-family: var(--ff-card);
  -webkit-font-smoothing: antialiased;
}

.imovel-titulo {
  font-family: var(--ff-card);
  font-size: 1.0rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0;
}

.imovel-localizacao {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-card);
  color: #666666;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
  line-height: 1.4;
}

.imovel-localizacao i {
  color: var(--gold-dk);
  font-size: 0.80rem;
}

.imovel-preco-content {
  padding-bottom: 10px;
  border-bottom: 1px solid #eeeeee;
}

.imovel-preco-content .preco-linha {
  font-family: var(--ff-card);
  font-size: 1.25rem;
  font-weight: 800;
  color: #333333;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.imovel-descricao {
  font-family: var(--ff-card);
  font-size: 0.82rem;
  color: #777777;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
}

.imovel-caracteristicas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--ff-card);
  font-size: 0.85rem;
  color: #555555;
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px solid #eeeeee;
  line-height: 1.4;
}

.imovel-caracteristicas span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.imovel-caracteristicas i {
  color: var(--gold-dk);
  font-size: 0.82rem;
}

.imovel-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.btn-detalhes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 1px;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  width: 100%;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-detalhes:hover {
  background: var(--ink);
  color: var(--white);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  background: var(--white);
  border: 1px solid rgba(13,13,13,0.1);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(13,13,13,0.06);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  color: var(--gold);
  animation: pulse 3s ease-in-out infinite;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.empty-state p {
  font-size: 1.0rem;
  color: var(--mist);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 32px;
}

.btn-limpar-empty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 1px;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-limpar-empty:hover {
  background: var(--gold-lt);
  transform: translateX(3px);
}

/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.paginacao-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0 0 80px;
  padding: 40px 0 0;
  background: transparent;
  border-top: 1px solid rgba(13,13,13,0.08);
}

.paginacao {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.paginacao-item {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 1px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 400;
  transition: all 0.2s ease;
  border: 1px solid rgba(13,13,13,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.paginacao-item:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.paginacao-item.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 500;
}

.paginacao-info {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 400;
}

/* ============================================================
   MODAL FILTROS AVANÇADOS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: 2px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(13,13,13,0.12);
  box-shadow: 0 30px 80px rgba(13,13,13,0.25);
  transform: scale(0.96) translateY(16px);
  transition: transform 0.3s var(--ease-smooth);
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt), var(--gold-dk));
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
  z-index: 1;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(13,13,13,0.08);
  background: var(--paper);
}

.modal-header h2 {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.modal-header h2 i {
  color: var(--gold-dk);
  margin-right: 8px;
  font-size: 1.1rem;
}

.btn-fechar-modal {
  width: 40px;
  height: 40px;
  border-radius: 1px;
  background: transparent;
  border: 1px solid rgba(13,13,13,0.18);
  color: var(--mist);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-fechar-modal:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.modal-body {
  padding: 32px;
}

.filtros-avancados-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.modal-body .filtro-item {
  background: transparent;
  border: none;
  min-width: 0;
  width: 100%;
  flex-direction: column;
}

.modal-body .filtro-item > label:first-child {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 500;
  margin-bottom: 10px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.modal-body .filtro-item label i {
  color: var(--gold-dk);
  font-size: 0.72rem;
}

.modal-body .filtro-item input:not([type="checkbox"]),
.modal-body .filtro-item select {
  padding: 12px 16px;
  border: 1px solid rgba(13,13,13,0.15);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--ff-body);
  font-size: 1.0rem;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-body .filtro-item input:not([type="checkbox"]):focus,
.modal-body .filtro-item select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.10);
}

.modal-body .filtro-item select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b7a2e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
  background-color: var(--paper);
}

/* ============================================================
   LISTA DE BAIRROS
   ============================================================ */
.lista-bairros {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(13,13,13,0.12);
  border-radius: 2px;
  background: var(--paper);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
}

.lista-bairros::-webkit-scrollbar { width: 4px; }
.lista-bairros::-webkit-scrollbar-track { background: var(--paper-alt); }
.lista-bairros::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

.bairro-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--slate);
  cursor: pointer;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 1px;
  transition: background 0.15s ease;
  user-select: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

.bairro-option:hover {
  background: var(--paper-alt);
}

.bairro-option input[type="checkbox"] {
  accent-color: var(--gold-dk);
  width: 15px;
  height: 15px;
  min-width: 15px;
  cursor: pointer;
  pointer-events: auto;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   FOOTER DO MODAL
   ============================================================ */
.modal-footer {
  display: flex;
  gap: 12px;
  padding: 24px 32px;
  border-top: 1px solid rgba(13,13,13,0.08);
  justify-content: space-between;
  background: var(--paper-alt);
}

.btn-limpar-modal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--mist);
  border: 1px solid rgba(13,13,13,0.2);
  border-radius: 1px;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-limpar-modal:hover {
  color: var(--ink);
  border-color: rgba(13,13,13,0.5);
}

.btn-aplicar-modal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 1px;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-aplicar-modal:hover {
  background: var(--gold-lt);
  transform: translateX(4px);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1200px) {
  .imoveis-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .imoveis-grid { grid-template-columns: repeat(2, 1fr); }
  .filtros-simples { max-width: 100%; }
  .filtros-acoes { max-width: 100%; }
}

@media (max-width: 900px) {
  .filtros-simples {
    flex-direction: column;
    max-width: 100%;
    border-radius: 2px;
  }
  .filtros-simples .filtro-item {
    border-right: none;
    border-bottom: 1px solid rgba(13,13,13,0.10);
  }
  .filtros-simples .filtro-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .header-body {
    grid-template-columns: 1fr auto;
    gap: clamp(12px, 3vw, 28px);
    padding: clamp(20px, 5vw, 36px) 6vw clamp(16px, 4vw, 32px);
  }

  .header-stats {
    min-width: clamp(100px, 28vw, 160px);
    width:     clamp(100px, 28vw, 160px);
  }

  .catalogo-container > *:not(.catalogo-header) {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .filtros-simples { flex-direction: column; max-width: 100%; }

  .filtros-acoes { flex-direction: column; max-width: 100%; gap: 8px; }

  .btn-filtrar,
  .btn-filtros-avancados,
  .btn-limpar { width: 100%; padding: 0 20px; height: 52px; }

  .filtros-avancados-labels { max-width: 100%; }

  .imoveis-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }

  .imovel-content { align-items: center; text-align: center; padding: 16px 16px 18px; }
  .imovel-titulo { text-align: center; }
  .imovel-localizacao { justify-content: center; }
  .imovel-caracteristicas { justify-content: center; }

  .filtros-avancados-grid { grid-template-columns: 1fr; gap: 16px; }

  .modal-content { max-width: 95%; max-height: 95vh; }

  .modal-header,
  .modal-body,
  .modal-footer { padding: 20px; }

  .modal-header h2 { font-size: 1.4rem; }

  .modal-footer { flex-direction: column; gap: 8px; }

  .btn-limpar-modal,
  .btn-aplicar-modal { width: 100%; justify-content: center; }

  .paginacao-container { margin-bottom: 60px; }
  .paginacao { gap: 4px; }
  .paginacao-item { min-width: 38px; height: 38px; font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .header-body {
    padding: clamp(16px, 5vw, 28px) 5vw;
  }

  .header-stats {
    min-width: clamp(90px, 30vw, 140px);
    width:     clamp(90px, 30vw, 140px);
  }

  .catalogo-header h1 { font-size: clamp(1.35rem, 5.5vw, 2.4rem); }
  .filtros-container { padding-top: 36px; }
  .imovel-image-container { height: 190px; }
  .imovel-content { padding: 14px 14px 16px; gap: 8px; }
  .imovel-titulo { font-size: 0.95rem; }
  .imovel-preco-content .preco-linha { font-size: 1.15rem; }
  .imovel-descricao { font-size: 0.80rem; }
  .imovel-caracteristicas { font-size: 0.82rem; gap: 5px 12px; }
  .empty-state { padding: 50px 16px; }
  .empty-state h3 { font-size: 1.8rem; }
  .paginacao-item { min-width: 34px; height: 34px; font-size: 0.68rem; padding: 0 8px; }
}

@media (max-width: 360px) {
  .header-stats {
    min-width: 80px;
    width: 80px;
  }
  .header-stat {
    padding: 6px 8px;
  }
  .catalogo-header h1 { font-size: 1.3rem; }
  .imovel-titulo { font-size: 1.1rem; }
  .paginacao-item { min-width: 30px; height: 30px; }
}