/* First Class Carts: design system pass (Dec 2026, Mobbin-led redesign).
   Loaded last on every public page. One scale for type, space, radius and buttons,
   plus the trust components that sit where a visitor's doubt appears:
   - .assure / .gtk   "Good to know" check lists (Booking.com, Airbnb "You won't be charged yet")
   - .promise         reassurance rows beside the main action (Uber reserve screen)
   - .route / .itin   route line and Start / 1 / 2 / End itinerary (Going, Tripadvisor)
   - .legal-toc, .guide-toc card   "In this article" side card (GetYourGuide)
   - .job-grid        role details with a sticky apply card (Contra)
   - .nf-links        a dead end that offers the next step (GetYourGuide no results, Perk) */

:root {
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ok: #0b7480;
  --sec: clamp(64px, 8vw, 120px);
  --gap: clamp(16px, 2vw, 24px);
}

/* ---------- type scale ---------- */
body { font-size: 17px; line-height: 1.6 }
h2 { font-size: clamp(30px, 3.3vw, 48px); line-height: 1.04; letter-spacing: -.032em }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.015em }
.sec-intro { font-size: clamp(16.5px, 1.3vw, 18px) }
.lede { font-size: clamp(17px, 1.35vw, 19px) }
.ih h1 { font-size: clamp(40px, 6vw, 84px); line-height: .96; letter-spacing: -.042em; max-width: 13ch }
.page-hero h1, .nf h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -.038em }
.stop h2 { font-size: clamp(28px, 3vw, 40px) }
.two-col h2 { font-size: clamp(26px, 2.6vw, 34px) }

/* kickers read as plain words, not shouted labels */
.kick, .stop-k, .tl-when, .toc-title, .co-label {
  text-transform: none !important; letter-spacing: 0 !important;
  font-size: 14.5px !important; font-weight: 600 !important
}
.stop-k { color: var(--teal) !important }
.co-label { color: var(--ink-2) !important }
.toc-title { color: var(--ink) !important; font-size: 15px !important; font-weight: 700 !important }
.foot-col h2 { text-transform: none; letter-spacing: 0; font-size: 14px; color: rgba(255, 255, 255, .55) }
.incl h3 { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); font-weight: 700 }

/* ---------- buttons and focus ---------- */
.btn { min-height: 52px; border-radius: 14px }
.btn-sm { min-height: 44px; border-radius: 12px }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px }
.island :focus-visible, .closer :focus-visible, .page-cta :focus-visible, .foot :focus-visible,
.gcard:focus-visible, .duo-card:focus-visible, .hero :focus-visible { outline-color: var(--aqua) }
.text-link { min-height: 44px; align-items: center; padding-bottom: 0; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px }

/* 44px tap targets in the footer, crumbs and side lists */
.foot-col { gap: 0 }
.foot-col a { min-height: 44px }
.foot-col h2 { margin-bottom: 4px }
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px }
.crumbs { align-items: center }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px }
.guide-toc a { min-height: 44px; align-items: center }

/* ---------- one radius for photographs and cards ---------- */
.cc { border-radius: var(--r-lg); overflow: hidden }
.cc + .cc { margin-top: 0 }
.fleet-list { gap: var(--gap) }
.trio a, .strip figure, .story-photo, .ih-mosaic > *, .g-fig.g-fig-cap picture, .site, .map { border-radius: var(--r) }
.gcard, .duo-card, .deal { border-radius: var(--r-lg) }
.ih-media { border-radius: var(--r-lg) }
.deal-tag { background: none; padding: 0; border-radius: 0; color: var(--ink-2); font-weight: 600 }

/* ih-meta: a quiet line of facts, no coloured dots */
.ih-meta { gap: 4px 0 }
.ih-meta span::before { content: none }
.ih-meta span:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--ink-3) }

/* ---------- home: booker on phones ----------
   The entrance animation used to keep a transform on .booker after it finished, which made the
   phone date sheet (position: fixed) size itself to the booker instead of the screen, and the
   day / month tabs sat on top of it. Let the animation end cleanly and drop the tabs under the sheet. */
