html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Roboto", sans-serif;
  overflow: hidden;
}

/* Full-screen map */
#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

/* Controls */
button {
  position: relative;
  z-index: 2;

  top: 20px;
  left: 20px;

  margin-right: 10px;
  padding: 10px 16px;

  background: white;
  color: black;

  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 700;

  border: 1px solid #bcbcbc;
  border-radius: 10px;

  cursor: pointer;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

button:hover {
  background: #f4f4f4;
}

/* Bus markers */
.marker {
  position: relative;

  width: 50px;
  height: 50px;

  background-image: url("assets/bus-icon.png");
  background-size: cover;
  background-position: center;

  border-radius: 50%;

  cursor: pointer;
}

/* Bus number beneath each marker */
.bus-number {
  position: absolute;
  top: 100%;
  left: 50%;

  transform: translateX(-50%);

  margin-top: 4px;
  padding: 3px 5px;

  background: white;

  color: black;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;

  border-radius: 4px;

  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Small live-data status badge */
.infobox {
  position: absolute;
  z-index: 2;

  top: 80px;
  left: 20px;

  padding: 10px 14px;

  background: rgba(255, 255, 255, 0.95);

  color: #222;
  font-size: 14px;

  border-radius: 8px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.infobox h3 {
  margin: 0 0 4px 0;

  font-size: 14px;
}

.infobox p {
  margin: 0;

  font-size: 12px;
  color: #555;
}

/* Hide the detailed bus list.
   Individual bus details are available by clicking markers. */
.infobox ul {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  button {
    font-size: 13px;
    padding: 8px 10px;
  }

  .infobox {
    top: 75px;
    right: 20px;
  }
}