/* ===== df-globe-css ===== */

.globe-wrap{ --titanium:#FFFFFF; --pad:clamp(20px,4vw,80px); }
.globe-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 32px;
    align-items: center;
    min-height: 640px;
  }
  @media (max-width: 1100px) {
    .globe-wrap { grid-template-columns: 1fr; }
    .globe-side { display: none; }
  }
  .globe-canvas-wrap {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    cursor: grab;
  }
  .globe-canvas-wrap:active { cursor: grabbing; }
  #globeCanvas {
    width: 100%; height: 100%;
    position: relative; z-index: 2;
  }
  .globe-glow {
    position: absolute; inset: -15%;
    background: radial-gradient(circle, rgba(22,152,115,0.15) 0%, transparent 55%);
    z-index: 1;
    pointer-events: none;
    filter: blur(20px);
  }

  /* Location list */
  .globe-side {
    max-height: 540px;
    overflow-y: auto;
    padding-right: 8px;
  }
  .globe-side::-webkit-scrollbar { width: 4px; }
  .globe-side::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
  .globe-side::-webkit-scrollbar-thumb { background: var(--flame); border-radius: 4px; }
  .globe-side-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--flame-2);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .loc-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid transparent;
  }
  .loc-item:hover, .loc-item.active {
    background: rgba(22,152,115,0.12);
    border-color: rgba(22,152,115,0.3);
    transform: translateX(4px);
  }
  .loc-flag {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--flame);
    color: var(--titanium);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    flex-shrink: 0;
  }
  .loc-info { flex: 1; min-width: 0; }
  .loc-country {
    font-size: 14px; font-weight: 600;
    color: var(--titanium);
    margin-bottom: 2px;
  }
  .loc-cities {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Globe info card */
  .globe-info-card {
    background: linear-gradient(180deg, rgba(22,152,115,0.10), rgba(22,152,115,0.02));
    border: 1px solid rgba(22,152,115,0.25);
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 16px;
  }
  .globe-info-card .label-sm {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--flame-2);
    margin-bottom: 12px;
  }
  .globe-info-card h3 {
    font-size: 24px; font-weight: 700;
    color: var(--titanium);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .globe-info-card .city-list {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .globe-info-card .stats-mini {
    display: flex; gap: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .stats-mini .item .n {
    font-size: 20px; font-weight: 800;
    color: var(--flame);
    line-height: 1;
  }
  .stats-mini .item .l {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    font-weight: 600;
  }

  .globe-instructions {
    position: absolute; bottom: 16px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    display: flex; gap: 16px; align-items: center;
    z-index: 5;
    pointer-events: none;
  }
  .globe-instructions .key {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
  }

/* ===== df-globe-fix ===== */

/* Contain the globe glow so it doesn't bleed into the location panels */
.globe-wrap {
  align-items: start !important;
  gap: clamp(20px, 2.6vw, 40px) !important;
  position: relative !important;
}
.globe-wrap > * { min-width: 0 !important; }
.globe-canvas-wrap {
  overflow: hidden !important;
  max-width: clamp(360px, 46vw, 600px) !important;
  margin: 0 auto !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  /* Pull the glow inside, away from neighbouring columns */
}
.globe-canvas-wrap .globe-glow {
  inset: 0 !important;
  border-radius: 50% !important;
}
#globeCanvas {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.globe-side {
  position: relative !important;
  z-index: 3 !important;
  background: rgba(0, 0, 0, 0.001); /* establishes stacking */
}
.globe-side .globe-info-card,
.globe-side #locList {
  position: relative !important;
  z-index: 4 !important;
}
@media (max-width: 1100px) {
  .globe-wrap { grid-template-columns: 1fr !important; }
  .globe-canvas-wrap { max-width: clamp(300px, 80vw, 520px) !important; }
}

/* ===== df-flag-pins ===== */

.globe-canvas-wrap { position: relative; }
.globe-flag-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: visible; }
.globe-flag-pin {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: grid; place-items: center;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 0 3px rgba(22,152,115,.20);
  pointer-events: auto;
  transition: transform .2s ease, box-shadow .25s ease, opacity .25s ease;
  will-change: transform, opacity;
  user-select: none;
  padding: 0;
  z-index: 6;
}
.globe-flag-pin .pin-flag { display: inline-block; transition: transform .2s ease; }
.globe-flag-pin:hover { z-index: 12; box-shadow: 0 12px 26px rgba(22,152,115,.5), 0 0 0 4px rgba(22,152,115,.30); }
.globe-flag-pin:hover .pin-flag { transform: scale(1.18); }
.globe-flag-pin.active {
  background: linear-gradient(180deg, #fff, #ffe7df);
  box-shadow: 0 12px 28px rgba(22,152,115,.55), 0 0 0 5px rgba(22,152,115,.34);
  z-index: 14;
}
.globe-flag-pin.behind { opacity: 0; pointer-events: none; transform: scale(0.4) translate(var(--tx, 0), var(--ty, 0)) !important; }
.globe-flag-pin .pin-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5,7,8,.92);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.globe-flag-pin:hover .pin-label { opacity: 1; }

/* ===== df-twemoji-style ===== */

img.emoji { height: 1em; width: 1em; vertical-align: -0.15em; display: inline-block; margin: 0; padding: 0; }
.map-pin img.emoji, .globe-flag-pin img.emoji { height: 1.2em; width: 1.2em; vertical-align: middle; filter: drop-shadow(0 1px 2px rgba(0,0,0,.20)); }


.globe-section .globe-canvas-wrap{max-width:600px!important;width:600px!important;margin:0 auto!important;aspect-ratio:1!important;border-radius:50%!important;overflow:hidden!important}
.globe-section{--flame:#169873;--flame-2:#50BE9B;--titanium:#fff}

/* globe palette wrapper (brand shamrock) */
.globe-section{--flame:#169873;--flame-2:#50BE9B;--titanium:#fff;position:relative}
