/* =============================
   VARIÁVEIS GERAIS
============================= */
:root {
  --cor-fundo: aliceblue;
  --cor-fundo-card: #ffffff;
  --cor-borda: #ccc;
  --cor-texto: #222;
  --cor-primaria: #0078d7;
  --cor-secundaria: #99d9ea;
  --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;
}

/* =============================
   SEÇÕES PRINCIPAIS
============================= */

/* Container que controla o scroll e o snap */
.Snap {
  height: 100vh;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.Snapoff {
  height: 100vh;
  width: 100%;
  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-fundo);
}

.textoRodape {
  font-size: 60pt;
}

/* =============================
   MAPA E SVG
============================= */
.mapa {
  position: relative;
  /* permite posicionar elementos absolutos dentro */

  height: 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);
}

#Svg_Container {
  width: 100%;
  height: 100%;
  position: absolute;
  display: block;
}

#Svg_Container svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 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: hidden;
  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;
}

.informacoes {
  display: grid;
  background-color: transparent;
  color: var(--cor-texto);
  padding-bottom: var(--espacamento);
  gap: var(--espacamento);
  flex-shrink: 0;
}

.nomeDoBairro {
  grid-column: span 3;
  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: column;
  padding: 8px 10px;
  background: #f7f7f7;
  border-radius: 6px;
}

.divinformacoes h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
  margin: 0 0 4px 0;
}

.divinformacoes h2 {
  color: var(--cor-primaria);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

/* 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 {
  grid-column: span 3;
  /* ocupa duas colunas */
  background: #d9e7ff;
  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;
}