/* Overlays the dead space between the route grid and the status strip, rather
   than using upstream's .with-map split pane -- that pane drops the route grid
   to three or four columns, and six columns is the whole point of the current
   layout. */
.map-pane {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 2.9em;
  height: 40%;

  display: flex;
  flex-direction: column;

  border-top: 1px solid #e0e0e0;
  background: #f4f4f4;
  box-sizing: border-box;
}

.map-head {
  flex: 0 0 auto;

  display: flex;
  align-items: baseline;
  justify-content: space-between;

  padding: 0.35em 0.9em;
  font-size: 1.4em;
  color: #333;
}

.map-title {
  font-weight: bold;
}

.map-counts {
  color: #666;
}

#micromobility-map {
  flex: 1 1 auto;
  min-height: 0;

  /* Leaflet needs a positioned box with real height before it initialises. */
  position: relative;
  background: #dfe3e6;
}

/* Leaflet's own type is sized in px against the board's 12px base; nudge the
   attribution and tooltips up so they are legible on a wall screen. */
.map-pane .leaflet-container {
  font-size: 12px;
}

.map-pane .leaflet-tooltip {
  font-size: 13px;
  font-weight: bold;
}

/* On a short viewport the map would collide with the route grid. Routes win. */
@media (max-height: 620px) {
  .map-pane {
    display: none;
  }
}
