/* Street Monitoring DEV v3.0.21: only road-priority map layout/scroll behavior.
   Keep original Street Monitoring operation maps and measurement API untouched. */
#priorities .street-map-shell { min-height:0; height:auto; max-width:100%; margin:10px 0 8px; }
#priorities #streetCanvas.street-map, #priorities #pilotMapLibre {
  height:clamp(240px,39dvh,360px); min-height:0; max-height:none; width:100%;
}
#priorities.street-map-expanded #streetCanvas.street-map,
#priorities.street-map-expanded #pilotMapLibre {height:clamp(340px,70dvh,760px)}
#priorities #streetCanvas.street-map {touch-action:pan-y;}
#priorities.street-map-touch-active #streetCanvas.street-map {touch-action:none;}
#streetMapTouchMode {display:none;}
@media(hover:none) and (pointer:coarse) {#streetMapTouchMode {display:inline-flex;align-items:center;justify-content:center;}}
#priorities #streetMapControlHint {margin:6px 0 8px;}
/* The always-on documentation bar has no function while editing road priorities. */
body:has(#priorities.tab.active) #pilotActionBar {display:none;}
body:has(#priorities.tab.active) {padding-bottom:0;}
@media(max-width:730px) {
  #priorities #streetCanvas.street-map, #priorities #pilotMapLibre {height:clamp(210px,34dvh,300px)}
  #priorities.street-map-expanded #streetCanvas.street-map, #priorities.street-map-expanded #pilotMapLibre {height:clamp(310px,70dvh,660px)}
  #priorities .street-toolbar {gap:8px;}
  #streetMapSize,#streetMapTouchMode {min-height:44px;}
}
@media(max-height:480px) and (orientation:landscape) {
  #priorities #streetCanvas.street-map, #priorities #pilotMapLibre {height:clamp(170px,49dvh,225px)}
  #priorities.street-map-expanded #streetCanvas.street-map, #priorities.street-map-expanded #pilotMapLibre {height:75dvh}
}
