/* PhazTrack desktop map control lock.
   Desktop only. Does not alter map tiles, markers, sidebar, phone layout or telemetry. */
@media(min-width:901px){
  /* Keep the approved status chips visible; collapse only the action icons. */
  html body[data-product="phaztrack"] #pt3MapDock{
    overflow:visible!important;
  }
  html body[data-product="phaztrack"] #pt3DesktopMapToggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0 16px!important;
    border:1px solid #d7e0e8!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#33475a!important;
    box-shadow:0 5px 14px rgba(7,24,39,.14)!important;
    font:850 .72rem/1 system-ui,sans-serif!important;
    cursor:pointer!important;
    pointer-events:auto!important;
  }
  html body[data-product="phaztrack"] #pt3DesktopMapToggle:hover,
  html body[data-product="phaztrack"] #pt3DesktopMapToggle[aria-expanded="true"]{
    background:#172635!important;
    color:#fff!important;
    border-color:#172635!important;
  }
  html body[data-product="phaztrack"] #pt3DesktopMapToggle svg{
    width:16px!important;
    height:16px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }
  html body[data-product="phaztrack"] #pt3DesktopMapToggle .pt-map-chevron{
    width:8px!important;
    height:8px!important;
    border-right:2px solid currentColor!important;
    border-bottom:2px solid currentColor!important;
    transform:rotate(45deg) translateY(-2px)!important;
    transition:transform .15s ease!important;
  }
  html body[data-product="phaztrack"] #pt3DesktopMapToggle[aria-expanded="true"] .pt-map-chevron{
    transform:rotate(225deg) translate(-1px,-1px)!important;
  }

  html body[data-product="phaztrack"] #pt3MapDock .pt3-action-row.pt-desktop-map-menu{
    position:absolute!important;
    top:90px!important;
    left:0!important;
    z-index:2350!important;
    display:none!important;
    width:210px!important;
    margin:0!important;
    padding:8px!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
    border:1px solid #d7e0e8!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 14px 32px rgba(7,24,39,.22)!important;
    pointer-events:auto!important;
  }
  html body[data-product="phaztrack"] #pt3MapDock .pt3-action-row.pt-desktop-map-menu.open{
    display:grid!important;
  }
  html body[data-product="phaztrack"] #pt3MapDock .pt3-action-row.pt-desktop-map-menu button{
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:0 12px!important;
    justify-content:flex-start!important;
    border:1px solid #e1e7ec!important;
    border-radius:9px!important;
    background:#f8fafb!important;
    color:#33475a!important;
    box-shadow:none!important;
    font:800 .7rem/1 system-ui,sans-serif!important;
  }
  html body[data-product="phaztrack"] #pt3MapDock .pt3-action-row.pt-desktop-map-menu button:hover{
    background:#172635!important;
    color:#fff!important;
    border-color:#172635!important;
  }

  /* Existing Street / Satellite / Hybrid / Geofences menu stays separate and clean. */
  html body[data-product="phaztrack"] #pt3ToolsMenu{
    top:112px!important;
    left:16px!important;
  }

  /* Keep the full +/- control comfortably inside the visible desktop map. */
  html body[data-product="phaztrack"] #phazLiveMap .leaflet-top.leaflet-left{
    top:auto!important;
    left:auto!important;
    right:20px!important;
    bottom:156px!important;
    z-index:2400!important;
  }
  html body[data-product="phaztrack"] #phazLiveMap .leaflet-control-zoom{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    margin:0!important;
    border:1px solid #d7e0e8!important;
    border-radius:12px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(7,24,39,.22)!important;
  }
  html body[data-product="phaztrack"] #phazLiveMap .leaflet-control-zoom a{
    display:block!important;
    width:44px!important;
    height:44px!important;
    line-height:42px!important;
    background:#fff!important;
    color:#193047!important;
    font-size:25px!important;
    font-weight:500!important;
    text-align:center!important;
  }
  html body[data-product="phaztrack"] #phazLiveMap .leaflet-control-zoom a:first-child{
    border-bottom:1px solid #e1e7ec!important;
  }
  html body[data-product="phaztrack"] #phazLiveMap .leaflet-control-zoom a:last-child{
    border-bottom:0!important;
  }
  html body[data-product="phaztrack"] #phazLiveMap .leaflet-bottom{
    bottom:8px!important;
  }
}