.booker { animation-fill-mode: backwards }
.booker-wrap.is-raised .booker-tabs { z-index: 40 }

/* ---------- home: trust list under the booker ---------- */
.assure {
  list-style: none; margin: 22px auto 0; padding: 0; max-width: 1100px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line)
}
.assure li { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px 16px 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2) }
.assure li + li { padding-left: 18px; border-left: 1px solid var(--line) }
.assure b { color: var(--ink); font-weight: 700 }
.assure .i { width: 18px; height: 18px; margin-top: 1px; color: var(--ok); stroke-width: 2.4 }
@media (prefers-reduced-motion: no-preference) { .assure { animation: fade .8s ease 1.1s both } }
@media (max-width: 900px) {
  .assure { grid-template-columns: 1fr 1fr }
  .assure li:nth-child(3) { padding-left: 0; border-left: 0 }
  .assure li:nth-child(n+3) { border-top: 1px solid var(--line) }
}
@media (max-width: 760px) {
  .assure { margin-top: 18px }
  .assure li { padding: 14px 10px 14px 0; font-size: 14px }
  .assure li + li { padding-left: 12px }
  .assure li:nth-child(3) { padding-left: 0 }
}

/* ---------- home: rates aside gets a "Good to know" list ---------- */
.incl-sub { margin-top: 28px; padding: 16px 0 6px; border-top: 1.5px solid var(--ink) }
.incl-know li { color: var(--ink-2) }

/* ---------- "Good to know" card (checkout, terms) ---------- */
.gtk { margin: 0 0 22px; padding: 18px 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line) }
.gtk-h { font-size: 17px; letter-spacing: -.01em; margin: 0 0 6px }
.gtk-list { list-style: none; margin: 0; padding: 0 }
.gtk-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2) }
.gtk-list li + li { border-top: 1px solid var(--line) }
.gtk-list .i { width: 20px; height: 20px; margin-top: 1px; color: var(--ok); stroke-width: 2.4 }

/* checkout: one quiet line under the button, one green line in the summary */
.co-assure { justify-content: center; text-align: center }
.co-sum-free { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #e3f3f1; color: #075a62; font-size: 14.5px; font-weight: 600; line-height: 1.4 }
.co-sum-free .i { width: 18px; height: 18px; margin-top: 1px; stroke-width: 2.4 }
.co-card { border-radius: var(--r-lg) }
.co-sum-card { border-radius: var(--r-lg) }
.co-dates small { border-radius: 8px }

/* ---------- airport pickup: reassurance rows by the headline ---------- */
.promise { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line) }
.promise li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--ink-2) }
.promise b { color: var(--ink) }
.promise .i { width: 22px; height: 22px; color: var(--teal) }

/* timeline: one thin line, small numbered stops (Tripadvisor itinerary) */
.timeline::before { left: 17px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 5px, transparent 5px 10px) }
.timeline li { grid-template-columns: 36px minmax(0, 1fr); gap: 22px; padding-bottom: 32px }
.tl-n { width: 36px; height: 36px; font-size: 15px; background: var(--ink); box-shadow: 0 0 0 5px var(--paper) }
.sec-sand .tl-n { box-shadow: 0 0 0 5px var(--sand) }
.timeline h3 { margin-top: 4px }
.tl-when { margin-top: 6px }

/* ---------- island guide: route line in the hero ---------- */
.route { list-style: none; margin: 32px 0 0; padding: 16px 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r) }
.route li { display: flex; align-items: center }
.route b { font-size: 15px; font-weight: 700; white-space: nowrap }
.route li:not(.route-leg) b::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2.5px var(--ink); vertical-align: 0 }
.route li:last-child b::before { background: var(--teal); box-shadow: none }
.route-leg { flex: 1 1 40px; min-width: 56px; justify-content: center; position: relative; padding: 0 8px }
.route-leg::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2px dashed var(--teal); opacity: .55 }
.route-leg span { position: relative; padding: 0 6px; background: #fff; font-size: 13px; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; white-space: nowrap }
.route-total { margin-top: 12px; font-size: 14.5px; color: var(--ink-2) }
@media (max-width: 560px) {
  .route { flex-direction: column; align-items: stretch; gap: 0; padding: 14px 16px }
  .route-leg { justify-content: flex-start; min-height: 30px; padding: 0 0 0 22px }
  .route-leg::before { left: 4px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--teal) }
  .route-leg span { padding: 0 }
}

