/* ==========================================================================
   Likoma Airlines — Interior pages
   --------------------------------------------------------------------------
   Chrome shared by every page below the top level: the header band, the
   retrieve-style forms, the departures board, and the index layouts for
   destinations, offers, experience, loyalty and the help centre.

   Anything here that gets used on three or more pages is a candidate for
   promotion into components.css.
   ========================================================================== */

/* --- Page header band ------------------------------------------------------
   Two tones: `--dark` for section landing pages that want presence, plain for
   content pages where the copy should lead.
   ------------------------------------------------------------------------ */

.lk-pagehead {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16)) clamp(var(--space-8), 4vw, var(--space-12));
  background: var(--gradient-mist);
  border-block-end: 1px solid var(--color-divider);
}

.lk-pagehead__title {
  margin-block-start: var(--space-3);
  font-size: var(--text-display-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

.lk-pagehead__lead {
  margin-block-start: var(--space-4);
  max-inline-size: 62ch;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.lk-pagehead--dark {
  position: relative;
  background: var(--gradient-dawn);
  border-block-end: 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.lk-pagehead--dark .lk-pagehead__title { color: #fff; }
.lk-pagehead--dark .lk-pagehead__lead  { color: rgb(255 255 255 / 0.76); }
.lk-pagehead--dark .lk-breadcrumb      { color: rgb(255 255 255 / 0.6); }
.lk-pagehead--dark .lk-breadcrumb [aria-current="page"] { color: #fff; }
.lk-pagehead--dark .lk-eyebrow         { color: var(--blue-400); }

/* Same decorative hairlines as the booking hero, so section pages read as
   part of the same family. */
.lk-pagehead__lines {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  inline-size: min(32rem, 50%);
  block-size: 100%;
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}

.lk-pagehead__lines line,
.lk-pagehead__lines circle {
  stroke: var(--blue-500);
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}

/* --- Retrieve-style panel ---------------------------------------------------
   Check-in and flight status both open with a short lookup form.
   ------------------------------------------------------------------------ */

.lk-lookup {
  position: relative;
  z-index: 2;
  max-inline-size: 58rem;
  margin-block-start: calc(var(--space-12) * -1);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.lk-lookup__form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-4);
  align-items: end;
  margin-block-start: var(--space-6);
}

.lk-lookup__messages {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block-start: calc(var(--space-2) * -1);
}

/* --- Step list ---------------------------------------------------------------
   Numbered "how this works" sequences, used on check-in and loyalty.
   ------------------------------------------------------------------------ */

.lk-steplist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-6);
  counter-reset: step;
}

.lk-steplist__item {
  position: relative;
  padding-block-start: var(--space-10);
  counter-increment: step;
}

.lk-steplist__item::before {
  content: counter(step);
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-soft);
  color: var(--color-primary-active);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.lk-steplist__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

.lk-steplist__text {
  margin-block-start: var(--space-2);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* --- Departures board ---------------------------------------------------------
   Reads like an airport board: monospaced-feeling tabular figures, a status
   column that carries colour, and rows that stay legible when scanned fast.
   ------------------------------------------------------------------------ */

.lk-board__time {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.lk-board__flight {
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-primary);
}

.lk-board__route {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-primary);
}

.lk-board__route svg {
  inline-size: 15px;
  block-size: 15px;
  color: var(--color-text-muted);
}

.lk-board__empty { padding-block: var(--space-12); }

/* --- Region groups (destinations index) ----------------------------------------- */

.lk-region + .lk-region { margin-block-start: var(--space-16); }

.lk-region__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block-end: var(--space-4);
  margin-block-end: var(--space-6);
  border-block-end: 1px solid var(--color-divider);
}

.lk-region__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.lk-region__count {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* --- Destination detail ----------------------------------------------------------- */

.lk-dest-hero {
  position: relative;
  min-block-size: min(56vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--navy-800);
  color: #fff;
}

.lk-dest-hero img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  z-index: -2;
}

.lk-dest-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(11 18 38 / 0.92), rgb(11 18 38 / 0.45) 45%, rgb(11 18 38 / 0.25));
}

.lk-dest-hero__body {
  padding: clamp(var(--space-8), 4vw, var(--space-14));
  inline-size: 100%;
}

.lk-dest-hero__city {
  font-size: var(--text-display-md);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight);
  color: #fff;
}

/* Key facts strip under a destination hero */
.lk-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--space-6);
  padding: var(--space-7);
  border-radius: var(--radius-panel);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-ring), var(--shadow-md);
}

