/* Shared booking controls and cart. */
.opt.quote-only { cursor: default; }
.opt.quote-only .check { display: none; }
.opt button.qv-eye { border: 0; cursor: pointer; }

/* Step number and label share a row; progress sits beneath them. */
.stepper-nav { max-width: none; gap: 18px; }
.stepper-nav li { grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto 5px; gap: 12px 10px; align-items: center; color: var(--ink-2); cursor: pointer; }
.stepper-nav li .num { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 28px; height: 28px; align-self: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink-2); font: 700 .875rem/1 var(--sans); letter-spacing: 0; }
.stepper-nav li .lbl, .stepper-nav li[aria-current] .lbl { grid-column: 2; grid-row: 1; min-width: 0; height: auto; background: transparent; border-radius: 0; text-decoration: none; font: 600 .9375rem/1.35 var(--sans); }
.stepper-nav li .bar { grid-column: 1 / -1; grid-row: 2; height: 5px; background: var(--sand-2); border-radius: 99px; }
.stepper-nav li.is-complete .bar, .stepper-nav li[aria-current] .bar { background: var(--sea); }
.stepper-nav li.is-complete .num, .stepper-nav li[aria-current] .num { border-color: var(--sea); background: var(--sea); color: #fff; }
.stepper-nav li[aria-current] .lbl { color: var(--ink); font-weight: 700; }
.stepper-nav li:focus-visible { outline: 2px solid var(--sea); outline-offset: 5px; border-radius: 6px; }
/* Phones: number above its label, both centred, so a two-line label ("People and package") keeps the row tidy;
   the label row stretches so every progress bar sits on the same line (owner, 22 Nov). */
@media (max-width: 520px) {
  .stepper-nav { gap: 8px; grid-template-columns: repeat(3, auto); } /* longer label gets more room, so it stays on one line */
  .stepper-nav li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr 5px; align-content: stretch; justify-items: center; gap: 6px; text-align: center; }
  .stepper-nav li .num { grid-column: 1; grid-row: 1; width: 26px; height: 26px; }
  .stepper-nav li .lbl, .stepper-nav li[aria-current] .lbl { grid-column: 1; grid-row: 2; font-size: .75rem; font-weight: 600; line-height: 1.25; text-wrap: balance; } /* same weight when current, so the label doesn't jump to two lines */
  .stepper-nav li .bar { grid-row: 3; justify-self: stretch; }
}
/* Phones and tablets: three upright tickets in one row, text centred, the tear line running across with the
   notches on the sides (owner, 22 Nov). Same --cut on all three so the tear lines line up. */
