/* Flight planner. Two columns on a wide screen (fields, answer and request on the left, the
   map on the right, staying in view); one column on a phone: a compact block of fields, the
   map, then the answer and the request. Colours and type follow the site: navy, light Inter, silver. */

.planner-section { padding: 6.5rem 4rem 7.5rem; scroll-margin-top: -1rem; }
.planner {
  --planner-ink: #f1f0ec;
  --planner-soft: rgba(232, 232, 232, .8);
  --planner-faint: rgba(232, 232, 232, .68);
  --planner-line: rgba(232, 232, 232, .16);
  --planner-title: clamp(2.25rem, 4.6vw, 3.5rem);   /* the heading, and the flight time that answers it */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-areas: "top map" "bottom map";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2.5rem, 5vw, 5.5rem);
  max-width: 1240px;
  margin: 0 auto;
  color: var(--planner-ink);
  color-scheme: dark;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: left;
}
.planner-top { grid-area: top; min-width: 0; }
.planner-bottom { grid-area: bottom; min-width: 0; }
.planner-map { grid-area: map; align-self: start; position: sticky; top: calc(var(--site-header-height, 72px) + 1.25rem); min-width: 0; }

.planner-eyebrow { margin: 0 0 1rem; font-size: .72rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: #c0c0c0; }
.planner-intro h2 { margin: 0; font-size: var(--planner-title); font-weight: 300; line-height: 1.06; letter-spacing: .01em; color: var(--planner-ink); }
.planner-lead { margin: .9rem 0 0; max-width: 31rem; font-size: 1rem; font-weight: 300; line-height: 1.6; color: var(--planner-soft); }
.planner-label { display: block; margin-bottom: .35rem; font-size: .68rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--planner-faint); }

/* fields: From, To and Passengers in one block, a row each, at every screen size */
.planner-form { position: relative; display: grid; gap: 0; margin-top: 2rem; border: 1px solid var(--planner-line); border-radius: 10px; background: rgba(232, 232, 232, .035); }
.planner-field { position: relative; display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); align-items: center; column-gap: 1rem; min-width: 0; padding: .5rem 1.25rem; border-bottom: 1px solid var(--planner-line); transition: background .2s ease; }
.planner-field:first-child { border-radius: 9px 9px 0 0; }
.planner-field:focus-within { background: rgba(232, 232, 232, .05); }
.planner-field > .planner-label { margin: 0; }
.planner-combo { min-width: 0; }
.planner-input {
  display: block; width: 100%; min-height: 52px; padding: .2rem 0; border: 0; border-radius: 0; background: transparent;
  color: var(--planner-ink); font: inherit; font-size: clamp(1.2rem, 1.7vw, 1.4rem); font-weight: 300; letter-spacing: .005em;
  text-overflow: ellipsis; outline: none; -webkit-appearance: none; appearance: none;
}
.planner-field-to .planner-input { padding-right: 3.6rem; }
.planner-input::placeholder { color: rgba(232, 232, 232, .55); }
.planner-fixed { display: flex; align-items: center; margin: 0; min-height: 52px; padding: .2rem 0; font-size: clamp(1.2rem, 1.7vw, 1.4rem); font-weight: 300; line-height: 1.35; }

.planner-list {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: -1px; right: -1px; max-height: 21.5rem; margin: 0; padding: .35rem; overflow: auto;
  list-style: none; background: #0c1f38; border: 1px solid rgba(232, 232, 232, .2); border-radius: 4px; box-shadow: 0 24px 60px rgba(3, 10, 22, .55);
}
.planner-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; padding: .7rem .8rem; border-radius: 3px; cursor: pointer; }
.planner-option[aria-selected="true"] { background: rgba(232, 232, 232, .09); }
.planner-option-main { display: grid; gap: .1rem; min-width: 0; }
.planner-option-title { font-size: 1rem; font-weight: 400; line-height: 1.35; color: var(--planner-ink); }
.planner-option-sub { font-size: .82rem; font-weight: 300; line-height: 1.45; color: var(--planner-soft); }
.planner-option-code { font-size: .8rem; font-weight: 400; letter-spacing: .12em; color: var(--planner-soft); }
/* only when the airport is in another town a fair way off */
.planner-option-far { grid-column: 1 / -1; margin-top: .1rem; font-size: .78rem; font-weight: 300; line-height: 1.45; color: var(--planner-faint); }
.planner-option-note { display: block; cursor: default; font-size: .9rem; color: var(--planner-soft); }
/* while a new place is typed, the line naming the airport chosen before is put away */
.planner-field.is-typing .planner-airport { display: none; }