.lk-fact__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lk-fact__value {
  margin-block-start: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

/* --- Offer detail ------------------------------------------------------------------- */

.lk-offer-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  border-radius: var(--radius-sheet);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-ring), var(--shadow-lg);
}

.lk-offer-hero__media {
  position: relative;
  min-block-size: 22rem;
  background-color: var(--navy-100);
}

.lk-offer-hero__media img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.lk-offer-hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
}

.lk-offer-hero__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.lk-offer-hero__amount {
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tighter);
  font-variant-numeric: tabular-nums;
  line-height: var(--leading-none);
  color: var(--color-text-primary);
}

/* --- Loyalty tiers -------------------------------------------------------------------- */

.lk-tier-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-7);
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-ring), var(--shadow-sm);
  /* The tier colour is applied inline from the database, and used here so a
     new tier needs no new CSS. */
  border-block-start: 3px solid var(--tier-colour, var(--color-primary));
}

.lk-tier-card__name {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.lk-tier-card__threshold {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--tier-colour, var(--color-primary));
}

.lk-tier-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-block-start: var(--space-2);
}

.lk-tier-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text-secondary);
}

.lk-tier-card__item svg {
  inline-size: 17px;
  block-size: 17px;
  margin-block-start: 2px;
  flex-shrink: 0;
  color: var(--tier-colour, var(--color-primary));
}

/* --- Help centre ----------------------------------------------------------------------- */

.lk-help-grid {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: clamp(var(--space-8), 4vw, var(--space-14));
  align-items: start;
}

.lk-help-nav {
  position: sticky;
  inset-block-start: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.lk-help-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  transition: var(--transition-colors);
}

.lk-help-nav__link:hover {
  background-color: var(--color-hover-tint);
  color: var(--color-text-primary);
}

.lk-help-nav__count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.lk-help-group + .lk-help-group { margin-block-start: var(--space-12); }

.lk-help-group__title {
  margin-block-end: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  scroll-margin-block-start: var(--space-8);
}

/* --- Boarding pass ----------------------------------------------------------------------
   Styled as a ticket: dashed tear lines, tabular figures, and the pass code
   set as the one piece of monospace on the site so it reads as a machine
   identifier rather than as prose.
   ---------------------------------------------------------------------------------------- */

.lk-pass {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
}

.lk-pass__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block-end: var(--space-3);
  border-block-end: 1px dashed var(--color-border);
}

.lk-pass__label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lk-pass__seq {
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}

.lk-pass__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.lk-pass__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.lk-pass__key {
  display: block;
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lk-pass__value {
  display: block;
  margin-block-start: 2px;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.lk-pass__code {
  padding-block-start: var(--space-3);
  border-block-start: 1px dashed var(--color-border);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-secondary);
  word-break: break-all;
}

/* --- Contact channels ------------------------------------------------------------------- */

.lk-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-4);
}

.lk-channel {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-ring);
  transition: var(--transition-shadow), transform var(--duration-base) var(--ease-out);
}

.lk-channel:hover {
  transform: var(--lift-sm);
  box-shadow: var(--shadow-ring), var(--shadow-md);
}

.lk-channel__icon {
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  margin-block-end: var(--space-2);
}

.lk-channel__value {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

/* --- Booking held: pay by transfer -----------------------------------------
   The page a customer keeps open in a tab while they move money in another —
   so it is built to be read and copied from under pressure, not admired:
   one figure that dominates, a reference that is impossible to mistype, and
   account rows that align like a bank statement.
   ------------------------------------------------------------------------ */

.lk-pay {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-block-start: clamp(var(--space-6), 3vw, var(--space-10));
}

/* --- The one number that matters ---------------------------------------- */

.lk-pay-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space-6);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background-color: var(--color-surface);
  /* The one accent on the page: a rule down the leading edge, the same
     device a statement uses to mark the line you owe. */
  border-inline-start: 3px solid var(--color-primary);
}

.lk-pay-hero__figure {
  margin-block-start: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-display-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-none);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-primary);
}

.lk-pay-hero__ref {
  text-align: end;
}

.lk-pay-hero__ref-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-block-start: var(--space-2);
}

.lk-pay-hero__code {
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
}

/* Spans both columns and sits under the divider, so the hold deadline reads
   as a condition on the amount rather than a caption to the reference. */
.lk-pay-hero__hold {
  grid-column: 1 / -1;
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--color-divider);
}

.lk-pay-hero__hold-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

.lk-pay-hero__hold-line svg {
  flex-shrink: 0;
  margin-block-start: 2px;
  color: var(--color-text-muted);
}

