/* =========================================================
   Worldwide Locations — Map-first layout, unified sidebar
   ========================================================= */
:root {
  --wmp-bg: #F8F9FB;
  --wmp-surface: #ffffff;
  --wmp-ink: #000000;
  --wmp-ink-muted: #494949;
  --wmp-ink-soft: #6b6b6b;
  --wmp-line: #dddddd;
  --wmp-country: #d9d9d9;
  --wmp-country-active: #ff0000;
  --wmp-accent: #ff0000;
  --wmp-accent-deep: #db0505;
  --wmp-accent-soft: rgba(255, 0, 0, 0.08);
  --wmp-accent-glow: rgba(255, 0, 0, 0.4);
  --wmp-radius: 20px;
  --wmp-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --wmp-font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wmp-section {
  --wmp-card-width: clamp(340px, 30vw, 440px);
  --wmp-card-gap: clamp(18px, 1.8vw, 30px);
  --wmp-card-shift-left: clamp(58px, 5vw, 86px);
  --wmp-map-shift-right: clamp(28px, 3vw, 52px);
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: var(--wmp-ink);
  font-family: var(--wmp-font);
  padding: 12px 0 20px;
  -webkit-font-smoothing: antialiased;
  background: #EFEFEF;
}



.wmp-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(22px, 3vw, 56px);
  box-sizing: border-box;
}

.wmp-header {
  text-align: center;
  margin: 0 auto 16px;
  max-width: 720px;
}
.wmp-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--wmp-ink);
}
.wmp-subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--wmp-ink-muted);
  line-height: 1.6;
}

/* ----- Stage: map is the visual focus, sidebar overlays right ----- */
.wmp-stage {
  position: relative;
  width: 100%;
  min-height: min(34vh, 400px);
  aspect-ratio: 1600 / 640;
  border-radius: var(--wmp-radius);
  overflow: hidden;
  background: transparent;
}

.wmp-map-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 calc(var(--wmp-card-width) + var(--wmp-card-gap) + var(--wmp-card-shift-left)) 0 0;
  background: transparent;
  transform: translateX(var(--wmp-map-shift-right));
}

.wmp-map {
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  user-select: none;
}

@media (min-width: 1101px) {
  .wmp-stage {
    min-height: min(36vh, 430px);
  }
  .wmp-map-wrapper {
    padding: 0 calc(var(--wmp-card-width) + var(--wmp-card-gap) + var(--wmp-card-shift-left)) 0 0;
  }
}

