/* Custom Map Styles for WanderLust Project */

/* Custom Marker Styles */
.custom-marker {
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.marker-container {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

/* Marker Front Side (Default Pin) */
.marker-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fe424d;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 18px;
}

/* Marker Back Side (Logo) */
.marker-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  color: #fe424d;
  font-size: 18px;
}

/* Marker Hover Effect */
.custom-marker:hover .marker-container {
  transform: rotateY(180deg);
}

/* Pulsating Radius Effect */
.pulse-radius {
  position: absolute;
  border-radius: 50%;
  background: rgba(254, 66, 77, 0.2);
  opacity: 1;
  animation: pulse 2s infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Loading Indicator */
.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  z-index: 10;
}

.map-loading.hidden {
  display: none;
}
