.page-routes {
  .hero-panel--routes {
    background: linear-gradient(135deg, #1e3958 0%, #235f8c 46%, #2c9fb1 100%);
  }
}

.routes-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.routes-toolbar__date {
  min-width: min(340px, 100%);
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;

  label {
    color: var(--ink-700);
    font-weight: 700;
  }
}

.routes-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 220px;
  padding: 1.35rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 252, 0.94));
  border: 1px solid rgba(17, 49, 69, 0.06);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(13, 38, 54, 0.14);
  }
}

.route-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;

  h3 {
    margin: 0.55rem 0 0;
    color: var(--ink-900);
    font-size: 1.35rem;
  }

  strong {
    color: var(--ink-700);
    white-space: nowrap;
  }
}

.route-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(21, 97, 127, 0.08);
  color: #115e7a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-card__meta {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.6;
}

.route-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

@media (max-width: 1100px) {
  .routes-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .routes-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .routes-toolbar__date {
    min-width: 0;
  }
}
