/* The mast and the navigation share a painting origin at their common edge. */
.home-chrome body {
  --mast-gradient: linear-gradient(100deg, #086cc8 0%, #075da6 52%, #035470 100%);
  --mast-ring: rgba(216, 246, 255, .085);
  --ring-step: clamp(80px, 11vw, 160px);
}
.home-chrome .site-header, .flight-home-mast {
  --ring-y: 100%;
  --mast-rings: radial-gradient(circle at 86% var(--ring-y),
    transparent calc(var(--ring-step) - 1px), var(--mast-ring) var(--ring-step), transparent calc(var(--ring-step) + 2px),
    transparent calc(2 * var(--ring-step) - 1px), var(--mast-ring) calc(2 * var(--ring-step)), transparent calc(2 * var(--ring-step) + 2px),
    transparent calc(3 * var(--ring-step) - 1px), var(--mast-ring) calc(3 * var(--ring-step)), transparent calc(3 * var(--ring-step) + 2px));
  background: var(--mast-rings), var(--mast-gradient);
}
.home-chrome .site-header { border: 0; box-shadow: none; }
.home-chrome .header-inner { padding-block: 4px; }
.home-chrome .header-inner > .brand { min-height: 44px; }
.home-chrome .brand-logo { height: 38px; }
.home-chrome .currency-mobile summary,
.home-chrome .nav-burger {
  color: white;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .42);
}
.home-chrome .currency-mobile summary { border-radius: 30px; }
.home-chrome .currency-mobile summary .cur-sym,
.home-chrome .currency-mobile summary svg { color: inherit; fill: currentColor; }
.home-chrome .nav-burger { align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.home-chrome .nav-burger span { background: white; }

.home-chrome .flight-home {
  --overlap: clamp(66px, 6vw, 90px);
  background: #f4f6fb;
  padding: 0 0 clamp(24px, 3vw, 42px);
  overflow: visible;
  z-index: 1;
}
.flight-home::before, .flight-home::after,
.flight-home .search-widget::before, .flight-home .search-widget::after,
.flight-home .search-card::before, .flight-home .btn-search::after { content: none; }
.flight-home-mast {
  --ring-y: 0%;
  padding: clamp(8px, 2.2vw, 32px) 0 calc(var(--overlap) + clamp(20px, 2.5vw, 36px));
}
.flight-home-mast h1 {
  animation: none;
  color: white;
  font-size: clamp(1.8rem, 3.45vw, 3rem);
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 0;
  text-shadow: none;
}
.flight-home-form { position: relative; margin-top: calc(-1 * var(--overlap)); }
.flight-home .search-widget { margin: 0; }
.flight-home .search-card {
  padding: clamp(16px, 2vw, 28px);
  background: white;
  border: 1px solid #dce3ec;
  border-radius: 20px;
  box-shadow: 0 8px 26px -16px rgba(23, 52, 85, .33);
  animation: none;
}
.flight-home .trip-type {
  display: inline-flex;
  flex-wrap: nowrap;
  max-width: 100%;
  gap: 3px;
  border-radius: 24px;
  padding: 3px;
  margin: 0 0 14px;
  background: #edf0f4;
}
.flight-home .trip-type label {
  position: relative;
  flex: 1 0 auto;
  justify-content: center;
  min-height: 40px;
  padding: 3px 22px;
  border-radius: inherit;
  text-align: center;
  line-height: 1.25;
}
.flight-home .trip-type input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.flight-home .trip-type label:has(:checked) { background: white; box-shadow: 0 1px 4px #15264825; }
.flight-home .trip-type label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 1px; }

.flight-home .search-form[data-panel="flights"] .search-row {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}
.flight-home .search-row > .field { gap: 0; }
.flight-home .search-row > .field-grow { grid-column: span 6; }
.flight-home .search-row > .field-date { grid-column: span 3; }
.flight-home .search-row > .field-pax { grid-column: span 6; }
.flight-home .search-row > .field > label {
  display: block;
  margin: 0;
  padding: 0;
  color: #47556b;
  text-transform: none;
  letter-spacing: 0;
  font-size: .77rem;
  line-height: 1.25;
}
.flight-home .search-row > .autocomplete {
  display: grid;
  grid-template: ". label ." auto "icon value action" 40px / 16px minmax(0, 1fr) 40px;
  align-content: center;
  align-items: center;
  gap: 2px 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card, white);
}
.flight-home .search-row > .autocomplete:not(:has(> :is(.locate-btn, .swap-in))) {
  grid-template-columns: 16px minmax(0, 1fr);
  grid-template-areas: ". label" "icon value";
}
.flight-home .autocomplete > label { grid-area: label; }
.flight-home .autocomplete > .location-control,
.flight-home .autocomplete > input[type="text"] { grid-area: value; min-width: 0; }
.flight-home .autocomplete > input[type="text"]:not([hidden]) { height: 40px; padding-inline: 4px; }
.flight-home .autocomplete:has(.location-query:focus) {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.flight-home .location-control:has(.location-query:focus) { outline: none; }
.flight-home .location-control > .location-query { height: 40px; }
.flight-home .search-row > .autocomplete > .location-control {
  padding: 0;
  border: 0;
  border-radius: 5px;
  min-height: 40px;
}
.flight-home .autocomplete > .field-ic {
  grid-area: icon;
  position: static;
  justify-self: center;
  width: 16px;
  transform: none;
}
.flight-home .autocomplete > :is(.locate-btn, .swap-in) {
  grid-area: action;
  position: static;
  width: 40px;
  height: 40px;
  margin: 0;
}
.flight-home .location-token { min-width: 0; align-items: center; }
.flight-home .location-trigger {
  display: flex;
  align-items: center;
  gap: .22em;
  min-height: 40px;
  white-space: nowrap;
}
.flight-home .location-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flight-home .location-airport-code { flex: none; font-size: .88em; }
.flight-home .autocomplete[data-chosen="true"] .location-trigger {
  padding-inline: 5px 0;
  font-size: .875rem;
  font-weight: 600;
}
.flight-home .autocomplete .location-token .location-clear {
  display: grid;
  place-items: center;
  flex-basis: 28px;
  width: 28px;
  min-height: 40px;
}
.flight-home .autocomplete .location-token .location-clear[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .flight-home .swap-in svg { transition: none; }
}
.flight-home .search-row > :is(.field-date, .field-pax) {
  justify-content: center;
  padding: 8px 12px;
  background: #f3f5fa;
  border-radius: 11px;
}
.flight-home :is(.date-display, .pax-summary) {
  height: auto;
  min-height: 27px;
  padding: 3px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: start;
}
.flight-home .date-display { position: static; padding-inline-start: 25px; }
.flight-home :is(.date-display, .pax-summary)::after { content: ""; position: absolute; inset: 0; }
.flight-home .date-display .field-ic { inset-inline-start: 12px; top: calc(50% + 8px); transform: translateY(-50%); }
.flight-home .field-date > label { padding-inline-start: 25px; }
.flight-home :is(.field-date, .field-pax):has(> :is(.date-display, .pax-summary):focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.flight-home :is(.field-date, .field-pax) > :is(.date-display, .pax-summary):focus-visible {
  outline: none;
  box-shadow: none;
}
.flight-home .direct-only {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin: 0;
  min-height: 44px;
  color: var(--ink);
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
}
.flight-home .direct-only input {
  appearance: none;
  order: 1;
  flex: 0 0 auto;
  width: 45px;
  height: 26px;
  margin: 0;
  border: 1px solid #8090a3;
  border-radius: 20px;
  background: #8c98a7 radial-gradient(circle at 12px 50%, white 0 9px, transparent 10px);
  cursor: pointer;
}
.flight-home .direct-only input:checked { background: var(--blue) radial-gradient(circle at calc(100% - 12px) 50%, white 0 9px, transparent 10px); border-color: var(--blue); }
.flight-home-actions { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #e2e7ef; }
.flight-home .flight-home-package {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  min-height: 46px;
  color: #182a3b;
  background: white;
  font-weight: 650;
  border: 1px solid #dce3ec;
  border-radius: 12px;
}
.flight-home-package svg { width: 24px; height: 24px; fill: var(--blue); flex-shrink: 0; }
.flight-home-package .package-chevron { margin-inline-start: auto; color: var(--blue); font-size: 1.3em; }
[dir="rtl"] .package-chevron { transform: scaleX(-1); }
.flight-home .btn-search {
  align-self: stretch;
  min-width: 180px;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 10px 24px;
  border: 0;
  background: var(--blue);
  color: white;
  box-shadow: none;
  white-space: normal;
}
.flight-home .btn-search:hover { transform: none; background: var(--blue-dark); }
@media (min-width: 981px) {
  .home-chrome .nav-links a, .home-chrome .nav-utility .language-menu > summary { color: white; }
  .home-chrome .nav-links a:hover { background: #ffffff20; }
  .home-chrome .nav-ic { fill: currentColor; }
}
@media (min-width: 701px) and (max-width: 1099px) {
  .flight-home .search-row:has([name=return]:disabled) > .field-pax { grid-column: span 9; }
}
@media (min-width: 1100px) {
  .flight-home .search-form[data-panel="flights"] .search-row { grid-template-columns: repeat(2,minmax(min(17.25rem,27%),1.55fr)) repeat(2,minmax(0,.78fr)) minmax(0,1.24fr); }
  .flight-home .search-row > :is(.field-grow, .field-date, .field-pax) { grid-column: auto; }
  .flight-home .search-row:has([name=return]:disabled) > .field-pax { grid-column: span 2; }
  .flight-home .date-display > .date-text { white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
  .flight-home .direct-only { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .home-chrome .header-inner { min-height: 58px; gap: 8px; }
  .home-chrome .brand-logo { height: 33px; }
  .flight-home-mast { padding-top: 5px; }
  .flight-home .search-card { padding: 0; background: transparent; border: 0; box-shadow: none; }
  .flight-home-controls { background: white; padding: 10px; border: 1px solid #dce3ec; border-radius: 16px; }
  .flight-home .trip-type { display: flex; margin-bottom: 8px; }
  .flight-home .trip-type label { padding-inline: 6px; min-height: 38px; }
  .flight-home .search-form[data-panel="flights"] .search-row { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-home .search-row > :is(.field-grow, .field-pax) { grid-column: 1 / -1; }
  .flight-home .search-row > .field-date { grid-column: span 1; }
  .flight-home .search-row:has([name=return]:disabled) > .field-date { grid-column: 1 / -1; }
  .flight-home-actions { flex-direction: column; padding-top: 10px; gap: 9px; border: 0; }
  .flight-home .btn-search { width: 100%; }
}
@media (forced-colors: active) {
  .flight-home .autocomplete:has(.location-query:focus) { outline: 2px solid Highlight; }
  .flight-home .direct-only input { appearance: auto; }
  .flight-home .trip-type label:has(:checked) { outline: 2px solid Highlight; }
}
@media (max-width: 360px) {
  .flight-home-controls { padding: 8px; }
  .flight-home .search-form[data-panel="flights"] .search-row { gap: 6px; }
  .flight-home .search-row > .autocomplete { padding-inline: 6px; column-gap: 4px; }
  .flight-home .search-row > :is(.field-date, .field-pax) { padding-block: 6px; }
  .flight-home-actions { gap: 6px; padding-top: 7px; }
}

/* The other search pages use the same card, with field widths suited to each trip. */
.flight-home .search-form:not([data-panel="flights"]) .search-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}
.flight-home .search-row.flight-home-controls > .field { grid-column: auto; }
.flight-home .search-form:not([data-panel="flights"]) .flight-home-actions { justify-content: flex-end; }
.flight-home [data-panel="packages"] .search-row > .field-grow,
.flight-home [data-panel="cars"] .search-row > .field-grow { grid-column: span 2; }
.flight-home [data-panel="hotels"] .search-row > .field-grow,
.flight-home [data-panel="packages"] .search-row > .field-pax { grid-column: span 2; }
.flight-home [data-panel="hotels"] .search-row > .field-pax { grid-column: 1 / -1; }
.flight-home [data-panel="cars"] .field:has(> :is(input[type="time"], input[type="number"])) {
  justify-content: center;
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--surface-raised, #f3f5fa);
}
.flight-home [data-panel="cars"] .search-row .field > :is(input[type="time"], input[type="number"]) {
  width: 100%;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  box-shadow: none;
}
.flight-home [data-panel="cars"] .field:has(> input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 1px; }
@media (min-width: 701px) {
  .flight-home .search-row.flight-home-controls { padding-bottom: 12px; }
}
@media (min-width: 1100px) {
  .flight-home [data-panel="hotels"] .search-row.flight-home-controls { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.35fr); }
  .flight-home [data-panel="packages"] .search-row.flight-home-controls { grid-template-columns: repeat(2, minmax(0, 1.65fr)) repeat(2, minmax(0, .85fr)) minmax(0, 1.25fr); }
  .flight-home :is([data-panel="hotels"], [data-panel="packages"]) .search-row.flight-home-controls > .field { grid-column: auto; }
}
@media (max-width: 700px) {
  .flight-home .search-form:not([data-panel="flights"]) .search-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .flight-home .search-form:not([data-panel="flights"]) .search-row > :is(.field-grow, .field-pax) { grid-column: 1 / -1; }
  .flight-home [data-panel="cars"] .search-row.flight-home-controls { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .flight-home [data-panel="cars"] .search-row.flight-home-controls > :is(.field-date, .field-small:has(input[type="time"])) { grid-column: span 3; }
  .flight-home [data-panel="cars"] .search-row.flight-home-controls > .field:has(> input[name="age"]) { grid-column: 1 / -1; }
}

@media (scripting: none) {
  .flight-home [data-stay-occupancy] > .pax-summary,
  .flight-home [data-stay-occupancy] :is([data-step], [data-pax-done]) { display: none; }
  .flight-home [data-stay-occupancy] .pax-popover {
    display: block; position: static; width: 100%; max-height: none;
    margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none;
  }
}