/* under a field, on one line: the airport's own name (shortened if long), and a way to switch to one nearby */
.planner-airport { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .9rem; margin: -.35rem 0 .5rem; }
.planner-airport:empty { display: none; }
.planner-airport-name { flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8rem; font-weight: 300; line-height: 1.6; color: var(--planner-soft); }
.planner-field-fixed .planner-airport-name { white-space: normal; }
.planner-nearby { flex: none; font-size: .8rem; font-weight: 300; color: var(--planner-faint); }
.planner-nearby[open] { flex: 1 0 100%; }
.planner-nearby summary { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin: -8px 0; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(232, 232, 232, .22); }
.planner-nearby summary::-webkit-details-marker { display: none; }
.planner-nearby summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.planner-nearby[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.planner-nearby-list { display: flex; flex-wrap: wrap; gap: .4rem .45rem; margin: .3rem 0 .2rem; }
.planner-chip {
  min-height: 32px; padding: .2rem .7rem; border: 1px solid var(--planner-line); border-radius: 999px; background: transparent;
  color: var(--planner-soft); font: inherit; font-size: .78rem; font-weight: 300; line-height: 1.3; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease;
}

/* Swap sits at the right of the To row. */
.planner-swap {
  position: absolute; z-index: 2; right: 1rem; top: calc(.5rem + 4px); display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--planner-line); border-radius: 50%; background: transparent; color: var(--planner-soft); cursor: pointer; transition: color .2s ease, border-color .2s ease;
}

.planner-passengers { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: .5rem 1rem .5rem 1.25rem; }
.planner-passengers .planner-label { margin: 0; }
.planner-stepper { display: inline-flex; align-items: center; gap: .35rem; }
.planner-step {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--planner-line); border-radius: 50%; background: transparent;
  color: var(--planner-ink); font: inherit; font-size: 1.25rem; font-weight: 300; line-height: 1; cursor: pointer; transition: border-color .2s ease, opacity .2s ease;
}
.planner-step[aria-disabled="true"] { opacity: .3; cursor: default; }
.planner-count { min-width: 2.6rem; text-align: center; font-size: 1.5rem; font-weight: 300; font-variant-numeric: tabular-nums; }

/* before a trip: one-tap suggestions */
.planner-hint { margin-top: 1.6rem; }
.planner-hint[hidden] { display: none; }
.planner-hint-title { margin: 0 0 .7rem; font-size: .68rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--planner-faint); }
.planner-picks { display: flex; flex-wrap: wrap; gap: .5rem; }
.planner-pick, .planner-again { min-height: 44px; padding: .3rem 1rem; font-size: .88rem; color: var(--planner-ink); border-color: rgba(232, 232, 232, .26); }
.planner-pick:disabled { opacity: .5; }

