/* Export map, Views/Shared/_ExportMap.cshtml. Made for a dark section; the page picks the colors by setting these on any parent:
   --xm-hit / --xm-hit-line   exported countries          --xm-home   Egypt and the factory pin
   --xm-arc                   arcs from Egypt               --xm-pin    destination pins, region counters
   --xm-text                  region titles                 --xm-chip-hover-text  country name on hover */
.xm { margin: 36px auto 8px; }
.xm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.xm-land path { fill: rgba(255,255,255,.09); stroke: rgba(255,255,255,.16); stroke-width: .5; transition: fill .3s; }
.xm-svg [data-id='818'] { fill: var(--xm-home, #ffe11f); } /* Egypt */
.xm-land path.is-hot { fill: var(--xm-hot, #ffd2bd); }
.xm-arc { fill: none; stroke: var(--xm-arc, #ffe11f); stroke-width: 1.2; stroke-linecap: round; opacity: .75; transition: opacity .3s, stroke-width .3s; }
.xm.is-armed .xm-arc { stroke-dasharray: 1; stroke-dashoffset: 1; }
.xm.is-armed.is-in .xm-arc { animation: xm-draw 1.4s ease-out calc(.3s + var(--i) * .07s) forwards; }
.xm-pin-dot { fill: #fff; }
.xm-pin-pulse { fill: var(--xm-pin, #f15a24); transform-box: fill-box; transform-origin: center; animation: xm-pulse 2.4s ease-out infinite; animation-delay: calc(var(--i, 0) * -.15s); }
.xm-pin-home .xm-pin-dot, .xm-pin-home .xm-pin-pulse { fill: var(--xm-home, #ffe11f); }
.xm.is-armed .xm-pin { opacity: 0; transition: opacity .4s; }
.xm.is-armed.is-in .xm-pin { opacity: 1; transition-delay: calc(.9s + var(--i, 0) * .07s); }
.xm.has-hot .xm-arc { opacity: .12; }
.xm-arc.is-hot { opacity: 1 !important; stroke: #fff; stroke-width: 2.4; }
.xm-pin.is-hot .xm-pin-dot { fill: var(--xm-home, #ffe11f); }
.xm-regions { margin-top: 24px; }
.xm-regions h3 { color: var(--xm-text, #fff); font-size: 20px; display: flex; align-items: center; gap: 8px; }
.xm-regions h3 small { font-size: 13px; background: var(--xm-pin, #f15a24); color: #fff; border-radius: 999px; padding: 1px 9px; }
.xm-regions ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.xm-regions li { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 3px 12px; font-size: 14px; cursor: default; transition: background .2s, color .2s; }
.xm-regions li:hover, .xm-regions li:focus-visible { background: var(--xm-home, #ffe11f); color: var(--xm-chip-hover-text, #2a1a12); outline: none; }
@keyframes xm-draw { to { stroke-dashoffset: 0; } }
@keyframes xm-pulse { from { transform: scale(.6); opacity: .75; } to { transform: scale(2.8); opacity: 0; } }
@media (max-width: 767px) { .xm-pin-dot { r: 7px; } .xm-pin-pulse { r: 12px; } } /* the map is small on phones: bigger pins */
@media (prefers-reduced-motion: reduce) { .xm-pin-pulse { animation: none; } }
