/* ==========================================================================
   Global client map — clickable SVG countries (main site)
   ========================================================================== */

.global-client-map {
  background: #fff;
  border-top: 1px solid #e8ecf0;
}

.global-client-map__header {
  max-width: 640px;
  margin: 0 auto;
}

.global-client-map__eyebrow {
  margin: 0 0 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3675f8;
}

.global-client-map__title {
  margin: 0 0 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  color: #262262;
}

.global-client-map__sub {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
}

.global-client-map__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.global-client-map__viewport {
  position: relative;
  width: 100%;
  height: clamp(380px, 42vw, 540px);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  contain: layout paint;
}

.global-client-map__viewport.is-dragging {
  cursor: grabbing;
}

.global-client-map__transform {
  transform-origin: 0 0;
  will-change: transform;
}

.global-client-map__canvas {
  position: relative;
  width: 100%;
}

.global-client-map__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}

.global-client-map__land {
  transition: fill 0.18s ease, filter 0.18s ease;
}

.global-client-map__land--inactive {
  fill: #e2e8f0;
  pointer-events: none;
}

.global-client-map__country-link {
  cursor: pointer;
  outline: none;
}

.global-client-map__land--active {
  cursor: pointer;
}

.global-client-map__country-link:hover .global-client-map__land--active,
.global-client-map__country-link:focus-visible .global-client-map__land--active,
.global-client-map__land--active.is-hover {
  filter: brightness(1.08);
}

.global-client-map__country-link:focus-visible .global-client-map__land--active {
  stroke: #e8a923;
  stroke-width: 1.2;
}

.global-client-map__zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(38, 34, 98, 0.1);
  backdrop-filter: blur(6px);
}

.global-client-map__zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #262262;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.global-client-map__zoom-btn:hover {
  border-color: #3675f8;
  color: #3675f8;
}

.global-client-map__zoom-btn:focus-visible {
  outline: 2px solid #3675f8;
  outline-offset: 2px;
}

.global-client-map__zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.global-client-map__zoom-btn[data-zoom="reset"] {
  font-size: 0.6875rem;
  letter-spacing: -0.02em;
}

.global-client-map__leaders {
  pointer-events: none;
}

.global-client-map__label-cards {
  pointer-events: none;
}

.global-client-map__labels {
  pointer-events: none;
}

.global-client-map__label-item {
  pointer-events: none;
}

.global-client-map__leader {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-dasharray: 4 3;
  opacity: 0.9;
}

.global-client-map__leader-dot {
  fill: #3675f8;
  stroke: #fff;
  stroke-width: 0.8;
}

.global-client-map__label-link {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  text-decoration: none;
}

.global-client-map__label-link .global-client-map__label-name {
  text-decoration: none;
}

.global-client-map__label-link:hover .global-client-map__label-name,
.global-client-map__label-link:focus-visible .global-client-map__label-name,
.global-client-map__label-link.is-country-hover .global-client-map__label-name {
  text-decoration: underline;
  text-underline-offset: 1.5px;
}

.global-client-map__label-link .global-client-map__label-pct {
  text-decoration: none;
}

.global-client-map__label-bg {
  fill: rgba(255, 255, 255, 0.98);
  stroke: #dbe3ef;
  stroke-width: 0.7;
  transition: stroke 0.15s ease, filter 0.15s ease;
  pointer-events: none;
}

.global-client-map__label-hit {
  fill: transparent;
  stroke: none;
}

.global-client-map__label-item:has(.global-client-map__label-link:hover) .global-client-map__label-bg,
.global-client-map__label-item:has(.global-client-map__label-link:focus-visible) .global-client-map__label-bg,
.global-client-map__label-item:has(.global-client-map__locale-link:hover) .global-client-map__label-bg,
.global-client-map__label-item:has(.global-client-map__locale-link:focus-visible) .global-client-map__label-bg {
  stroke: #3675f8;
  filter: drop-shadow(0 2px 6px rgba(54, 117, 248, 0.18));
}

.global-client-map__label-flag {
  pointer-events: none;
}

.global-client-map__label-text {
  font-family: 'Poppins', sans-serif;
  pointer-events: none;
}

.global-client-map__label-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  fill: #262262;
}

.global-client-map__label-pct {
  font-size: 8.5px;
  font-weight: 600;
  fill: #3675f8;
}

.global-client-map__label-locales {
  pointer-events: none;
}

.global-client-map__locale-link {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  text-decoration: none;
}

.global-client-map__locale-hit {
  fill: transparent;
  stroke: none;
}

.global-client-map__locale-text {
  font-family: 'Poppins', sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  fill: #3675f8;
  pointer-events: none;
}

.global-client-map__locale-link:hover .global-client-map__locale-text,
.global-client-map__locale-link:focus-visible .global-client-map__locale-text {
  fill: #262262;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.global-client-map__locale-sep {
  font-family: 'Poppins', sans-serif;
  font-size: 7.5px;
  fill: #94a3b8;
  pointer-events: none;
}

.global-client-map__hint {
  margin: 0.85rem 0 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  color: #94a3b8;
}

@media (max-width: 767px) {
  .global-client-map__viewport {
    height: 320px;
  }

  .global-client-map__label-name {
    font-size: 7.5px;
  }

  .global-client-map__label-pct {
    font-size: 7px;
  }

  .global-client-map__zoom {
    right: 0.65rem;
    bottom: 0.65rem;
  }

  .global-client-map__zoom-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
}
