/**
 * Estilos para o mapa de núcleos no front-end
 */

.nucleos-map-container {
  margin: 20px 0;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

#nucleos-map {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* Estilo para o indicador de carregamento */
.nucleos-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.nucleos-loading p {
  margin-top: 15px;
  color: #333;
  font-weight: bold;
}

.nucleos-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: nucleos-spin 1s linear infinite;
}

@keyframes nucleos-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Estilos para o popup do Leaflet */
.leaflet-popup-content-wrapper {
  border-radius: 5px;
  padding: 0;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.nucleo-popup {
  padding: 15px;
}

.nucleo-popup h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.nucleo-popup p {
  margin: 0 0 10px;
  color: #666;
}

/* Estilo para a descrição do núcleo no popup */
.nucleo-description {
  margin: 0 0 12px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* Estilo para o QR code */
.nucleo-qrcode {
  display: block;
  margin: 10px auto;
  max-width: 150px;
  height: auto;
}

/* Estilo para o link no popup */
.nucleo-link {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 13px;
  transition: background-color 0.2s;
}

.nucleo-link:hover {
  background-color: #005177;
  color: #fff;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .nucleos-map-container {
    height: 350px !important;
  }
}