/* Countries */
.wmp-country {
  fill: var(--wmp-country);
  stroke: #ffffff;
  stroke-width: 0.6;
  transition: fill 0.3s ease, filter 0.3s ease;
}
.wmp-country.is-highlightable { cursor: pointer; }
.wmp-country.is-hovered { fill: #c8c8c8; }
.wmp-country.is-active {
  fill: var(--wmp-country-active);
  filter: drop-shadow(0 0 12px var(--wmp-accent-glow));
}

/* Curved routes */
.wmp-route {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 4 7;
  stroke-linecap: round;
  opacity: 0.35;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.wmp-route.is-active { opacity: 0.6; }

/* Pins */
.wmp-pin {
  cursor: pointer;
  outline: none;
}
.wmp-pin-glow {
  fill: var(--wmp-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wmp-pin.is-hovered .wmp-pin-glow,
.wmp-pin.is-active .wmp-pin-glow { opacity: 0.22; }
.wmp-pin.is-main.is-active .wmp-pin-glow { opacity: 0.3; }

.wmp-pin-ring {
  fill: none;
  stroke: var(--wmp-accent);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.3s ease;
}
.wmp-pin.is-hovered .wmp-pin-ring,
.wmp-pin.is-active .wmp-pin-ring { opacity: 0.45; }

.wmp-pin-body {
  fill: var(--wmp-accent);
  stroke: #ffffff;
  stroke-width: 1.4;
  filter: drop-shadow(0 3px 8px rgba(255, 0, 0, 0.28));
  transition: fill 0.25s ease, filter 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-box: fill-box;
  transform-origin: center bottom;
}
.wmp-pin.is-main .wmp-pin-body {
  filter: drop-shadow(0 4px 12px rgba(255, 0, 0, 0.38));
}
.wmp-pin.is-hovered .wmp-pin-body {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 16px rgba(255, 0, 0, 0.45));
}
.wmp-pin.is-active .wmp-pin-body { fill: var(--wmp-accent-deep); }

.wmp-pin-dot { fill: #ffffff; pointer-events: none; }

.wmp-pin-pulse {
  fill: var(--wmp-accent);
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.wmp-pin.is-active .wmp-pin-pulse {
  animation: wmp-pulse 2.2s ease-out infinite;
}
.wmp-pin-pulse--delay { animation-delay: 0.9s; }

@keyframes wmp-pulse {
  0%   { transform: scale(0.55); opacity: 0.55; }
  100% { transform: scale(2.1); opacity: 0; }
}

.wmp-tooltip {
  position: absolute;
  pointer-events: none;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 8px;
  transform: translate(-50%, calc(-100% - 14px));
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 6;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.wmp-tooltip.is-visible { opacity: 1; }

/* ----- Single cohesive sidebar panel ----- */
.wmp-sidebar {
  position: absolute;
  top: 0;
  right: var(--wmp-card-shift-left);
  width: min(100%, var(--wmp-card-width));
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  pointer-events: none;
}

.wmp-card {
  pointer-events: auto;
  width: 100%;
  background: var(--wmp-surface);
  border: 1px solid var(--wmp-line);
  border-radius: var(--wmp-radius);
  box-shadow: var(--wmp-shadow);
  min-height: clamp(330px, 34vw, 380px);
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wmp-card-inner {
  display: flex;
  flex-direction: column;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wmp-card.is-transitioning .wmp-card-inner {
  opacity: 0;
  transform: translateY(6px);
}

.wmp-card-title {
  font-size: clamp(23px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--wmp-ink);
  margin: 0 0 18px;
  line-height: 1.2;
}
.wmp-card-region {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--wmp-accent-deep);
  margin: 0 0 12px;
  line-height: 1.35;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wmp-line);
}
.wmp-card-region:empty { display: none; }

.wmp-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.wmp-card-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}
.wmp-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 0;
  background: transparent;
  color: var(--wmp-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wmp-card-icon svg { width: 24px; height: 24px; }
.wmp-card-body {
  display: contents;
  min-width: 0;
}
.wmp-card-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--wmp-ink);
  line-height: 1.2;
  margin: 0 0 22px;
}
.wmp-card-value {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 500;
  color: var(--wmp-ink-muted);
  line-height: 1.5;
  word-break: break-word;
}
.wmp-card-link {
  color: var(--wmp-ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.wmp-card-link:hover { color: var(--wmp-accent-deep); }

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .wmp-section {
    --wmp-card-shift-left: 0px;
    --wmp-map-shift-right: 0px;
  }
  .wmp-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(14px, 3vw, 24px);
  }
  .wmp-stage {
    display: block;
    min-height: 0;
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .wmp-map-wrapper {
    position: relative;
    inset: auto;
    padding: 0;
    width: 100%;
    transform: none;
    margin: 0 0 20px;
    height: auto;
    min-height: clamp(240px, 58vw, 420px);
    aspect-ratio: 1600 / 1135;
    border-radius: var(--wmp-radius);
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
    flex-shrink: 0;
  }
  .wmp-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .wmp-sidebar {
    position: relative;
    width: 100%;
    padding: 0;
    pointer-events: auto;
  }
  .wmp-card { border-radius: var(--wmp-radius); }
}

@media (max-width: 640px) {
  .wmp-section {
    --wmp-card-width: 100%;
    padding: 8px 0 24px;
  }
  .wmp-container { padding: 0; overflow-x: visible; }
  .wmp-header {
    margin-bottom: 18px;
    padding: 0 12px;
  }
  .wmp-map-wrapper {
    width: 100vw;
    margin: 0 0 16px calc(50% - 50vw);
    min-height: clamp(245px, 64vw, 360px);
    aspect-ratio: 1600 / 1135;
    border-radius: 0;
  }
  .wmp-card {
    min-height: 0;
    padding: 16px 16px 14px;
    border-radius: 16px;
  }
  .wmp-sidebar { padding: 0 12px; }
}
