/* Timberline booking modal, listicle and partner pages. Builds on pt.css tokens. */

/* ---------- Xola buttons (components/tl_book, through Dec 2026) ----------
   Xola binds the wrapper div; display: contents lets the inner pt-btn keep every
   existing layout rule (buy rows, sticky bars, hero, drawer) as if it had no wrapper. */
.tl-xola { display: contents; }
/* Cards that used to be one big <a>: the link wraps media + copy, the Xola button sits below it. */
.tl-card-link { display: contents; color: inherit; text-decoration: none; }
.pt-tour__body.tl-card-foot { padding-top: 0; flex: 0 0 auto; }
/* The trigger is a <span role="button"> (not a <button>, see tl_book). On phones/iPad Xola's checkout.js moves it
   into its own <a href="checkout.xola.app/..." style="color/background:inherit">: that link is made layout-neutral
   (display: contents) so the span keeps exactly the desktop styling inside buy rows, sticky bars, hero and drawer. */
.tl-xola > a { display: contents; color: inherit; text-decoration: none; }
:where(.tl-xola) > [role="button"], :where(.tl-xola > a) > [role="button"] { text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tl-xola [role="button"]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* Tapped before Xola finished wiring the button (slow data): quiet pending state from tlXolaTap (layouts/theme.liquid). */
.tl-xola [role="button"][aria-busy="true"] { opacity: .7; cursor: progress; }
/* Non-pill Xola triggers (card CTAs, amount chips) start unstyled; section classes win (higher specificity). */
/* Season-closed tours (components/tl_book): a quiet, non-action label in place of the Book button. */
/* Tripled class beats pt.css's ".pt-buyrow .pt-btn { color: #fff !important }" (pt.css loads after tl.css). */
.tl-btn-closed.tl-btn-closed.tl-btn-closed { display: inline-flex; align-items: center; justify-content: center; text-align: center; cursor: default; pointer-events: none; user-select: none; background: var(--pt-sand, #f7f4ef) !important; border: 1px solid var(--pt-line, #e5e0d8) !important; color: var(--pt-muted, #7a7268) !important; box-shadow: none !important; text-decoration: none !important; }
.tl-btn-closed:not(.pt-btn) { min-height: 40px; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 1.2; }
:where(.tl-xola) > [role="button"]:where(:not(.pt-btn)), :where(.tl-xola > a) > [role="button"]:where(:not(.pt-btn)) { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit; }

/* ---------- Booking modal ---------- */
.tl-book-open { overflow: hidden; }
.tl-book-modal { padding: 0; border: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; background: #fff; color: #1c1c1c; display: none; flex-direction: column; font-family: 'Source Sans 3', system-ui, sans-serif; }
.tl-book-modal[open] { display: flex; }
.tl-book-modal::backdrop { background: rgba(20, 20, 20, .6); }
.tl-book-modal__bar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 8px 0 18px; border-bottom: 1px solid #e5e0d8; flex: 0 0 auto; }
.tl-book-modal__title { font-family: 'DM Sans', system-ui, sans-serif; font-size: 17px; font-weight: 700; }
.tl-book-modal__newtab { margin-left: auto; font-size: 13px; font-weight: 600; color: #555; text-decoration: underline; text-underline-offset: 3px; }
.tl-book-modal__close { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #1c1c1c; }
.tl-book-modal__close:hover, .tl-book-modal__close:focus-visible { background: #f7f4ef; }
.tl-book-modal__body { position: relative; flex: 1 1 auto; }
.tl-book-modal__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tl-book-modal__loading { position: absolute; top: 40px; left: 0; right: 0; text-align: center; color: #7a7268; margin: 0; }
@media (min-width: 768px) {
  .tl-book-modal { width: min(960px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px)); margin: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
}

/* ---------- Shared ---------- */
.pt .pt-btn.pt-btn--ghost, a.pt-btn.pt-btn--ghost { background: transparent !important; border: 1px solid var(--pt-ink, #1c1c1c) !important; color: var(--pt-ink, #1c1c1c) !important; }
.pt .pt-btn.pt-btn--ghost:hover, a.pt-btn.pt-btn--ghost:hover { background: var(--pt-ink, #1c1c1c) !important; color: #fff !important; }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-btn.tl-btn-book, a.tl-btn-book { background: var(--pt-ember, #b85c2e) !important; border-color: var(--pt-ember, #b85c2e) !important; color: #fff !important; }
.pt-btn.tl-btn-book:hover, a.pt-btn.tl-btn-book:hover { background: var(--pt-ember-hover, #a04f27) !important; border-color: var(--pt-ember-hover, #a04f27) !important; color: #fff !important; }
.tl-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--pt-gutter, 20px) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--pt-line, #e5e0d8); box-shadow: 0 -8px 24px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .3s; }
.tl-sticky.is-visible { transform: none; }
.tl-sticky__text { font-size: 14px; line-height: 1.3; color: var(--pt-ink, #1c1c1c); font-weight: 700; }
.tl-sticky__text small { display: block; font-weight: 400; color: var(--pt-muted, #7a7268); font-size: 12.5px; }
.tl-sticky .pt-btn { min-height: 46px; padding: 0 20px; flex: 0 0 auto; }
/* Fluid's chat + cart bubbles sit bottom-right: keep the Book button clear of them. */
@media (max-width: 989px) { .tl-sticky { padding-right: 88px; } }
@media (min-width: 990px) { .tl-sticky { right: auto; left: 24px; bottom: 24px; border: 1px solid var(--pt-line, #e5e0d8); border-radius: 6px; padding: 12px 12px 12px 20px; max-width: 460px; } }
@media (prefers-reduced-motion: reduce) { .tl-sticky { transition: none; } }

/* ---------- Listicle ---------- */
.tl-lst { background: #fff; }
.tl-lst__wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--pt-gutter, 20px); }
.tl-lst__head { padding: clamp(32px, 6vw, 72px) 0 24px; }
.tl-lst__head .pt-kicker { margin-bottom: 14px; }
.tl-lst__title { font-family: var(--pt-head); color: var(--pt-ink); font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin: 0 0 16px; }
.tl-lst__dek { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--pt-body); margin: 0 0 18px; }
.tl-lst__byline { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--pt-muted); border-top: 1px solid var(--pt-line); border-bottom: 1px solid var(--pt-line); padding: 12px 0; }
.tl-lst__byline img { width: 34px; height: auto; }
.tl-lst__hero { margin: 0 auto 8px; max-width: 1040px; padding: 0 var(--pt-gutter, 20px); }
.tl-lst__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.tl-lst__hero figcaption { font-size: 12.5px; color: var(--pt-muted); margin-top: 8px; }
.tl-lst__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.tl-reason { padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--pt-line); }
.tl-reason:last-child { border-bottom: 0; }
.tl-reason__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pt-ink); color: #fff; font-family: var(--pt-head); font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.tl-reason__title { font-family: var(--pt-head); color: var(--pt-ink); font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 14px; }
.tl-reason__img { margin: 0 0 18px; }
.tl-reason__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.tl-reason__body { font-size: 17px; line-height: 1.7; color: var(--pt-body); }
.tl-reason__body p { margin: 0 0 12px; }
.tl-reason__cta { margin-top: 16px; }
.tl-proof { background: #1c1c1c; color: #fff; padding: clamp(40px, 6vw, 72px) 0; margin: 8px 0; }
.tl-proof .tl-proof__head h2 { color: #fff; }
.tl-proof__text { margin: 6px 0 0; color: rgba(255,255,255,.82); font-size: 16px; }
.tl-proof .tl-proof__head img { width: 96px; flex: none; }
.tl-proof__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .tl-proof__grid { grid-template-columns: repeat(2, 1fr); } }
.tl-quote { background: #fff; border: 1px solid var(--pt-line); border-radius: 4px; padding: 22px; margin: 0; }
.tl-quote__stars { color: #00aa6c; letter-spacing: 2px; font-size: 16px; margin-bottom: 8px; }
.tl-quote blockquote { margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; color: var(--pt-ink); }
.tl-quote figcaption { font-size: 13px; color: var(--pt-muted); }
.tl-proof__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.tl-proof__head img { width: 52px; height: auto; }
.tl-proof__head h2 { font-family: var(--pt-head); color: var(--pt-ink); font-size: clamp(22px, 2.6vw, 28px); margin: 0; line-height: 1.15; }
.tl-close { padding: clamp(48px, 7vw, 96px) 0 clamp(96px, 10vw, 128px); text-align: center; }
.tl-close .tl-lst__title { font-size: clamp(28px, 4vw, 44px); }
.tl-close .pt-btns { justify-content: center; }
.tl-close__note { margin-top: 14px; font-size: 14px; color: var(--pt-muted); }
.tl-disclosure { font-size: 12px; color: var(--pt-muted); margin: 18px 0 0; }

/* ---------- Partner ---------- */
.tl-partner { background: var(--pt-sand, #f7f4ef); padding: clamp(40px, 7vw, 96px) 0; }
.tl-partner__card { max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid var(--pt-line); border-radius: 6px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 24px; }
@media (min-width: 768px) { .tl-partner__card { grid-template-columns: 160px 1fr; align-items: start; } }
.tl-partner__logo { width: 140px; height: 140px; border-radius: 50%; background: var(--pt-sand); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--pt-line); }
.tl-partner__logo img { width: 100%; height: 100%; object-fit: contain; }
.tl-partner__logo span { font-family: var(--pt-head); font-weight: 800; font-size: 40px; color: var(--pt-bark); }
.tl-partner__name { font-family: var(--pt-head); color: var(--pt-ink); font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin: 10px 0 14px; }
.tl-partner__blurb { font-size: 17px; line-height: 1.65; margin: 0 0 20px; }
.tl-partner__deal { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
@media (min-width: 560px) { .tl-partner__deal { grid-template-columns: 1fr 1fr; } }
.tl-partner__deal li { border: 1px solid var(--pt-line); border-radius: 4px; padding: 14px 16px; }
.tl-partner__deal strong { display: block; font-family: var(--pt-head); color: var(--pt-ink); font-size: 26px; line-height: 1.1; }
.tl-partner__deal span { font-size: 14px; color: var(--pt-body); }
.tl-partner__code { font-size: 14px; color: var(--pt-muted); margin: 12px 0 0; }
.tl-partner__code code { font-family: ui-monospace, monospace; background: var(--pt-sand); padding: 2px 6px; border-radius: 3px; color: var(--pt-ink); }
.tl-partner__status { font-size: 13px; color: var(--pt-muted); min-height: 1em; margin: 0; }
.tl-partner [data-tl-partner-state="loading"] .tl-partner__deal { opacity: .55; }
.tl-partner__fallback { display: none; }
.tl-partner[data-state="notfound"] .tl-partner__found { display: none; }
.tl-partner[data-state="notfound"] .tl-partner__fallback { display: block; }
.tl-tours { padding: clamp(48px, 7vw, 96px) 0; }
.tl-tours__grid { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 640px) { .tl-tours__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tl-tours__grid { grid-template-columns: repeat(3, 1fr); } }
.tl-tour { border: 1px solid var(--pt-line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.tl-tour img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tl-tour__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tl-tour__body h3 { font-family: var(--pt-head); color: var(--pt-ink); font-size: 21px; margin: 0; }
.tl-tour__body p { margin: 0; font-size: 15px; line-height: 1.55; }
.tl-tour__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.tl-tour__price { font-weight: 700; color: var(--pt-ink); }
.tl-tour__price small { font-weight: 400; color: var(--pt-muted); }
.tl-tour .pt-btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
