/* Maison EM7 — World Map (ST Extras) */

.st-world-map {
  --st-wm-primary: #585e3c;
  --st-wm-secondary: #f55905;
  --st-wm-soft: #f5f3ef;
  --st-wm-muted: #8a9068;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.st-world-map__chart {
  position: relative;
  width: 100%;
  min-height: 280px;
  background: linear-gradient(180deg, rgba(245, 243, 239, 0.55) 0%, rgba(255, 255, 255, 0) 42%);
  border-radius: 2px;
}

.st-world-map__loading,
.st-world-map__error {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: var(--st-wm-primary);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.st-world-map__error {
  color: var(--st-wm-secondary);
  max-inline-size: 28ch;
}

/* Animated dashed routes (CodePen-style) */
.st-world-map .st-world-map__line {
  stroke-dasharray: 10 8;
  stroke-dashoffset: 0;
  animation: st-world-map-dash 6s linear infinite;
}

@keyframes st-world-map-dash {
  from {
    stroke-dashoffset: 120;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.st-world-map .highcharts-background {
  fill: transparent;
}

.st-world-map .highcharts-map-series path.highcharts-null-point {
  transition: fill 0.2s ease;
}

.st-world-map .highcharts-tooltip-box {
  stroke: var(--st-wm-secondary);
}

@media (max-width: 549px) {
  .st-world-map .highcharts-data-label {
    display: none;
  }

  .st-world-map__chart {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-world-map .st-world-map__line {
    animation: none;
    stroke-dasharray: none;
  }
}
