/* Shared airport selector: the same control on Home and inner search pages. */
.airport-picker {
  position: relative;
  overflow: visible;
}
.hero-shell .airport-picker.search-field,
.inner-search .airport-picker.search-field {
  padding: 0;
}
.airport-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 100%;
  min-height: 70px;
  text-align: left;
  border: 0;
  padding: 9px 11px;
  border-radius: inherit;
  background: transparent;
  color: var(--ink);
}
.airport-trigger .field-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.airport-trigger .field-content > strong {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.airport-trigger .field-content > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.airport-trigger .airport-code {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  height: 36px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  border-right: 1px solid var(--line);
  padding-right: 7px;
}
.airport-trigger:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.airport-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 100;
  width: 370px;
  max-width: calc(100vw - 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 38px #082f4629;
  padding: 13px;
  color: var(--ink);
}
.airport-menu[hidden] {
  display: none;
}
.airport-menu > label {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.airport-menu .airport-query {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  font: inherit;
  font-size: 16px;
  background: #f5f9fc;
  color: var(--navy);
}
.airport-options {
  margin: 8px -5px 0;
  padding: 0;
  list-style: none;
  max-height: min(310px, 43vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.airport-options button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  text-align: left;
  color: var(--ink);
}
.airport-options button:is(:hover, :focus-visible),
.airport-options button[aria-selected="true"] {
  background: #eaf4f9;
}
.airport-option-code {
  display: grid;
  place-items: center;
  width: 46px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid #d1e5ef;
  background: #f4f9fc;
  border-radius: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.airport-options strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.airport-options small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.airport-empty {
  margin: 14px 5px 3px;
  font-size: 12px;
}
@media (max-width: 640px) {
  .airport-trigger {
    min-height: 60px;
    gap: 6px;
    padding: 7px;
  }
  .airport-trigger .airport-code {
    flex-basis: 27px;
    font-size: 11px;
    padding-right: 5px;
  }
  .airport-trigger .field-content > strong {
    font-size: 13px;
  }
  .airport-menu {
    width: 330px;
  }
}

.child-age-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 0;
  margin: 10px 0;
  padding: 0;
}
.child-age-grid legend {
  font-size: 11px;
  margin-bottom: 8px;
}
.child-age-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}
.child-age-grid select {
  padding: 7px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  font-size: 13px;
  color: var(--ink);
}
.hero-shell .popover {
  max-height: 68vh;
  overflow-y: auto;
}

/* Shared visible date picker, independent of browser-native calendar support. */
.hero-shell .calendar-field.search-field,
.inner-search .calendar-field.search-field {
  padding: 0;
  position: relative;
}
.date-trigger {
  width: 100%;
  min-height: 74px;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-content: center;
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  border: 0;
  border-radius: inherit;
  padding: 10px 12px;
  background: transparent;
  color: var(--navy);
  text-align: left;
  font: inherit;
}
.date-trigger .field-content {
  display: contents;
}
.date-trigger .field-content > span {
  grid-area: 1 / 1 / 2 / -1;
  font-size: 10px;
  line-height: 14px;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.hero-shell .date-trigger .field-content > span {
  font-size: 9px;
}
.date-trigger .date-value {
  grid-area: 2 / 1 / 3 / -1;
  min-width: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 25px;
  font-weight: 600;
  white-space: nowrap;
}
.date-trigger .date-day {
  grid-area: 3 / 1;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
}
.date-field-icon {
  grid-area: 3 / 2;
  justify-self: end;
  width: 14px;
  height: 14px;
  color: var(--navy);
  opacity: 0.7;
}
.date-trigger:hover,
.date-trigger[aria-expanded="true"] {
  background: #edf6fa;
}
.date-trigger:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
body.travel-calendar-open {
  overflow: hidden;
}
.travel-calendar {
  position: fixed;
  inset: auto;
  width: 680px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 22px;
  border: 1px solid #d9e5ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 60px #082f4638;
  color: #0b3f5d;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  text-align: left;
}
.travel-calendar::backdrop {
  background: #082f4629;
}
.travel-calendar button,
.travel-calendar select {
  font: inherit;
  cursor: pointer;
  color: #0b3f5d;
  box-shadow: none;
}
.travel-calendar button:disabled {
  color: #b3bec8;
  cursor: not-allowed;
  opacity: 1;
}
.travel-calendar :is(button, select):focus-visible {
  outline: 2px solid #0b3f5d;
  outline-offset: 2px;
}
.travel-calendar .calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.travel-calendar .calendar-eyebrow {
  color: #647684;
  font-size: 11px;
  line-height: 20px;
}
.travel-calendar h2 {
  margin: 0;
  font:
    600 20px/1.4 Roboto,
    Arial,
    sans-serif;
}
.travel-calendar .calendar-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf5f9;
  font-size: 26px;
}
.travel-calendar .calendar-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.travel-calendar .calendar-selection button {
  border: 1px solid #d9e5ec;
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
  text-align: left;
}
.calendar-selection span,
.calendar-selection strong {
  display: block;
}
.calendar-selection span {
  font-size: 10px;
  line-height: 18px;
}
.calendar-selection strong {
  font-size: 13px;
  line-height: 22px;
  font-weight: 600;
}
.travel-calendar .calendar-selection [aria-pressed="true"] {
  border-color: #0b3f5d;
  background: #edf6fa;
  box-shadow: inset 0 -2px #b81d24;
}
.travel-calendar .calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
}
.travel-calendar .calendar-controls > div {
  display: flex;
  gap: 6px;
}
.travel-calendar .calendar-controls select {
  max-width: 135px;
  padding: 7px 8px;
  border: 1px solid #d9e5ec;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}
.travel-calendar .calendar-controls button {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf5f9;
  font-size: 26px;
  padding: 0;
}
.travel-calendar .calendar-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.travel-calendar h3 {
  text-align: center;
  margin: 8px 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}
.travel-calendar table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 0;
  margin: 0;
}
.travel-calendar th {
  height: 32px;
  padding: 0;
  color: #647684;
  font-size: 11px;
  font-weight: 400;
  text-align: center;
  border: 0;
}
.travel-calendar td {
  height: 40px;
  padding: 0;
  border: 0;
  text-align: center;
  background: none;
}
.travel-calendar td button {
  display: block;
  width: 100%;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0;
  background: none;
  font-size: 13px;
}
.travel-calendar td button:not(:disabled):hover {
  background: #e4f1f7;
  border-color: #b81d24;
}
.travel-calendar td button[aria-current="date"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.travel-calendar .in-range {
  background: #e4f1f7;
}
.travel-calendar :is(.range-start, .range-end) button {
  color: #fff;
  background: #0b3f5d;
  border-color: #0b3f5d;
}
.travel-calendar .range-start button {
  background: #b81d24;
  border-color: #b81d24;
}
.travel-calendar #calendar-help {
  margin: 12px 0;
  color: #647684;
  font-size: 11px;
  line-height: 18px;
}
.travel-calendar .calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid #e5edf2;
  font-size: 12px;
}
.travel-calendar .calendar-footer > div {
  display: flex;
  gap: 8px;
}
.travel-calendar .calendar-footer button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 500;
}
.travel-calendar .calendar-cancel {
  background: #edf5f9;
}
.travel-calendar .calendar-done {
  color: white;
  background: #b81d24;
}
.travel-calendar .calendar-done:hover {
  background: #97151c;
}
@media (max-width: 640px) {
  .date-trigger {
    min-height: 60px;
    padding: 7px 9px;
    column-gap: 4px;
  }
  .date-trigger .date-value {
    font-size: 13px;
  }
  .travel-calendar {
    top: auto !important;
    left: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    padding: 16px 12px;
    border-radius: 16px;
  }
  .travel-calendar .calendar-months {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .travel-calendar h2 {
    font-size: 18px;
  }
  .travel-calendar td,
  .travel-calendar td button {
    height: 44px;
  }
  .travel-calendar .calendar-heading {
    margin-bottom: 12px;
  }
}
