/* World Map Pro v16 */

/* ── Wrap: fills exactly the height set in backend, zero blank space ── */
#iwm-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* SVG fills the entire wrap — slice ensures no blank bars */
#iwm-svg {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Countries */
.iwm-country {
  stroke: rgba(255,255,255,0.55);
  stroke-width: 0.5px;
  transition: filter .15s;
  vector-effect: non-scaling-stroke;
}
.iwm-has-loc { cursor: pointer; }

/* Pin pulse */
.iwm-pulse {
  animation: iwm-pulse 2.8s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes iwm-pulse {
  0%   { r: 8;  opacity: .35; }
  80%  { r: 24; opacity: 0;   }
  100% { r: 24; opacity: 0;   }
}

/* ── Popup ── */
#iwm-popup {
  position: absolute;
  display: none;
  z-index: 500;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.4;
}

.iwm-popup-inner {
  background: var(--iwm-pbg, #1e2d3d);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  position: relative;
  box-sizing: border-box;
}

.iwm-popup-close {
  position: absolute; top: 8px; right: 9px; z-index: 10;
  background: rgba(0,0,0,.5); border: none; cursor: pointer;
  color: #fff; font-size: 14px; border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
}
.iwm-popup-close:hover { background: rgba(0,0,0,.8); }

#iwm-popup-img-wrap { display:none; width:100%; line-height:0; }
#iwm-popup-img {
  width: 100%; height: auto;
  max-height: 140px; object-fit: cover; display: block;
}

.iwm-popup-body { padding: 10px 14px 6px; font-size: 14px; }

#iwm-popup-title {
  font-size: 14px; font-weight: 700;
  color: var(--iwm-ptxt, #fff);
  line-height: 1.3; margin-bottom: 3px;
  display: none; padding-right: 22px;
}
#iwm-popup-sub {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: rgba(255,255,255,.4); margin-bottom: 5px; display: none;
}
#iwm-popup-addr {
  color: rgba(255,255,255,.65); line-height: 1.5;
  margin-bottom: 4px; display: none; font-size: 13px;
}
#iwm-popup-desc {
  color: rgba(255,255,255,.5); line-height: 1.55;
  margin: 0; display: none; font-size: 13px;
}

#iwm-popup-foot {
  display: none; align-items: center; justify-content: flex-end;
  padding: 8px 14px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 6px;
}
#iwm-popup-btn {
  background: var(--iwm-bbg, #C9A227);
  color: var(--iwm-btxt, #1a1a1a);
  font-size: 12px; font-weight: 700;
  padding: 6px 18px; border-radius: 20px;
  text-decoration: none; display: inline-block;
}
#iwm-popup-btn:hover { opacity: .85; }

/* Mobile */
@media (max-width: 768px) {
  #iwm-popup-title { font-size: 13px !important; }
  #iwm-popup-addr  { font-size: 12px !important; }
  .iwm-popup-body  { padding: 8px 12px 4px; }
}
