/* Additional custom styles for map pre-lander */

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
  background: #151520 !important;
  color: #ffffff !important;
  border: 1px solid #ff00ff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(255, 0, 255, 0.4) !important;
}

.leaflet-popup-tip {
  background: #151520 !important;
  border: 1px solid #ff00ff !important;
}

.leaflet-popup-close-button {
  color: #ffffff !important;
  font-size: 18px !important;
  padding: 4px 8px !important;
}

.leaflet-popup-close-button:hover {
  color: #ff00ff !important;
}

/* Map controls hidden by default */
.leaflet-control-container {
  display: none;
}

/* Ensure pins are always visible and clickable */
.pulsing-pin {
  cursor: pointer !important;
  z-index: 1000 !important;
}

.pulsing-pin:hover {
  transform: scale(1.3) !important;
  transition: transform 0.2s ease !important;
}

/* Make sure markers are interactive */
.leaflet-marker-icon {
  cursor: pointer !important;
}

/* Smooth transitions */
.survey-step {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .survey-card {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .map-pin-popup {
    min-width: 140px;
  }
}

/* Performance: GPU acceleration */
.map-container,
.survey-overlay,
.btn-primary {
  will-change: transform;
  transform: translateZ(0);
}
