/* ═══════════════════════════════════════════════════════════════════
   CABANA TOURS · the feel  (cabana-tours-feel.js)
   Motion and small widgets shared by every tours page and /experiences.
   Colours come from the page: --cf-acc (action), --cf-ink / --cf-bg for
   the widgets, so the paper pages and the pit lane both look like
   themselves. Only prefers-reduced-motion turns motion off.
   ═══════════════════════════════════════════════════════════════════ */

body.ct-x { --cf-acc: #F2541B; --cf-acc-ink: #fff; --cf-ease: cubic-bezier(.22, 1, .36, 1); --cf-spring: cubic-bezier(.34, 1.56, .64, 1); }
body.ct-x.xp { --cf-acc: #D4FF3A; --cf-acc-ink: #10130A; }

/* ── press feedback: every tap answers ───────────────────────────── */
body.ct-x :is(.ct-btn, .tw-btn, .xp-btn, .xp-book, .xp-chip, .xp-cta, .ct-date, .ct-icon-b, .ct-heart, .xp-meter-pick button, .xp-kind-go, .xp-kind-follow, .cf-share-b):active:not(:disabled) {
  scale: .965; transition: scale .08s ease-out;
}

/* ── tilt, glare, depth ──────────────────────────────────────────── */
.cf-glare {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(circle at var(--cf-px, 50%) var(--cf-py, 50%), rgba(255,255,255,.26), rgba(255,255,255,.06) 32%, transparent 58%);
  mix-blend-mode: soft-light; transition: opacity .35s ease;
}
.cf-tilt > .cf-glare, .cf-tilt .ct-card-media > .cf-glare, .cf-tilt .ct-pass-media > .cf-glare { opacity: 1; }
.ct-card.cf-tilt .ct-card-media,
.ct-pass.cf-tilt .ct-pass-media {
  transform: perspective(900px) rotateX(var(--cf-rx, 0deg)) rotateY(var(--cf-ry, 0deg)) translateZ(0);
  transition: transform .12s linear; will-change: transform;
}
.ct-card .ct-card-media, .ct-pass .ct-pass-media { transition: transform .6s var(--cf-ease); }
.xp-card.cf-tilt, .xp-kind.has.cf-tilt, .cf-tiltable.cf-tilt {
  transform: perspective(1000px) rotateX(var(--cf-rx, 0deg)) rotateY(var(--cf-ry, 0deg)) translateY(-6px);
  transition: transform .12s linear, box-shadow .35s; will-change: transform;
}
.xp-card.cf-tilt .xp-card-m > img { transform: scale(1.09) translate(calc((50% - var(--cf-px, 50%)) * .06), calc((50% - var(--cf-py, 50%)) * .06)); transition: transform .25s linear; }
.ct-card.cf-tilt .ct-card-media > img { transform: scale(1.09) translate(calc((50% - var(--cf-px, 50%)) * .05), calc((50% - var(--cf-py, 50%)) * .05)); transition: transform .25s linear; }

/* ── magnetic CTAs ───────────────────────────────────────────────── */
[data-magnet] { transition: translate .45s var(--cf-spring), transform .35s var(--cf-spring), box-shadow .35s, background .25s, color .25s; }
[data-magnet].cf-mag { transition: translate .12s linear, transform .35s var(--cf-spring), box-shadow .35s, background .25s, color .25s; }

/* ── hover previews ──────────────────────────────────────────────── */
.cf-preview { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.cf-preview.on { opacity: 1; }

/* ── bursts and confetti ─────────────────────────────────────────── */
.cf-burst { position: fixed; z-index: 100000; width: 0; height: 0; pointer-events: none; }
.cf-burst i { position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%; }
.cf-burst b { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 2px solid; }
.cf-confetti { position: fixed; inset: 0; z-index: 99996; width: 100vw; height: 100vh; pointer-events: none; }

/* ── rolling numbers keep their width steady ─────────────────────── */
.cf-rolling, [data-cf-num] { font-variant-numeric: tabular-nums; }

/* ── re-ordered lists drop their entrance animation once settled ─── */
.cf-flipped { animation: none !important; }

/* ── reveal on first sight ───────────────────────────────────────── */
/* Hidden only once the script is running, so nothing stays invisible
   if it never loads. */
html.cf-on .cf-rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--cf-ease), transform .9s var(--cf-ease); }
html.cf-on .cf-rv.in { opacity: 1; transform: none; }

/* ═══ THE SHEET: entrance, gallery, morph ══════════════════════════ */
.ct-sheet.open .ct-sheet-body > * { animation: cfRise .62s var(--cf-ease) both; }
.ct-sheet.open .ct-sheet-body > :nth-child(1) { animation-delay: .10s; }
.ct-sheet.open .ct-sheet-body > :nth-child(2) { animation-delay: .15s; }
.ct-sheet.open .ct-sheet-body > :nth-child(3) { animation-delay: .20s; }
.ct-sheet.open .ct-sheet-body > :nth-child(4) { animation-delay: .25s; }
.ct-sheet.open .ct-sheet-body > :nth-child(5) { animation-delay: .30s; }
.ct-sheet.open .ct-sheet-body > :nth-child(6) { animation-delay: .35s; }
.ct-sheet.open .ct-sheet-body > :nth-child(n+7) { animation-delay: .40s; }
@keyframes cfRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* The cover breathes while the sheet is open. */
.ct-sheet.open .ct-gal-track > img:first-child { animation: cfBreathe 16s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes cfBreathe { from { transform: scale(1); } to { transform: scale(1.07); } }
/* Every photo in the strip sits in one layer, in order, so the breathing
   cover never paints over its neighbour mid-swipe. */
.ct-gal-track > * { position: relative; }
.ct-sheet.vt { transition: none !important; }
.ct-sheet.cf-drag { transition: none !important; }
.ct-sheet.cf-snap { transition: transform .45s var(--cf-spring) !important; }

/* The gallery says where you are and, with a mouse, has arrows. */
.cf-gal-n { position: absolute; z-index: 3; top: 18px; left: 18px; padding: 6px 10px; border-radius: 999px; background: rgba(11,9,24,.55); color: #fff; font: 600 11.5px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .06em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cf-gal-b { position: absolute; z-index: 3; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255,255,255,.3); background: rgba(11,9,24,.5); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s, transform .3s var(--cf-spring), background .2s; }
.cf-gal-b svg { width: 18px; height: 18px; }
.cf-gal-b.prev { left: 14px; } .cf-gal-b.next { right: 14px; }
.ct-gal:hover .cf-gal-b, .cf-gal-b:focus-visible { opacity: 1; }
.cf-gal-b:hover { background: rgba(11,9,24,.78); transform: scale(1.06); }
.cf-gal-b:disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .cf-gal-b { display: none; } }

/* Sheet: a quiet line of real urgency and real popularity. */
.cf-pulse { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cf-pulse:empty { display: none; }
.cf-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 12px; border-radius: 999px; font: 650 12.5px/1.25 var(--ct-f, system-ui); background: rgba(255,248,239,.07); border: 1px solid rgba(255,248,239,.12); color: rgba(255,248,239,.86); }
.cf-pill i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.cf-pill.hot { color: #FFC56B; background: rgba(255,176,32,.1); border-color: rgba(255,176,32,.3); }
.cf-pill.hot i { animation: cfDot 1.6s ease-in-out infinite; }
.cf-pill.love { color: #FF8FB6; background: rgba(255,111,168,.09); border-color: rgba(255,111,168,.26); }
.cf-pill.new { color: #7FF0E5; background: rgba(18,224,208,.08); border-color: rgba(18,224,208,.25); }
@keyframes cfDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,176,32,.55); } 60% { box-shadow: 0 0 0 7px rgba(255,176,32,0); } }

/* Sheet: what your group pays. */
.cf-group { margin-top: 18px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(255,248,239,.07), rgba(255,248,239,.03)); border: 1px solid rgba(255,248,239,.12); }
.cf-group-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cf-group-top > span { font: 600 11px/1.2 var(--ct-f, system-ui); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,248,239,.55); }
.cf-step { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(11,9,24,.5); border: 1px solid rgba(255,248,239,.12); }
.cf-step button { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,248,239,.08); color: #FFF8EF; font: 600 18px/1 var(--ct-f, system-ui); transition: background .2s, transform .25s var(--cf-spring); }
.cf-step button:hover:not(:disabled) { background: rgba(255,248,239,.16); }
.cf-step button:disabled { opacity: .3; cursor: default; }
.cf-step output { min-width: 64px; text-align: center; font: 650 14px/1 var(--ct-f, system-ui); color: #FFF8EF; font-variant-numeric: tabular-nums; }
.cf-step output.bump { animation: cfBump .35s var(--cf-spring); }
@keyframes cfBump { 40% { transform: scale(1.18); } }
.cf-group-sum { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin-top: 14px; align-items: baseline; }
.cf-group-sum small { font: 500 13px/1.3 var(--ct-f, system-ui); color: rgba(255,248,239,.62); }
.cf-group-sum b { font: 700 15px/1 var(--ct-f, system-ui); color: #FFF8EF; text-align: right; font-variant-numeric: tabular-nums; }
.cf-group-sum b.big { font-size: 22px; letter-spacing: -.01em; }
.cf-group-sum .now b { color: var(--cf-sheet-acc, #12E0D0); }

/* Sheet: three reasons it is safe to go ahead. */
.cf-assure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cf-assure div { display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 16px; background: rgba(255,248,239,.04); border: 1px solid rgba(255,248,239,.09); font: 600 12px/1.35 var(--ct-f, system-ui); color: rgba(255,248,239,.82); }
.cf-assure svg { width: 18px; height: 18px; color: var(--cf-sheet-acc, #12E0D0); }
@media (max-width: 480px) { .cf-assure { gap: 6px; } .cf-assure div { padding: 10px; font-size: 11.5px; gap: 6px; } .cf-assure svg { width: 16px; height: 16px; } }

/* Sheet: send it to the group. */
.cf-share { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 14px 14px 16px; border-radius: 18px; background: rgba(255,248,239,.04); border: 1px dashed rgba(255,248,239,.18); }
.cf-share p { flex: 1; margin: 0; font: 500 13.5px/1.4 var(--ct-f, system-ui); color: rgba(255,248,239,.78); }
.cf-share p b { color: #FFF8EF; }
.cf-share-acts { display: flex; gap: 8px; flex: none; }
.cf-share-b { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,248,239,.18); background: rgba(255,248,239,.06); color: #FFF8EF; font: 650 13px/1 var(--ct-f, system-ui); cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, transform .3s var(--cf-spring); }
.cf-share-b:hover { background: rgba(255,248,239,.12); transform: translateY(-1px); }
.cf-share-b svg { width: 16px; height: 16px; }
.cf-share-b.wa { background: #1FAF54; border-color: transparent; color: #fff; }
.cf-share-b.wa:hover { background: #22C35D; }
@media (max-width: 480px) { .cf-share { flex-direction: column; align-items: stretch; } .cf-share-acts > * { flex: 1; justify-content: center; } }

/* The share button that sits with the close button on the photo. */
.cf-sheet-share { position: absolute; z-index: 5; top: 14px; right: 64px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(11,9,24,.55); border: 1px solid rgba(255,248,239,.22); color: #FFF8EF; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, transform .3s var(--cf-spring); }
.cf-sheet-share:hover { background: rgba(11,9,24,.8); transform: scale(1.05); }
.cf-sheet-share svg { width: 18px; height: 18px; }

/* The sheet's book button glows once, so the eye finds it. */
.ct-sheet.open .ct-sheet-bar [data-ct-book] { animation: cfGlow 2.4s ease-out .9s 1 both; }
@keyframes cfGlow { 0% { box-shadow: 0 0 0 0 rgba(255,176,32,.0); } 30% { box-shadow: 0 0 0 8px rgba(255,176,32,.25); } 100% { box-shadow: 0 0 0 18px rgba(255,176,32,0); } }

/* ── view transitions: the card's picture becomes the sheet's ────── */
::view-transition-group(ct-morph) { animation-duration: .6s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); z-index: 3; }
::view-transition-old(ct-morph), ::view-transition-new(ct-morph) { height: 100%; width: 100%; object-fit: cover; animation-duration: .6s; }
::view-transition-image-pair(ct-morph) { overflow: hidden; border-radius: 22px; }
::view-transition-new(ct-sheet):only-child { animation: cfSheetIn .6s cubic-bezier(.22, 1, .36, 1) both; }
::view-transition-old(ct-sheet):only-child { animation: cfSheetOut .42s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
@keyframes cfSheetIn { from { transform: translateX(60px); opacity: 0; } }
@keyframes cfSheetOut { to { transform: translateX(60px); opacity: 0; } }
@media (max-width: 700px) {
  ::view-transition-new(ct-sheet):only-child { animation-name: cfSheetUp; }
  ::view-transition-old(ct-sheet):only-child { animation-name: cfSheetDown; }
  @keyframes cfSheetUp { from { transform: translateY(80px); opacity: 0; } }
  @keyframes cfSheetDown { to { transform: translateY(80px); opacity: 0; } }
}

/* ═══ BOOKING: what happens next, and the moment it is done ════════ */
.cf-next { display: flex; gap: 10px; align-items: flex-start; margin: -6px 2px 0; font: 500 12.5px/1.5 var(--ct-f, system-ui); color: rgba(255,248,239,.62); }
.cf-next svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--cf-sheet-acc, #12E0D0); }
.ct-bk .ct-step-v b.bump { animation: cfBump .35s var(--cf-spring); }
.cf-ticket { position: relative; margin: 4px auto 20px; max-width: 380px; text-align: left; border-radius: 22px; background: #FFF8EF; color: #16112B; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); animation: cfPrint .9s cubic-bezier(.22, 1, .36, 1) .15s both; }
@keyframes cfPrint { from { opacity: 0; transform: translateY(-26px) rotateX(38deg); clip-path: inset(0 0 100% 0 round 22px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 22px); } }
.cf-ticket-top { padding: 18px 20px 16px; background: var(--cf-ticket-band, linear-gradient(115deg, #12E0D0, #3B5BFF 55%, #B98CFF)); color: #07061A; }
.cf-ticket-top small { display: block; font: 700 10.5px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.cf-ticket-top b { display: block; margin-top: 8px; font: 700 19px/1.2 var(--ct-f, system-ui); letter-spacing: -.012em; }
.cf-ticket-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 20px; }
.cf-ticket-grid small { display: block; font: 600 10px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #857E9F; }
.cf-ticket-grid b { display: block; margin-top: 6px; font: 700 15px/1.15 var(--ct-f, system-ui); }
.cf-ticket-tear { position: relative; height: 2px; margin: 0 20px; background-image: linear-gradient(90deg, rgba(22,17,43,.28) 50%, transparent 50%); background-size: 10px 2px; }
.cf-ticket-tear::before, .cf-ticket-tear::after { content: ''; position: absolute; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: #120F24; }
.cf-ticket-tear::before { left: -31px; } .cf-ticket-tear::after { right: -31px; }
.cf-ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px 16px; font: 600 12px/1.3 'Geist Mono', ui-monospace, monospace; color: #4A4366; }
.cf-ticket-foot b { font: 700 13px/1 var(--ct-f, system-ui); color: #16112B; }
.cf-done-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf-done-acts > :first-child { grid-column: 1 / -1; }
.ct-bk-done .acts > * + .cf-done-acts, .ct-bk-done .cf-done-acts + * { margin-top: 0; }

/* ═══ WIDGET · what a provider keeps ═══════════════════════════════ */
.cf-earn { --cf-e-bg: rgba(255,255,255,.66); --cf-e-ink: #16120D; --cf-e-dim: #4A4136; --cf-e-line: rgba(22,18,13,.12); --cf-e-track: rgba(22,18,13,.1);
  display: grid; gap: 14px; padding: 20px; border-radius: 24px; background: var(--cf-e-bg); color: var(--cf-e-ink); border: 1px solid var(--cf-e-line); }
.cf-earn.dark { --cf-e-bg: rgba(11,11,15,.55); --cf-e-ink: #F5F3EE; --cf-e-dim: rgba(245,243,238,.68); --cf-e-line: rgba(245,243,238,.12); --cf-e-track: rgba(245,243,238,.14); }
.cf-earn-h { display: grid; gap: 6px; }
.cf-earn-k { font: 700 11px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--cf-acc); }
.cf-earn.light-acc .cf-earn-k { color: #D9420C; }
.cf-earn-h b { font: 800 19px/1.2 var(--tw-wide, var(--xp-wide, system-ui)); letter-spacing: -.01em; }
.cf-earn-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; font: 600 13.5px/1.2 var(--tw-text, var(--xp-f, system-ui)); }
.cf-earn-row small { font-weight: 500; color: var(--cf-e-dim); }
.cf-earn-row output { font: 750 15px/1 var(--tw-text, var(--xp-f, system-ui)); font-variant-numeric: tabular-nums; }
.cf-earn-row input[type=range] { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.cf-earn-row input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--cf-acc) var(--p), var(--cf-e-track) var(--p)); }
.cf-earn-row input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--cf-acc) var(--p), var(--cf-e-track) var(--p)); }
.cf-earn-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--cf-acc); box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); transition: transform .2s var(--cf-spring); }
.cf-earn-row input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--cf-acc); }
.cf-earn-row input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
.cf-earn-row input[type=range]:focus-visible { outline: 2px solid var(--cf-acc); outline-offset: 2px; border-radius: 8px; }
.cf-earn-bars { display: grid; gap: 8px; }
.cf-earn-bar { position: relative; height: 30px; border-radius: 10px; background: var(--cf-e-track); overflow: hidden; }
.cf-earn-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 10px; transition: width .6s var(--cf-spring); }
.cf-earn-bar.us i { width: var(--us, 100%); background: var(--cf-acc); }
.cf-earn-bar.them i { width: var(--them, 75%); background: var(--cf-e-dim); opacity: .45; }
.cf-earn-bar span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 700 12px/1 var(--tw-text, var(--xp-f, system-ui)); color: var(--cf-acc-ink); }
.cf-earn-bar.them span { color: var(--cf-e-ink); }
.cf-earn-out { display: grid; gap: 6px; }
.cf-earn-big small { display: block; font: 600 12px/1 var(--tw-text, var(--xp-f, system-ui)); color: var(--cf-e-dim); }
.cf-earn-big b { display: block; margin-top: 6px; font: 900 clamp(28px, 3.4vw, 38px)/1 var(--tw-wide, var(--xp-wide, system-ui)); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cf-earn-cmp { font: 500 13.5px/1.5 var(--tw-text, var(--xp-f, system-ui)); color: var(--cf-e-dim); }
.cf-earn-cmp b { color: var(--cf-e-ink); }
.cf-earn-rate { font: 500 12.5px/1.4 var(--tw-text, var(--xp-f, system-ui)); color: var(--cf-e-dim); }
.cf-earn-rate select { margin-left: 4px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--cf-e-line); background: transparent; color: var(--cf-e-ink); font: 700 12.5px/1 inherit; }
.cf-earn-rate select option { color: #16120D; }

/* ═══ WIDGET · pick up where you left off ══════════════════════════ */
.cf-recent { --cf-r-bg: #fff; --cf-r-ink: #16120D; --cf-r-dim: #8A7F70; --cf-r-line: rgba(22,18,13,.1); }
.cf-recent.dark { --cf-r-bg: #121217; --cf-r-ink: #F5F3EE; --cf-r-dim: rgba(245,243,238,.5); --cf-r-line: rgba(245,243,238,.09); }
.cf-recent-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cf-recent-h span { font: 700 12px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--cf-r-dim); }
.cf-recent-clear { border: 0; background: none; cursor: pointer; font: 600 12.5px/1 var(--tw-text, var(--xp-f, system-ui)); color: var(--cf-r-dim); text-decoration: underline; text-underline-offset: 3px; }
.cf-recent-clear:hover { color: var(--cf-r-ink); }
.cf-recent-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px; margin: -2px; }
.cf-recent-rail::-webkit-scrollbar { display: none; }
.cf-recent-i { flex: 0 0 auto; width: 280px; display: flex; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 18px; border: 1px solid var(--cf-r-line); background: var(--cf-r-bg); color: var(--cf-r-ink); text-align: left; cursor: pointer; scroll-snap-align: start; font: inherit; transition: transform .35s var(--cf-spring), box-shadow .3s, border-color .3s; animation: cfRise .6s var(--cf-ease) both; }
.cf-recent-i:nth-child(2) { animation-delay: .05s; } .cf-recent-i:nth-child(3) { animation-delay: .1s; } .cf-recent-i:nth-child(n+4) { animation-delay: .15s; }
.cf-recent-i:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); border-color: var(--cf-acc); }
.cf-recent-m { position: relative; width: 64px; height: 64px; flex: none; border-radius: 13px; overflow: hidden; background: rgba(127,127,127,.15); }
.cf-recent-m img, .cf-recent-m .ct-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cf-recent-m .ct-art svg { width: 100%; height: 100%; }
.cf-recent-b { min-width: 0; display: grid; gap: 4px; }
.cf-recent-b b { font: 700 13.5px/1.25 var(--tw-text, var(--xp-f, system-ui)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-recent-b small { font: 500 12px/1.2 var(--tw-text, var(--xp-f, system-ui)); color: var(--cf-r-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-recent-b em { font: 750 13px/1 var(--tw-text, var(--xp-f, system-ui)); font-style: normal; }
@media (max-width: 560px) { .cf-recent-i { width: 240px; } }

/* ═══ CARDS: honest urgency and real popularity on the picture ═════ */
.cf-badges { position: absolute; z-index: 3; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.cf-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 750 11px/1 var(--tw-text, var(--xp-f, var(--ct-f, system-ui))); color: #fff; background: rgba(11,9,24,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cf-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cf-badge.hot { color: #FFD27A; }
.cf-badge.hot i { animation: cfDot 1.6s ease-in-out infinite; }
.cf-badge.love { color: #FFB0CB; }
.cf-badge.new { color: #9CF6EC; }

/* ═══ REDUCED MOTION: everything arrives, nothing travels ══════════ */
@media (prefers-reduced-motion: reduce) {
  html.cf-on .cf-rv { opacity: 1; transform: none; transition: none; }
  .ct-sheet.open .ct-sheet-body > *, .cf-recent-i, .cf-ticket { animation: none !important; }
  .ct-sheet.open .ct-gal-track > img:first-child { animation: none; }
  .ct-sheet.open .ct-sheet-bar [data-ct-book] { animation: none; }
  .cf-pill.hot i, .cf-badge.hot i { animation: none; }
  .cf-glare { display: none; }
  [data-magnet] { translate: none !important; }
  body.ct-x :is(.ct-btn, .tw-btn, .xp-btn, .xp-book, .xp-chip, .xp-cta, .ct-date, .ct-icon-b, .ct-heart, .xp-meter-pick button, .xp-kind-go, .xp-kind-follow, .cf-share-b):active { scale: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* The ticket's band takes the page's colours. */
body.ct-x.ct-w { --cf-ticket-band: linear-gradient(115deg, #FFB21E 0%, #F2541B 78%); }
body.ct-x.xp { --cf-ticket-band: linear-gradient(115deg, #D4FF3A 0%, #FFB21E 100%); }

/* ═══ /tours: the rail under the search, the sum in the invite ═════ */
.tw-recent { margin-top: 22px; }
.tw-recent[hidden] { display: none; }
.tw-recent .cf-recent-h span { color: #8A7F70; }
.tw-invite-in .cf-earn { grid-column: 1 / -1; --cf-acc: #FFB21E; --cf-acc-ink: #241600; --cf-e-bg: rgba(22,18,13,.86); --cf-e-ink: #F6F0E6; --cf-e-dim: rgba(246,240,230,.7); --cf-e-line: rgba(255,255,255,.14); --cf-e-track: rgba(255,255,255,.14); box-shadow: 0 30px 60px -36px rgba(22,18,13,.8); }
.tw-invite-in .cf-earn .cf-earn-k { color: #FFB21E; }
@media (min-width: 761px) {
  .cf-earn.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 40px); align-items: center;
    grid-template-areas: "h h" "p bars" "n out" "rate out"; }
  .cf-earn.wide .cf-earn-h { grid-area: h; }
  .cf-earn.wide .cf-earn-row:nth-of-type(1) { grid-area: p; }
  .cf-earn.wide .cf-earn-row:nth-of-type(2) { grid-area: n; }
  .cf-earn.wide .cf-earn-bars { grid-area: bars; }
  .cf-earn.wide .cf-earn-out { grid-area: out; }
  .cf-earn.wide .cf-earn-rate { grid-area: rate; }
}

/* A badge on a card's picture keeps its own width. */
.ct-card-where .cf-badge { align-self: flex-start; }

/* ═══ WIDGET · a fan of real tours in a hero (catalogue, guides) ═══ */
.cf-mosaic { display: none; }
@media (min-width: 1100px) {
  .ct-hero-s.has-mosaic .ct-wrap > .ct-h1, .ct-hero-s.has-mosaic .ct-wrap > .ct-lede { max-width: min(700px, 54%); }
  .ct-hero-s.has-mosaic .ct-wrap > .ct-bigsearch { width: min(680px, 54%); }
  .ct-hero-s.has-mosaic .ct-art-bg { opacity: .2; }
  .cf-mosaic:not([hidden]) {
    display: block; position: absolute; z-index: 1; top: 50%; right: max(var(--ct-gut, 44px), calc((100% - var(--ct-max, 1320px)) / 2 + var(--ct-gut, 44px)));
    width: min(38vw, 500px); height: 380px; margin-top: -205px; --mx: 0; --my: 0;
  }
  .cf-mo-c {
    --rot: 0deg; --x: 0px; --y: 0px; position: absolute; left: 50%; top: 50%; width: 210px; height: 280px; padding: 0; border: 0; cursor: pointer; font: inherit; text-align: left;
    border-radius: 24px; overflow: hidden; background: #241F1A; color: #fff; box-shadow: 0 30px 60px -28px rgba(22,18,13,.65), 0 0 0 1px rgba(255,255,255,.5);
    transform: translate(calc(-50% + var(--x) + var(--mx) * var(--depth, 12px)), calc(-50% + var(--y) + var(--my) * var(--depth, 12px))) rotate(var(--rot));
    transition: transform .6s var(--cf-spring), box-shadow .4s, z-index 0s .2s;
    animation: cfMoIn .9s var(--cf-ease) both, cfFloat 7s ease-in-out infinite; animation-delay: calc(var(--i) * 110ms), calc(var(--i) * -1.7s + 1s);
  }
  .cf-mo-c[style*="--i:0"] { --rot: -3deg; --x: -50px; --y: 14px; --depth: 26px; z-index: 4; }
  .cf-mo-c[style*="--i:1"] { --rot: -13deg; --x: -190px; --y: -18px; --depth: 14px; z-index: 3; }
  .cf-mo-c[style*="--i:2"] { --rot: 11deg; --x: 95px; --y: -34px; --depth: 18px; z-index: 2; }
  .cf-mo-c[style*="--i:3"] { --rot: 20deg; --x: 160px; --y: 70px; --depth: 8px; z-index: 1; width: 180px; height: 240px; }
  .cf-mo-c:hover, .cf-mo-c:focus-visible { --rot: 0deg; z-index: 6; box-shadow: 0 40px 80px -30px rgba(22,18,13,.75), 0 0 0 2px var(--tw-ember, #F2541B); transition: transform .5s var(--cf-spring), box-shadow .3s, z-index 0s; }
  .cf-mo-c:hover { animation-play-state: paused; }
  .cf-mo-m { position: absolute; inset: 0; }
  .cf-mo-m img, .cf-mo-m .ct-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--cf-ease); }
  .cf-mo-m .ct-art svg { width: 100%; height: 100%; }
  .cf-mo-c:hover .cf-mo-m img { transform: scale(1.06); }
  .cf-mo-c::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,8,6,.82)); pointer-events: none; }
  .cf-mo-b { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 4px; }
  .cf-mo-b small { font: 600 10.5px/1 var(--tw-mono, 'Geist Mono', monospace); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
  .cf-mo-b b { font: 750 15px/1.2 var(--tw-text, system-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cf-mo-b em { justify-self: start; margin-top: 4px; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 650 11px/1 var(--tw-text, system-ui); font-style: normal; }
}
@keyframes cfMoIn { from { opacity: 0; scale: .82; } to { opacity: 1; scale: 1; } }
@keyframes cfFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .cf-mo-c { animation: none !important; transition: none !important; } }
