/* Common styles for map components */
.marker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  transform: translate(-50%, -50%);
}

.marker {
  overflow: hidden;
  border: 1px solid #ffffff;
  border-radius: 16px;
  width: 52px;
  display: flex;
  justify-content: center;
  height: 52px;
  transition: border-width 0.3s linear;
  box-sizing: content-box;
}

.marker:hover {
  border-width: 2px;
  box-shadow: 0px 2px 4px 0px #5f698333;
}

.marker-text {
  color: #050d33;
  font-weight: 500;
  font-size: 12px;
  top: 60px;
  position: absolute;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  z-index: 10;
  transition: all 0.3s ease-out;
}

.marker-text.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.marker-text.hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.9);
}

.image {
  transition: scale 0.3s ease-out;
}

.image:hover {
  scale: 1.1;
}

/* Стили для маркера локации пользователя */
.user-location-marker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.user-location-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border: 3px solid #eb5547;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(235, 85, 71, 0.3);
  z-index: 1000;
  animation: markerAppear 0.3s ease-out;
}

.user-location-icon {
  color: #eb5547;
  animation: iconBounce 0.6s ease-out 0.2s both;
}

.user-location-icon svg {
  width: 20px;
  height: 20px;
}

.user-location-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid #eb5547;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
  opacity: 0.6;
}

/* Анимации для маркера локации */
@keyframes markerAppear {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes iconBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

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

/* Эффект при наведении на маркер локации */
.user-location-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(235, 85, 71, 0.4);
  transition: all 0.2s ease-out;
}
