/* NTFP-EP Indonesia: gaya peta Jejak Dampak (komponen home/impact/impact-map.js, 26 Okt 2026): peta, label provinsi, titik,
   kotak keterangan, daftar lokasi (ponsel) dan legenda. Dipindah tanpa diubah dari impact.css; urutan aturan sama.
   Beranda: dimuat tepat sebelum impact.css (aturan bagian Jejak Dampak, gaya 2 dan angka tetap di sana). */
.map-fit{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center}
.map{position:relative;flex:none;height:min(100%, calc((100vw - 48px) * 346 / 924), 584px);aspect-ratio:924 / 346}   /* as large as the height left over allows, never wider than the screen or 1560 px */   /* as large as the height left over allows, never wider than the screen or 1560 px */   /* 150% of the 1040 px text column (125% then 120%), never wider than the screen */
.map svg{display:block;width:100%;height:auto;overflow:visible}
.prov{fill:var(--mp-off,#CAD6CC);stroke:var(--mp-line,var(--paper));stroke-width:.8;stroke-linejoin:round;transition:fill .6s var(--ease)}
.prov.focus{fill:var(--mp-on,#A9C78B);transform-box:fill-box;transform-origin:center;transition:fill .6s var(--ease),transform .45s var(--ease),filter .45s var(--ease)}
/* a supported province grows a little under the pointer (and is lifted above its neighbours by the script) */
.prov.focus:hover{transform:scale(1.06);fill:var(--mp-on-hi,#93BA6C);filter:drop-shadow(0 4px 6px rgba(36,48,40,.3))}
.map.hl .prov.focus{fill:var(--mp-on-hi,#93BA6C)}
.prov-label{position:absolute;transform:translate(-50%,-50%);padding:2px 8px;border-radius:999px;background:var(--paper);box-shadow:0 1px 0 rgba(36,48,40,.1),0 4px 12px -6px rgba(36,48,40,.45);
  font-size:12px;line-height:16px;font-weight:600;color:var(--forest-deep);white-space:nowrap;pointer-events:none}
.site{position:absolute;width:32px;height:32px;margin:-16px 0 0 -16px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;
  opacity:0;transform:scale(.3);transition:opacity .4s var(--ease),transform .8s var(--ease)}
.impact-map.in .site{opacity:1;transform:none}
.site::before{content:"";position:absolute;left:9px;top:9px;width:14px;height:14px;border-radius:50%;background:var(--mp-dot,var(--ochre));box-shadow:0 0 0 3px var(--mp-dot-rim,var(--paper)),0 2px 6px rgba(36,48,40,.35)}
.site::after{content:"";position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;border:2px solid var(--mp-dot,var(--ochre));opacity:0}
.site:hover::before,.site:focus-visible::before,.site.on::before{background:var(--mp-dot-hi,var(--forest))}
.lg-cap{width:10px;height:10px;border-radius:50%;background:var(--paper);box-shadow:inset 0 0 0 2.5px var(--forest-deep)}
.map-legend .lg[hidden]{display:none}
.map.hl .site::after,.site.on::after{animation:sitePulse 1.6s var(--ease) infinite}
@keyframes sitePulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(1.8);opacity:0}}
.site-tip{position:absolute;z-index:3;left:0;top:0;padding:8px 12px;border-radius:12px;background:var(--ink);color:var(--paper);font-size:14px;line-height:20px;white-space:nowrap;pointer-events:none;
  opacity:0;transform:translate(-50%,calc(-100% - 14px)) translateY(4px);transition:opacity .3s var(--ease),transform .5s var(--ease)}
.site-tip.on{opacity:1;transform:translate(-50%,calc(-100% - 14px))}
.site-tip b{display:block}
.site-tip span{color:#C9D3C3}
.site-tip::after{content:"";position:absolute;left:50%;bottom:-6px;width:12px;height:12px;margin-left:-6px;background:var(--ink);transform:rotate(45deg);border-radius:2px}
.site-list{display:none}
.map-legend{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;margin-top:8px;font-size:14px;line-height:20px;color:var(--ink-soft)}
.lg{display:inline-flex;align-items:center;gap:8px}
.lg-prov{width:16px;height:12px;border-radius:2px;background:var(--mp-on,#A9C78B)}
.lg-site{width:12px;height:12px;border-radius:50%;background:var(--mp-dot,var(--ochre));box-shadow:0 0 0 2px var(--mp-dot-rim,var(--paper)),0 0 0 3px rgba(36,48,40,.25)}
.lg-src{margin-left:auto;font-size:12px;line-height:16px}
/* ---------- Tablet ---------- */
@media (max-width:1100px){
.prov-label{font-size:12px;padding:2px 6px}
}
/* a short screen (as impact.css) */
@media (min-width:900px) and (max-height:820px){
.map-legend{margin-top:4px}
}
@media (max-width:760px){
.map-fit{display:block}
.map{width:100%;height:auto}
.map{--mapw:calc(100vw - 32px)}
.prov-label{display:none}
.site{width:24px;height:24px;margin:-12px 0 0 -12px}
.site::before{left:8px;top:8px;width:8px;height:8px;box-shadow:0 0 0 1.5px var(--paper)}
.site::after{left:3px;top:3px;width:18px;height:18px}
.site-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:16px 0 0;padding:0;list-style:none;font-size:14px;line-height:20px}
.site-list li{display:flex;gap:8px;align-items:baseline}
.site-list li::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--mp-dot,var(--ochre));transform:translateY(-1px)}
.site-list span{display:block;font-size:12px;line-height:16px;color:var(--ink-soft)}
.lg-src{margin-left:0}
}
