.trip-style-control {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.trip-style-control legend {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.trip-style-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.trip-style-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.trip-style-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.trip-style-option span {
  display: grid;
  gap: 0.25rem;
  min-height: 5.25rem;
  padding: 1rem;
  background: #f1ede4;
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.trip-style-option strong {
  color: var(--ink);
  font-size: 1rem;
}

.trip-style-option small {
  color: var(--muted);
  line-height: 1.4;
}

.trip-style-option:hover span {
  border-color: #a9a191;
}

.trip-style-option input:checked + span {
  color: white;
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.trip-style-option input:checked + span strong {
  color: white;
}

.trip-style-option input:checked + span small {
  color: #d8eadf;
}

.trip-style-option input:focus-visible + span {
  outline: 3px solid #1769aa;
  outline-offset: 3px;
}

.trip-style-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.route-card-unavailable,
.route-card-unavailable:first-child {
  color: var(--ink);
  background: #f1ede4;
  border-style: dashed;
}

.route-card-unavailable:first-child .route-label,
.route-card-unavailable:first-child .route-summary,
.route-card-unavailable:first-child .route-meta,
.route-card-unavailable:first-child .route-streets {
  color: var(--muted);
}

.route-card-unavailable:first-child .route-entry {
  color: var(--ink);
}

.route-card-unavailable:hover {
  transform: none;
  box-shadow: none;
}

.button:disabled,
.route-card-unavailable:first-child .button:disabled {
  color: #777f79;
  background: #ded9cf;
  cursor: not-allowed;
}

.button-compact {
  min-height: 2.65rem;
  padding: 0.62rem 0.9rem;
  font-size: 0.86rem;
}

.parking-hub-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 2rem 0;
  list-style: none;
}

.parking-hub {
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #f1ede4;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.parking-hub-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.parking-hub-heading > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.7rem;
  align-items: center;
}

.parking-hub-number {
  grid-row: 1 / 3;
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.parking-hub-type {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: capitalize;
}

.parking-caution {
  margin: 0.65rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.parking-walks {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.parking-walks > strong {
  font-size: 0.9rem;
}

.parking-walks ul {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0.75rem 0 0;
  list-style: none;
}

.parking-walk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.parking-walk p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.parking-verified {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.parking-disclaimer {
  border-left-color: var(--green);
  background: #e5eee9;
}

@media (max-width: 760px) {
  .trip-style-options {
    grid-template-columns: 1fr;
  }

  .trip-style-option span {
    min-height: auto;
  }

  .parking-hub-heading,
  .parking-walk {
    align-items: stretch;
    flex-direction: column;
  }

  .parking-hub-heading .button,
  .parking-walk .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trip-style-option span {
    transition: none;
  }
}
