html, body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#map {
  position: absolute;
  inset: 0;
}

#banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  max-width: calc(100% - 32px);
  text-align: center;
}

#banner.hidden {
  display: none;
}

.stop-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
}

.stop-marker.past {
  background: #9aa0a6;
  opacity: 0.55;
}

.stop-marker.future {
  background: #3b82f6;
}

.stop-marker.next {
  background: #f59e0b;
}

.stop-marker.current {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.35), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.stop-popup {
  font-size: 14px;
  line-height: 1.4;
  max-width: 240px;
}

.stop-popup h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.stop-popup .stop-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.stop-popup .stop-badge.current {
  background: #fee2e2;
  color: #b91c1c;
}

.stop-popup .stop-badge.next {
  background: #fef3c7;
  color: #92400e;
}

.stop-popup .stop-dates {
  color: #555;
  margin: 2px 0;
}

.stop-popup .stop-address {
  color: #555;
  margin: 2px 0 6px;
}

.stop-popup .stop-links a {
  display: block;
  margin-top: 4px;
  color: #2563eb;
}

@media (max-width: 480px) {
  .stop-popup {
    max-width: 200px;
  }
}
