:root {
    --navy: #071d3b;
    --navy2: #0d2a52;
    --orange: #f58220;
    --cream: #f6f3ec;
    --white: #fff;
    --ink: #15233a;
    --muted: #64748b;
    --shadow: 0 18px 50px rgba(7, 29, 59, 0.18);
}
* {
    box-sizing: border-box;
}
.global-footprint {
    padding-top: 50px;
	padding-bottom: 20px;
    overflow: hidden;
}
.wrap {
    width: min(1500px, 94vw);
    margin: auto;
}
.map-shell {
    position: relative;
    background: #e9eef2;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(7, 29, 59, 0.08);
}
.map-viewport {
    position: relative;
    aspect-ratio: 2/1;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #eef3f7;
    cursor: grab;
}
.map-viewport.dragging {
    cursor: grabbing;
}
.map-viewport.dragging * {
    cursor: grabbing !important;
}
.map-viewport.dragging .map-stage {
    transition: none;
}
.map-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 0.22s ease;
}
.map-stage > img.map-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 1;
    pointer-events: none;
    user-select: none;
}
.zoom-controls {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 30;
    display: grid;
    gap: 8px;
}
.zoom-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 18px rgba(7, 29, 59, 0.18);
    color: var(--navy);
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.zoom-btn:hover,
.zoom-btn:focus-visible {
    background: var(--navy);
    color: #fff;
}
.zoom-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.zoom-level {
    background: rgba(7, 29, 59, 0.9);
    color: #fff;
    border-radius: 8px;
    padding: 5px 7px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
}
.pin {
    position: absolute;
    transform: translate(-50%, -100%) scale(1);
    transform-origin: 50% 100%;
    transition: transform 0.18s ease;
    will-change: transform;
    width: 36px;
    height: 44px;
    border: 0;
    background: transparent;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.24));
    cursor: pointer;
    padding: 0;
    display: block;
    z-index: 2;
    overflow: visible;
}
.pin-inner {
    position: absolute;
    inset: 0;
    display: block;
}
.pin-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.pin-shape path {
    fill: #929497;
    transition: fill 0.18s ease;
}
.pin-flag {
    position: absolute;
    left: 50%;
    top: 5px;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    display: block;
    overflow: hidden;
    z-index: 1;
    border: 2px solid #fff;
}
.pin-flag img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
.pin:hover,
.pin:focus-visible,
.pin.active {
    z-index: 5;
    transform: translate(-50%, -100%) scale(1.18);
}
.pin:hover .pin-shape path,
.pin:focus-visible .pin-shape path,
.pin.active .pin-shape path {
    fill: #071d3b;
}
.pin:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}
.help {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(7, 29, 59, 0.92);
    color: white;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12px;
    z-index: 3;
    pointer-events: none;
}
.drag-hint {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--navy);
    padding: 9px 12px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(7, 29, 59, 0.14);
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}
.drag-hint .hand {
    font-size: 20px;
    line-height: 1;
}
.mobile-select {
    display: none;
    padding: 14px;
    background: #fff;
    border-top: 1px solid #d8e0e8;
}
.mobile-select label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin-bottom: 7px;
}
.mobile-select select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    background: #fff;
    color: var(--navy);
}
.country-modal .modal-content {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(7, 29, 59, 0.28);
    overflow: hidden;
}
.country-modal .modal-header {
    border-bottom: 1px solid #e8edf2;
    padding: 18px 20px;
}
.country-modal .modal-body {
    padding: 20px;
}
.country-modal .modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.country-modal .modal-flag {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 46px;
    border: 2px solid #eef2f5;
}
.country-modal .modal-flag img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
.country-modal .modal-title {
	font-family: 'Poppins', serif;
    margin: 0;
    color: #32312d;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}
.country-modal .detail-rows {
    display: grid;
    gap: 9px;
}
.country-modal .detail-row {
	font-family: "Raleway", sans-serif;
	font-weight: 400;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 11px 13px;
    border-radius: 11px;
    background: #f4f6f8;
    font-size: 17px;
}
.country-modal .detail-row .n {
	font-family: 'lexia', sans-serif;
    font-weight: 900;
    color: #2878D0;
    text-align: right;
	font-size: 17px;
}
.country-modal .modal-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}
.country-modal .btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(245, 130, 32, 0.2);
}

#countryModal.modal { z-index: 1060; }
.modal-backdrop { z-index: 1055; }
#countryModal .modal-dialog { pointer-events: auto; }
#countryModal .modal-flag{
  width:auto !important;
  height:auto !important;
  flex:0 0 auto !important;
  border:0 !important;
  border-radius:0 !important;
  overflow:visible !important;
  background:transparent !important;
  font-size:38px;
  line-height:1;
}
#countryModal .modal-flag img{display:none !important;}
@media (max-width:600px){
  #countryModal .modal-flag{font-size:34px;}
#global-footprint .map-viewport{
  touch-action:none !important;
  overscroll-behavior:contain;
}
#global-footprint .pin-overlay{
  position:absolute;
  inset:0;
  z-index:20;
  pointer-events:none;
  overflow:hidden;
}
#global-footprint .pin-overlay .pin{
  pointer-events:auto;
}
@media (max-width: 800px) {
    .wrap {
        width: min(100% - 24px, 700px);
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .stat {
        min-height: 86px;
    }
    .map-shell {
        border-radius: 16px;
    }
    .map-viewport {
        aspect-ratio: 2/1;
        min-height: 0;
    }
    .map-stage > img.map-bg {
        object-fit: fill;
    }
    .zoom-controls {
        right: 10px;
        top: 10px;
    }
    .zoom-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .pin {
        width: 26px;
        height: 32px;
    }
    .pin-flag {
        top: 4px;
        width: 18px;
        height: 18px;
        border-width: 1.5px;
    }
    .help {
        display: none;
    }
    .mobile-select {
        display: block;
    }
    .country-modal .modal-dialog {
        margin: 12px;
    }
    .country-modal .modal-title {
        font-size: 21px;
    }
    .country-modal .modal-flag {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .country-modal .detail-row {
        font-size: 13px;
        padding: 10px 11px;
    }
    .title {
        font-size: 42px;
    }
    .intro {
        font-size: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
    .pin {
        transition: none;
    }
}

/* Prevent selection/blue highlight while grabbing and panning the map */
.map-viewport,
.map-viewport *,
.map-stage,
.map-stage * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}
.map-viewport img,
.map-stage img,
.pin img {
    -webkit-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none;
}
.pin {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.pin:focus:not(:focus-visible) {
    outline: none;
}