/* the answer: the flight time in the chosen aircraft */
.planner-result { margin-top: 1.9rem; }
.planner-result[hidden], .planner-request[hidden], .planner-review[hidden], .planner-sent[hidden], .planner-return-toggle[hidden], .planner-error[hidden] { display: none; }
.planner-answer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.planner-time { margin: 0; font-size: var(--planner-title); font-weight: 300; line-height: 1.06; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.planner-answer-status { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin: .65rem 0 0; font-size: .82rem; font-weight: 400; letter-spacing: .03em; }
.planner-status { color: var(--planner-soft); }
.planner-status.is-nonstop { color: var(--planner-ink); }
.planner-status.is-nonstop::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: #9fd6b0; vertical-align: .06em; }
.planner-tag { padding: .12rem .55rem; border: 1px solid rgba(232, 232, 232, .5); border-radius: 999px; font-size: .6rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.planner-answer-jet { flex: 0 1 190px; display: block; min-width: 0; width: 190px; max-width: 40%; height: auto; }
.planner-answer-detail { margin: .7rem 0 0; font-size: .86rem; font-weight: 300; line-height: 1.55; color: var(--planner-soft); }
.planner-part { white-space: nowrap; }
.planner-same { margin: 1rem 0 0; font-size: .9rem; font-weight: 300; line-height: 1.5; color: var(--planner-soft); }
.planner-same[hidden] { display: none; }

/* seven small buttons compare every aircraft; a phone scrolls them sideways */
.planner-aircraft { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 1.1rem; }
.planner-pill {
  display: grid; justify-items: center; align-content: center; gap: .12rem; min-height: 64px; padding: .45rem .15rem; border: 1px solid var(--planner-line); border-radius: 4px; background: transparent;
  color: var(--planner-soft); font: inherit; text-align: center; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.planner-pill-name { font-size: .58rem; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.planner-pill-time { font-size: .95rem; font-weight: 300; color: var(--planner-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.planner-pill-status { font-size: .62rem; font-weight: 300; letter-spacing: .02em; white-space: nowrap; color: var(--planner-faint); }
.planner-pill-status.is-nonstop { color: #b4dcc0; }
.planner-pill.is-suggested .planner-pill-status { color: var(--planner-ink); }
.planner-pill[aria-checked="true"] { border-color: var(--planner-ink); background: rgba(232, 232, 232, .09); color: var(--planner-ink); }
.planner-pill[aria-disabled="true"] { cursor: default; opacity: .4; }
.planner-pill[aria-disabled="true"] .planner-pill-time { font-size: .78rem; }
.planner-runway { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; margin-top: 1rem; font-size: .86rem; line-height: 1.5; color: rgba(232, 232, 232, .8); }
.planner-runway[hidden] { display: none; }
.planner-note { margin: .8rem 0 0; font-size: .76rem; font-weight: 300; line-height: 1.55; color: var(--planner-faint); }

/* Asking for the flight. The dates sit in one block and how to reach you in another, each made
   like the block of From, To and Passengers: a border, a row for every field, its label on the left. */
.planner-request { margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--planner-line); }
.planner-block { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--planner-line); border-radius: 10px; background: rgba(232, 232, 232, .035); overflow: hidden; }
.planner-block + .planner-block { margin-top: .75rem; }
.planner-row { position: relative; display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); align-items: center; column-gap: 1rem; min-width: 0; padding: .2rem 1.25rem; border-bottom: 1px solid var(--planner-line); transition: background .2s ease; cursor: text; }
.planner-row:last-child { border-bottom: 0; }
.planner-row:focus-within { background: rgba(232, 232, 232, .05); }
.planner-row > .planner-label { margin: 0; cursor: inherit; }
.planner-row-value { position: relative; display: flex; align-items: center; min-width: 0; }
.planner-row [hidden] { display: none !important; }
.planner-request-input {
  display: block; flex: 1 1 auto; width: 100%; min-width: 0; min-height: 48px; padding: .2rem 0; border: 0; border-radius: 0; background: transparent;
  color: var(--planner-ink); font: inherit; font-size: 1.05rem; font-weight: 300; letter-spacing: .005em; text-overflow: ellipsis; outline: none; -webkit-appearance: none; appearance: none;
}
.planner-request-input::placeholder { color: rgba(232, 232, 232, .55); }
/* a date sits on the row's centre line and starts at its left edge, like the text fields */
.planner-request-input[type="date"] { position: relative; display: flex; align-items: center; text-align: left; }
.planner-request-input::-webkit-date-and-time-value { margin: 0; text-align: left; }
.planner-request-input::-webkit-datetime-edit { padding: 0; font-family: inherit; }
/* on a computer the whole date opens the calendar, not only a small icon beside it */
.planner-request-input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
/* A browser that fills a field in for you paints it its own colour (yellow on an iPhone). Keep the
   field as designed: its paint is clipped to the letters, which are then drawn in the page's colour,
   and any change of background is put off indefinitely. */
.planner input:-webkit-autofill, .planner input:-webkit-autofill:hover, .planner input:-webkit-autofill:focus, .planner input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--planner-ink); caret-color: var(--planner-ink);
  -webkit-background-clip: text; background-clip: text;
  -webkit-box-shadow: none; box-shadow: none;
  transition: background-color 100000s ease-out 0s, color 100000s ease-out 0s;
}
.planner input:autofill { -webkit-text-fill-color: var(--planner-ink); caret-color: var(--planner-ink); -webkit-background-clip: text; background-clip: text; }
/* a field that needs another look: a mark down the row's edge, its label in the same colour, and the reason under the field */
.planner-row:has([aria-invalid="true"]) { box-shadow: inset 2px 0 0 #f0b3a1; }
.planner-row:has([aria-invalid="true"]) > .planner-label { color: #f3c0b1; }
.planner-error { grid-column: 2; margin: -.25rem 0 .55rem; font-size: .76rem; font-weight: 300; line-height: 1.45; color: #f3c0b1; }
/* An empty date. On a computer the browser shows its own "mm/dd/yyyy", drawn quietly here until a
   date is chosen, and nothing is laid over it: the browser fills the field in as its calendar opens.
   A phone shows nothing for an empty date, so there it reads "Select date" until it is touched. */
.planner-date-hint { display: none; position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 1.05rem; font-weight: 300; line-height: 1.3; color: rgba(232, 232, 232, .55); pointer-events: none; }
.planner-request-input[type="date"][data-empty]:not(:focus) { color: rgba(232, 232, 232, .55); }
@media (hover: none) and (pointer: coarse) {
  .planner-request-input[type="date"][data-empty]:not(:focus) { color: transparent; }
  .planner-request-input[type="date"][data-empty]:not(:focus):not([hidden]) ~ .planner-date-hint { display: block; }
  .planner-row:focus-within .planner-date-hint, .planner-row.is-picking .planner-date-hint { display: none !important; }
  .planner-row.is-picking .planner-request-input[type="date"] { color: var(--planner-ink) !important; }
}
/* the Return row before a return is wanted, and the way to take one off again */
.planner-return-toggle { flex: 1 1 auto; min-height: 48px; padding: 0; border: 0; background: none; color: var(--planner-soft); font: inherit; font-size: 1.05rem; font-weight: 300; text-align: left; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(232, 232, 232, .28); cursor: pointer; }
.planner-return-remove { flex: none; min-height: 44px; padding: 0 0 0 .9rem; border: 0; background: none; color: var(--planner-faint); font: inherit; font-size: .78rem; font-weight: 300; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(232, 232, 232, .24); cursor: pointer; }

.planner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; margin-top: 1.5rem; }
.planner-request:not(form) { padding-top: 0; border-top: 0; margin-top: 1.25rem; }
.planner-request:not(form) .planner-actions { margin-top: 0; }
.planner-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 54px; padding: 0 1.9rem; border: 1px solid #e6e7e4; background: #e6e7e4; color: #102540;
  font: inherit; font-size: .74rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .3s ease, border-color .3s ease, opacity .3s ease;
}
.planner-send:disabled { opacity: .7; cursor: default; }
.planner-send span { font-size: .95rem; letter-spacing: 0; }
/* The quiet alternative beside the button: a text on phones, the phone number on a computer. */
.planner-alt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--planner-soft); font-size: .86rem; font-weight: 300; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(232, 232, 232, .28); }
.planner-text { display: none !important; }
@media (hover: none) and (pointer: coarse) {
  .planner-alt .planner-text { display: inline-flex !important; }
  .planner-alt .planner-call { display: none; }
}
.planner-assure { margin: .9rem 0 0; font-size: .8rem; font-weight: 300; line-height: 1.5; color: var(--planner-faint); }
.planner-feedback { margin: .6rem 0 0; font-size: .88rem; font-weight: 300; line-height: 1.6; color: var(--planner-ink); }
.planner-feedback:empty { display: none; }
.planner-feedback a { color: inherit; }

/* reading the request back before it is sent */
.planner-review { margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--planner-line); }
.planner-review-title { margin: 0 0 1.1rem; font-size: 1.5rem; font-weight: 300; outline: none; }
.planner-review-list { display: grid; gap: .6rem; margin: 0; }
.planner-review-row { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); column-gap: 1rem; align-items: baseline; }
.planner-review-row dt { font-size: .66rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--planner-faint); }
.planner-review-row dd { margin: 0; font-size: .95rem; font-weight: 300; line-height: 1.55; overflow-wrap: anywhere; }
.planner-review-row dd span { display: block; }
.planner-edit { min-height: 44px; min-width: 44px; padding: 0 .5rem; border: 0; background: none; color: var(--planner-soft); font: inherit; font-size: .86rem; font-weight: 300; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(232, 232, 232, .28); cursor: pointer; }
.planner-edit:disabled { opacity: .5; cursor: default; }

