/* /find-a-flight: the search, the flight tools, the aircraft classes and help.
   Every explanation over the sky sits on a solid surface. The search itself is styled in /flight/trip.css. */

.find-head { min-height: min(46svh, 480px); }
@media (min-width: 740px) and (not (display-mode: standalone)) {
  .find-head {
    min-height: 0;
    padding-block: calc(var(--atlas-bar-h) + clamp(16px, 3.5vh, 38px)) clamp(20px, 3vh, 36px);
  }
}
@media (min-width: 1100px) and (not (display-mode: standalone)) {
  html:not([data-app="installed"]) .find-head .atlas-h1 { font-size: clamp(3rem, 4vw, 3.75rem); }
}
@media (min-width: 1100px) and (max-height: 760px) and (not (display-mode: standalone)) {
  .find-head { gap: 14px; padding-block-start: calc(var(--atlas-bar-h) + 16px); }
  html:not([data-app="installed"]) .find-head .atlas-h1 { font-size: clamp(3rem, 3.8vw, 3.75rem); }
}
@media (min-width: 900px) and (max-height: 650px) and (not (display-mode: standalone)) and (not ((max-height: 500px) and (pointer: coarse))) {
  html:not([data-app="installed"]) .find-head {
    grid-template-columns: minmax(17rem, 450px) minmax(0, 838px);
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 3vw, 32px);
    padding-block: calc(var(--atlas-bar-h) + 16px) 16px;
  }
  html:not([data-app="installed"]) .find-head::before {
    background: linear-gradient(90deg, rgba(5, 26, 66, 0.6), rgba(5, 26, 66, 0.72) 82%, rgba(5, 26, 66, 0.5));
    -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 92%, transparent);
    mask-image: linear-gradient(transparent, #000 35%, #000 92%, transparent);
  }
  html:not([data-app="installed"]) .find-head .atlas-h1 { font-size: clamp(2.75rem, 3.8vw, 3.75rem); }
  html:not([data-app="installed"]) .find-head .atlas-lede { font-size: 1.0625rem; line-height: 1.45; }
  html:not([data-app="installed"]) .find-search .trip-modes { padding: 18px 20px 0; }
  html:not([data-app="installed"]) .find-search .trip-legend { margin-bottom: 8px; }
  html:not([data-app="installed"]) .find-search .trip-mode > span { padding-block: 10px; }
  html:not([data-app="installed"]) .find-search .trip-mode > span::before { top: 12px; }
  html:not([data-app="installed"]) .find-search .trip-type-row { min-height: 54px; padding: 8px 20px; }
  html:not([data-app="installed"]) .find-search .trip-fields .atlas-field { padding: 8px 16px; }
  html:not([data-app="installed"]) .find-search .trip-foot { padding: 10px 20px 14px; }
}
@media (min-width: 1024px) and (max-width: 1099px) and (max-height: 650px) and (not (display-mode: standalone)) and (not ((max-height: 500px) and (pointer: coarse))) {
  html:not([data-app="installed"]) .find-search .trip-fields:has(.trip-return:not([hidden])) {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(10.5rem, 1fr) minmax(10.5rem, 1fr) minmax(7rem, 0.62fr);
  }
  html:not([data-app="installed"]) .find-search .trip-fields:has(.trip-return:not([hidden])) > .atlas-field { grid-column: auto; }
}
.find-search .trip { box-shadow: var(--atlas-shadow); }
.find-aircraft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0; padding: 12px 16px; background: var(--atlas-cloud); color: var(--atlas-ink); border-radius: var(--atlas-radius); }
.find-aircraft[hidden] { display: none; }
.find-aircraft-x { min-height: 44px; padding: 0 14px; border: 1px solid var(--atlas-rule-2); border-radius: 2px; background: #fff; color: var(--atlas-ink); font: 600 1rem/1 var(--atlas-text); cursor: pointer; }
.find-aircraft-x:hover { background: var(--atlas-haze); }

.find-more { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.find-more > .atlas-h2 { font-size: clamp(1.875rem, 1.6vw + 1.2rem, 2.75rem); }
.find-entries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.find-entry { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; align-content: start; padding: clamp(20px, 2.2vw, 28px); background: var(--atlas-white); border: 1px solid var(--atlas-rule); border-radius: var(--atlas-radius); }
.find-entry h3 { margin: 0; font: 650 1.375rem/1.25 var(--atlas-display); }
.find-entry h3 a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.find-entry h3 a:hover { text-decoration: underline; }
.find-entry p { margin: 0; color: var(--atlas-ink-2); }
.find-entry .find-tag { font: 600 0.9375rem/1.3 var(--atlas-text); color: var(--atlas-sun-ink); }
.find-entry .find-note { font-size: 0.9375rem; color: var(--atlas-ink); font-weight: 600; }
.find-entry .atlas-btn { justify-self: start; max-width: 100%; margin-top: 6px; white-space: normal; line-height: 1.25; }
.find-entry-med { border-color: var(--atlas-zenith); box-shadow: inset 0 3px 0 var(--atlas-zenith); }
@media (min-width: 740px) and (max-width: 999px) {
  .find-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .find-entry-live { grid-column: 1 / -1; }
}
@media (max-width: 739px) { .find-entries { grid-template-columns: 1fr; } .find-entry { grid-template-rows: none; } }

/* ---------- which aircraft suits your trip: the aircraft flies in the sky (moved from the homepage) ---------- */
.fleet { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.6fr; gap: clamp(24px, 4vw, 72px); align-items: center; padding: var(--atlas-section) var(--atlas-gutter) 0; max-width: calc(var(--atlas-max) + 2 * var(--atlas-gutter)); margin: 0 auto; scroll-margin-top: calc(var(--atlas-bar-h) + 16px); color: #fff; }
.fleet > * { max-width: none; margin: 0; }
.fleet-copy { display: grid; gap: 20px; justify-self: end; max-width: 480px; padding: clamp(22px, 2.6vw, 36px); background: var(--atlas-zenith); border-radius: var(--atlas-radius); box-shadow: var(--atlas-shadow); }
.fleet-copy .atlas-h2 { font-size: clamp(1.875rem, 1.6vw + 1.2rem, 2.625rem); }
.fleet-copy p { margin: 0; color: #fff; }
.fleet-classes { display: grid; gap: 2px; margin-top: 8px; border-top: 1px solid var(--atlas-on-sky-rule); }
.fleet-classes button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); background: none; color: rgba(255, 255, 255, 0.92); cursor: pointer; text-align: left; min-height: 44px;
  font: 500 1rem/1.35 var(--atlas-text); transition: color 240ms var(--atlas-ease), padding 400ms var(--atlas-ease); }
.fleet-classes button::before { content: ""; width: 0; height: 2px; background: var(--atlas-sun); transition: width 400ms var(--atlas-ease); }
.fleet-classes button:hover { color: #fff; }
/* pause or resume the automatic turn between classes */
.fleet-toggle { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: #fff; cursor: pointer;
  font: 600 1rem/1 var(--atlas-text); letter-spacing: 0; }
.fleet-toggle[hidden] { display: none; }
.fleet-toggle:hover { color: #fff; }
.fleet-toggle svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fleet-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.fleet-toggle.is-paused .i-play { display: block; } .fleet-toggle.is-paused .i-pause { display: none; }
.fleet-classes button[aria-selected="true"] { color: #fff; }
.fleet-classes button[aria-selected="true"]::before { width: 28px; }
.fleet-plate { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: stretch; width: 100%; max-width: 900px !important; justify-self: center; }
.fleet-craft { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.fleet-craft img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateX(-6%) scale(0.96); filter: drop-shadow(0 40px 40px rgba(4, 18, 48, 0.35)) blur(4px);
  transition: opacity 700ms var(--atlas-ease), transform 1200ms var(--atlas-ease), filter 900ms var(--atlas-ease); }
.fleet-craft img.on { opacity: 1; transform: none; filter: drop-shadow(0 40px 40px rgba(4, 18, 48, 0.35)); }
.fleet-craft img.out { opacity: 0; transform: translateX(8%) scale(0.98); }
@media (prefers-reduced-motion: no-preference) { .fleet-craft { animation: fleet-float 9s ease-in-out infinite alternate; } }
@keyframes fleet-float { from { transform: translateY(-6px) rotate(-0.4deg); } to { transform: translateY(8px) rotate(0.5deg); } }
.fleet-data { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: end; color: #fff; padding: clamp(18px, 2vw, 28px); background: rgba(6, 22, 56, 0.94); border-radius: var(--atlas-radius); }
.fleet-class { margin: 0; color: #fff; }
.fleet-models { grid-column: 1; margin: 0; color: #fff; font-size: 1rem; }
.fleet-suits { grid-column: 1 / -1; margin: 6px 0 0; color: #fff; max-width: 60ch; }
.fleet-data dl { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 32px; margin: 0; }
.fleet-data dt { color: #fff; }
.fleet-data dd { margin: 6px 0 0; font: 400 1.625rem/1 var(--atlas-num); font-variant-numeric: lining-nums proportional-nums; letter-spacing: -0.015em; }
.fleet-scale { grid-column: 1 / -1; position: relative; display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--atlas-on-sky-rule);
  font: 500 0.875rem/1 var(--atlas-text); letter-spacing: 0; color: #fff; }
.fleet-scale i { position: absolute; left: 0; top: -2px; height: 3px; width: 0; background: var(--atlas-sun); transition: width 1100ms var(--atlas-ease); }
.fleet-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fleet-actions .atlas-btn-line { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, 0.7); }
.fleet-actions .atlas-btn-line:hover { --bg: rgba(255, 255, 255, 0.12); }
.fleet :focus-visible { outline-color: #fff; }
@media (max-width: 899px) {
  .fleet { grid-template-columns: 1fr; }
  .fleet-copy { justify-self: stretch; max-width: none; }
  .fleet-classes { display: flex; gap: 8px; overflow-x: auto; border: 0; padding-bottom: 6px; scrollbar-width: none; }
  .fleet-classes button { flex: none; width: auto; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 2px; font: 600 1rem/1 var(--atlas-text); }
  .fleet-classes button::before { display: none; }
  .fleet-classes button[aria-selected="true"] { background: #fff; color: var(--atlas-ink); border-color: #fff; }
  .fleet-data { grid-template-columns: 1fr; }
  .fleet-data dl { grid-column: 1; grid-row: auto; }
}
@media (min-width: 740px) and (max-width: 899px) and (not (display-mode: standalone)) {
  .fleet-classes { flex-wrap: wrap; overflow: visible; }
}


.find-help .atlas-ruled p a { margin-right: 4px; }
