/* =============================
   VARIÁVEIS GERAIS
============================= */
:root {
  --cor-fundo: #eeeeee;
  --cor-fundo-card: #ffffff;
  --cor-borda: #ccc;
  --cor-texto: #222;
  --cor-primaria: #fccb00;
  --cor-secundaria: #242021;
  --raio-borda: 20px;
  --espacamento: 20px;
}

/* =============================
   BASE
============================= */
body {
  font-family: "Space Grotesk", sans-serif;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  width: 100%;
  height: 100vh;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 6rem);
}

h5 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

p {
  font-size: 1.5rem;
}

br {
  display: block;
  margin-bottom: 2px;
  font-size: 2px;
  line-height: 2px;
}

a {
  color: #d9af00;

}

.hidden {
  display: none;
}

/* =============================
   AVISO DE CONSTRUÇÃO
============================= */
.aviso-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.aviso-modal {
  background: var(--cor-fundo-card);
  border-radius: var(--raio-borda);
  padding: 40px 30px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.aviso-modal h2 {
  color: var(--cor-primaria);
  font-size: 2rem;
  margin: 0 0 15px 0;
}

.aviso-modal p {
  color: var(--cor-texto);
  font-size: 1rem;
  margin: 0 0 25px 0;
  line-height: 1.5;
}

.aviso-botao {
  background-color: var(--cor-primaria);
  color: var(--cor-secundaria);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.aviso-botao:hover {
  background-color: #e6b700;
  transform: scale(1.05);
}

.aviso-botao:active {
  transform: scale(0.98);
}

/* =============================
   SEÇÕES PRINCIPAIS
============================= */

/* Container que controla o scroll e o snap */
.Snap {
  height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background-color: var(--cor-fundo);
}

.Snapoff {
  height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-snap-type: none;
  scroll-behavior: smooth;
}

/* Seções que “grudam” */
.inicial,
.principal,
.Reportagem_1 {
  scroll-snap-align: start;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reportagens {
  display: flex;
  flex-direction: column;
  height: fit-content;
  width: 100%;
  min-height: 500px;
  gap: var(--espacamento);
}

.reportagem {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Conteúdo interno da principal */
.principal {
  gap: var(--espacamento);
  padding-left: 10%;
  padding-right: 10%;
  padding-top: var(--espacamento);
  padding-bottom: var(--espacamento);
  box-sizing: border-box;
  height: 100%;
}

.inicial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  text-align: center;
  gap: 0.5rem;
  scroll-snap-align: start;

}

.paginaSobre {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin-top: 50px;
  scroll-snap-align: start;
  padding-bottom: 200px;
}

.paginaReportagem {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin-top: 50px;
  scroll-snap-align: start;
  padding-bottom: 200px;
}

.paginaBaseados {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin-top: 50px;
  scroll-snap-align: start;
  padding-bottom: 200px;
}

.margemTexto {
  padding-left: 25%;
  padding-right: 25%;
}

.rodape {
  display: flex;
  height: 400px;
  width: 100%;
  background-color: var(--cor-primaria);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: flex-start;
  scroll-snap-align: end;
  gap: 0;
  -webkit-text-fill-color: var(--cor-secundaria);
}

.textoRodape {
  font-size: 60pt;
}

/* =============================
   MAPA E SVG
============================= */
.mapa {
  display: flex;
  flex-direction: column;
  /* permite posicionar elementos absolutos dentro */

  height: 100%;
  width: 100%;
  flex: 1;
  background-color: var(--cor-fundo-card);
  border-radius: var(--raio-borda);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);

  align-content: center;
}

.tituloMapa {
  padding: var(--espacamento);
  height: 150px;
}

#followArea {
  display: flex;
  height: 100%;
  padding: var(--espacamento);
}

#Svg_Container {
  display: flex;
  width: 100%;
  height: 100%;
}

#Svg_Container svg {
  display: flex;
  transform: scale(1.6);

}

/* Estilo base dos bairros */
#Svg_Container path {
  fill: #cccccc;
  stroke: white;
  stroke-width: 0.2;
  transition: fill 0.2s, stroke 0.2s, stroke-width 0.2s;
}

#textoMouse {
  position: absolute;
  height: fit-content;
  width: fit-content;

  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.visualozacaomapa {
  height: fit-content;
  width: fit-content;
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  background: #f7f7f7;
  border-radius: 6px;
}

/* =============================
   LATERAL DIREITA
============================= */
.lateralDireita {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  background-color: var(--cor-fundo-card);
  border-radius: var(--raio-borda);
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding-left: var(--espacamento);
  padding-right: var(--espacamento);
  gap: var(--espacamento);
}

.Escolha_bairros {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Lista de bairros */
#listaContainer {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-y: auto;
  font-family: inherit;
  flex: 1;
}

.containerOpcaoToggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--espacamento);

}

.informacoes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: transparent;
  color: var(--cor-texto);
  padding-bottom: var(--espacamento);
  gap: 1px;
  flex-shrink: 1;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.nomeDoBairro {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cor-primaria);
  border-bottom: 3px solid var(--cor-primaria);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

/* Cada card */
.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Bloco individual de informação */
.divinformacoes {
  display: flex;
  flex-direction: row;
  padding: 8px 10px;
  background: #f7f7f7;
  border-radius: 6px;
  height: fit-content;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.divinformacoes:hover {
  background-color: #f0f0f0;
}

.divinformacoes.ativo {
  background-color: var(--cor-primaria);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.divinformacoes h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  margin: 0 0 0 4px;
}

.divinformacoes.ativo h3 {
  color: var(--cor-secundaria);
}

.divinformacoes h2 {
  color: var(--cor-primaria);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0 5px;
  height: fit-content;
}

.divinformacoes.ativo h2 {
  color: var(--cor-secundaria);
}

/* Sub-blocos com número e porcentagem lado a lado */
.subdivinformacoes {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}

.destaque {
  /* ocupa duas colunas */
  grid-column: span 2;
  font-size: 1.2em;
  font-weight: bold;
}

.item {
  padding: 8px 10px;
  margin: 4px 0;
  background: #f4f4f4;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.item:hover {
  background: #dceeff;
}

/* Container do seletor */
.seletor {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

/* Botões de opção */
.seletor .opcao {
  flex: 1;
  padding: 10px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  color: #fff;
  transition: all 0.3s ease;
}

/* Hover: suaviza a transição do degradê */
.seletor .opcao:hover {
  filter: brightness(1.1);
}

/* Degradês mais vibrantes por tipo de opção */
.opcao_Genero {
  background: linear-gradient(135deg, #ff7eb9, #f5f5f5);
}

/* azul → rosa */
.opcao_Raca {
  background: linear-gradient(135deg, #4aa1f3, #f5f5f5);
}

/* preto → branco */
.opcao_Partido {
  background: linear-gradient(135deg, #ff4c4c, #f5f5f5);
}

/* verde → vermelho */

/* Botão ativo: intensifica levemente degradê e adiciona sombra */
.opcao_Genero.ativo {
  background: linear-gradient(135deg, #3390d6, #ff66a1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.opcao_Raca.ativo {
  background: linear-gradient(135deg, #1f1f1f, #ffffff);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.opcao_Partido.ativo {
  background: linear-gradient(135deg, #2ea35c, #e63939);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* =============================
   OUTROS
============================= */
#info {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
}