/* Four kinds of getaway, with the gold and navy of the taxiway-sign identity. */
#discoverySearch { --discovery-button-height: 48px; }
#discoverySearch #searchForm > button {
  height: var(--discovery-button-height);
  min-height: var(--discovery-button-height);
}
#discoverySearch .trip-chooser {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 0;
  background: #fff;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 20px;
  scrollbar-width: thin;
}
#discoverySearch .trip-chooser h2 {
  flex: 0 0 auto;
  margin: 0;
  color: #132b4d;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -.35px;
  white-space: nowrap;
}
#discoverySearch .trip-chooser h2::after {
  display: none;
}
#discoverySearch .trip-chooser .segmented {
  /* Max-content sizing makes each equal column match the widest label,
     “A weekend,” without a fixed width or a second row. */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 0 0 auto;
  gap: 8px;
  width: max-content;
  max-width: none;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#discoverySearch .trip-chooser [data-trip] {
  --choice-bg: var(--trip-meal, #ffc928);
  --choice-hover: #ffdb63;
  --choice-ink: #132b4d;
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: var(--discovery-button-height);
  min-height: var(--discovery-button-height);
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--choice-bg);
  color: var(--choice-ink);
  box-shadow: 0 2px 0 #132b4d18;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  transition: background-color .15s, box-shadow .15s;
}
#discoverySearch .trip-chooser [data-trip="day"] {
  --choice-bg: var(--trip-day, #1558ce);
  --choice-hover: #104cb5;
  --choice-ink: #fff;
}
#discoverySearch .trip-chooser [data-trip="weekend"] {
  --choice-bg: var(--trip-weekend, #b94716);
  --choice-hover: #a13b10;
  --choice-ink: #fff;
}
#discoverySearch .trip-chooser [data-trip="camp"] {
  --choice-bg: var(--trip-camp, #006c59);
  --choice-hover: #005a4a;
  --choice-ink: #fff;
}
.trip-choice-icon { display: block; flex-shrink: 0; width: 24px; height: 24px; }
.trip-choice-label { display: block; white-space: nowrap; flex-shrink: 0; }
.trip-choice-check {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #132b4d;
  color: #fff;
  visibility: hidden;
}
.trip-choice-check svg { width: 10px; height: 10px; }
#discoverySearch .trip-chooser [data-trip][aria-pressed="true"] {
  border-color: #132b4d;
  box-shadow: inset 0 -3px 0 #132b4d;
}
#discoverySearch [aria-pressed="true"] .trip-choice-check { visibility: visible; }
#discoverySearch .trip-chooser [data-trip]:focus-visible {
  outline: 3px dashed #132b4d;
  outline-offset: 4px;
}
@media (hover: hover) {
  #discoverySearch .trip-chooser [data-trip]:hover { background: var(--choice-hover); }
}
@media (max-width: 1000px) {
  #discoverySearch .trip-chooser { padding: 16px 14px; gap: 12px; }
  #discoverySearch .trip-chooser .segmented { gap: 6px; }
  #discoverySearch .trip-chooser [data-trip] { gap: 5px; padding: 8px; }
  .trip-choice-icon { width: 20px; height: 20px; }
}
/* Keep tablet labels readable without breaking the requested single row.
   On narrower phones the row can scroll rather than stack or clip words. */
@media (max-width: 900px) {
  #discoverySearch .trip-chooser .trip-choice-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #discoverySearch .trip-chooser [data-trip] { transition: none; }
}
@media (forced-colors: active) {
  #discoverySearch .trip-chooser [data-trip] { border: 2px solid ButtonText; }
  #discoverySearch .trip-chooser [data-trip][aria-pressed="true"] { border-color: Highlight; outline: 2px solid Highlight; }
  .trip-choice-check { background: Highlight; color: HighlightText; forced-color-adjust: none; }
}
