/* ==========================================================================
   WORLD MAP — Global Presence section (Leaflet.js replacing Three.js globe)
   ========================================================================== */

.gp-wrap {
  --gp-accent: #0D6BA3;
  --gp-accent-soft: rgba(13, 107, 163, 0.4);
  --gp-accent-glow: rgba(13, 107, 163, 0.7);
  --gp-bg-panel: #0b1528;
  --gp-border: rgba(10, 77, 120, 0.15);
  --gp-text: #0f172a;
  --gp-text-dim: #475569;

  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 0 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Map panel ---------- */

.gp-map-panel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(15, 23, 42, 0.1);
  background: #021027;
  min-height: 550px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.gp-map {
  width: 100%;
  height: 550px;
  background: #021027;
}

.gp-map .leaflet-tile-pane {
  filter: saturate(1.1) brightness(1.05);
}

.gp-map .leaflet-control-zoom {
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gp-map .leaflet-control-zoom a {
  background: rgba(15, 23, 42, 0.9) !important;
  color: #ffffff !important;
  border: none !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-weight: 800;
}

.gp-map .leaflet-control-zoom a:hover {
  background: var(--gp-accent) !important;
  color: #fff !important;
}

.gp-map .leaflet-control-attribution {
  background: rgba(5, 6, 7, 0.75) !important;
  color: rgba(238, 241, 246, 0.7) !important;
  font-size: 10px !important;
  padding: 2px 8px !important;
}

.gp-map .leaflet-popup-content-wrapper {
  background: #0f172a;
  color: #ffffff;
  border: 2px solid var(--gp-accent);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.gp-map .leaflet-popup-tip {
  background: #0f172a;
  border: 2px solid var(--gp-accent);
}

.gp-map .leaflet-popup-content {
  margin: 12px 16px;
  line-height: 1.4;
}

.gp-popup-country {
  display: block;
  font-family: var(--font-display, sans-serif);
  font-weight: 900;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 2px;
}

.gp-popup-desc {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

/* Connection line pulse & continuous motion flow */
path.gp-line {
  stroke: #0D6BA3 !important;
  stroke-width: 3.5px !important;
  stroke-dasharray: 8 10 !important;
  animation: gp-line-flow 1.5s linear infinite !important;
  filter: drop-shadow(0 0 8px #0D6BA3) drop-shadow(0 0 16px rgba(13, 107, 163, 0.8)) !important;
}

@keyframes gp-line-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -36; }
}

/* ---------- Marker & Permanent Country Badges ---------- */

.gp-marker {
  position: relative;
  width: 36px;
  height: 36px;
}

.gp-marker-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(13, 107, 163, 0.45);
  animation: gp-pulse 1.8s ease-out infinite;
  animation-delay: var(--gp-delay, 0s);
}

.gp-marker-logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(13, 107, 163, 0.5), 0 0 16px 4px rgba(13, 107, 163, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 5;
}

.gp-marker-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Permanent Country Label Badge attached to marker */
.gp-marker-label {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 77, 120, 0.92);
  color: #ffffff;
  font-family: var(--font-display, sans-serif);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(13, 107, 163, 0.8);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(13, 107, 163, 0.3);
  pointer-events: none;
  letter-spacing: 0.05em;
}

.gp-marker:hover .gp-marker-logo-container,
.gp-marker.is-active .gp-marker-logo-container {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 0 6px rgba(13, 107, 163, 0.6), 0 0 24px 8px rgba(13, 107, 163, 1);
}

@keyframes gp-pulse {
  0%   { transform: scale(0.4); opacity: 0.95; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- Location list ---------- */

.gp-list-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.gp-loc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateX(16px);
}

.gp-wrap.is-visible .gp-loc {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease, border-color 0.25s ease;
  transition-delay: var(--gp-reveal-delay, 0s);
}

.gp-loc:hover,
.gp-loc:focus-visible,
.gp-loc.is-active {
  background: rgba(13, 107, 163, 0.06);
  border-color: #0D6BA3;
  box-shadow: 0 8px 24px rgba(13, 107, 163, 0.15);
  transform: translateX(6px);
}

.gp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0D6BA3;
  box-shadow: 0 0 12px #0D6BA3;
  flex-shrink: 0;
}

.gp-loc-text strong {
  display: block;
  font-family: var(--font-display, sans-serif);
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 3px;
}

.gp-loc-text span {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

@media (max-width: 992px) {
  .gp-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gp-map-panel, .gp-map {
    min-height: 380px;
    height: 380px;
  }
}
