/* Estilos para el Mapa de Minas */

#mapa-minas-container {
  width: 100%;
  margin: 0;
  padding: 2rem 1rem;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mapa-minas-header {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white;
  border-radius: 8px 8px 0 0;
  width: 100%;
  max-width: 1000px;
}

.mapa-minas-header h2 {
  font-size: 1.8rem;
  margin: 0;
  margin-bottom: 0.5rem;
}

.mapa-minas-header p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
}

.mapa-minas-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  background: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Panel de Filtros */
.panel-filtros {
  display: none;
}

/* Botón Toggle Filtros */
.btn-toggle-filtros {
  display: none;
}

@media (max-width: 768px) {
  .btn-toggle-filtros {
    display: flex;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 999;
    background: white;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
  }

  .btn-toggle-filtros:hover {
    background: #f5f5f5;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
}

.btn-cerrar-filtros {
  display: none;
}

.panel-filtros h3 {
  display: none;
}

.leyenda-minerales {
  display: none;
}

/* Mapa Leaflet */
#mapa-minas-leaflet {
  width: 100%;
  height: 500px;
  z-index: 1;
}

.mina-popup {
  font-size: 0.9rem;
}

.mina-popup h4 {
  margin: 0 0 0.75rem 0;
  color: #1a365d;
  font-size: 1rem;
}

.mina-info {
  font-size: 0.85rem;
}

.mina-info p {
  margin: 0.4rem 0;
}

.mina-info strong {
  color: #1a365d;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Controles del mapa */
.leaflet-control-layers {
  background: white !important;
  border-radius: 4px !important;
  border: 1px solid #ddd !important;
}

.leaflet-control-scale {
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

@media (max-width: 1024px) {
  .mapa-minas-wrapper {
    min-height: 600px;
  }
}

@media (max-width: 768px) {
  #mapa-minas-container {
    padding: 1rem 0.5rem;
  }

  .mapa-minas-header {
    border-radius: 8px 8px 0 0;
    padding: 1.2rem 1rem;
  }

  .mapa-minas-header h2 {
    font-size: 1.4rem;
  }

  .mapa-minas-wrapper {
    max-width: 100%;
  }
@media (max-width: 480px) {
  #mapa-minas-container {
    padding: 0.8rem 0;
  }

  .mapa-minas-header {
    padding: 1rem;
    border-radius: 0;
  }

  .mapa-minas-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .mapa-minas-header p {
    font-size: 0.85rem;
  }

  .mapa-minas-wrapper {
    border-radius: 0;
  }

  #mapa-minas-leaflet {
    height: 400px;
  }

  .mina-popup {
    font-size: 0.8rem;
  }

  .mina-popup h4 {
    font-size: 0.9rem;
  }

  .mina-info {
    font-size: 0.75rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos de impresión */
@media print {
  .panel-filtros {
    display: none;
  }

  #mapa-minas-leaflet {
    min-height: 800px;
  }
}
