html,
body {
  min-height: 100%;
  height: auto;
  overflow: auto;
  background: var(--bg);
}

.stop-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 12px 26px;
}

.stop-head {
  background: transparent;
  margin-bottom: 10px;
  display: grid;
  gap: 10px;
}

.stop-back {
  border: 1.5px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-2);
  border-radius: var(--r-full);
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  width: fit-content;
}

.stop-back:hover {
  background: var(--bg-hover);
  border-color: var(--border-dark);
  color: var(--ink);
}

.stop-title-wrap {
  min-width: 0;
}

#stopTitle {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stop-list {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-m);
  padding: 0 16px;
  margin-bottom: 10px;
}

.stop-list .arr-row {
  cursor: default;
  padding: 13px 0;
}

.stop-list .arr-row:hover {
  padding-left: 0;
  background: transparent;
  border-radius: 0;
}

.stop-list-empty {
  padding: 8px 0;
}

.stop-map-shell {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-m);
  overflow: hidden;
}

.stop-map-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.stop-map-head h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.stop-map {
  height: 250px;
  background: var(--bg-subtle);
}

.stop-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e8b800;
}

.bus-marker-wrap {
  position: relative;
  width: 42px;
  height: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bus-marker-icon {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(14, 17, 24, 0.25));
}

.lf-num {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  border: 1.5px solid rgba(0, 0, 0, .15);
  color: #fff;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--font);
  letter-spacing: .01em;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .stop-page {
    padding: 14px 10px 20px;
  }

  #stopTitle {
    font-size: 20px;
    white-space: normal;
    text-overflow: initial;
  }

  .stop-list {
    padding: 0 12px;
  }

  .stop-map {
    height: 220px;
  }
}
