.world-map-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
}

.world-map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(200, 200, 200, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.world-map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.markers-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: markerAppear 0.8s ease-out forwards;
  opacity: 0;
  cursor: pointer;
}

@keyframes markerAppear {
  to {
    opacity: 1;
  }
}

.marker-center {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF9F1C;
  position: relative;
  z-index: 3;
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.8);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #FF9F1C;
  opacity: 0;
}

.pulse-ring-1 {
  width: 20px;
  height: 20px;
  animation: pulseRing1 2s ease-out infinite;
}

@keyframes pulseRing1 {
  0% {
    width: 16px;
    height: 16px;
    opacity: 0.9;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 0;
  }
}

.pulse-ring-2 {
  width: 28px;
  height: 28px;
  animation: pulseRing2 2s ease-out infinite;
  animation-delay: 0.4s;
}

@keyframes pulseRing2 {
  0% {
    width: 24px;
    height: 24px;
    opacity: 0.7;
  }
  100% {
    width: 56px;
    height: 56px;
    opacity: 0;
  }
}

.pulse-ring-3 {
  width: 36px;
  height: 36px;
  animation: pulseRing3 2s ease-out infinite;
  animation-delay: 0.8s;
}

@keyframes pulseRing3 {
  0% {
    width: 32px;
    height: 32px;
    opacity: 0.5;
  }
  100% {
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

.marker-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.9;
  margin-top: 6px;
  z-index: 10;
  pointer-events: none;
}

.marker:hover .marker-center {
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(255, 159, 28, 1);
}

.origin-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: markerAppear 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 1.5s;
  cursor: pointer;
}

.origin-center {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2EC4B6;
  position: relative;
  z-index: 3;
  box-shadow: 0 0 12px rgba(46, 196, 182, 0.9);
}

.origin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #2EC4B6;
  animation: originPulse 2.5s ease-out infinite;
}

@keyframes originPulse {
  0% {
    width: 24px;
    height: 24px;
    opacity: 0.8;
  }
  100% {
    width: 60px;
    height: 60px;
    opacity: 0;
  }
}

.origin-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46, 196, 182, 0.95);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  z-index: 10;
  pointer-events: none;
}

.origin-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(46, 196, 182, 0.95);
}

.origin-marker:hover .origin-tooltip {
  opacity: 1;
  visibility: visible;
}

.origin-marker:hover .origin-center {
  transform: scale(1.3);
  box-shadow: 0 0 18px rgba(46, 196, 182, 1);
}

.map-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FF9F1C;
  position: relative;
  animation: legendPulse 2s ease-in-out infinite;
}

.legend-dot::before,
.legend-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid #FF9F1C;
  animation: legendPulseRing 2s ease-out infinite;
}

.legend-dot::before {
  width: 22px;
  height: 22px;
  animation-delay: 0.3s;
}

.legend-dot::after {
  width: 30px;
  height: 30px;
  animation-delay: 0.6s;
}

.legend-origin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2EC4B6;
  position: relative;
  animation: legendOriginPulse 2.5s ease-in-out infinite;
}

.legend-origin::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #2EC4B6;
  animation: legendOriginRing 2.5s ease-out infinite;
}

@keyframes legendPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

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

@keyframes legendOriginPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

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

.legend-text {
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
}

.origin-item .legend-text {
  color: #065f46;
}

@media (max-width: 768px) {
  .world-map-wrapper {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
  }

  .marker-center {
    width: 10px;
    height: 10px;
  }

  .origin-center {
    width: 12px;
    height: 12px;
  }

  .map-legend {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .marker-tooltip,
  .origin-tooltip {
    display: none;
  }

  .world-map-container {
    padding: var(--spacing-md) 0;
  }

  .marker-center {
    width: 8px;
    height: 8px;
  }

  .origin-center {
    width: 10px;
    height: 10px;
  }
}
