/* ============================================
   R&D PRIME — Página de Imóveis (tema escuro)
   IMPORTANTE: NÃO estiliza .property-card nem .property-grid.
   Esses ficam em cards.css (arquivo único).
   ============================================ */

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  /* ✅ scroll-margin evita "salto" ao clicar em #portfolio */
  scroll-margin-top: 90px;
}
.page-hero-orbits { position: absolute; inset: 0; pointer-events: none; }
.page-hero .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: float 22s ease-in-out infinite;
}
.page-hero .orb-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(87,217,224,0.55), transparent 70%);
  top: -80px; right: 5%;
}
.page-hero .orb-2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(230,180,90,0.55), transparent 70%);
  bottom: -60px; left: 12%;
  animation-delay: -10s;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text);
  max-width: 800px;
}
.page-hero-sub {
  color: var(--text-soft);
  font-size: 1.06rem;
  max-width: 620px;
  margin: 0 0 40px;
}

.page-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--gold-2);
  letter-spacing: -0.01em;
}
.hero-stat span {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ---------- Filters panel ---------- */
.filters-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 24px;
  margin-top: -50px;
  background: rgba(14,16,25,0.75);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  z-index: 5;
}
.filters-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(230,180,90,0.4), rgba(87,217,224,0.3), rgba(139,108,240,0.4));
  z-index: -1;
  opacity: 0.35;
  filter: blur(18px);
}
.filters-btn { height: 46px; justify-content: center; }

/* Chips de filtros ativos */
.filters-active {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  min-height: 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-family: var(--font-display);
  font-weight: 500;
  background: var(--gold-soft);
  color: var(--gold-2);
  border: 1px solid rgba(230,180,90,0.3);
  border-radius: 999px;
  animation: chipIn 0.35s var(--ease);
}
.filter-chip button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.filter-chip button:hover { opacity: 1; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Lista / head ---------- */
.section-list { padding: 40px 0 100px; }
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.list-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}
.list-sub { color: var(--text-mute); font-size: 13.5px; margin: 0; }

.list-view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.view-btn {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-mute);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.view-btn:hover { color: var(--gold-2); }
.view-btn.active {
  background: var(--grad-gold);
  color: #0a0c14;
  box-shadow: 0 4px 12px -4px rgba(230,180,90,0.5);
}

/* ---------- Estado vazio ---------- */
.section-list .empty-state {
  grid-column: 1 / -1;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.98rem;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .filters-panel { grid-template-columns: 1fr 1fr; margin-top: -40px; }
  .filters-btn { grid-column: 1 / -1; }
  .page-hero { padding: 60px 0 90px; }
}

@media (max-width: 720px) {
  .filters-panel { grid-template-columns: 1fr; margin-top: 20px; padding: 20px; }
  .page-hero-stats { gap: 18px; }
  .page-hero-stats .stat-divider { display: none; }
  .list-head { flex-direction: column; align-items: flex-start; }
}