.map-device-overlay {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  z-index: 450;
}
.map-device-overlay .map-device-grid {
  position: relative;
}
.map-device-overlay .map-socket {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  line-height: 1;
  font-size: inherit;
}
.map-device-overlay .map-socket.fault {
  color: #655018;
}
.map-socket-letter {
  display: inline-block;
  pointer-events: none;
}
.map-axis-control {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 2px;
  padding: 1px 2px;
  background: #f4f8ffeb;
  color: #3568ba;
  font-size: var(--map-axis-font, 7px);
  line-height: 1.25;
  text-decoration: underline;
  white-space: nowrap;
  z-index: 2;
}
.map-axis-control.axis-row {
  left: -2px;
  transform: translate(-100%, -50%);
}
.map-axis-control.axis-column {
  top: -2px;
  transform: translate(-50%, -100%);
}
/* Bearing changes affect one common geographic plane, not individual sockets. */
.leaflet-bearing-pane {
  position: absolute;
  inset: 0;
  z-index: 400;
  transform-origin: 50% 50%;
}
#campus-map .leaflet-zoom-anim .leaflet-zoom-animated {
  transition-timing-function: linear;
}
#campus-map .map-area-bubble,
#campus-map .map-area-name {
  transform: rotate(var(--map-bearing-inverse, 0deg));
}
.map-socket.highlighted-socket {
  position: relative;
  z-index: 5;
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #ffffffd9;
}
.map-is-turning .leaflet-bearing-pane {
  will-change: transform;
}

.map-north .campus-compass {
  pointer-events: auto;
  cursor: pointer;
}
/* Keep the complete N/S dial inside the map at east/west bearings. */
.map-frame .map-north {
  width: 62px;
}
.map-frame .map-north .campus-compass {
  left: 14px;
  right: auto;
}
