/* ==========================================================
   SOU VALORA — pages/bairro.css
   Página rica de bairro: hero, quick facts, POIs, FAQ etc.
   ========================================================== */

/* ---------- HERO ---------- */
.bairro-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding-top: 82px;
  min-height: 480px;
}

.bairro-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.bairro-hero-overlay {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 5vw, 64px);
}

.bairro-hero-content {
  padding: 60px 0 80px;
  max-width: 720px;
}

.bairro-hero-sub { margin-top: 18px; }

.bairro-hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- QUICK FACTS ---------- */
.bairro-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.bairro-fact {
  padding: 32px 24px;
  text-align: center;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.bairro-fact:last-child { border-right: none; }

.bairro-fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.bairro-fact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  margin-bottom: 6px;
}

.bairro-fact-value {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 500;
}

@media (max-width: 900px) {
  .bairro-facts { grid-template-columns: repeat(2, 1fr); }
  .bairro-fact:nth-child(2n) { border-right: none; }
  .bairro-fact { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
}

@media (max-width: 480px) {
  .bairro-facts { grid-template-columns: 1fr; }
  .bairro-fact { border-right: none; }
}

/* ---------- RESUMO ---------- */
.bairro-resumo-section {
  background: var(--cream);
}

.bairro-resumo-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.bairro-resumo {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.95;
  font-weight: 300;
  margin-top: 24px;
}

/* ---------- HISTÓRIA + CARACTERÍSTICAS ---------- */
.bairro-historia-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.bairro-historia-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .bairro-historia-grid { grid-template-columns: 1fr; }
}

.bairro-historia-card {
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
}

.bairro-historia-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.bairro-historia-card .section-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.bairro-historia-texto {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
}

/* ---------- PERFIL DO MORADOR ---------- */
.bairro-perfil-section {
  background: var(--white);
  text-align: center;
}

.bairro-perfil-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.bairro-perfil-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.bairro-perfil-texto {
  font-size: 1rem;
  color: #555;
  line-height: 1.9;
  font-weight: 300;
  margin-top: 20px;
}

/* ---------- PONTOS DE INTERESSE ---------- */
.bairro-pois-section {
  background: var(--cream);
}

.bairro-pois-group {
  margin-top: 56px;
}

.bairro-pois-group:first-of-type {
  margin-top: 48px;
}

.bairro-pois-group-title {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.bairro-pois-group-title i {
  color: var(--gold);
  font-size: 1.3rem;
}

.bairro-pois-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .bairro-pois-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .bairro-pois-grid { grid-template-columns: 1fr; }
}

.bairro-poi-card {
  display: flex;
  gap: 16px;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid rgba(7, 9, 26, 0.06);
  border-radius: 8px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.bairro-poi-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 8px 24px rgba(7, 9, 26, 0.06);
}

.bairro-poi-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
  font-size: 0.95rem;
}

.bairro-poi-body { flex: 1; }

.bairro-poi-nome {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
}

.bairro-poi-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

.bairro-poi-endereco {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--gray);
}

.bairro-poi-endereco i {
  color: var(--gold);
  margin-right: 4px;
}

/* ---------- MERCADO IMOBILIÁRIO ---------- */
.bairro-mercado-section {
  text-align: center;
}

.bairro-mercado-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.bairro-mercado-range {
  margin: 32px auto 28px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  display: inline-block;
}

.bairro-mercado-range-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
  margin-bottom: 10px;
}

.bairro-mercado-range-value {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  color: var(--white);
  font-weight: 500;
}

.bairro-mercado-range-value span {
  margin: 0 12px;
  color: var(--gray);
  font-size: 1rem;
}

.bairro-mercado-texto {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
  font-weight: 300;
}

/* ---------- IMÓVEIS VAZIO ---------- */
.bairro-imoveis-section {
  background: var(--cream);
}

.bairro-vazio {
  background: var(--white);
  padding: 48px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  max-width: 600px;
  margin: 0 auto;
}

.bairro-vazio i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.bairro-vazio p {
  color: var(--gray);
  margin-bottom: 20px;
}

/* ---------- BAIRROS VIZINHOS ---------- */
.bairro-vizinhos-section {
  background: var(--white);
}

.bairro-vizinhos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .bairro-vizinhos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .bairro-vizinhos-grid { grid-template-columns: 1fr; }
}

.bairro-vizinho-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(7, 9, 26, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  color: var(--text);
}

.bairro-vizinho-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bairro-vizinho-thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.bairro-vizinho-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  font-size: 2rem;
}

.bairro-vizinho-body {
  padding: 20px 22px 24px;
}

.bairro-vizinho-zona {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 500;
}

.bairro-vizinho-nome {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 10px;
}

.bairro-vizinho-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.bairro-vizinho-card:hover .bairro-vizinho-link {
  color: var(--gold);
  gap: 12px;
}

/* ---------- FAQ ---------- */
.bairro-faq-section {
  background: var(--cream);
}

.bairro-faq-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.bairro-faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bairro-faq-item {
  background: var(--white);
  border: 1px solid rgba(7, 9, 26, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.bairro-faq-item[open] {
  border-color: var(--gold);
}

.bairro-faq-pergunta {
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
  list-style: none;
  position: relative;
  user-select: none;
}

.bairro-faq-pergunta::-webkit-details-marker { display: none; }

.bairro-faq-pergunta::after {
  content: '\002B';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.3s var(--ease);
}

.bairro-faq-item[open] .bairro-faq-pergunta::after {
  content: '\2212';
  transform: translateY(-50%) rotate(180deg);
}

.bairro-faq-resposta {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  font-weight: 300;
}

/* ---------- MAPA ---------- */
.bairro-mapa-section {
  padding: 0 clamp(24px, 5vw, 64px) 64px;
  background: var(--cream);
}

/* ---------- AJUSTE DA LISTAGEM (/bairros) ---------- */
.bairros-list-card {
  /* hook caso queira customizar a listagem depois — usado por bairros.php */
}
