/*
 * Final booking section (starts as Option 3, date tiles with buy box).
 * Needs tokens.css and components.css. Scoped to .ot-dep--final.
 *
 * Figma (page "Final booking section"): desktop 1920 535:3, mobile 390 535:465,
 * states 536:7. Started from Option 3 (497:14, 497:408).
 * The banner runs the full width of the page; its content and the white panel
 * that overlaps it sit in the same 1400px column as the other options, with
 * 20px side gutters below 1440px.
 *
 * The DOM follows the mobile order (tiles, legend, buy box), so focus order is
 * the same at every width; on desktop the buy box sits beside the tiles.
 */

.ot-dep--final {
  --ot-dep-fin-panel-shadow: 0 16px 20px 0 rgb(0 51 89 / 0.12);
  --ot-dep-fin-overlap: 150px;
  /* Tile outline, about 20% darker than the line colour (client feedback, 12 Nov 2026) */
  --ot-dep-tile-line: #bbbbbb;
  /* Private itinerary card border and divider (Figma 535:446) */
  --ot-dep-fin-cream-line: #e3dccf;

  gap: 0;
}

/* ---------- Full-width banner (497:15) ---------- */

.ot-dep--final .ot-dep-finhero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ot-dep-navy-deep);
  color: var(--ot-dep-white);
}

/*
 * Navy wash over the photo. The Option 3 layer (497:17) is 94% to 66%, which
 * leaves the step card text under AA over the bright windows on the right.
 * Uses the same 96% to 80% wash as Option 1 instead.
 */
.ot-dep--final .ot-dep-finhero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--ot-dep-banner-wash-start), var(--ot-dep-banner-wash-end));
}

.ot-dep--final .ot-dep-finhero__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 20px calc(60px + var(--ot-dep-fin-overlap));
}

.ot-dep--final .ot-dep-finhero .ot-dep-h2 {
  color: var(--ot-dep-white);
}

.ot-dep--final .ot-dep-finhero__how {
  display: flex;
  align-items: center;
  gap: 48px;
}

/* ---------- White panel (508:782) ---------- */

.ot-dep--final .ot-dep-finbody {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: calc(-1 * var(--ot-dep-fin-overlap)) auto 0;
  padding: 0 20px;
}

.ot-dep--final .ot-dep-finpanel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
  border-radius: var(--ot-dep-radius-banner);
  background: var(--ot-dep-white);
  box-shadow: var(--ot-dep-fin-panel-shadow);
}

/* Tour name and length above the route line (544:225) */
.ot-dep--final .ot-dep-fintour {
  margin: 0;
  font-family: var(--ot-dep-font-heading);
  font-weight: 400;
  font-size: 24px;
  line-height: 31.2px;
  color: var(--ot-dep-navy);
}

/* ---------- Columns: tiles and buy box (535:82) ---------- */

.ot-dep--final .ot-dep-fincols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
  gap: 40px;
}

.ot-dep--final .ot-dep-finchoose {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.ot-dep--final .ot-dep-finchoose__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}

.ot-dep--final .ot-dep-finchoose__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ot-dep--final .ot-dep-finchoose__title {
  margin: 0;
  font-family: var(--ot-dep-font-heading);
  font-weight: 400;
  font-size: 24px;
  line-height: 31.2px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ot-dep-navy);
}

.ot-dep--final .ot-dep-finchoose__sub {
  margin: 0;
  min-height: 20px;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  color: rgb(39 39 39 / 0.75);
}

/* Year switch (497:66) uses the shared .ot-dep-inline-field and .ot-dep-switch--fit. */

/* ---------- Date tiles (497:73) ---------- */

.ot-dep--final .ot-dep-fintiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  /* Every row the same height, so every tile in the grid is too (desktop). */
  grid-auto-rows: 1fr;
  gap: 12px;
}

/* The radio group's tiles are cells of the same grid as the custom date tile after them. */
.ot-dep--final .ot-dep-fintiles__group {
  display: contents;
}

