/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Map Custom Markers */
.custom-marker-icon {
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.custom-marker-content {
  transform: rotate(45deg);
  font-size: 18px;
  pointer-events: none;
}

/* Geolocation Control Button */
.leaflet-geolocate-control {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: white;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.leaflet-geolocate-control:hover {
  background-color: #f4f4f4;
  color: #333;
}

.leaflet-geolocate-control svg {
  display: block;
}

/* User Location Marker */
.user-location-icon {
  background: transparent !important;
  border: none !important;
}

.user-location-marker {
  position: relative;
  width: 20px;
  height: 20px;
  background-color: #3b82f6;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.user-location-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}