.planner-sent { margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--planner-line); }
.planner-sent-title { margin: 0; font-size: 1.5rem; font-weight: 300; outline: none; }
.planner-sent-text { margin: .5rem 0 1.1rem; font-size: .95rem; font-weight: 300; line-height: 1.6; color: var(--planner-soft); }

/* the map */
.planner-disc { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 1; }
.planner-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.planner-pulse { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1px solid rgba(241, 240, 236, .7); opacity: 0; animation: planner-pulse 3.6s ease-out infinite; pointer-events: none; }
.planner-disc.is-moving .planner-pulse { animation: none; }
@keyframes planner-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(4.2); opacity: 0; } }
.planner-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2rem 1rem; margin: .9rem auto 0; min-height: 1.6rem; font-size: .78rem; font-weight: 300; line-height: 1.5; color: var(--planner-faint); }
.planner-share { min-height: 44px; padding: 0 .25rem; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(232, 232, 232, .25); cursor: pointer; }
.planner-share[hidden] { display: none; }

/* Hover is for pointers: on a touch screen it would stick to the last thing tapped. */
@media (hover: hover) {
  .planner-option:hover { background: rgba(232, 232, 232, .09); }
  .planner-option-note:hover { background: none; }
  .planner-chip:hover, .planner-swap:hover, .planner-step:hover:not([aria-disabled="true"]) { color: var(--planner-ink); border-color: rgba(232, 232, 232, .5); }
  .planner-pick:hover, .planner-again:hover { background: rgba(232, 232, 232, .08); }
  .planner-pill:hover:not([aria-disabled="true"]):not([aria-checked="true"]) { border-color: rgba(232, 232, 232, .45); color: var(--planner-ink); }
  .planner-send:hover:not(:disabled) { background: #fff; border-color: #fff; }
  .planner-alt a:hover, .planner-share:hover, .planner-return-toggle:hover, .planner-return-remove:hover, .planner-edit:hover:not(:disabled), .planner-nearby summary:hover { color: var(--planner-ink); }
}

.planner :is(.planner-chip, .planner-swap, .planner-step, .planner-pill, .planner-send, .planner-alt a, .planner-share, .planner-return-toggle, .planner-return-remove, .planner-edit, summary):focus-visible { outline: 2px solid #e8e8e8; outline-offset: 3px; }
/* A field shows focus itself (its row lights, or its underline brightens), so the input needs no box;
   someone moving by keyboard also gets an outline around the row. */
.planner .planner-input:focus, .planner .planner-input:focus-visible, .planner .planner-request-input:focus, .planner .planner-request-input:focus-visible { outline: none; box-shadow: none; }
.planner-field:has(.planner-input:focus-visible), .planner-row:has(.planner-request-input:focus-visible) { outline: 1px solid rgba(232, 232, 232, .6); outline-offset: -1px; }
.planner noscript p { grid-column: 1 / -1; color: var(--planner-soft); }

@media (max-width: 1020px) {
  .planner-section { padding: 4.5rem 1.5rem 5rem; }
  /* One column. The answer comes straight after the fields: the flight time and its aircraft, then
     the map, then the aircraft to compare and the request. The boxes that group the answer on a
     wide screen are dissolved here so its parts can sit either side of the map. */
  .planner { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; grid-template-rows: none; max-width: 640px; }
  .planner-bottom, .planner-result, .planner-answer { display: contents; }
  .planner-top, .planner-map { grid-area: auto; }
  .planner-top { order: 1; }
  .planner-answer-head { order: 2; margin-top: 1.5rem; }
  .planner-answer-detail { order: 3; }
  .planner-map { order: 4; position: static; margin-top: 1.75rem; }
  .planner-aircraft { order: 5; margin-top: 1.4rem; }
  .planner-runway, .planner-note { order: 6; }
  .planner-request, .planner-review, .planner-sent { order: 7; }
  /* The homepage centres every section's heading. In one column the planner's heading, and the
     routes offered under the fields, are centred with them. Beside the map on a wide screen they
     stay to the left, in line with the fields. */
  .planner-section .planner-intro, .planner-section .planner-hint-title { text-align: center; }
  .planner-section .planner-lead { margin-inline: auto; }
  .planner-section .planner-picks { justify-content: center; }
}
@media (max-width: 560px) {
  .planner-section { padding: 3.25rem 1.25rem 4.25rem; }
  .planner-eyebrow { margin-bottom: .7rem; }
  .planner { --planner-title: 2.1rem; }
  .planner-lead { margin-top: .55rem; font-size: .95rem; }

  /* Phone: the same block, tighter, so that with "To" under the site's header the passenger
     count, the flight time and the map all follow on one screen. */
  .planner-form { margin-top: 1.35rem; border-radius: 8px; }
  .planner-field { grid-template-columns: 3.3rem minmax(0, 1fr); column-gap: .6rem; padding: .3rem .95rem; }
  .planner-field:first-child { border-radius: 7px 7px 0 0; }
  .planner-input, .planner-fixed { min-height: 48px; font-size: 1.15rem; }
  .planner-field-to .planner-input { padding-right: 3rem; }
  .planner-swap { top: calc(.3rem + 2px); right: .5rem; }
  .planner-airport { margin: -.3rem 0 .4rem; gap: 0 .7rem; }
  .planner-airport-name, .planner-nearby { font-size: .74rem; }
  .planner-passengers { min-height: 56px; padding: .3rem .6rem .3rem .95rem; }
  /* a suggestion takes one line here, so more of them fit above the keyboard */
  .planner-option { padding: .68rem .7rem; column-gap: .7rem; }
  .planner-option-main { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .planner-option-title, .planner-option-sub { display: inline; }
  .planner-option-sub::before { content: ' · '; }
  .planner-option-lead { display: none; }
  .planner-count { min-width: 2.2rem; font-size: 1.3rem; }
  .planner-hint { margin-top: 1.25rem; }
  /* four routes in two rows, down to the narrowest current phones */
  .planner-picks { gap: .4rem; }
  .planner-pick { padding: .25rem .7rem; font-size: .8rem; }
  /* a long airport name runs to a second line here rather than being cut */
  .planner-airport-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .planner-answer-head { margin-top: 1.2rem; }
  .planner-map { margin-top: 1.4rem; }

  /* the seven aircraft scroll sideways, and run to the screen's edges */
  .planner-aircraft { display: flex; gap: 6px; margin-inline: -1.25rem; padding: 2px 1.25rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .planner-aircraft::-webkit-scrollbar { display: none; }
  .planner-pill { flex: 0 0 84px; scroll-snap-align: center; }
  .planner-block { border-radius: 8px; }
  .planner-block + .planner-block { margin-top: .6rem; }
  .planner-row { grid-template-columns: 3.9rem minmax(0, 1fr); column-gap: .6rem; padding: .1rem .95rem; }
  .planner-send { width: 100%; }
  .planner-alt { flex: 1; text-align: center; }
  .planner-assure { text-align: center; }
  .planner-review-row { grid-template-columns: 5.6rem minmax(0, 1fr); }
  .planner-review .planner-actions { justify-content: center; }
}
@media (max-width: 380px) { .planner-pick { padding-inline: .65rem; font-size: .78rem; } }
/* The narrowest phones: a little less for the labels, a little more for the place. */
@media (max-width: 359px) {
  .planner-section { padding-inline: 1rem; }
  .planner-field { grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: .45rem; padding-inline: .75rem; }
  .planner-field > .planner-label, .planner-row > .planner-label { font-size: .6rem; letter-spacing: .16em; }
  .planner-row { grid-template-columns: 3.1rem minmax(0, 1fr); column-gap: .45rem; padding-inline: .75rem; }
  .planner-input, .planner-fixed { font-size: 1.02rem; }
  .planner-field-to .planner-input { padding-right: 2.9rem; }
  .planner-swap { right: .35rem; }
  .planner-aircraft { margin-inline: -1rem; padding-inline: 1rem; }
}
/* A phone on its side has little height: start the fields sooner. */
@media (max-height: 500px) and (max-width: 1020px) {
  .planner-section { padding-top: 2rem; }
  .planner-eyebrow { margin-bottom: .5rem; }
  .planner-lead { margin-top: .4rem; }
  .planner-form { margin-top: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .planner-pulse { animation: none; } }