.ot-dep--final .ot-dep-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  /* 166px in Figma (535:96): room for the price line and a tag under it */
  min-height: 166px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--ot-dep-tile-line);
  border-radius: var(--ot-dep-radius-panel);
  background: var(--ot-dep-white);
  color: var(--ot-dep-navy);
  cursor: pointer;
  transition: border-color var(--ot-dep-transition), background-color var(--ot-dep-transition), box-shadow var(--ot-dep-transition);
}

/* Hover (annotation on 497:124): the navy outline at 1px */
.ot-dep--final .ot-dep-tile:hover {
  border-color: var(--ot-dep-navy);
}

/* Selected: cream fill and a 1.5px navy outline (1px border plus a half pixel inset ring, so nothing moves) */
.ot-dep--final .ot-dep-tile:has(.ot-dep-tile__input:checked) {
  border-color: var(--ot-dep-navy);
  background: var(--ot-dep-cream);
  box-shadow: inset 0 0 0 0.5px var(--ot-dep-navy);
}

.ot-dep--final .ot-dep-tile:has(.ot-dep-tile__input:focus-visible) {
  outline: var(--ot-dep-focus);
  outline-offset: 2px;
}

/* The radio covers the whole tile, so a click anywhere selects it */
.ot-dep--final .ot-dep-tile__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ot-dep--final .ot-dep-tile__dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ot-dep--final .ot-dep-tile__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ot-dep--final .ot-dep-tile__end {
  font-weight: 300;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  color: rgb(39 39 39 / 0.75);
}

.ot-dep--final .ot-dep-tile__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ot-dep--final .ot-dep-tile__price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.ot-dep--final .ot-dep-tile__amount {
  font-weight: 500;
  font-size: 17px;
  line-height: 22px;
  color: var(--ot-dep-navy);
}

.ot-dep--final .ot-dep-tile__pp {
  font-weight: 300;
  font-size: 12px;
  line-height: 18px;
  color: var(--ot-dep-ink-70);
}

/* Radio circle: grey ring, or navy with a white tick when selected */
.ot-dep--final .ot-dep-tile__radio {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ot-dep-input-border);
  border-radius: 50%;
  background: var(--ot-dep-white);
  color: transparent;
}

.ot-dep--final .ot-dep-tile:has(.ot-dep-tile__input:checked) .ot-dep-tile__radio {
  border-color: var(--ot-dep-navy);
  background: var(--ot-dep-navy);
  color: var(--ot-dep-white);
}

/* Fully booked tiles stay in the grid, dimmed (70% for AA contrast), with a
   disabled radio: no hover state, no pointer, no radio circle. */
.ot-dep--final .ot-dep-tile.is-full {
  cursor: default;
}

.ot-dep--final .ot-dep-tile.is-full:hover {
  border-color: var(--ot-dep-tile-line);
}

.ot-dep--final .ot-dep-tile.is-full .ot-dep-tile__input {
  cursor: default;
}

.ot-dep--final .ot-dep-tile.is-full .ot-dep-findate,
.ot-dep--final .ot-dep-tile.is-full .ot-dep-tile__end {
  opacity: 0.7;
}

.ot-dep--final .ot-dep-tile.is-full .ot-dep-tile__radio {
  visibility: hidden;
}

.ot-dep--final .ot-dep-finnotice {
  margin-bottom: -6px;
}

/* Big date: day number, month over weekday. Used by the tiles and the buy box. */
.ot-dep--final .ot-dep-findate {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.ot-dep--final .ot-dep-findate__day {
  font-family: var(--ot-dep-font-heading);
  font-weight: 300;
  font-size: 36px;
  line-height: 46.8px;
  color: var(--ot-dep-navy);
}

.ot-dep--final .ot-dep-findate__mw {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
}

.ot-dep--final .ot-dep-findate__month {
  font-weight: 600;
  color: var(--ot-dep-navy);
}

/* Figma 55% ink; 70% so it passes AA on the cream selected tile */
.ot-dep--final .ot-dep-findate__weekday {
  font-weight: 500;
  color: var(--ot-dep-ink-70);
}

/* "Show all 16 dates" (497:594): mobile only */
.ot-dep--final .ot-dep-finmore {
  display: none;
}

/* ---------- Custom date tile (535:427): last cell of the grid, opens the enquiry popup ---------- */

.ot-dep--final .ot-dep-fincustom {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 166px;
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--ot-dep-navy);
  border-radius: var(--ot-dep-radius-panel);
  background: var(--ot-dep-white);
  box-shadow: none;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  color: var(--ot-dep-navy);
  cursor: pointer;
  transition: background-color var(--ot-dep-transition);
}