/* island guide: itinerary markers on the stops */
.itin .stop[data-mark] { position: relative; padding-left: 80px }
.itin .stop[data-mark]::before {
  content: attr(data-mark); position: absolute; left: 0; top: clamp(48px, 5vw, 72px);
  display: grid; place-items: center; min-width: 44px; height: 32px; padding: 0 10px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 700 13.5px/1 var(--display); font-variant-numeric: tabular-nums
}
.itin .stop[data-mark="Start"]::before, .itin .stop[data-mark="End"]::before { background: var(--teal) }
.itin .stop[data-mark]:first-child::before { top: 0 }
.itin .stop[data-mark]::after { content: ""; position: absolute; left: 21px; top: calc(clamp(48px, 5vw, 72px) + 40px); bottom: -8px; border-left: 2px dashed var(--line) }
.itin .stop[data-mark]:first-child::after { top: 40px }
.itin .stop[data-mark="End"]::after { content: none }
.itin .stop-k span { display: inline !important; padding: 0; background: none; color: var(--ink); font-weight: 700 }
.itin .stop-k span::after { content: " · "; color: var(--ink-3); font-weight: 500 }
.itin .stop { border-top: 0 }
.itin .stop[data-mark="Start"] .stop-k span { display: none !important }
@media (max-width: 560px) {
  .itin .stop[data-mark] { padding-left: 62px }
  .itin .stop[data-mark]::before { min-width: 38px; height: 28px; font-size: 12.5px; padding: 0 8px }
  .itin .stop[data-mark]::after { left: 18px }
}

/* ---------- San Pedro guide ---------- */
/* reef figures: a short ruled list, not a band of big numbers */
.stop .facts, .stop .facts.facts-3 { display: block; margin-top: 24px; border-top: 1.5px solid var(--ink); border-bottom: 0 }
.stop .facts > div, .stop .facts > div + div { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-left: 0; border-bottom: 1px solid var(--line) }
.stop .facts dd { order: 1; font-size: 18px !important; font-weight: 700; letter-spacing: -.01em; white-space: nowrap }
.stop .facts dd small { font-size: 15px; margin-left: 3px }
.stop .facts dt { max-width: none; font-size: 16px; color: var(--ink-2) }
/* reef site tags: plain text with dots */
.site-tags { gap: 0 }
.site-tags li { padding: 0; background: none; border-radius: 0; color: var(--ink-3); font-size: 13.5px }
.site-tags li:not(:last-child)::after { content: "·"; margin: 0 8px }
/* tips: no tinted icon tiles */
.tips li .tip-i { background: none; padding: 0; width: 22px; height: 22px; border-radius: 0 }

/* desktop: the contents become an "In this article" card with the booking link in it */
@media (min-width: 1081px) {
  .guide-grid { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(40px, 5vw, 88px) }
  .guide-toc { top: 96px; padding: 20px 20px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 48px -36px rgba(10, 43, 51, .35) }
  .guide-toc ol { margin-top: 10px; border-left: 0 }
  .guide-toc a { padding: 8px 10px; margin: 0 -10px; border-left: 0; border-radius: 10px; font-size: 15px }
  .guide-toc a:hover, .guide-toc a.is-current { background: var(--paper); color: var(--ink) }
  .guide-toc a.is-current { font-weight: 700 }
  .guide-toc .toc-book { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 16px; padding: 0 16px; border-radius: 12px; background: var(--red); color: #fff; text-decoration: none; font-size: 15px }
  .guide-toc .toc-book:hover { background: var(--red-d) }
}

/* ---------- careers: role details, sticky apply card ---------- */
.job-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start }
.job-main .rows { margin-top: 28px }
.job-h2 { margin-top: clamp(48px, 6vw, 72px) }
.job-side { position: sticky; top: 96px }
.job-side .apply { box-shadow: 0 30px 60px -40px rgba(10, 43, 51, .4) }
.ih-cta { margin-top: 22px }
@media (min-width: 901px) { .ih-cta { display: none } }
@media (max-width: 900px) {
  .job-grid { grid-template-columns: minmax(0, 1fr) }
  .job-side { position: static }
}

