.visitor-map{position:relative;isolation:isolate;padding-block:clamp(64px,7vw,112px);overflow:hidden;background:linear-gradient(145deg,#020a16 0%,#071b31 55%,#04101f 100%);color:#eff9ff}
.visitor-map::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 45% 45%,rgba(23,91,141,.25),transparent 65%);pointer-events:none}
.visitor-map__head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:clamp(24px,3vw,40px)}
.visitor-map__title{display:flex;align-items:flex-start;gap:18px;min-width:0}
.visitor-map__icon{display:grid;place-items:center;flex:none;width:54px;height:54px;border:1px solid #3c91b9;border-radius:16px;background:#113550;color:#7fdef2;box-shadow:0 0 28px rgba(23,163,221,.16)}
.visitor-map__icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.visitor-map__eyebrow{margin:0 0 8px;color:#7ed8f5;font:500 .76rem/1.4 var(--font-mono);letter-spacing:.18em;text-transform:uppercase}
.visitor-map h2{margin:0;color:#f5fbff;font:500 clamp(1.8rem,3.4vw,3.5rem)/1.08 var(--font-sans);letter-spacing:-.045em}
.visitor-map__intro{max-width:56ch;margin:14px 0 0;color:#b3cddd;font:400 clamp(.92rem,1.1vw,1.08rem)/1.6 var(--font-text)}
.visitor-map__periods{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;flex:none}
.visitor-map__periods button{min-height:44px;padding:9px 13px;border:1px solid #315c79;border-radius:8px;background:#0c263e;color:#d1e8f5;font:500 .86rem/1.2 var(--font-sans);cursor:pointer;white-space:nowrap}
.visitor-map__periods button:hover,.visitor-map__periods button:focus-visible{background:#16405f;border-color:#6bd1ef;color:#fff}
.visitor-map__periods button[aria-pressed="true"]{background:#97e6f7;border-color:#97e6f7;color:#062139}
.visitor-map__layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(290px,.88fr);grid-template-areas:"map periods" "map stats";grid-template-rows:auto 1fr;gap:12px clamp(16px,2vw,28px);align-items:stretch}
.visitor-map__canvas{position:relative;display:grid;place-items:center;min-width:0;min-height:clamp(340px,38vw,540px);overflow:hidden;border:1px solid #28536f;border-radius:18px;background:radial-gradient(ellipse at 50% 42%,#123450 0%,#061b2f 58%,#03111f 100%);box-shadow:inset 0 0 70px rgba(1,9,21,.7),0 20px 48px rgba(0,0,0,.22)}
.visitor-map__canvas svg{display:block;width:100%;height:auto;max-height:100%;overflow:visible}
.visitor-world__graticule{fill:none;stroke:#3e6a85;stroke-width:.6;opacity:.37}
.visitor-world__country{fill:#19415b;stroke:#8ac0d3;stroke-width:.6;stroke-opacity:.45;transition:fill .25s ease,stroke .25s ease}
.visitor-world__country[data-active="true"]{stroke:#b9f4ff;stroke-opacity:.9;cursor:default}
.visitor-map__tooltip{position:absolute;z-index:2;max-width:190px;padding:8px 10px;border:1px solid #a1e9f5;border-radius:7px;background:#ecfaff;color:#09233b;font:500 .82rem/1.3 var(--font-sans);box-shadow:0 8px 22px rgba(0,0,0,.3);pointer-events:none}
.visitor-map__tooltip[hidden]{display:none}
.visitor-map__legend{position:absolute;left:18px;bottom:16px;display:flex;align-items:center;gap:9px;color:#aac7d8;font:400 .75rem/1.3 var(--font-sans)}
.visitor-map__legend-swatch{width:62px;height:8px;border-radius:20px;background:linear-gradient(90deg,#19415b,#1697b5,#65ebee)}
.visitor-map__stats{display:flex;flex-direction:column;min-width:0;padding:clamp(18px,2vw,28px);border:1px solid #315b78;border-radius:18px;background:#0a2239;box-shadow:0 20px 48px rgba(0,0,0,.18)}
.visitor-map__stats-title{margin:0 0 20px;color:#d4edfa;font:500 .82rem/1.4 var(--font-mono);letter-spacing:.12em;text-transform:uppercase}
.visitor-map__metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.visitor-map__metric{min-width:0;padding:15px;border:1px solid #234e6b;border-radius:10px;background:#102e49}
.visitor-map__metric--country{grid-column:1/-1;display:flex;align-items:center;min-height:64px}
.visitor-map__metric strong{display:block;overflow-wrap:anywhere;color:#f5fbff;font:500 clamp(1.4rem,2.1vw,2rem)/1.1 var(--font-sans);font-variant-numeric:tabular-nums}
.visitor-map__metric--country strong{max-width:100%;overflow:hidden;overflow-wrap:normal;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(1rem,1.25vw,1.3rem)}
.visitor-map__metric span{display:block;margin-top:6px;color:#a8c9db;font:400 .8rem/1.35 var(--font-sans)}
.visitor-map__locations-title{margin:24px 0 12px;color:#d4edfa;font:500 .82rem/1.4 var(--font-mono);letter-spacing:.12em;text-transform:uppercase}
.visitor-map__locations{display:grid;gap:9px;min-height:110px;margin:0;padding:0;list-style:none}
.visitor-map__locations li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;color:#dceff8;font:400 .9rem/1.3 var(--font-sans)}
.visitor-map__locations li span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.visitor-map__locations li strong{color:#8de5f0;font-variant-numeric:tabular-nums}
.visitor-map__locations li.visitor-map__empty{display:block;color:#a8c9db;line-height:1.5}
.visitor-map__foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;margin-top:18px;color:#9fbccc;font:400 .76rem/1.5 var(--font-sans)}
.visitor-map__foot p{margin:0}
.visitor-map__foot a{color:#a5e8f7;text-decoration:underline;text-underline-offset:3px}
.visitor-map__status{min-height:1.4em;margin:12px 0 0;color:#a5e8f7;font:400 .8rem/1.4 var(--font-sans)}
@media(max-width:1080px){.visitor-map__head{align-items:start;flex-direction:column}.visitor-map__periods{justify-content:flex-start}.visitor-map__layout{grid-template-columns:minmax(0,1fr)}.visitor-map__canvas{min-height:0;aspect-ratio:1.9}.visitor-map__stats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 20px}.visitor-map__stats-title{grid-column:1/-1}.visitor-map__locations-title{margin-top:0}.visitor-map__locations{align-content:start}}
@media(max-width:680px){.visitor-map{padding-block:52px}.visitor-map__title{gap:12px}.visitor-map__icon{width:42px;height:42px;border-radius:11px}.visitor-map__icon svg{width:25px;height:25px}.visitor-map__periods{width:100%;flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin}.visitor-map__periods button{flex:none}.visitor-map__canvas{aspect-ratio:1.55;border-radius:12px}.visitor-map__legend{left:12px;bottom:10px}.visitor-map__stats{display:block;border-radius:12px}.visitor-map__locations-title{margin-top:24px}}
@media(max-width:900px){.visitor-map,.visitor-map .shell,.visitor-map__head,.visitor-map__title,.visitor-map__layout,.visitor-map__canvas,.visitor-map__stats{min-width:0;max-width:100%;box-sizing:border-box}.visitor-map{overflow-x:clip}.visitor-map .shell{padding-inline:clamp(16px,5vw,24px)}.visitor-map__head{display:block}.visitor-map__title{display:grid;grid-template-columns:42px minmax(0,1fr)}.visitor-map__periods{width:100%;max-width:100%;justify-content:flex-start;overflow-x:auto;margin-top:22px}.visitor-map__layout{grid-template-columns:minmax(0,1fr)}.visitor-map__canvas{width:100%}}

/* Give the SVG a real viewport; its intrinsic 300×150 size left it tiny on desktop. */
.visitor-map__canvas [data-world-map]{position:absolute;inset:18px 18px 50px;display:grid;place-items:center;min-width:0}
.visitor-map__canvas [data-world-map] svg{width:100%;height:100%;max-height:none}

/* Fit the full section to common desktop heights while retaining natural page flow on small screens. */
.visitor-map__locations{min-height:0}
.visitor-map__stats{padding:clamp(16px,1.6vw,24px)}
.visitor-map__stats-title{margin-bottom:12px}
.visitor-map__locations-title{margin:18px 0 8px}
@media(min-width:1081px){.visitor-map{min-height:calc(100svh - var(--nav-h,80px));padding-block:clamp(22px,3svh,42px)}.visitor-map__head{margin-bottom:clamp(18px,2.5svh,32px)}.visitor-map__canvas{height:clamp(300px,49svh,520px);min-height:0}}
@media(max-width:680px){.visitor-map{padding-block:clamp(20px,3svh,34px)}.visitor-map__head{margin-bottom:16px}.visitor-map__periods{margin-top:14px}.visitor-map__periods button{min-height:40px}.visitor-map__canvas{aspect-ratio:1.65}.visitor-map__metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.visitor-map__metric:first-child{grid-column:auto}.visitor-map__metric{padding:10px}.visitor-map__metric strong{font-size:clamp(1rem,4vw,1.35rem)}.visitor-map__metric span{font-size:.72rem}.visitor-map__locations-title{margin-top:14px}.visitor-map__locations{min-height:0}.visitor-map__foot{margin-top:14px}}

.visitor-map__status:empty{display:none}
@media(min-width:1081px){.visitor-map{padding-block:clamp(16px,2svh,28px)}}
@media(max-width:680px){.visitor-map{padding-block:16px}.visitor-map__head{margin-bottom:12px}.visitor-map__periods{margin-top:12px}.visitor-map__foot{margin-top:12px}}

.visitor-map{scroll-margin-top:var(--nav-h,80px)}
@media(max-width:680px){.visitor-map{padding-block:10px}.visitor-map__head{margin-bottom:8px}.visitor-map__periods{margin-top:8px}.visitor-map__stats{padding:12px}.visitor-map__foot{margin-top:8px;line-height:1.35}}
@media(max-width:680px){.visitor-map__intro{margin-top:10px}.visitor-map__locations-title{margin-top:10px}}

@media(max-width:680px){.visitor-map__metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.visitor-map__metric--country{min-height:52px}.visitor-map__metric--country strong{font-size:clamp(1.15rem,4.3vw,1.45rem)}}

/* Keep the full-size world inside its border at wide desktop ratios. */
.visitor-map__canvas [data-world-map]{transform:translateY(-10px)}
@media(min-width:1081px){.visitor-map__canvas{height:auto;aspect-ratio:1.9;min-height:0}}

/* Period controls share the map's top edge on desktop. */
.visitor-map__periods{grid-area:periods;align-self:start;justify-content:flex-start}
.visitor-map__canvas{grid-area:map}
.visitor-map__stats{grid-area:stats}
@media(min-width:1081px){.visitor-map__periods{gap:4px;flex-wrap:nowrap}}
@media(min-width:1081px) and (max-width:1279px){.visitor-map__periods button{padding-inline:7px;font-size:.78rem}}
@media(max-width:1080px){.visitor-map__layout{grid-template-areas:"periods" "map" "stats";grid-template-rows:auto auto auto}}

@media(max-width:680px){.visitor-map__periods{gap:4px;justify-content:space-between}.visitor-map__periods button{min-width:44px;padding-inline:5px;font-size:clamp(.7rem,2.7vw,.78rem)}}

/* The map's width must come from its grid column, never from the height of the
   column beside it. With an auto width, aspect-ratio 1.9 and a row stretched to
   the statistics panel, a tall panel made the map wider than its column and it
   ran over the table. */
@media(min-width:1081px){.visitor-map__canvas{width:100%;min-width:0}}

/* The period buttons span the full width of the box beneath them: the row takes
   its container's width and the buttons share it. */
.visitor-map__periods{width:100%;box-sizing:border-box;justify-content:stretch}
.visitor-map__periods button{flex:1 1 auto}

/* The status message is an overlay inside the map box, not a line in the page
   flow: showing or clearing it can never move anything beneath it. */
.visitor-map__status{position:absolute;z-index:2;left:50%;top:14px;transform:translateX(-50%);margin:0;min-height:0;max-width:calc(100% - 28px);padding:6px 14px;border:1px solid #28536f;border-radius:999px;background:rgba(3,17,31,.88);color:#a5e8f7;font:400 .8rem/1.4 var(--font-sans);text-align:center;pointer-events:none}
@media(max-width:680px){.visitor-map__status{top:10px;max-width:calc(100% - 20px);padding:5px 12px;font-size:.74rem}}

/* the whole globe, pole to pole: a rectangular frame so both poles read as part of the map */
.visitor-world__outline{fill:rgba(18,52,80,.32);stroke:#5f93ad;stroke-width:1;stroke-opacity:.7;stroke-linejoin:miter}

/* the map is a 2:1 rectangle, so a 2:1 box lets it fill the whole box edge to edge with nothing cropped */
.visitor-map__canvas{aspect-ratio:2;height:auto;min-height:0}
.visitor-map__canvas [data-world-map]{inset:0;transform:none}
.visitor-map__canvas [data-world-map] svg{width:100%;height:100%}
.visitor-map__legend{left:14px;bottom:14px;z-index:2;gap:10px;padding:7px 14px 7px 12px;border:1px solid #28536f;border-radius:999px;background:rgba(3,17,31,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#bfdbe9;font-size:.76rem;letter-spacing:.02em}
.visitor-map__legend-swatch{width:72px}
@media(max-width:680px){.visitor-map__canvas{aspect-ratio:2}.visitor-map__legend{left:8px;bottom:8px;gap:7px;padding:4px 10px 4px 8px;font-size:.66rem}.visitor-map__legend-swatch{width:44px;height:6px}}
.visitor-map__canvas{align-self:start}

/* side by side: the statistics box ends exactly where the map ends. Only the list of
   countries scrolls; the heading and the three tiles stay put. contain:size stops the
   content from setting the row height, so the map alone decides it. */
@media(min-width:1081px){
  .visitor-map__stats{contain:size;min-height:0;display:flex;flex-direction:column;overflow:hidden}
  .visitor-map__stats>*{flex:none}
  .visitor-map__stats .visitor-map__locations{flex:1 1 0;min-height:0!important;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#2c5873 transparent;margin-right:-6px;padding-right:6px}
  .visitor-map__locations::-webkit-scrollbar{width:8px}
  .visitor-map__locations::-webkit-scrollbar-thumb{background:#2c5873;border-radius:8px;border:2px solid transparent;background-clip:content-box}
}

/* stacked (tablet / phone): the list keeps a fixed height and scrolls by itself, so the box
   never grows with the number of countries and the page below never moves */
@media(max-width:1080px){
  .visitor-map__stats .visitor-map__locations{height:224px;min-height:0!important;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#2c5873 transparent;margin-right:-6px;padding-right:6px;align-content:start}
  .visitor-map__locations::-webkit-scrollbar{width:8px}
  .visitor-map__locations::-webkit-scrollbar-thumb{background:#2c5873;border-radius:8px;border:2px solid transparent;background-clip:content-box}
}
