/* Visual selector shared by route and destination searches. */
:is(#route-kind, #destination-kind, #origin-kind).route-kind {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 19px;
}
:is(#route-kind, #destination-kind, #origin-kind) .route-kind-btn {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 5px;
  border: 2px solid #c7d7ea;
  border-radius: 14px;
  background: #fff;
  color: #1b4268;
  text-align: center;
  box-shadow: 0 3px 12px #1236590d;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
:is(#route-kind, #destination-kind, #origin-kind) .route-kind-btn:hover {
  transform: translateY(-2px);
  border-color: #155eef;
  background: #fff;
  box-shadow: 0 7px 18px #155eef1e;
}
:is(#route-kind, #destination-kind, #origin-kind) .route-kind-btn.active {
  border-color: #155eef;
  background: #fff;
  color: #123e7b;
  box-shadow: 0 0 0 2px #155eef26, 0 8px 18px #155eef18;
}
:is(#route-kind, #destination-kind, #origin-kind) .route-kind-btn:focus-visible {
  outline: 3px solid #ef9410;
  outline-offset: 2px;
}
:is(#route-kind, #destination-kind, #origin-kind) .route-kind-scene {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 9px;
  background: #e9f3ff;
}
:is(#route-kind, #destination-kind, #origin-kind) .route-kind-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
#route-kind .route-kind-illustration {
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #e6f4ff, #f4faff);
  color: #1983bf;
}
#route-kind [data-kind="multi"] .route-kind-illustration {
  background: linear-gradient(120deg, #eaf4ff, #fff5ee);
  color: #e27b38;
}
#route-kind .route-kind-illustration svg {
  width: min(86%, 155px);
  height: 64%;
}
:is(#route-kind, #destination-kind, #origin-kind) .route-kind-label {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 36px;
  padding: 5px 4px 2px;
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 800;
  line-height: 1.2;
}
/* Two options have room to breathe on desktop and remain side by side on phones. */
#destination-kind.route-kind {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
}
@media (max-width: 680px) {
  :is(#route-kind, #destination-kind, #origin-kind).route-kind { gap: 6px; margin-top: 15px; }
  :is(#route-kind, #destination-kind, #origin-kind) .route-kind-btn { padding: 3px; border-radius: 10px; }
  :is(#route-kind, #destination-kind, #origin-kind) .route-kind-scene { border-radius: 6px; }
  :is(#route-kind, #destination-kind, #origin-kind) .route-kind-label { min-height: 38px; padding: 4px 2px 1px; font-size: 12px; }
  #destination-kind.route-kind { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#route-kind, #destination-kind, #origin-kind) .route-kind-btn { transition: none; }
  :is(#route-kind, #destination-kind, #origin-kind) .route-kind-btn:hover { transform: none; }
}
