.bus-page {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 32px;
  display: grid;
  gap: 18px;
}

.bus-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bus-page__header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.bus-page__lead {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.bus-page__back {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.bus-page__notice {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.bus-page__notice p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.bus-route-list {
  display: grid;
  gap: 18px;
}

.bus-route-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.bus-route-section__header {
  display: grid;
  gap: 8px;
}

.bus-route-section__header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.bus-route-section__description {
  margin: 0;
  color: var(--text-soft);
}

.bus-route-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(41, 34, 34, 0.08);
  font-weight: 700;
}

.bus-route-section__badge i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.bus-stop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bus-stop-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(41, 34, 34, 0.08);
}

.bus-stop-card__name {
  margin: 0;
  font-size: 1rem;
}

.bus-stop-times {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
}

.bus-stop-times li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-muted);
}

.bus-stop-times li.is-past {
  opacity: 0.5;
}

.bus-stop-times li.is-past strong,
.bus-stop-times li.is-past span {
  text-decoration: line-through;
}

.bus-stop-times strong {
  font-size: 0.95rem;
}

.bus-stop-times span {
  color: var(--text-soft);
  font-size: 0.86rem;
}

@media (max-width: 767px) {
  .bus-page {
    width: calc(100% - 16px);
    padding: 14px 0 24px;
    gap: 14px;
  }

  .bus-page__header {
    display: grid;
    gap: 12px;
  }

  .bus-route-section {
    padding: 14px;
    border-radius: 20px;
  }

  .bus-stop-times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
