html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
}

#map {
  height: 100%;
  width: 100%;
}

#header {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 6px;
  border-radius: 8px;
  z-index: 1000;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

#timestamp {
  position: absolute;
  top: 42px;
  right: 50%;
  transform: translateX(50%);
  background: rgba(255, 255, 255, 0.7);
  padding: 5px 5px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 1000;
}

#disclaimer {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 50%;
  background: rgba(255, 255, 255, 0.6);
  padding: 5px 5px;
  border-radius: 6px;
  font-size: 10px;
  z-index: 1000;
  color: darkred;
}

.passed {
  background-color: #c8e6c9;
}

.delayed {
  color: red;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

td,
th {
  padding: 4px 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.marker-container {
  position: relative;
  width: 26px;
  height: 26px;
}

.triangle-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  transform-origin: center center;
  z-index: 0;
}

.triangle {
  position: absolute;
  top: -8px;
  left: 3px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 20px solid black;
}

.circle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--color);
  border: 2px solid black;
  transform-origin: center center;
  border-radius: 50%;
  z-index: 1;
}


.popup-table-container {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 5px;
}

.legend {
  background: rgba(255, 255, 255, 0.7);
  padding: 6px;
  line-height: 18px;
  color: #333;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.legend i {
  padding: 2px;
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  border-radius: 50%;
  opacity: 0.8;
}

