body {
  background: linear-gradient(180deg, #e9f1ff 0%, #ffffff 100%);
  color: #222;
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
}

.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff;
}

.hero h1 {
  font-weight: 700;
  font-size: 2.2rem;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #eef3ff;
}


.containerhero {
  padding: 4rem 1rem;
}

.containerhero h1 {
  font-weight: 700;
  font-size: 2.2rem;
}

.containerhero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}


.section-title {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.city-card .value {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 600;
}

.chart-container {
  max-width: 700px;
  margin: 2rem auto;
}

footer {
  background: #0d6efd;
  color: #fff;
  font-size: 0.9rem;
  padding: 2rem 1rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

.btn-gradient {
  background: linear-gradient(90deg, #0d6efd, #0a58ca);
  color: #fff;
  border: none;
}

.btn-gradient:hover {
  opacity: 0.9;
  color: #fff;
}

.ads-zone {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.boxsha {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

/* Miniatura quadrada */
.miniatura {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.cidade-box {
  display: none;
  text-align: center;
}

.quatexto,.linktexto {
  cursor: pointer;
  color: blue;
  font-weight: 600;
  font-size:medium;
  font-family:'Times New Roman', Times, serif;
}

.fonte {
  cursor: pointer;
}

.icone-link {
  font-size: 8px;
}

.quadrado {
  cursor: pointer;
  width: 75px !important;
  height: 75px !important;
  background-color: #007bff;
  color: yellow;
  font-size: 13px;
  text-align: center;
  line-height: 15px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin: 3px;
  justify-content: center;
  /* horizontal */
  align-items: center;
  /* vertical */
  font-weight: 600;
}

/*
.quadrado:hover {
  transform: scale(1.2);
}
*/

#gradeContainer {
  display: none;
}

.bImprime {
  display: '';
}

/*
#quadrado {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  padding: 10px;
}
  */

.box-item {
  width: 80px;
  height: 80px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 80px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
  justify-content: center;
  /* horizontal */
  align-items: center;
  /* vertical */
}

.box-item:hover {
  transform: scale(1.1);
  background-color: #0056b3;
  justify-content: center;
  /* horizontal */
  align-items: center;
  /* vertical */
}

/* ----- Botão CLASSIFICAR (horizontal fixo) ----- */
#classificarToggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #0d6efd;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1050;
  transition: all 0.3s ease;
}

#classificarToggle:hover {
  background: #0b5ed7;
  transform: scale(1.05);
}

/* ----- Painel deslizante ----- */
#menuClassificar {
  position: fixed;
  top: 0;
  left: -320px;
  height: 100%;
  width: 300px;
  background: #fff;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1049;
  transition: left 0.3s ease;
  padding: 20px 15px;
  overflow-y: auto;
}

#menuClassificar.active {
  left: 0;
}

/* ----- Cards de opção ----- */
.radio-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  background: #f8f9fa;
}

.radio-card:hover {
  background-color: #e9f1ff;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.2);
}

.radio-card input {
  display: none;
}

.radio-card input:checked+label {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}

.radio-card label {
  display: block;
  border-radius: 10px;
  padding: 15px 5px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.radio-card i {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

/* CSS mínimo só pra ficar apresentável */
#analysis-panel {
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.analysis-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  background: #f1f1f1;
  margin-right: 6px;
  font-size: 0.9em;
}

.banner-container {
  width: 100%;
  max-width: 798px;
  margin: 10px auto;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}


#listaCidades {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.detalhes {
  flex: 0 1 260px;
  /* Cada item terá no mínimo 280px, mas pode crescer até o limite da largura disponível */
  margin-bottom: 10px;
  /* Ajuste do espaçamento entre os boxes */
  min-width: 360px !important;
}


/* Card escondido no mobile */
@media (max-width: 768px) {
  .detalhes {
    display: none;
    /*
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
        transition: all 0.3s ease;
        */
  }

  .bImprime {
    display: none;
  }

  .quadrado {
    display: flex;
  }

  .detalhes.ativo {
    display: flex !important;
    opacity: 1;
    transform: scaleY(1);
    flex-direction: column;
    margin-top: 10px;
  }

  #gradeContainer {
    display: flex;
  }

  #listaCidades {
    display: none;
  }
}


.zoom-box {
  transition: transform 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.zoom-ativo {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5) !important; 
  z-index: 9999 !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5) !important;
  background: white;
  width:100vw;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}

#mostraquadro {
  font-weight: bold;
}

.painel {
  border: 2px solid #ccc;
  border-radius: 10px;
  background: white;
  padding: 20px;
  max-width: 600px;
  margin-bottom: 20px;
  position: relative;
}

.rodape-gerado {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #333;
}

.painelZ {
  border: 2px solid #ccc;
  border-radius: 10px;
  background: white;
  padding: 20px;
  max-width: 600px;
  margin-bottom: 20px;
  position: relative;
}

  #mensagem-animada {
    position: fixed;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(90deg, #ff4e50, #f9d423);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    flex-wrap: wrap;
  }

  #mensagem-animada.ativo {
    opacity: 1;
    transform: translateY(0);
  }

  #mensagem-animada.cima {
    top: 0;
    transform: translateY(-100%);
  }

  #mensagem-animada.cima.ativo {
    transform: translateY(0);
  }

  #mensagem-animada .icone {
    width: 28px;
    height: 28px;
  }

  #mensagem-animada .texto {
    flex: 1;
    text-align: center;
  }

  #mensagem-animada .fechar {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }

  @media (max-width: 600px) {
    #mensagem-animada {
      font-size: 16px;
      padding: 15px;
    }
  }

/*
.secao {
  min-height: 300px;
  opacity: 1;
  transform: translateY(50px);
  transition: all 0.6s ease;
  
}
.secao.visivel {
  opacity: 1;
  transform: translateY(0);
}
*/
body {
  margin: 0;
  font-family: sans-serif;
  background: #f0f0f0;
}
.no-scroll {
  overflow: hidden;
}

main {
  display: flex;
  flex-direction: column;
  padding:10px;
}

.secao {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  min-height: 300px;
}

.visivel {
  opacity: 1;
  transform: translateY(0);
  display:block;
}

p {
  text-align:justify; 
  font-size:1em;
}

p.centro {
  text-align: center;
}

.destaque { 
  border-bottom:1px dotted black;
  font-size: 1em;
  transition: all 0.3s ease;
} 

.destaque:hover {
  color:blue;
  font-size:1.5em;
   cursor: pointer;
}
.destaque.ativo {
  background-color: #f0f0f0;
  color: #333;
  cursor: pointer;
}
.card-box {
  width: 300px;
  padding: 1rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  text-align: center;
}