.ot-dep--final .ot-dep-fincustom:hover {
  background: var(--ot-dep-cream);
  color: var(--ot-dep-navy);
}

.ot-dep--final .ot-dep-fincustom:focus-visible {
  outline: var(--ot-dep-focus);
  outline-offset: 2px;
}

.ot-dep--final .ot-dep-fincustom__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ot-dep-cream);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  color: var(--ot-dep-navy);
}

.ot-dep--final .ot-dep-fincustom:hover .ot-dep-fincustom__plus {
  background: var(--ot-dep-white);
}

.ot-dep--final .ot-dep-fincustom__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ot-dep--final .ot-dep-fincustom__title {
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
}

.ot-dep--final .ot-dep-fincustom__sub {
  font-weight: 300;
  font-size: 13px;
  line-height: 16px;
  color: var(--ot-dep-ink-70);
}

/* ---------- Private itinerary prompt (535:446 desktop, 535:782 mobile) ---------- */

.ot-dep--final .ot-dep-finprivate {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 32px;
  border: 1px solid var(--ot-dep-fin-cream-line);
  border-radius: var(--ot-dep-radius-step);
  background: var(--ot-dep-cream);
}

.ot-dep--final .ot-dep-finprivate__top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ot-dep--final .ot-dep-finprivate__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
}

/* Brand gold on cream, as Figma (the accepted gold exception) */
.ot-dep--final .ot-dep-finprivate__kicker {
  margin: 0;
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ot-dep-gold);
}

.ot-dep--final .ot-dep-finprivate__title {
  margin: 0;
  font-family: var(--ot-dep-font-heading);
  font-weight: 400;
  font-size: 24px;
  line-height: 31.2px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ot-dep-navy);
}

.ot-dep--final .ot-dep-finprivate__text {
  margin: 0;
  font-weight: 300;
  font-size: 15px;
  line-height: 20px;
  color: var(--ot-dep-ink-70);
}

.ot-dep--final .ot-dep-finprivate__btn {
  flex: none;
  width: auto;
  padding: 15px 30px;
  line-height: 16px;
}

.ot-dep--final .ot-dep-finprivate__divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--ot-dep-fin-cream-line);
}

.ot-dep--final .ot-dep-finprivate__points {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ot-dep--final .ot-dep-finprivate__point {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: var(--ot-dep-navy);
}

.ot-dep--final .ot-dep-finprivate__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ot-dep-fin-cream-line);
  border-radius: 50%;
  background: var(--ot-dep-white);
  color: var(--ot-dep-gold);
}

/* Solid navy button (Button/Ghost with a navy fill in 535:450) */
.ot-dep--final .ot-dep-btn--navy {
  background-color: var(--ot-dep-navy);
  border-color: var(--ot-dep-navy);
  color: var(--ot-dep-white);
}

.ot-dep--final .ot-dep-btn--navy:hover {
  background-color: var(--ot-dep-navy-deep);
  border-color: var(--ot-dep-navy-deep);
  color: var(--ot-dep-white);
}

/* ---------- Buy box (497:342) ---------- */

.ot-dep--final .ot-dep-finbuy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--ot-dep-line);
  border-radius: var(--ot-dep-radius-card);
  background: var(--ot-dep-white);
}

