/* RESET E FONTES - Estilo Fofo (Soft UI) */
body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background-color: #F4FBFA; /* Fundo verde menta bem clarinho */
  color: #333;
}

/* CABEÇALHO */
.header-principal {
  background-color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #E2E8F0;
  border-radius: 0 0 24px 24px; /* Cabeçalho arredondado embaixo */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-texto {
  font-size: 1.4rem;
  font-weight: 800;
  color: #064E3B; /* Verde bem escuro */
  margin: 0;
}

.busca-container {
  display: flex;
  width: 100%;
}

.input-busca {
  width: 100%;
  font-family: 'Nunito', sans-serif;
  padding: 12px 20px;
  border: 2px solid #CBD5E1;
  border-radius: 20px 0 0 20px; /* Arredondado amigável */
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.input-busca:focus { border-color: #10B981; }

.btn-busca {
  background-color: #10B981;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-busca:hover { background-color: #059669; }

/* ÁREA PRINCIPAL */
.conteudo-principal {
  padding: 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.titulo-secao h2 {
  margin: 0 0 4px 0;
  color: #064E3B;
  font-weight: 800;
}

.titulo-secao p {
  margin: 0 0 24px 0;
  color: #64748B;
  font-weight: 600;
}

/* BANNER DO QUIZ */
.banner-quiz {
  background: linear-gradient(135deg, #A7F3D0 0%, #10B981 100%);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.15);
}

.texto-quiz h3 {
  margin: 0 0 8px 0;
  color: #064E3B;
  font-weight: 800;
  font-size: 1.2rem;
}

.texto-quiz p {
  margin: 0;
  color: #064E3B;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-quiz {
  background-color: #FFFFFF;
  color: #10B981;
  border: none;
  padding: 14px 28px;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  white-space: nowrap;
}

.btn-quiz:hover { transform: scale(1.05) translateY(-2px); }
.btn-quiz:active { transform: scale(0.95); }

/* FILTROS */
.filtros {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.filtros::-webkit-scrollbar { display: none; }

.btn-filtro {
  background-color: #FFFFFF;
  border: 2px solid #E2E8F0;
  padding: 8px 20px;
  border-radius: 30px; /* Estilo pílula gordinha */
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-filtro:hover { border-color: #10B981; color: #10B981; transform: translateY(-2px); }
.btn-filtro.ativo { background-color: #10B981; color: white; border-color: #10B981; }

/* GRID DE CARDS */
.grid-ecopontos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card-ecoponto {
  background-color: #FFFFFF;
  border-radius: 24px; /* Mais arredondado */
  padding: 24px;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.08);
  border: 2px solid #E2E8F0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s; /* Efeito Bounce (Pulo) */
}

.card-ecoponto:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 25px rgba(16, 185, 129, 0.15);
  border-color: #10B981;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-header h3 {
  margin: 0;
  color: #064E3B;
  font-size: 1.2rem;
  font-weight: 800;
}

.status {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.status.aberto { background-color: #D1FAE5; color: #059669; }
.status.fechado { background-color: #FEE2E2; color: #DC2626; }

/* --- ATUALIZAÇÃO: ENDEREÇOS E NOVAS TAGS --- */
.endereco {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.4;
}

.materiais {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
}

.tag.plastico { background-color: #FEE2E2; color: #DC2626; }
.tag.papel { background-color: #DBEAFE; color: #2563EB; }
.tag.eletronico { background-color: #FEF3C7; color: #D97706; }
.tag.vidro { background-color: #DCFCE7; color: #16A34A; }
.tag.metal { background-color: #F3E8FF; color: #9333EA; }
.tag.oleo { background-color: #FFEDD5; color: #C2410C; }

/* Novas Tags */
.tag.entulho { background-color: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }
.tag.moveis { background-color: #FFEDD5; color: #9A3412; border: 1px solid #FDBA74; }

/* BOTÃO DE ROTA MAPS */
.btn-rota {
  width: 100%;
  background-color: #10B981;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}
.btn-rota:hover { background-color: #059669; }
.btn-rota:active { transform: scale(0.95); }

/* CLASSE JS */
.escondido { display: none !important; }

/* RESPONSIVIDADE */
@media (min-width: 768px) {
  .header-principal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
  }
  .busca-container { max-width: 400px; }
  .conteudo-principal { padding: 40px; }
}

@media (max-width: 600px) {
  .banner-quiz {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}