:root {
  --map-bg: #f4f7fa;
  --map-country: #e2e8f0;
  --map-country-hover: #cbd5e1;
  --map-border: #fff;
  --map-point: #f97316;
  --map-point-hover: #ea580c;
  --map-point-glow: rgba(249, 115, 22, 0.3);
  --map-tooltip-bg: #fff;
  --map-tooltip-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --map-tooltip-radius: 12px;
  --map-text-primary: #0f172a;
  --map-text-secondary: #64748b;
  --map-text-muted: #94a3b8;
}

.world-map-section {
  width: 100%;
  padding: 60px 24px;
  background: var(--map-bg);
  position: relative;
}

.world-map-header {
  text-align: center;
  margin-bottom: 40px;
}

.world-map-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--map-text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.world-map-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--map-text-secondary);
  margin: 0;
  font-weight: 400;
}

.world-map-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 2 / 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.world-map-container svg {
  display: block;
  width: 100%;
  height: 100%;
}

.world-map-container svg .country {
  fill: var(--map-country);
  stroke: var(--map-border);
  stroke-width: 0.5;
  transition: fill 0.2s ease;
}

.world-map-container svg .country:hover {
  fill: var(--map-country-hover);
}

.world-map-container svg .graticule {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 0.3;
  stroke-dasharray: 2, 2;
}

.world-map-container svg .map-point {
  cursor: pointer;
}

.world-map-container svg .map-point-hitarea {
  fill: transparent;
  pointer-events: all;
}

.world-map-container svg .map-point-circle {
  fill: var(--map-point);
  stroke: #fff;
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.3));
  transition: fill 0.2s ease, transform 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.world-map-container svg .map-point:hover .map-point-circle {
  fill: var(--map-point-hover);
  transform: scale(1.3);
}

.world-map-container svg .map-point-pulse {
  fill: none;
  stroke: var(--map-point);
  stroke-width: 1;
  opacity: 0;
  animation: map-point-pulse 2s ease-out infinite;
}

@keyframes map-point-pulse {
  0% {
    r: 6;
    opacity: 0.6;
  }
  100% {
    r: 16;
    opacity: 0;
  }
}

.world-map-container svg .map-cluster-badge {
  fill: #fff;
  stroke: var(--map-point);
  stroke-width: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.world-map-container svg .map-point:hover .map-cluster-badge {
  transform: scale(1.3);
}

.world-map-container svg .map-cluster-count {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  fill: var(--map-point);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.world-map-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.world-map-skeleton.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skeleton-pulse {
  width: 80%;
  height: 60%;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.world-map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.world-map-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--map-text-muted);
}

.world-map-empty-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--map-text-secondary);
  margin: 0;
}

.world-map-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 280px;
  background: var(--map-tooltip-bg);
  border-radius: var(--map-tooltip-radius);
  box-shadow: var(--map-tooltip-shadow);
  padding: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.world-map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.world-map-tooltip-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--map-tooltip-bg);
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
}

.world-map-tooltip-arrow.bottom {
  bottom: -6px;
  left: 50%;
  margin-left: -6px;
}

.world-map-tooltip-arrow.top {
  top: -6px;
  left: 50%;
  margin-left: -6px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.04);
}

.world-map-tooltip-content {
  display: flex;
  gap: 12px;
}

.world-map-tooltip-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

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

.world-map-tooltip-info {
  flex: 1;
  min-width: 0;
}

.world-map-tooltip-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--map-text-primary);
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.world-map-tooltip-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--map-text-secondary);
  margin: 0 0 2px;
}

.world-map-tooltip-location {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--map-text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.world-map-tooltip-location svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.world-map-tooltip-events {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.world-map-tooltip-events-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--map-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}

.world-map-tooltip-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.world-map-tooltip-event-item {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--map-text-primary);
  padding: 4px 0;
  border-bottom: 1px solid #f8fafc;
}

.world-map-tooltip-event-item:last-child {
  border-bottom: none;
}

.world-map-tooltip-event-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.world-map-tooltip-event-item a:hover {
  color: var(--map-point);
}

.world-map-tooltip-event-date {
  font-size: 10px;
  color: var(--map-text-muted);
  margin-left: 4px;
}

@media (max-width: 768px) {
  .world-map-section {
    padding: 40px 16px;
  }

  .world-map-header {
    margin-bottom: 24px;
  }

  .world-map-container {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .world-map-tooltip {
    max-width: 240px;
  }

  .world-map-tooltip-image {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .world-map-container {
    aspect-ratio: 3 / 4;
  }

  .world-map-tooltip {
    max-width: 200px;
    padding: 10px;
  }

  .world-map-tooltip-content {
    flex-direction: column;
    gap: 8px;
  }

  .world-map-tooltip-image {
    width: 100%;
    height: 80px;
  }
}
