/* PRTMX 5.9 — self-contained map icon and clean layered labels.
   Scoped to the published ALL map only. */
body.prtmx-unified-ui[data-prtmx-ui-route="map"] .leaflet-marker-icon.prtmx-v59r2-voxel{
  overflow:visible!important;
}
body.prtmx-unified-ui[data-prtmx-ui-route="map"] .leaflet-marker-icon.prtmx-v59r2-voxel > .prtmx-v59r2-ship{
  position:absolute!important;
  display:block!important;
  z-index:2!important;
  top:4px!important;left:4px!important;
  width:calc(100% - 8px)!important;height:calc(100% - 8px)!important;
  border-radius:50%!important;
  background-color:#fff!important;
  background-image:url('/static/prtmx-v59r2-voxel-map-192.png?v=59r2')!important;
  background-size:105% 105%!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  box-shadow:none!important;
  border:0!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
}
body.prtmx-unified-ui[data-prtmx-ui-route="map"] .prtmx-v59r2-ghost{
  display:none!important;
  visibility:hidden!important;
  background:none!important;
  box-shadow:none!important;
  border:0!important;
  padding:0!important;
}
/* Preserve the proven joined label from V5.7, without any second pill. */
body.prtmx-unified-ui[data-prtmx-ui-route="map"] .leaflet-marker-icon.prtmx-v57-joined > .prtmx-v57-card{
  border-radius:8px!important;
  border:1px solid #d6e3ee!important;
  box-shadow:0 3px 0 #d5e4ef,0 8px 18px #234c7020!important;
  background:rgba(255,255,255,.98)!important;
  overflow:visible!important;
}
body.prtmx-unified-ui[data-prtmx-ui-route="map"] .prtmx-v57-company{
  border-radius:6px!important;
}
/* Keep V5.8's working map position — precise, minimal reinforcement. */
body.prtmx-unified-ui[data-prtmx-ui-route="map"] .prtmx-v58-map-stats{
  top:calc(var(--prtmx-ui-header-h,70px) + 12px)!important;
}
body.prtmx-unified-ui[data-prtmx-ui-route="map"] .prtmx-v58-map-panel{
  bottom:calc(var(--prtmx-ui-dock-h,76px) + 40px + env(safe-area-inset-bottom,0px))!important;
}
@media(max-width:700px){
  body.prtmx-unified-ui[data-prtmx-ui-route="map"] .prtmx-v58-map-panel{
    bottom:calc(var(--prtmx-ui-dock-h,70px) + 27px + env(safe-area-inset-bottom,0px))!important;
  }
  body.prtmx-unified-ui[data-prtmx-ui-route="map"] .prtmx-v58-map-stats{
    top:calc(var(--prtmx-ui-header-h,80px) + 10px)!important;
  }
}