.ot-dep--final .ot-dep-finbuy__departure {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ot-dep--final .ot-dep-finbuy__label {
  margin: 0;
  font-family: var(--ot-dep-font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--ot-dep-ink-60);
}

.ot-dep--final .ot-dep-finbuy__when {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ot-dep--final .ot-dep-finbuy .ot-dep-findate__day {
  font-weight: 400;
  font-size: 64px;
  line-height: 64px;
}

.ot-dep--final .ot-dep-finbuy__to {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}

.ot-dep--final .ot-dep-finbuy__end {
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  color: var(--ot-dep-navy);
}

.ot-dep--final .ot-dep-finbuy__trip {
  font-weight: 300;
  font-size: 13px;
  line-height: 18px;
  color: var(--ot-dep-ink-70);
}

.ot-dep--final .ot-dep-finbuy__divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--ot-dep-line);
}

.ot-dep--final .ot-dep-finbuy__total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  line-height: 22px;
}

.ot-dep--final .ot-dep-finbuy__total-label {
  font-weight: 300;
  font-size: 15px;
  color: var(--ot-dep-ink);
}

.ot-dep--final .ot-dep-finbuy__total-value {
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  color: var(--ot-dep-navy);
}

/* The live Updates text for the chosen date (e.g. "See tour changes on D6 & D8") */
.ot-dep--final .ot-dep-finbuy__note {
  margin: -8px 0 0;
  font-weight: 300;
  font-size: 13px;
  line-height: 18px;
  color: var(--ot-dep-ink-70);
}

.ot-dep--final .ot-dep-finbuy__note[hidden],
.ot-dep--final .ot-dep-finbuy .ot-dep-tags[hidden] {
  display: none;
}

/* Number of travellers stepper (535:458): minus, value, plus */
.ot-dep--final .ot-dep-stepper {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ot-dep-input-border);
  border-radius: var(--ot-dep-radius-field);
  background: var(--ot-dep-white);
}

.ot-dep--final .ot-dep-stepper__btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--ot-dep-white);
  box-shadow: none;
  font-family: var(--ot-dep-font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  color: var(--ot-dep-navy);
  cursor: pointer;
  transition: background-color var(--ot-dep-transition);
}

.ot-dep--final .ot-dep-stepper__btn:hover {
  background: var(--ot-dep-grey);
  color: var(--ot-dep-navy);
}

.ot-dep--final .ot-dep-stepper__btn:focus-visible {
  outline: var(--ot-dep-focus);
  outline-offset: -2px;
}

/* At 1 and 12: still focusable (aria-disabled), so focus never drops to the page */
.ot-dep--final .ot-dep-stepper__btn[aria-disabled='true'],
.ot-dep--final .ot-dep-stepper__btn[aria-disabled='true']:hover {
  background: var(--ot-dep-white);
  color: rgb(0 52 90 / 0.3);
  cursor: not-allowed;
}

.ot-dep--final .ot-dep-stepper__value {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  font-weight: 500;
  font-size: 16px;
  color: var(--ot-dep-navy);
}

/* The room / bed configuration can run to two or three lines, so its closed state grows. */
.ot-dep--final .ot-dep-finbuy .ot-dep-control {
  height: auto;
  min-height: 72px;
}

.ot-dep--final .ot-dep-finbuy .ot-dep-control__sub {
  white-space: normal;
}

/* Deposit panel: stacks when it is narrower than about 340px, so the amount
   (up to "$18,000 AUD" for 12 travellers) never clips or overlaps. The query
   reads the content box, so 300px here is a 340px panel less its 20px padding. */
.ot-dep--final .ot-dep-deposit {
  container-type: inline-size;
}