/* check lists: a plain teal tick, no white tile */
.check-i li .i { width: 22px; height: 22px; padding: 0; background: none; border-radius: 0; color: var(--teal); stroke-width: 2.2 }

/* image link cards: enough shade under the words to read them on any photo */
.duo-card::after { background: linear-gradient(180deg, rgba(4, 30, 36, 0) 15%, rgba(4, 30, 36, .55) 55%, rgba(4, 30, 36, .9) 100%) }
.duo-card .kick { color: rgba(255, 255, 255, .88) !important }

/* ---------- wind dancer / about: story row ---------- */
.story-plain .story-photo { aspect-ratio: 4 / 3 }
.story-cta { margin-top: 28px }
@media (max-width: 760px) { .story-cta { width: 100% } }

/* ---------- legal pages ---------- */
.legal-page { padding-block: clamp(28px, 4vw, 56px) clamp(64px, 8vw, 112px) }
.legal-page .crumbs { margin-bottom: clamp(16px, 2vw, 28px) }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: clamp(32px, 5vw, 88px); align-items: start }
.legal-page .legal { padding: 0; max-width: 760px }
.legal h2 { scroll-margin-top: 96px }
.legal-toc { position: sticky; top: 96px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg) }
.legal-toc ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: lt }
.legal-toc li { counter-increment: lt }
.legal-toc ol a { display: flex; gap: 10px; align-items: center; min-height: 40px; padding: 4px 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2) }
.legal-toc ol a::before { content: counter(lt); min-width: 1.4em; font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 13px }
.legal-toc ol a:hover { background: var(--paper); color: var(--ink) }
.legal-toc .toc-book { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink); text-underline-offset: 4px }
.legal-short { margin: 8px 0 28px }
.legal .gtk-list { padding: 0 }
.legal .gtk-list li { margin: 0; color: var(--ink-2) }
.legal-page .crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--ink-3) }
.legal-page .crumbs a { color: var(--ink-2); text-decoration: none }
.legal-page .crumbs a:hover { color: var(--ink); text-decoration: underline }
.legal-short .gtk-h { font-size: 18px; margin: 0 0 6px }
@media (max-width: 960px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr) }
  .legal-toc { position: static }
  .legal-toc ol { columns: 2; column-gap: 24px }
}
@media (max-width: 560px) { .legal-toc ol { columns: 1 } }

/* ---------- 404 ---------- */
.nf { padding: clamp(40px, 7vw, 112px) 0 clamp(64px, 9vw, 128px) }
.nf-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center }
.nf h1 { max-width: 12ch }
.nf-links { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1.5px solid var(--ink) }
.nf-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink) }
.nf-links b { display: block; font-size: 17.5px }
.nf-links small { display: block; font-size: 14.5px; color: var(--ink-2) }
.nf-links .i { color: var(--teal); transition: transform .25s var(--ease-out) }
.nf-links a:hover b { text-decoration: underline; text-underline-offset: 4px }
.nf-links a:hover .i { transform: translateX(4px) }
.nf-help { margin-top: 22px; color: var(--ink-2) }
.nf-help a { color: var(--ink); font-weight: 700 }
.nf-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--sand) }
.nf-photo picture, .nf-photo img { display: block; width: 100%; height: 100%; object-fit: cover }
@media (max-width: 760px) {
  .nf-grid { grid-template-columns: minmax(0, 1fr) }
  .nf-photo { order: -1; aspect-ratio: 16 / 10 }
}

/* ---------- phones ---------- */
@media (max-width: 1080px) {
  .itin { margin-top: 28px }
}
@media (max-width: 760px) {
  body { font-size: 16px }
  .sec { padding: var(--sec) 0 }
  .ih h1 { font-size: clamp(38px, 11vw, 52px) }
  .stop .tips { grid-template-columns: 1fr }
}
