/* novo/frontend/assets/css/ponto.css */

h1 {
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Seção: link superior de localização cidade e estado */
.localizacao {
  background: #f9f9f9;
  border-left: 4px solid #007BFF;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  gap: 0.5rem;
}

.localizacao a {
  text-decoration: none;
  color: #007BFF;
}

.localizacao a:hover {
  text-decoration: underline;
}

/* Seção: imagem e chamada para ação Maps e Earth*/
.imagem-e-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.imagem-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: block;
}

/* CTA visual */
.cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(240, 240, 240, 0.6);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  min-height: 60px;
}

.cta-conteudo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-conteudo h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Seção h2 de descrição principal */
.descricao-principal {
  padding: 1rem 1rem;  
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.descricao-principal h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #222;
  margin-top: 0.5rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

.texto-descricao {
  margin-bottom: 1.5rem;
}

.link-oficial {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.link-oficial i {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  flex-shrink: 0;
  color: #1e88e5;
}

.link-oficial a {
  color: #1e88e5;
  text-decoration: underline;
  word-break: break-word;
  transition: color 0.3s;
}

.link-oficial a:hover {
  color: #1565c0;
}

.botao-destaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: #1e88e5;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s;
}

.botao-destaque:hover {
  background-color: #1565c0;
}

/* Responsividade */
@media (min-width: 768px) {
  .imagem-e-cta {
    flex-direction: row;
    align-items: center;
  }

  .imagem-wrapper {
    flex: 1;
    max-width: 400px;
  }

  .cta-wrapper {
    flex: 1;
    height: 100%;
    min-height: 300px;
  }
}

/* Seção h2 de informações adicionais */
.info-adicional {
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 1rem;
  margin-top: 1rem;
}

.info-adicional h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.info-bloco {
  margin-bottom: 1.5rem;
}

.info-bloco h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.8rem;
}

/* Subseção h3 de coordenadas */
.coordenadas-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.coordenadas-link {
  font-weight: bold;
  text-decoration: none;
  color: #0077cc;
  background: #eef6ff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.coordenadas-link:hover {
  background: #d6ecff;
}

.copiar-coordenadas {
  background: #0077cc;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s;
}

.copiar-coordenadas:hover {
  background: #005fa3;
}

/* Subseção h3 de arquivos */
.arquivos-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0f0f0;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  margin-right: 0.8rem;
  transition: background 0.3s;
}

.arquivos-links a:hover {
  background: #e0e0e0;
}

.arquivos-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Subseção h3 de tags */
.tags-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tags-lista .tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #eaf5fd;
}

.tags-lista .tag a {
  color: #333;
  text-decoration: none;
}

.tags-lista .tag:hover {
  text-decoration: underline;
}

.tags-lista .tag i {
  width: 12px;
  height: 12px;
}

/* Seção h2 Pontos próximos e pontos aleatórios por categoria*/
.pontos-proximos {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.pontos-proximos h3 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mini-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.mini-card {
  flex: 1 1 calc(30% - 1rem);
  max-width: calc(30% - 1rem);
  background: #fafafa;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.mini-card-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.titulo-ponto {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #e0f0ff;
  color: #1e6bb8;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  width: fit-content;
}

.distancia-badge i {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.mini-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.mini-card span {
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: #e8f0ff;
  color: #2c3e50;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
  gap: 0.4rem;
  margin-top: 4px;
}

.mini-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.mini-card span small.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #e0f0ff;
  color: #1e6bb8;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  margin-top: 6px;
}

/* Responsivo */
@media (max-width: 768px) {
  .mini-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* BOX AMARELO - CORREIOS */
.info-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-box h2 {
    color: #856404;
    margin: 0 0 20px 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
    background: white;
    padding: 20px;
    border-radius: 6px;
}

.info-item {
    padding: 10px;
}

.info-item strong {
    display: block;
    color: #856404;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-item-content {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.info-item a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

.cta-button {
    background: linear-gradient(135deg, #28a745 0%, #20903b 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    font-weight: bold;
    font-size: 16px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #20903b 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(40, 167, 69, 0.4);
}

.map-links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #ffc107;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.map-links a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.map-links a:hover {
    text-decoration: underline;
}

.alert-icon {
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .map-links {
        flex-direction: column;
        gap: 10px;
    }
}
/* Container de anúncios - mobile first */
.ad-container {
  min-height: 250px; /* 300x250 padrão mobile */
  margin: 20px auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 4px;
  overflow: hidden;
}

/* Quando anúncio carrega, remove background */
.ad-container:has(.adsbygoogle[data-ad-status="filled"]) {
  background: transparent;
  min-height: auto;
}

/* Ajustes para tablet */
@media (min-width: 600px) and (max-width: 1024px) {
  .ad-container {
    min-height: 280px; /* 336x280 ou 728x90 */
  }
}

/* Ajustes para desktop */
@media (min-width: 1025px) {
  .ad-container {
    min-height: 90px; /* 728x90 leaderboard */
    max-width: 728px;
  }
  
  .ad-topo {
    min-height: 90px; /* Banner horizontal topo */
  }
  
  .ad-conteudo {
    min-height: 250px; /* Retângulo no conteúdo */
  }
}

/* Remove espaço quando sem anúncio */
.ad-container:empty {
  display: none;
}
