/* [rdpw_tour_timeline] — upcoming workshops on one vertical timeline (2026-12-02).
   Cards reuse the standard tour-card pieces from rdpw.css: .rdpw-discount-badge, .rdpw-original-price /
   .rdpw-discounted-price, .availability-* colours and the .rdpw-card-cta-btn button. Values below mirror
   .tourmaster-tour-grid-inner (1px #e5e7eb border, 10px radius, uppercase 18px/700 #383838 titles,
   14px/500 #4c4c4c info rows with icons). */
.rdpw-tl {
  --tl-red:#e2001a; --tl-ink:#1d2327; --tl-title:#383838; --tl-text:#4c4c4c; --tl-mute:#646970;
  --tl-line:#e5e7eb; --tl-soft:#f1f1f1;
  --tl-x:26px;          /* spine position from the left edge of the timeline */
  --tl-sp:var(--tl-x);  /* spine position inside an item */
  --tl-in:58px;         /* where cards start */
  --tl-sticky:0px;      /* set by JS: height of the site's fixed header + admin bar */
  margin:0 0 40px; color:var(--tl-text);
}
.rdpw-tl *, .rdpw-tl *::before, .rdpw-tl *::after { box-sizing:border-box; }
.rdpw-tl a:focus-visible, .rdpw-tl button:focus-visible { outline:2px solid var(--tl-red); outline-offset:2px; }

