/* ======================================================
   PÁGINAS DE CIDADE
   ====================================================== */

.container-cidade {
  width:100%;
  max-width: 1500px; /* tamanho do container CIDADES */
  margin: 0 auto;
  padding: 0px 20px;
  box-sizing: border-box;
}

/* ------------------------------------------------------
   AJUSTE NOS TÍTULOS
------------------------------------------------------ */
.card-titulo {
  font-size: 18px;
  margin-bottom: 10px;
}

.titulo-cidade {
  color: #b30000;
  font-weight: 700;
  font-size: 30px;
  margin-top: 50px;
  margin-bottom: 10px;
}
.subtitulo-cidade {
  color: #0a6b2d;
  font-weight: 600;
  font-size: 25px;
}

/* ------------------------------------------------------
   AJUSTE NOS BLOCOS DE TEXTO
------------------------------------------------------ */

.bloco-texto {
  margin: 30px 0;
}

.bloco-texto h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.texto-cidade {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.texto-cidade p {
  margin-bottom: 14px;
  text-align: justify;
}

/* =========================
   VISTAS DA CIDADE
========================= */

.grid-vistas {
  display: grid;
  /* grid-template-columns: repeat(4, 1fr); CONTROLA o GRID - Layout geral */
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
  margin: 22px 0;
}

.vista-card {
  background: #f4efe6;
  border: 1px solid #d8d0c2;
  border-radius: 16px;
  width:90%;    /* CARD da imagem - regula o preenchiento das imagens no retangulo */
  max-width:90%;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0, .08);
  overflow: hidden;
}

.vista-card img {
  width: 100%;
  height: 185px;    /* regular o tamanho das vistas */
  object-fit: cover;
  border-radius: 12px;
  display:block;
  margin:0 auto 12px;
  transition:transform .25s ease;
}

.vista-card h3 {
  font-size: 20px;    /* tamanho do fonte do texto dos CARDS */
  font-weight:500;
  color: #2f2f2f;
  margin: 6px 0 4px;
}

.vista-card .meta {
  margin:0;
  font-size: 13px;
  color: #666;
  line-height:1.4;
}

.vista-card {
  transition: transform .15s ease;
}

.vista-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}
.vista-card:hover img{
  transform: scale(1.04);
}

/* =========================
   SÍMBOLOS
========================= */

.grid-simbolos {
  display: grid;
  /* grid-template-columns: repeat(2, 1fr); */
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 40px;
  justify-items: center;
  margin: 20px 0;
}

.simbolo-card {
  background: #f4efe6;
  border: 1px solid #d8d0c2;
  border-radius: 16px;
  padding: 18px;
  width: 50%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0, .08);
  transition:transform .18s ease, box-shadow .18s ease;
}

.simbolo-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(0, 0, 0, .14);
}

.simbolo-card img {
  width: 100%;
  max-width: 260px;   /* ajusta a largula da janela do simbolos */
  height: 250px;
  object-fit: contain;
  display:block;
  margin:0 auto 12px;
}

/* telas menores */
@media (max-width: 900px) {
  .vista-card,
  .simbolo-card {
    width: 100%;
    max-width: 320px;
  }

  .vista-card img {
    height: 180px;
  }
}

/* LIGHTBOX */

#lightbox-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

#lightbox-overlay img{
  max-width:90%;
  max-height:90%;
  border-radius:10px;
  box-shadow:0 10px 40px rgba(0,0,0,.5);
  cursor:pointer;
}

/* ------------------------------------------------------
   MAPA
------------------------------------------------------ */
h2 {
  margin-top: 35px;
}
#mapa-cidade {
  height: 400px;
  margin: 30px 0;
  border-radius: 6px;
}

/* ------------------------------------------------------
   DADOS + PREVISÃO
------------------------------------------------------ */

.colunas-info{
  display:grid;
  /* grid-template: 1fr !important; */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap:30px;
  align-items: start;
  min-width: 0;
}
.colunas-info > article {
  min-width: 0;
}
@media (max-width: 768px){

  .colunas-info{
    display: block !important;
  }

  .colunas-info > article{
    width: 100% !important;
    margin-bottom: 20px;
  }

}

/* ------------------------------------------------------
   DADOS PRINCIPAIS
------------------------------------------------------ */

#dados-fixos dt {
  font-weight: 600;
}

#dados-fixos dd {
  margin: 0 0 8px 0;
  padding: 6px 8px;
  background: #f2f2f2;
}

