html {
  font-size: 24px;
  font-family: sans-serif;
}

body {
  padding: 0;
  margin: 0;
}

.hidden {
  display: none;
}

.map-section {
  position: relative;
  width: 100%;
  height: 50vh;
  background-color: silver;
}

.leaflet-top {
  /* Reposition the top Leaflet control regions to make room for the search controls. */
  top: 2rem;
}

.leaflet-left .leaflet-control {
  margin-left: 0.5rem;
}

.map-search-controls {
  display: flex;
  box-sizing: border-box;
  margin: 0;
  border: none;
  padding: 0.5rem;
  width: 100%;
  gap: 0.5rem;
  justify-content: space-between;
  position: relative;
  z-index: 1001; /* This z-index setting is one higher than the z-index of the map controls like zoom */
}

.map-search-controls input {
  box-sizing: border-box;
  border: 1px solid gray;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: monospace;
}

[name="address-search"] {
  background-image: url("../img/location.svg");
  background-size: 1em;
  background-repeat: no-repeat;
  background-position: 98% center;
  padding-right: 1.2em;
  width: 60%
}

.autocomplete-options {
  position: absolute;
  list-style-type: none;
  padding: 0;
  left: 0.5rem;
  right: 0.5rem;
  margin-top: 1.5rem;
  background-color: white;
}

.autocomplete-option {
  padding: 0.5rem;
  border: 1px solid black;
  border-bottom-width: 0;
}

.autocomplete-option:last-child {
  border-bottom-width: 1px;
}

[name="time-search"] {
  width: 40%;
}

.map {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.geolocation-icon .pulsing-circle {
  stroke: blue;
  stroke-width: 2px;
}

.geolocation-icon .inner-circle {
  fill: blue;
}

.bike-search-controls {
  border: 0;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between
}

.stations-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.stations-list .station {
  display: grid;
  grid-template-areas: "name             name"
                        "blank           distance"
                        "bikes-info      docks-info"
                        "drop-off-info   pick-up-info"
                        "details         details";
  grid-template-columns: 1fr 1fr;

  padding: 0.5rem;
  border-bottom: 1px solid black;
}

.stations-list .station:first-child {
  border-top: 1px solid black;
}

.station .name {
  grid-area: name;
  font-weight: bold;
}

.station .distance {
  grid-area: distance;
  justify-self: end;

  font-size: 0.8em;
  font-style: italic;
  padding-bottom: 0.5rem
}

.station .available-bikes {
  grid-area: bikes-info;
}

.station .available-docks {
  grid-area: docks-info;
  text-align: right;
}

.station .next-drop-off-est {
  grid-area: drop-off-info;
}

.station .next-pick-up-est {
  grid-area: pick-up-info;
  text-align: right;
}

.station .details {
  grid-area: details;
  justify-self: center;
}

.station:not(.selected) .details {
  display: none;
}

.station .details .chart {
  box-sizing: border-box;
  margin-top: 0.5rem;
  padding: 0.5rem;
  width: 100%;
  height: 4rem;
  background-color: silver;
}

.report-dock-count {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.report-dock-count p {
  font-size: 0.6em;
  font-style: italic;
}

.report-dock-count button {
  font-size: 1rem;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