.lk-pay-hero__hold-line strong {
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

/* The bar itself is the JS-driven part — it starts full and drains toward
   the deadline, giving the hold a visible sense of motion a static
   timestamp cannot. */
.lk-pay-hero__hold-bar {
  margin-block-start: var(--space-3);
}

.lk-pay-hero__hold--expired .lk-pay-hero__hold-line strong {
  color: var(--color-danger);
}

@media (max-width: 559px) {
  .lk-pay-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .lk-pay-hero__ref { text-align: start; }
  .lk-pay-hero__ref-row { justify-content: flex-start; }
}

/* --- Section card --------------------------------------------------------
   A titled band over a padded body. The heading gets its own compartment so
   it never sits in the same block of space as the content it labels — the
   thing that made these read as unstyled before.
   ------------------------------------------------------------------------ */

.lk-paycard {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background-color: var(--color-surface);
  overflow: hidden;
}

.lk-paycard__head {
  padding: var(--space-5) clamp(var(--space-5), 3vw, var(--space-7));
  border-block-end: 1px solid var(--color-divider);
  background-color: var(--color-surface-sunken);
}

.lk-paycard__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* For a head that also carries an action, e.g. "copy all" next to the title. */
.lk-paycard__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
}

.lk-paycard__body {
  padding: clamp(var(--space-5), 3vw, var(--space-7));
}

/* For a table that should meet the card's edges itself */
.lk-paycard__body--flush { padding: 0; }

.lk-paycard__foot {
  padding: 0 clamp(var(--space-5), 3vw, var(--space-7)) clamp(var(--space-5), 3vw, var(--space-7));
}

/* A table inside a card already has the card's border; it must not draw a
   second one around itself. */
.lk-paycard .lk-table-wrap {
  border-radius: 0;
  box-shadow: none;
}

/* --- Account rows --------------------------------------------------------
   A grid rather than a `space-between` flex pair, so a long bank value never
   steals width from its label — below 560px they stack onto their own lines
   instead of being pushed past the edge of a narrow screen.
   ------------------------------------------------------------------------ */

.lk-pay-rows {
  display: flex;
  flex-direction: column;
  padding-inline: clamp(var(--space-5), 3vw, var(--space-7));
}

.lk-pay-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: var(--space-4);
  row-gap: var(--space-1);
  padding-block: var(--space-4);
  border-block-end: 1px solid var(--color-divider);
}

.lk-pay-row:last-child {
  border-block-end: none;
}

.lk-pay-row__label {
  grid-column: 1 / -1;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.lk-pay-row__value {
  min-inline-size: 0;
  overflow-wrap: anywhere;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

.lk-pay-row__value--strong {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
}

.lk-pay-row__copy {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--color-text-muted);
}

.lk-pay-row__copy:hover {
  color: var(--color-primary);
}

@media (min-width: 560px) {
  .lk-pay-row {
    grid-template-columns: 12rem 1fr auto;
    row-gap: 0;
  }

  .lk-pay-row__label { grid-column: 1; }

  .lk-pay-row__value {
    grid-column: 2;
    text-align: end;
  }

  .lk-pay-row__copy {
    grid-row: 1;
    grid-column: 3;
  }
}

/* --- Numbered steps ------------------------------------------------------- */

.lk-pay-next {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  list-style: none;
}

.lk-pay-next__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.lk-pay-next__marker {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  inline-size: 28px;
  block-size: 28px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.lk-pay-next__item p {
  margin: 0;
  padding-block-start: 3px;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.lk-pay-next__item strong {
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

/* --- Already-paid actions -------------------------------------------------- */

.lk-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-4);
}

/* --- Flight legs ---------------------------------------------------------- */

.lk-pay-leg {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-primary);
}

.lk-pay-leg svg { color: var(--color-text-muted); }

.lk-pay-footnote {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

/* --- Responsive -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .lk-help-grid { grid-template-columns: minmax(0, 1fr); }

  .lk-help-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: var(--space-2);
  }

  .lk-help-nav::-webkit-scrollbar { display: none; }

  .lk-help-nav__link {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    white-space: nowrap;
  }

  .lk-offer-hero { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .lk-lookup {
    margin-block-start: calc(var(--space-8) * -1);
    padding: var(--space-5);
  }

  .lk-lookup__form { grid-template-columns: minmax(0, 1fr); }
  .lk-lookup__form .lk-btn { inline-size: 100%; }

  .lk-dest-hero { min-block-size: 20rem; }
  .lk-facts { padding: var(--space-5); }
}