/* ── Year jump + filters: the site's button style (4px radius, uppercase 13px/600, dark #1d2327) ── */
.rdpw-tl__bar { display:flex; flex-direction:column; gap:12px; margin:0 0 28px; }
.rdpw-tl__years, .rdpw-tl__chips { display:flex; flex-wrap:wrap; gap:8px; }
.rdpw-tl .rdpw-tl__years a,
.rdpw-tl .rdpw-tl__chips button,
.rdpw-tl .rdpw-tl__future-more {
  display:inline-flex; align-items:center; gap:6px; margin:0; padding:9px 16px; border:1px solid var(--tl-ink); border-radius:4px;
  background:#fff; color:var(--tl-ink); box-shadow:none; font:inherit; font-size:13px; font-weight:600; line-height:1.2;
  letter-spacing:.5px; text-transform:uppercase; text-decoration:none; white-space:nowrap; cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.rdpw-tl .rdpw-tl__years a { background:var(--tl-ink); color:#fff; }
.rdpw-tl .rdpw-tl__years a:hover { background:var(--tl-red); border-color:var(--tl-red); color:#fff; }
.rdpw-tl .rdpw-tl__chips button:hover, .rdpw-tl .rdpw-tl__future-more:hover { background:var(--tl-soft); }
.rdpw-tl .rdpw-tl__chips button.is-on { background:var(--tl-ink); color:#fff; }
.rdpw-tl .rdpw-tl__chips button span { opacity:.6; font-weight:500; font-variant-numeric:tabular-nums; }

/* ── The spine ── */
.rdpw-tl__line { position:relative; }
.rdpw-tl__line::before { content:""; position:absolute; left:var(--tl-x); top:14px; bottom:24px; width:2px; margin-left:-1px; background:var(--tl-line); }
.rdpw-tl__month { position:relative; padding-bottom:16px; }
.rdpw-tl__month[hidden] { display:none; }

/* Month header: a sticky band on phones, a sticky label in the left rail on wider screens */
.rdpw-tl h3.rdpw-tl__mhead {
  position:sticky; top:var(--tl-sticky); z-index:3; display:flex; align-items:baseline; gap:8px; margin:0 0 14px;
  padding:10px 0 10px var(--tl-in); background:rgba(255,255,255,.96); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  font-family:inherit; font-size:15px; font-weight:700; line-height:1.2; letter-spacing:.5px; text-transform:uppercase; color:var(--tl-title);
  white-space:nowrap; hyphens:none; -webkit-hyphens:none; word-break:normal; overflow-wrap:normal;
}
.rdpw-tl__mhead::before { content:""; position:absolute; left:var(--tl-x); top:50%; width:14px; height:14px; margin:-7px 0 0 -7px; border-radius:50%; background:var(--tl-red); box-shadow:0 0 0 4px #fff; }
.rdpw-tl__myear { color:var(--tl-mute); font-weight:600; font-size:.8em; font-variant-numeric:tabular-nums; }

/* ── Items ── */
.rdpw-tl__items { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:20px; }
.rdpw-tl__item { position:relative; margin:0; padding:0 0 0 var(--tl-in); }
.rdpw-tl__item[hidden] { display:none; }
.rdpw-tl__date { position:absolute; z-index:1; top:16px; left:var(--tl-sp); width:48px; margin-left:-24px; padding:7px 0 6px; border-radius:4px; background:var(--tl-ink); color:#fff; text-align:center; line-height:1; font-variant-numeric:tabular-nums; box-shadow:0 0 0 4px #fff; }
.rdpw-tl__date b { display:block; font-size:18px; font-weight:700; }
.rdpw-tl__date span { display:block; margin-top:4px; font-size:10px; font-weight:600; letter-spacing:.08em; opacity:.8; }

/* ── Page heading (the public page passes title/intro) ── */
.rdpw-tl__head { margin:8px 0 30px; }
.rdpw-tl h1.rdpw-tl__h1 { margin:0 0 6px; font-size:32px; font-weight:700; line-height:1.2; letter-spacing:0; text-transform:none; color:var(--tl-ink); text-wrap:balance; }
.rdpw-tl .rdpw-tl__intro { margin:0; font-size:16px; color:var(--tl-mute); text-align:left; }
@media (min-width:760px) { .rdpw-tl__head { padding-left:calc(var(--tl-x) + var(--tl-in)); } }

/* ── Card (mirrors .tourmaster-tour-grid-inner) ── */
.rdpw-tl__card { display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--tl-line); border-radius:10px; background:#fff; }
.rdpw-tl__thumb { position:relative; overflow:hidden; aspect-ratio:428/263; background:#eef0f2; }
.rdpw-tl__thumb > a { display:block; height:100%; }
.rdpw-tl__thumb img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.rdpw-tl__card:hover .rdpw-tl__thumb img { transform:scale(1.04); }
.rdpw-tl__body { display:flex; flex-direction:column; min-width:0; padding:32px 30px 20px; }
.rdpw-tl h3.rdpw-tl__title { margin:0 0 6px; font-family:inherit; font-size:19px; font-weight:800; line-height:1.2; letter-spacing:0; text-transform:uppercase; color:var(--tl-title); text-wrap:balance; }
.rdpw-tl h3.rdpw-tl__title a { color:inherit; text-decoration:none; }
.rdpw-tl h3.rdpw-tl__title a:hover { color:var(--tl-red); }
.rdpw-tl__price { margin:11px 0 6px; font-size:18px; font-variant-numeric:tabular-nums; }
.rdpw-tl .rdpw-tl__price .rdpw-discounted-price { font-size:18px; }
.rdpw-tl__price-plain { display:block; font-size:18px; font-weight:600; line-height:1.3; color:#0a0000; }
.rdpw-tl .rdpw-tl__avail { margin:4px 0 0; padding:0; font-size:14px; font-weight:600; line-height:1.2; }
.rdpw-tl__info { list-style:none; margin:17px 0 0; padding:0; }
.rdpw-tl__info li { margin:0 0 9px; padding:0; font-size:14px; font-weight:500; line-height:22.4px; color:var(--tl-text); }
.rdpw-tl__info i { display:inline-block; width:20px; margin-right:4px; color:#0a0000; text-align:left; }
.rdpw-tl__side { display:contents; }
.rdpw-tl h3.rdpw-tl__title { order:1; } .rdpw-tl__price { order:2; } .rdpw-tl__info { order:3; } .rdpw-tl .rdpw-tl__cta { order:4; }
.rdpw-tl .rdpw-tl__cta { margin-top:auto; padding-top:21px; text-align:center; }
.rdpw-tl .rdpw-tl__cta a { display:block; width:100%; text-align:center; }

/* ── Dates coming soon (mirrors the site's grey "More destinations" block) ── */
.rdpw-tl__month--future { padding-top:12px; }
.rdpw-tl__month--future .rdpw-tl__mhead::before { background:#fff; box-shadow:inset 0 0 0 3px var(--tl-ink), 0 0 0 4px #fff; }
.rdpw-tl__soon { margin:0 0 0 var(--tl-in); padding:22px 20px 20px; border-radius:12px; background:rgba(0,0,0,.06); }
.rdpw-tl__future-note { margin:0 0 14px; font-size:14px; color:var(--tl-text); max-width:62ch; }
.rdpw-tl__future { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr; gap:10px; }
.rdpw-tl__future li { margin:0; }
.rdpw-tl__future li[hidden] { display:none; }
.rdpw-tl__future.is-collapsed li:nth-child(n+9) { display:none; }
.rdpw-tl__future a { display:flex; align-items:center; gap:12px; padding:8px; border:1px solid var(--tl-line); border-radius:10px; background:#fff; color:inherit; text-decoration:none; }
.rdpw-tl__future a:hover { border-color:#c9cdd2; }
.rdpw-tl__fimg { flex:0 0 72px; height:52px; border-radius:6px; background:#d9dcdf center/cover no-repeat; }
.rdpw-tl__future strong { display:block; font-size:14px; font-weight:700; line-height:1.25; text-transform:uppercase; color:var(--tl-title); }
.rdpw-tl__future em { display:block; margin-top:2px; font-style:normal; font-size:13px; color:var(--tl-mute); }
.rdpw-tl .rdpw-tl__future-more { margin-top:14px; }
.rdpw-tl__none { margin:12px 0 0; padding-left:var(--tl-in); color:var(--tl-mute); }

/* ── Wider screens: month names in a left rail, photo beside the details ── */
@media (min-width:760px) {
  .rdpw-tl { --tl-x:150px; --tl-sp:0px; --tl-in:50px; }
  .rdpw-tl__date { width:58px; margin-left:-29px; padding:9px 0 8px; }
  .rdpw-tl__date b { font-size:23px; }
  .rdpw-tl__date span { margin-top:5px; font-size:11px; }
  .rdpw-tl__bar { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; padding-left:calc(var(--tl-x) + var(--tl-in)); }
  .rdpw-tl__month { display:grid; grid-template-columns:var(--tl-x) minmax(0,1fr); padding-bottom:32px; }
  .rdpw-tl h3.rdpw-tl__mhead { grid-column:1; align-self:start; flex-direction:column; align-items:flex-end; gap:4px; margin:0; padding:16px 44px 0 0; background:none; -webkit-backdrop-filter:none; backdrop-filter:none; top:calc(var(--tl-sticky) + 24px); text-align:right; font-size:14px; letter-spacing:.6px; }
  .rdpw-tl h3.rdpw-tl__mhead .rdpw-tl__myear { font-size:12px; }
  .rdpw-tl__mhead::before { display:none; }                /* the first date marks the month on the spine */
  .rdpw-tl__items, .rdpw-tl__soon { grid-column:2; }
  .rdpw-tl__future { grid-template-columns:repeat(2, minmax(0,1fr)); }
  /* "Dates coming soon" heading sits beside its block, not in the narrow rail */
  .rdpw-tl .rdpw-tl__month--future h3.rdpw-tl__mhead { grid-column:2; position:relative; top:auto; flex-direction:row; align-items:center; padding:12px 0 14px var(--tl-in); text-align:left; }
  .rdpw-tl .rdpw-tl__month--future h3.rdpw-tl__mhead::before { display:block; right:auto; left:0; top:50%; margin:-7px 0 0 -7px; }
  .rdpw-tl__none { padding-left:calc(var(--tl-x) + var(--tl-in)); }
}
/* Side-by-side cards follow the theme's "medium" tour card: photo left (about a third), title + info
   in the middle, price + button in a right column behind a 2px divider. Switches on the CARD's width
   (container query), not the window's: below ~810px the three columns squeeze the photo square, so
   narrower cards stack photo-on-top like the standard grid card. The photo is 3:2 at minimum. */
.rdpw-tl__items { container:rdpw-tl-items / inline-size; }
@container rdpw-tl-items (min-width:860px) {
  .rdpw-tl__card { flex-direction:row; }
  .rdpw-tl__thumb > a { position:absolute; inset:0; }
  .rdpw-tl__thumb { flex:0 0 34%; max-width:none; aspect-ratio:3/2; align-self:stretch; min-height:0; }
  .rdpw-tl__body { flex:1 1 auto; display:grid; grid-template-columns:minmax(0,1fr) 190px; grid-template-areas:"title side" "info side"; align-content:center; column-gap:0; padding:24px 25px 24px 32px; }
  .rdpw-tl h3.rdpw-tl__title { grid-area:title; margin:0 0 14px; padding-right:24px; font-size:20px; }
  .rdpw-tl__info { grid-area:info; margin:0; padding-right:24px; }
  .rdpw-tl__info li { margin-bottom:4px; }
  .rdpw-tl__side { grid-area:side; display:flex; flex-direction:column; justify-content:center; padding:6px 0 6px 25px; border-left:2px solid var(--tl-line); text-align:center; }
  .rdpw-tl__side .rdpw-tl__price { margin:0 0 18px; }
  .rdpw-tl__side .rdpw-tl__price .rdpw-original-price, .rdpw-tl__side .rdpw-tl__price .rdpw-discounted-price { display:block; }
  .rdpw-tl .rdpw-tl__side .rdpw-tl__cta { margin-top:0; padding-top:0; }
}
@media (min-width:760px) and (max-width:1020px) {
  .rdpw-tl { --tl-x:128px; --tl-in:46px; }
  .rdpw-tl h3.rdpw-tl__mhead { font-size:12px; padding-right:40px; }
}

/* ── Phones: filter chips in one swipeable row ── */
@media (max-width:759px) {
  .rdpw-tl__chips { flex-wrap:nowrap; overflow-x:auto; margin:0 -16px; padding:2px 16px 6px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .rdpw-tl__chips::-webkit-scrollbar { display:none; }
  .rdpw-tl__chips button { flex:0 0 auto; }
  .rdpw-tl__soon { padding:16px 12px 14px; }
}

@media (prefers-reduced-motion:reduce) {
  .rdpw-tl__thumb img { transition:none; }
  .rdpw-tl__card:hover .rdpw-tl__thumb img { transform:none; }
}

/* The theme wraps the page in overflow:hidden (and on phones sets it on body), which turns sticky
   positioning off. On pages with the timeline, clip instead: it still hides overflow, but the month
   labels can stick. */
body:has(.rdpw-tl) .traveltour-body-wrapper,
body:has(.rdpw-tl) .traveltour-body-outer-wrapper { overflow:clip; }
body:has(.rdpw-tl) { overflow-x:clip !important; overflow-y:visible !important; }
