:root {
  --sheet-ratio: 30%;
  --sheet-bg: #f2f2f7;
  --sheet-radius: 20px;
  --text-primary: #1c1c1e;
  --text-secondary: #6e6e73;
  --separator: rgba(60, 60, 67, 0.12);
}

html,
body {
  margin: 0;
  box-sizing: border-box;
}

#map {
  position: fixed;
  inset: 0;
  bottom: var(--sheet-ratio);
}

#sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--sheet-ratio);
  background: var(--sheet-bg);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.12);
  padding: 8px 18px 16px;
  z-index: 10;
  overflow-y: scroll;
}

.horizontal-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5em;
}

.vertical-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.8em;
}

.title {
  width: 100%;
  justify-content: space-between;
  font-size: 1.75em;
  color: var(--text-primary);
  padding-bottom: 0.25em;
  border-bottom: 1px dashed var(--separator);
}

.connection-indicator {
  font-size: 0.5em;
}

.stop-info {
  color: var(--text-primary);
}

.train-info {
  gap: 0.8em;
  color: var(--text-primary);
}

.train-info .train-detail {
  font-size: 0.8em;
  color: var(--text-secondary);
}

.stop-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
}

.stop-marker:hover {
  transform: scale(1.2);
}

.train-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: var(--sheet-bg);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.route-icon {
  width: 2em;
  height: 2em;
  border-radius: 5px;
}