@container (max-width: 300px) {
  .ot-dep--final .ot-dep-deposit__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Deposit amount is 28px here (36px in Option 1) */
.ot-dep--final .ot-dep-finbuy .ot-dep-deposit__amount {
  min-height: 36.4px;
  font-size: 28px;
  line-height: 36.4px;
}

.ot-dep--final .ot-dep-finbuy__ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ot-dep--final .ot-dep-finbuy__enquiry {
  text-align: center;
}

/* Desktop shows the custom Travellers listbox; mobile shows the native select. */
@media (min-width: 922px) {
  .ot-dep--final .ot-dep-only-mobile {
    display: none;
  }

  /* Stays in view beside the tiles while the tile grid is taller than it,
     24px below the page's pinned anchor nav (--ot-anchors-height, 0 without one). */
  .ot-dep--final .ot-dep-finbuy {
    position: sticky;
    top: calc(var(--ot-anchors-height, 0px) + 24px);
  }
}

/* ---------- Medium desktop: 922 to 1199 ---------- */

@media (min-width: 922px) and (max-width: 1199px) {
  .ot-dep--final .ot-dep-finhero__how {
    flex-direction: column;
    align-items: stretch;
  }

  .ot-dep--final .ot-dep-finpanel {
    padding: 32px 24px;
  }

  .ot-dep--final .ot-dep-fincols {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
  }

  .ot-dep--final .ot-dep-finbuy {
    padding: 24px 20px;
  }
}

/* ---------- Mobile and tablet: up to 921 (Figma 497:408) ---------- */

@media (max-width: 921px) {
  .ot-dep--final {
    --ot-dep-fin-overlap: 64px;
  }

  .ot-dep--final .ot-dep-only-desktop {
    display: none;
  }

  .ot-dep--final .ot-dep-finhero__inner {
    gap: 22px;
    padding: 55px 20px calc(32px + var(--ot-dep-fin-overlap));
  }

  .ot-dep--final .ot-dep-finhero__how {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .ot-dep--final .ot-dep-finpanel {
    gap: 20px;
    padding: 16px;
    border-radius: var(--ot-dep-radius-card);
  }

  .ot-dep--final .ot-dep-fincols {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .ot-dep--final .ot-dep-finchoose {
    gap: 20px;
  }

  .ot-dep--final .ot-dep-finchoose__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ot-dep--final .ot-dep-finchoose__title {
    font-weight: 300;
    font-size: 22px;
    line-height: 28.6px;
  }

  /* Two tiles per row on phones. "Show all" and the custom date row are
     shorter rows, so rows size to content; every tile has the same min-height,
     which fits a tile with a tag, so tiles stay equal. */
  .ot-dep--final .ot-dep-fintiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .ot-dep--final .ot-dep-tile {
    justify-content: flex-start;
    gap: 14px;
    min-height: 160px;
  }


  .ot-dep--final .ot-dep-tile .ot-dep-findate__day {
    font-size: 28px;
    line-height: 36.4px;
  }

  /* First 8 tiles, then "Show all 16 dates" */
  .ot-dep--final .ot-dep-tile.is-collapsed {
    display: none;
  }

  .ot-dep--final .ot-dep-finmore {
    display: inline-flex;
  }

  .ot-dep--final .ot-dep-finmore[hidden] {
    display: none;
  }

  .ot-dep--final .ot-dep-finbuy {
    padding: 20px;
  }

  .ot-dep--final .ot-dep-finbuy .ot-dep-findate__day {
    font-size: 44px;
    line-height: 44px;
  }

  .ot-dep--final .ot-dep-finbuy__end {
    font-size: 15px;
    line-height: 22px;
  }

  .ot-dep--final .ot-dep-fintour {
    font-size: 22px;
    line-height: 28.6px;
  }

  /* "Show all 16 dates" and the custom date tile are full-width rows under the tiles (535:682, 535:763) */
  .ot-dep--final .ot-dep-finmore,
  .ot-dep--final .ot-dep-fincustom {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .ot-dep--final .ot-dep-fincustom {
    flex-direction: row;
    align-items: center;
    min-height: 0;
  }

  .ot-dep--final .ot-dep-fincustom__text {
    flex: 1 1 0;
  }

  /* The private itinerary card is desktop only: out of the layout and the
     accessibility tree on mobile. "Book a custom date" stays. */
  .ot-dep--final .ot-dep-finprivate {
    display: none;
  }

  .ot-dep--final .ot-dep-finprivate__top {
    display: contents;
  }

  .ot-dep--final .ot-dep-finprivate__title {
    font-weight: 300;
    font-size: 22px;
    line-height: 28.6px;
  }

  /* The points stack, and the button goes full width at the bottom */
  .ot-dep--final .ot-dep-finprivate__points {
    flex-direction: column;
    gap: 12px;
  }

  .ot-dep--final .ot-dep-finprivate__btn {
    order: 1;
    width: 100%;
  }

  /* Steps on mobile (535:483): "Step 1" above the title, visible, the icon on the left */
  .ot-dep--final .ot-dep-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
  }

  .ot-dep--final .ot-dep-step__marker,
  .ot-dep--final .ot-dep-step__text {
    display: contents;
  }

  .ot-dep--final .ot-dep-step__icon {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .ot-dep--final .ot-dep-step__number {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .ot-dep--final .ot-dep-step__title {
    grid-column: 2;
    grid-row: 2;
  }

  .ot-dep--final .ot-dep-step__body {
    grid-column: 2;
    grid-row: 3;
  }

}

/* Tablet: more tiles per row, Book Now and Call side by side */
@media (min-width: 600px) and (max-width: 921px) {
  .ot-dep--final .ot-dep-fintiles {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .ot-dep--final .ot-dep-finbuy__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ot-dep--final .ot-dep-finbuy__ctas .ot-dep-btn {
    flex: 1 1 0;
  }
}

/* Small phones: tighten the tile so two still fit side by side at 320 */
@media (max-width: 374px) {
  .ot-dep--final .ot-dep-fintiles {
    gap: 8px;
  }

  .ot-dep--final .ot-dep-tile {
    padding: 12px 10px;
  }

  .ot-dep--final .ot-dep-tile .ot-dep-findate {
    gap: 6px;
  }

  .ot-dep--final .ot-dep-tile__top {
    gap: 4px;
  }

  /* "from $8,490 pp" and "Limited spots" must fit a 320px phone's half-width tile on one line */
  .ot-dep--final .ot-dep-finpanel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ot-dep--final .ot-dep-tile {
    padding: 12px 8px;
  }

  .ot-dep--final .ot-dep-tile__price {
    gap: 3px;
  }

  .ot-dep--final .ot-dep-tile__amount {
    font-size: 15px;
  }

  .ot-dep--final .ot-dep-tile__pp {
    font-size: 11px;
  }

  .ot-dep--final .ot-dep-tile .ot-dep-tag {
    gap: 5px;
    padding: 5px 8px 5px 7px;
    font-size: 12px;
  }
}

/* "Step" labels sit over the brightest part of the photo, so they are white
   here to pass AA (gold-light measured about 3.3:1). Gold stays on the
   current step's icon only. Decided by Aung, 11 November 2026. */
.ot-dep--final .ot-dep-step__number {
  color: var(--ot-dep-white);
}

/* "Your departure": the empty state and the chosen date share one grid cell,
   so the slot is the same height either way and nothing below it moves. */
.ot-dep--final .ot-dep-finbuy__slot {
  display: grid;
  /* The height of the big date, so the empty state takes the same room. */
  min-height: 64px;
}

@media (max-width: 921px) {
  .ot-dep--final .ot-dep-finbuy__slot {
    min-height: 44px;
  }
}

.ot-dep--final .ot-dep-finbuy__slot > * {
  grid-area: 1 / 1;
  align-self: center;
}

.ot-dep--final .ot-dep-finbuy__slot > .is-off {
  visibility: hidden;
}

.ot-dep--final .ot-dep-finbuy__empty {
  margin: 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--ot-dep-ink-70);
}

.ot-dep--final .ot-dep-finbuy__helper {
  margin: 0;
  font-weight: 300;
  font-size: 13px;
  line-height: 18px;
  color: var(--ot-dep-ink-70);
}

.ot-dep--final .ot-dep-finbuy__helper[hidden] {
  display: none;
}