/* --------------------------------------------------
   FORMATAÇÃO
-------------------------------------------------- */

.dl-dados {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 6px;
  column-gap: 10px;
  font-size: 14px;
}

.dl-dados dt {
  font-weight: 600;
  color: #333;
}

.dl-dados dd {
  margin: 0;
  padding: 4px 8px;
  background: #f2f2f2;
  border-radius: 4px;
}
  /* ------------------------------------------------------
   FORMATAÇÃO PREVISÃO DO TEMPO
------------------------------------------------------ */
.bloco-previsao {
  background: #ece5d8;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  margin-bottom: 12px;
}

.previsao-temp {
  font-size: 24px;
  font-weight: bold;
}

.previsao-data {
  font-size: 12px;
  color: #666;
}

.previsao-dias {
  display: grid;
  margin-bottom: 5px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
}

  /* ------------------------------------------------------
   FORMATAÇÃO LINKS EXTERNOS
------------------------------------------------------ */
.links-cidade a {
  text-decoration: none;
}

.links-cidade a:hover {
  text-decoration: underline;
}

  /* ------------------------------------------------------
   ESPAÇO ENTRE COLUNAS
------------------------------------------------------ */
.colunas-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* =========================
  GRID PREFEITOS
========================= */
.grid-prefeitos{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.card-prefeito{
  background: #f7f4ed;
  border: 1px solid #e3ddd2;
  border-radius: 10px;
  padding: 14px 16px;
}

.prefeito-periodo{
  font-weight: 700;
  margin-bottom: 6px;
}

.prefeito-nome{
  font-size: 16px;
  margin-bottom: 6px;
}

.prefeito-meta{
  font-size: 13px;
  color: #555;
}


/* =========================
   GRID DADOS HISTORICOS
========================= */

.tabela-historicos{
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

.tabela-historicos th{
  text-align: left;
  padding: 10px;
  border-bottom: 2px solid #ddd;
}

.tabela-historicos td{
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}

.tabela-historicos tr:nth-child(even){
  background: #fafafa;
}
@media (max-width: 600px){

  .tabela-historicos thead{
    display:none;
  }

  .tabela-historicos tr{
    display:block;
    margin-bottom:12px;
    border:1px solid #ddd;
    border-radius:8px;
    padding:10px;
    background:#fff;
  }

  .tabela-historicos td{
    display:block;
    border:none;
    padding:4px 0;
  }

  .tabela-historicos td::before{
    font-weight:bold;
    display:block;
  }

  .tabela-historicos td:nth-child(1)::before { content: "Ano"; }
  .tabela-historicos td:nth-child(2)::before { content: "População"; }
  .tabela-historicos td:nth-child(3)::before { content: "FPM"; }
  .tabela-historicos td:nth-child(4)::before { content: "FUNDEB"; }

}


/* =========================
   EMPRESAS E HOTÉIS
========================= */

.lista-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.link-card {
  display: block;
  padding: 12px;
  background: #f4efe6;
  border-radius: 8px;
  text-decoration: none;
  color: #2f2f2f;
  transition: 0.2s;
}

.link-card:hover {
  background: #e8e0d2;
  transform: translateX(4px);
}

/* =========================
   BLOCO HISTÓRIA
========================= */

.bloco-historia p {
  line-height: 1.7;
  margin-bottom: 18px;
}
.bloco-historia h3 {
  font-size: 18px;
  max-width: 800px;
  margin-bottom: 15px;
  color: #444;
  margin: 0 auto;
}
.bloco-historia strong {
  display: block;
  margin-top: 10px;
  color: #666;
}


.tabela-historicos tr:hover {
  background: #f3f3f3;
}
/* =========================
   DECLARAÇÃO DE AMOR
========================= */

.amor-wrap {
  display: flex;
  justify-content: center;
  margin: 36px 0 20px;
}

.btn-amor {
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #c81432, #ff2d55);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(200, 20, 50, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-amor:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(200, 20, 50, 0.35);
}

.amor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 9999;
}

.amor-overlay.ativo {
  display: flex;
}

.amor-box {
  position: relative;
  width: min(920px, 92vw);
  height: min(88vh, 820px);
  background: #fffefb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.amor-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.amor-fechar:hover {
  background: rgba(0, 0, 0, 0.14);
}

.amor-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 700px) {
  .btn-amor {
    font-size: 17px;
    padding: 14px 24px;
  }

  .amor-box {
    width: 95vw;
    height: 86vh;
    border-radius: 14px;
  }
}