/* Shared outbound service list — city / terminal / company */
.rb-co-services {
  position: relative;
  z-index: 2;
  padding: 4px 0 64px;
  scroll-margin-top: 96px;
  overflow-x: clip;
}
.rb-co-services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.rb-co-services__head h2 {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--rb-ink);
}
.rb-co-services__head p {
  margin: 4px 0 0;
  max-width: 40rem;
  font-size: 13px;
  line-height: 1.75;
  font-weight: 500;
  color: #6b7280;
}
.rb-co-services__count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(26, 28, 30, .08);
  color: #5c6168;
  font-size: 12px;
  font-weight: 700;
}
.rb-co-svc-dates {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 16px;
  padding: 2px 0 8px;
  scrollbar-width: none;
}
.rb-co-svc-dates::-webkit-scrollbar { display: none; }
.rb-co-svc-dates a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 4.4rem;
  height: 44px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(26, 28, 30, .07);
  color: #5c6168;
  text-decoration: none !important;
  line-height: 1.2;
}
.rb-co-svc-dates a span {
  font-size: 10px;
  font-weight: 600;
  color: #8a8c8a;
}
.rb-co-svc-dates a b {
  font-size: 12px;
  font-weight: 750;
  color: inherit;
}
.rb-co-svc-dates a.is-active {
  background: var(--rb-navy);
  border-color: transparent;
  color: #fff;
}
.rb-co-svc-dates a.is-active span { color: rgba(255,255,255,.72); }
.rb-co-services__day + .rb-co-services__day { margin-top: 18px; }
.rb-co-services__day { scroll-margin-top: 96px; }
.rb-co-services__day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.rb-co-services__day-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
  color: #3a3d40;
}
.rb-co-services__day-head span {
  font-size: 12px;
  font-weight: 600;
  color: #8a8c8a;
}
.rb-co-svc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rb-co-svc {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 16px;
  min-height: 64px;
  padding: 8px 10px 8px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(26, 28, 30, .07);
  box-shadow: none;
  color: inherit;
  text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease;
}
.rb-co-svc:hover {
  border-color: rgba(61, 107, 140, .28);
  background: #fcfdfe;
}
.rb-co-svc.is-vip { border-color: rgba(196, 162, 101, .28); }
.rb-co-svc.is-sold { opacity: .72; }
.rb-co-svc__when {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.rb-co-svc__when b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--rb-navy);
  font-variant-numeric: tabular-nums;
}
.rb-co-svc__when em {
  font-style: normal;
  font-size: 10px;
  font-weight: 650;
  color: #8a8c8a;
}
.rb-co-svc__brand {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 650;
  color: #6b7280;
}
.rb-co-svc__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  grid-template-areas:
    "from rail to"
    "type . .";
  align-items: start;
  column-gap: 8px;
  min-width: 0;
}
.rb-co-svc__stop { min-width: 0; }
.rb-co-svc__stop:not(.is-to) { grid-area: from; }
.rb-co-svc__stop.is-to {
  grid-area: to;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: end;
}
.rb-co-svc__stop strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--rb-ink);
  line-height: 1.3;
}
.rb-co-svc__stop small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 500;
  color: #8a8c8a;
}
.rb-co-svc__rail {
  grid-area: rail;
  height: 0;
  border-top: 1px dashed rgba(61, 107, 140, .35);
  position: relative;
}
.rb-co-svc__rail::before,
.rb-co-svc__rail::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4a265;
}
.rb-co-svc__rail::before { right: -1px; }
.rb-co-svc__rail::after { left: -1px; background: var(--rb-sky); }
.rb-co-svc__type {
  grid-area: type;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: #7a7d7a;
}
.rb-co-svc__type i {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1c2a3a;
  color: #f0dfb4;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  vertical-align: 1px;
}
.rb-co-svc__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  max-width: 14rem;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.rb-co-svc__chips li {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4f6f8;
  color: #5c6168;
  font-size: 10.5px;
  font-weight: 650;
}
.rb-co-svc__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 7.2rem;
}
.rb-co-svc__seats {
  font-size: 11px;
  font-weight: 650;
  color: #2f7a6e;
}
.rb-co-svc__seats.is-sold { color: #b91422; }
.rb-co-svc__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.rb-co-svc__price strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--rb-ink);
}
.rb-co-svc__price small {
  font-size: 11px;
  font-weight: 600;
  color: #8a8c8a;
}
.rb-co-svc__price .is-muted {
  font-size: 12px;
  font-weight: 650;
  color: #9ca3af;
}
.rb-co-svc__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(225, 29, 46, .08);
  color: var(--rb-red);
  font-size: 12px;
  font-weight: 800;
}
.rb-co-svc:hover .rb-co-svc__cta {
  background: var(--rb-red);
  color: #fff;
}
.rb-co-svc.is-sold .rb-co-svc__cta {
  background: #f3f4f6;
  color: #4b5563;
}

@media (max-width: 900px) {
  .rb-co-svc {
    grid-template-columns: 4.4rem minmax(0, 1fr) auto;
    grid-template-areas:
      "when route cta"
      "meta meta cta";
  }
  .rb-co-svc__when { grid-area: when; }
  .rb-co-svc__route { grid-area: route; }
  .rb-co-svc__chips { max-width: 11rem; }
  .rb-co-svc__chips li:nth-child(n+2) { display: none; }
  .rb-co-svc__meta {
    grid-area: meta;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .rb-co-svc__cta { grid-area: cta; align-self: center; }
}

@media (max-width: 700px) {
  .rb-co-services { padding: 0 0 48px; }
  .rb-co-services__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .rb-co-services__head h2 { font-size: 20px; }
  .rb-co-services__day { scroll-margin-top: 78px; }
  .rb-co-svc {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "when cta"
      "route route"
      "meta meta";
    gap: 8px 12px;
    min-height: 0;
    padding: 10px 12px;
  }
  .rb-co-svc__when {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
  }
  .rb-co-svc__when b { font-size: 18px; }
  .rb-co-svc__brand { width: 100%; margin-top: 0; }
  .rb-co-svc__route { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); }
  .rb-co-svc__type { display: none; }
  .rb-co-svc__cta { min-width: 58px; height: 30px; }
}
