/* Wrapper */
.gcl-svg-map-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
}

/* SVG */
svg.gcl-svg-map {
  width: 100%;
  height: auto;
  display: block;
  min-height: 420px;
  position: relative;
  z-index: 1;
}

/* Map paths */
svg.gcl-svg-map path {
  fill: #700be2;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

/* Groups safety: ensure SVG transforms behave as expected */
svg.gcl-svg-map g {
  opacity: 1;
  visibility: visible;
  transition: transform .18s cubic-bezier(.2,.9,.2,1), filter .18s ease, opacity .18s ease;
  /* IMPORTANT for transforming svg groups */
  transform-box: fill-box;
  transform-origin: center;
}

/* ===== Pins as location icons ===== */
/* Pins keep interactive pointer but NO elevation/transform */
.gcl-pin {
  cursor: pointer;
  pointer-events: auto;
  transform-origin: center center;
  transition: filter .18s cubic-bezier(.2,.9,.2,1);
  will-change: filter;
  z-index: 50;
}

/* default pin visuals */
.gcl-pin .gcl-pin-outer { transition: r .12s ease; }
.gcl-pin .gcl-pin-inner { transition: r .12s ease; }

/* NOTE: removed any transform/scale on hover/active for pins to satisfy your request */

/* Illumination effect applied to country/section groups (works for SVG groups) */
g.gcl-illuminate,
g.gcl-illuminate * {
  /* subtle brighten + glow */
  filter: drop-shadow(0 18px 36px rgba(255,255,200,0.14));
  /* slight scale so it looks lifted. transform-box is set above so this works in SVG */
  transform: translateY(-6px) scale(1.03);
  /* smoother transitions */
  transition: transform .18s cubic-bezier(.2,.9,.2,1), filter .18s ease, fill .18s ease, opacity .18s ease;
}

/* ===== Modal popup (full overlay) ===== */
.gcl-popup-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  transition: opacity .18s ease;
  opacity: 0;
}

/* When visible */
.gcl-popup-backdrop.gcl-visible {
  display: flex;
  opacity: 1;
}

/* Modal container */
.gcl-popup-modal {
  position: relative;
  display: flex;
  flex-direction: column;

  width: 80vw;       
  max-width: 960px;   
  min-width: 280px;

  height: auto;
  max-height: 85vh;   

  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  box-sizing: border-box;
}


/* Close button */
.gcl-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 6px;
}

/* Body of modal */
.gcl-popup-body img {
  width: 100%;
  height: auto;
  max-height: 50vh;     
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Card-like content inside modal */
.gcl-card-img-wrap img { display:block; width:100%; border-radius:8px; margin-bottom:12px; }
.gcl-card-title { margin:0 0 8px 0; font-size:20px; }
.gcl-card-desc { font-size:15px; color:#444; line-height:1.45; }

/* Accessibility focus for close */
.gcl-popup-close:focus { outline: 2px solid rgba(102,51,255,0.25); outline-offset: 4px; }

/* Small helpers */
.gcl-card-img-wrap img { display:block; width:100%; border-radius:6px; margin-bottom:8px; }
.gcl-card-title { margin:0 0 6px 0; font-size:16px; }
.gcl-card-desc { font-size:13px; color:#444; }

/* Keep keyboard-visible focus for pins */
.gcl-pin:focus { outline: 2px solid rgba(102,51,255,0.25); outline-offset: 4px; }

@media (max-width: 768px) {
  .gcl-popup-modal {
    width: 92vw;
    padding: 12px;
  }

  .gcl-popup-body img {
    max-height: 42vh;
  }
}