@media (max-width: 980px) {
  .tickets { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 10px; width: 100%; max-width: 460px; margin: 6px auto 0; }
  .tickets .tk, .tickets .tk.best { --cut: 72px; flex: 1 1 0; min-width: 0; width: auto; transform: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--cut) auto; text-align: center; border-radius: 12px;
    -webkit-mask: radial-gradient(circle 8px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 8px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 8px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 8px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat; }
  .tickets .tk .who, .tickets .tk.best .who { align-self: stretch; margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 8px 6px; border-right: 0; border-bottom: 2px dashed #d9cfbf; text-align: center; font-size: .65rem; letter-spacing: .1em; }
  .tickets .tk.best .who { border-bottom-color: rgba(12, 26, 40, .35); }
  .tickets .tk .who b, .tickets .tk.best .who b { font-size: .95rem; white-space: normal; overflow-wrap: anywhere; }
  .tickets .tk .amt, .tickets .tk.best .amt { padding: 12px 4px; font-size: 1.6rem; text-align: center; }
  .tickets .tk.best { flex-grow: 1.15; }
  .tickets .tk.best .amt { font-size: 1.9rem; }
}
/* Phones: one offer card instead of the tickets (owner chose option 4, 22 Nov): coral
   "Save up to 20%" in orange text above the card, centred heading, then every saving as a big tile. Wider screens keep the tickets. */
.offer, .offer-big { display: none; }
@media (max-width: 760px) {
  .tickets { display: none; }
  .offer { display: grid; gap: 14px; width: 100%; max-width: 460px; margin: 6px auto 0;
    padding: 18px 16px; border-radius: 22px; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 20px 44px -22px rgba(12, 26, 40, .45); }
  .offer p { margin: 0; }
  .offer-big { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px auto 0; color: var(--coral); }
  .offer-big::before, .offer-big::after { content: ""; flex: 0 1 44px; height: 2px; border-radius: 2px; background: currentColor; opacity: .45; }
  .offer-big small { color: var(--coral-dark); max-width: 8.5em; font: 800 .78rem/1.15 var(--sans); text-align: right; letter-spacing: .16em; text-transform: uppercase; }
  .offer-big b { font: italic 500 2.6rem/1 var(--display); letter-spacing: -.02em; }
  .offer-h { font: 600 1.25rem/1.15 var(--display); text-wrap: balance; }
  .offer-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
  .offer-tiers { align-items: end; }
  .offer-tiers li { display: grid; justify-items: center; gap: 6px; padding: 14px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--sand); text-align: center; }
  .offer-tiers b { font: 600 1.7rem/1 var(--display); letter-spacing: -.02em; color: var(--sea); }
  .offer-tiers span { font: 700 .82rem/1.2 var(--sans); color: var(--ink); hyphens: auto; }
  .offer-tiers .best { padding-block: 20px; border-color: var(--night); background: var(--night); box-shadow: 0 12px 22px -12px rgba(12, 26, 40, .7); }
  .offer-tiers .best b { font-size: 1.95rem; }
  .offer-tiers .best b { color: var(--sun); }
  .offer-tiers .best span { color: #fff; }
}
/* Desktop: discount first, then the tear line, then "Book 2 trips" (owner chose option 1, 22 Nov). --cut is now
   the width of the discount part, so the notches stay on the tear line in every language. */
@media (min-width: 981px) {
  .tk { --cut: 112px; }
  .tk.best { --cut: 152px; }
  .tk .amt { order: -1; padding-inline: 8px; text-align: center; }
  .tk .who { border-right: 0; border-left: 2px dashed #d9cfbf; }
  .tk.best .who { border-left-color: rgba(12, 26, 40, .35); }
}

/* The trip list is light; the total and next action stay together below. */
.ticket[data-summary] { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; isolation: isolate; background: var(--night); color: var(--ink); border: 0; border-radius: 24px; }
.cart-head { flex: none; padding: 20px 22px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.ticket[data-summary] .cart-head h3 { display: block; margin: 0; font: 600 1.4rem/1.2 var(--display); color: var(--ink); }
.ticket[data-summary] .status { margin: 6px 0 10px; color: var(--ink-2); font-size: .875rem; }
.ticket[data-summary] .status:empty { display: none; }
.cart-party-editor { margin-top: 12px; }
.cart-party-editor > summary, .trip-people > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; list-style: none; cursor: pointer; font-size: .875rem; color: var(--ink-2); }
.cart-party-editor > summary::-webkit-details-marker, .trip-people > summary::-webkit-details-marker { display: none; }
.cart-edit-label { color: var(--sea); font-size: .8125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ticket[data-summary] .cart-party-editor .partybar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; padding: 0; background: none; border: 0; box-shadow: none; }
.ticket[data-summary] .cart-party-editor .pb-label, .ticket[data-summary] .cart-party-editor output { color: var(--ink); }
.ticket[data-summary] .cart-party-editor .pb-note { display: none; }
.ticket[data-summary] .cart-party-editor .stepper button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.ticket[data-summary] [data-lines] { flex: 1 1 auto; min-height: 60px; margin: 0; padding: 0 22px; background: #fff; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c5cdd0 #f5f7f8; }
.ticket[data-summary] [data-lines] > li { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid #edf0f1; font-size: .875rem; line-height: 1.45; }
.ticket[data-summary] [data-lines] > li:last-child { border-bottom: 0; }
.ticket[data-summary] [data-lines] .ln { flex: 1 1 0; min-width: 0; color: var(--ink); }
.ticket[data-summary] [data-lines] .ln span, .ticket[data-summary] [data-lines] .amt { color: var(--ink); }
.ticket[data-summary] [data-lines] .amt { flex: none; align-self: flex-start; font-weight: 600; white-space: nowrap; }
.ticket[data-summary] .rm { width: 24px; height: 24px; margin-left: 6px; border: 0; background: #f0f2f3; color: var(--ink-2); cursor: pointer; }
.ticket[data-summary] .trip-people { flex-basis: 100%; min-width: 0; }
.ticket[data-summary] .trip-people .cart-edit-label { color: var(--sea); }
.ticket[data-summary] .whos { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.ticket[data-summary] .who { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); }
.ticket[data-summary] .who span { color: var(--ink-2); font-size: .8125rem; }
.ticket[data-summary] .who button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #c8d0d4; background: #fff; color: var(--ink); border-radius: 50%; cursor: pointer; }
.ticket[data-summary] .who button:disabled { opacity: .35; cursor: default; }
.ticket[data-summary] [data-lines] .note { padding-top: 0; color: var(--ink-2); font-size: .75rem; }
.ticket[data-summary] .empty { color: var(--ink-2); }
.ticket[data-summary] .ticket-foot { display: block; flex: none; padding: 16px 22px 18px; background: var(--night); color: #fff; }
.ticket[data-summary] .perf, .ticket[data-summary] .pp, .ticket[data-summary] .progress .bar { display: none; }
.ticket[data-summary] .disc { margin: 0 0 10px; color: var(--sun); font-size: .875rem; }
.ticket[data-summary] .total { align-items: center; margin: 0; }
.ticket[data-summary] .total > span { color: #c1ccd4; font-size: .8125rem; }
.ticket[data-summary] .total strong { color: #fff; font-size: 1.8rem; white-space: nowrap; }
.ticket[data-summary] .progress { margin-top: 6px; }
.ticket[data-summary] .progress p { margin: 0; color: #d0d8de; font-size: .75rem; }
.ticket[data-summary] .btn { width: 100%; margin-top: 12px; padding-block: 11px; justify-content: center; }
.ticket[data-summary] .clear { margin-top: 10px; font-size: .75rem; }
.cart-tools { display: none; }
@media (min-width: 1001px) {
  .ticket[data-summary] { top: 16px; max-height: calc(100dvh - 32px); }
}
@media (max-width: 1000px) {
  body.has-ticket:not(.home), body.home.has-picks { padding-bottom: calc(135px + env(safe-area-inset-bottom)); }
  .ticket[data-summary] { position: fixed; inset: auto 0 0; z-index: 30; border-radius: 20px 20px 0 0; }
  body.home:not(.has-picks) .ticket[data-summary] { display: none !important; }
  .ticket[data-summary] .cart-tools { display: flex; justify-content: space-between; flex: none; gap: 16px; padding: 8px 18px; background: #fff; border-bottom: 1px solid var(--line); }
  .cart-tools button { min-height: 32px; padding: 0; border: 0; background: none; color: var(--sea); font: 600 .8125rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .ticket[data-summary]:not(.cart-open) .cart-head, .ticket[data-summary]:not(.cart-open) [data-lines] { display: none; }
  .ticket[data-summary]:not(.cart-open) .ticket-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .ticket[data-summary]:not(.cart-open) .total { grid-column: 1; grid-row: 1; display: block; }
  .ticket[data-summary]:not(.cart-open) .total > span { display: block; font-size: .75rem; }
  .ticket[data-summary]:not(.cart-open) .total strong { display: block; margin-top: 4px; font-size: 1.6rem; }
  .ticket[data-summary]:not(.cart-open) .btn { grid-column: 2; grid-row: 1; width: auto; margin: 0; padding-inline: 22px; }
  .ticket[data-summary]:not(.cart-open) .disc,
  .ticket[data-summary]:not(.cart-open) .progress, .ticket[data-summary]:not(.cart-open) .clear { display: none; }
  .ticket[data-summary].cart-open { display: flex !important; max-height: min(85dvh, 760px); }
  .ticket[data-summary].cart-open [data-lines] { display: block !important; padding-inline: 18px; }
  .ticket[data-summary].cart-open .cart-head h3, .ticket[data-summary].cart-open .status:not(:empty) { display: block !important; }
  .ticket[data-summary].cart-open .disc:not(:empty) { display: flex !important; }
  .ticket[data-summary].cart-open .clear { display: block !important; }
  .ticket[data-summary].cart-open .cart-head { padding: 14px 18px; }
  .ticket[data-summary].cart-open .cart-tools [data-cart-people] { display: none; }
  .ticket[data-summary].cart-open .ticket-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .ticket[data-summary] .total .was { font-size: .65em; }
}

/* Long translated words wrap instead of widening the page (de/nl/ru terms titles, ru footer, fr people bar). */
.page-head h1 { hyphens: auto; overflow-wrap: anywhere; }
.foot-grid > * { min-width: 0; overflow-wrap: anywhere; }
.tab-panel .save { white-space: normal; }
@media (max-width: 380px) {
  .step-panel { grid-template-columns: minmax(0, 1fr); }
  .own-trip .step-nav { flex-wrap: wrap; }
  .who-row .who-big { min-width: 0; }
  .who-big .pb-label { flex-wrap: wrap; min-width: 0; }
}

/* Phones: "Red Sea" label on the right of its photo, next to "Desert" (owner). */
@media (max-width: 760px) {
  .trio figure:first-child figcaption { left: auto; right: 10px; }
}

/* Phones: smaller text and narrower side gutters so the page breathes (owner). */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .wrap { width: min(1180px, 100% - 24px); }
  h1, .hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .page-head h1 { font-size: 1.85rem; }
  .lede, .hero .lede, .page-head .lede { font-size: .95rem; }
  .section { padding: 32px 0; }
  .step-panel, .steps .step-panel { padding: 16px; border-radius: 20px; }
  .pkg, .planner .tab-panel .pkg, .steps .tab-panel .pkg { padding: 16px; border-radius: 18px; }
  .package-guide { padding: 12px; }
  .faq details { padding-inline: 14px; }
}

/* Desktop: slimmer header and tighter section spacing (owner: more elegant). */
@media (min-width: 761px) {
  .top.solid .top-row { height: 68px; }
  .top .btn { padding: 10px 16px; }
  .section { padding: clamp(40px, 5vw, 64px) 0; }
}

/* Menu text a little smaller (owner). */
@media (min-width: 761px) {
  .top nav a:not(.btn), .top .btn { font-size: .85rem; }
  .top nav { gap: 18px; }
}
/* Hero: half the screen on phones, the whole first screen on desktop (owner). */
@media (max-width: 760px) {
  .hero-img.trio { grid-template-rows: 30svh 20svh; }
}
@media (min-width: 761px) {
  .hero { min-height: calc(100svh - 103px); } /* fills the screen under the 35 px top strip + 68 px menu bar */
}

/* Desktop: photo labels pure white, the dark shade fades out above them (owner). */
@media (min-width: 761px) {
  .hero:has(.centered)::before { -webkit-mask-image: linear-gradient(180deg, transparent 22%, #000 40%); mask-image: linear-gradient(180deg, transparent 22%, #000 40%); }
  .trio figcaption { background: rgba(0, 0, 0, .5); }
}

/* "Your details" inside step 3: one box only (the panel), no second border around the form (owner, 22 Nov). */
.step-panel #details { border: 0; border-radius: 0; background: none; }

/* "Your details": compact and calmer (owner, 22 Nov). Light-bordered fields, shorter inputs, tighter rhythm;
   on phones the two dates share a row. Inputs stay 16px so iPhones don't zoom on focus. */
#details .q-title h3 { font-size: 1.25rem; }
#details .contact-grid { gap: 12px 14px; margin-top: 14px; }
#details .field { gap: 4px; }
#details .field label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
#details .field label .muted { font-weight: 400; color: #8a96a0; }
#details .field input, #details .field select, #details .field textarea { font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background-color: #fbf9f5; }
#details .field input, #details .field select { height: 44px; line-height: 44px; padding-inline: 12px; }
#details .field input[type="date"] { line-height: normal; }
#details .field textarea { min-height: 72px; padding: 10px 12px; }
#details .field input:focus, #details .field select:focus, #details .field textarea:focus { border-color: var(--sea); background-color: #fff; box-shadow: 0 0 0 3px rgba(11, 122, 131, .12); }
#details .field .help { font-size: .75rem; color: #8a96a0; }
#details .send { gap: 8px; margin-top: 16px; }
@media (max-width: 640px) {
  #details .contact-grid { grid-template-columns: 1fr 1fr; }
  #details .contact-grid > .field { grid-column: 1 / -1; }
  #details .contact-grid > .field:has(input[type="date"]) { grid-column: auto; min-width: 0; align-self: stretch; align-content: end; } /* inputs line up even if one label wraps more */
  #details .field input[type="date"] { min-width: 0; padding-inline: 10px; }
  #details .send { flex-direction: column; align-items: stretch; text-align: center; }
  #details .send .btn { justify-content: center; }
}

/* Phones: "A day at sea?" and its Yes/No stay on one row (owner, 22 Nov). */
@media (max-width: 760px) {
  .q-head { flex-wrap: wrap; gap: 8px 10px; } /* wraps only if a title cannot fit next to Yes/No */
  .q-head .q-title { gap: 10px; flex: 1 1 auto; min-width: min-content; }
  .q-head .q-title .ico { width: 36px; height: 36px; border-radius: 11px; }
  .q-head .q-title .ico svg { width: 20px; height: 20px; }
  .q-head .q-title h3 { font-size: 1.1rem; }
  .q-head .yesno { flex: none; margin-left: auto; padding: 3px; }
  .q-head .yesno button { padding: 7px 13px; font-size: .85rem; }
}

/* Phones: the package saving pill sits beside the package name (owner, 22 Nov). */
@media (max-width: 760px) {
  .tab-panel .pkg { display: grid; grid-template-columns: minmax(min-content, 1fr) auto; column-gap: 12px; align-items: center; }
  .tab-panel .pkg > * { grid-column: 1 / -1; }
  .tab-panel .pkg > .eyebrow { grid-row: 1; }
  .tab-panel .pkg > h3 { grid-column: 1; grid-row: 2; overflow-wrap: break-word; hyphens: manual; }
  .tab-panel .pkg > .price-block { display: contents; }
  .tab-panel .pkg .price-block > * { grid-column: 1 / -1; }
  /* Compact "−15%" badge; the full sentence stays in the element for screen readers. */
  .tab-panel .pkg .price-block > .save[data-percent] { grid-column: 2; grid-row: 2; justify-self: end; padding: 6px 12px; font-size: 0; line-height: 1; white-space: nowrap; }
  .tab-panel .pkg .save[data-percent]::before { content: "−" attr(data-percent) "%" / ""; font: 800 1rem/1 var(--sans); }
  .tab-panel .pkg .save[hidden] { display: none; }
}
@media (max-width: 380px) {
  .tab-panel .pkg > h3, .steps .tab-panel .pkg > h3 { font-size: 1.3rem; }
  .q-head .q-title .ico { display: none; }
  .tab-panel .pkg .save[hidden] { display: none; }
}

/* Hotel pickup said once above the trips, not on every card (owner, 22 Nov). */
.all-pickup { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--sea); }
.all-pickup svg { width: 20px; height: 20px; flex: none; }
/* Phones: trip cards get the width back (owner, 22 Nov): the trip groups lose their own box and padding,
   the step panel keeps a small edge, and the Add / Details buttons are smaller. */
@media (max-width: 760px) {
  .step-panel, .steps .step-panel { padding: 16px 8px; }
  .step-panel > h2, .step-panel > p, .step-panel > .package-guide, .all-pickup { margin-inline: 6px; }
  .step-panel .q { margin: 0; padding: 18px 0 8px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .opt .pick, .opt .qv { min-height: 34px; font-size: .85rem; }
  .opt .qv { padding-inline: 12px; }
}
