/* Shared blocks used on several public pages. */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Section heading with an optional action on the right */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(26px, 3vw, 42px); }
.section-head .section-title { margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb { margin-bottom: clamp(18px, 2.4vw, 30px); font-size: 15px; color: var(--text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb li + li::before { content: "/"; opacity: .55; }
.breadcrumb a:hover { color: var(--gold-text); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb [aria-current] { color: var(--text-body); }

.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 10px; color: var(--text-muted); font-size: 15px; font-weight: 600; }
.back-link:hover { color: var(--gold-text); }

/* How it works */
.how--raised { background: var(--bg-elevated); border-block: 1px solid var(--color-border); }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how-steps li { position: relative; padding-top: 26px; border-top: 1px solid var(--color-border); counter-increment: how; }
.how-steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--gold); }
.how-icon { display: flex; align-items: center; gap: 14px; color: var(--gold-text); }
.how-icon .icon { width: 30px; height: 30px; }
.how-steps h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.how-steps h3::before { content: counter(how) ". "; color: var(--gold-text); }
.how-steps p { margin: 0; max-width: 38ch; color: var(--text-muted); }
.how-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Frequently asked questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--color-border); }
.faq-list details { border-bottom: 1px solid var(--color-border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 18px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--gold-text); transition: transform .2s ease; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list summary:hover { color: var(--gold-text); }
.faq-list p { max-width: 62ch; margin: 0; padding-bottom: 22px; color: var(--text-muted); }

/* Help */
.help-line { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 8px; font-size: 15px; }
.help-line strong { margin-bottom: 4px; }
.help-line a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-muted); overflow-wrap: anywhere; }
.help-line a:hover { color: var(--gold-text); }
.help-line .icon { color: var(--gold-text); }

/* Team building banner: the photo keeps its light side free for the text */
.team-banner { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 110px) 0; background: #0e0b07 var(--banner-image) right center / auto 100% no-repeat; color: #fbf7ef; }
.team-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0e0b07 28%, rgba(14, 11, 7, .94) 46%, rgba(14, 11, 7, .12) 78%); }
.team-banner .container { position: relative; }
.team-banner .eyebrow { color: var(--gold-l); }
.team-banner .section-title { max-width: 16ch; margin-bottom: 16px; }
.team-banner .lead { max-width: 48ch; margin-bottom: 28px; color: rgba(251, 247, 239, .88); }

/* Booking steps */
.checkout-steps { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--text-muted); font-size: 15px; }
.checkout-steps li { display: inline-flex; align-items: center; gap: 10px; }
.checkout-step-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--input-border); border-radius: 50%; font-size: 14px; font-weight: 700; }
.checkout-step-mark .icon { width: 16px; height: 16px; }
.checkout-steps [aria-current] { color: var(--text-body); font-weight: 600; }
.checkout-steps [aria-current] .checkout-step-mark { border-color: var(--gold); background: var(--gold); color: #000; }
.checkout-steps .is-done .checkout-step-mark { border-color: var(--gold); color: var(--gold-text); }

/* Order summaries */
.summary-list { margin: 0; }
.summary-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--color-border); font-size: 15px; }
.summary-list dt { color: var(--text-muted); }
.summary-list dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.summary-list .summary-stack { display: block; }
.summary-list .summary-stack dd { text-align: left; }
.summary-list .summary-stack small { display: block; }
.summary-list small { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.checkout-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 18px 0; font-size: 17px; font-weight: 600; }
.checkout-total-row strong { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Field messages */
.field-error { margin: 8px 0 0; color: #ffb4a6; font-size: 15px; font-weight: 600; }
html.theme-light .field-error { color: #9b2528; }
.legal-note { margin: 14px 0 0; color: var(--text-muted); font-size: 14px; }
.legal-note a { color: var(--text-body); text-decoration: underline; text-underline-offset: 3px; }
.legal-note a:hover { color: var(--gold-text); }
.field-help { margin: 8px 0 0; color: var(--text-muted); font-size: 14px; }
[aria-invalid="true"] { border-color: #ff8d7a !important; }

/* Video: nothing is loaded from the video service before the click */
.media-frame { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: #0b0805; box-shadow: var(--shadow-card); }
.video-facade { position: relative; width: min(100%, 360px); margin-inline: auto; aspect-ratio: 9 / 16; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; background: none; color: #fff; text-align: center; }
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play::after { content: ""; position: absolute; inset: 0; background: rgba(8, 6, 3, .5); transition: background .25s ease; }
.video-play:hover::after { background: rgba(8, 6, 3, .34); }
.video-play-icon, .video-play-label { position: relative; z-index: 1; }
.video-play-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #000; }
.video-play-icon .icon { width: 30px; height: 30px; }
.video-play-label { max-width: 18ch; font-size: 18px; font-weight: 600; line-height: 1.35; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }

/* Long texts */
.prose-block { max-width: 820px; }
.prose-text { max-width: 68ch; color: var(--text-muted); line-height: 1.75; white-space: pre-line; text-wrap: pretty; }
.prose { color: var(--text-muted); line-height: 1.75; }
.prose h2 { margin: 40px 0 12px; color: var(--text-body); font-size: 23px; font-weight: 700; line-height: 1.3; }
.prose h3 { margin: 28px 0 8px; color: var(--text-body); font-size: 18px; font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; list-style: revert; }
.prose a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--color-border); text-align: left; vertical-align: top; }

/* Phone booking bar */
.booking-bar { display: none; }

@media (max-width: 1000px) {
  .booking-bar { position: fixed; inset: auto 0 0; z-index: 1500; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(5vw, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); background: var(--bg-elevated); transition: transform .25s ease, visibility .25s; }
  .booking-bar.is-away { transform: translateY(110%); visibility: hidden; }
  .booking-bar p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.25; }
  .booking-bar strong { display: block; color: var(--text-body); font-size: 19px; }
  body[data-page="adventure-detail"] .ftr { padding-bottom: 84px; }
}

/* Error pages */
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: 48px 5vw; text-align: center; background: radial-gradient(circle at 50% 20%, rgba(212, 137, 26, .16), transparent 46%); }
.error-page img { height: 92px; width: auto; }
.error-code { margin: 34px 0 6px; color: var(--gold-text); font-size: 17px; font-weight: 700; }
.error-page .section-title { margin-bottom: 14px; }
.error-page .lead { max-width: 46ch; margin-bottom: 30px; }
.error-page .hero-actions { justify-content: center; }
.error-help { margin: 38px 0 0; color: var(--text-muted); }
.error-help a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ftr-legal { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ftr-legal a { padding: 11px 0; color: var(--footer-text); }
.ftr-legal a:hover { color: var(--gold-text); }

@media (max-width: 860px) {
  .how-steps, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .team-banner { background-size: cover; background-position: 78% center; }
  .team-banner::before { background: linear-gradient(90deg, rgba(14, 11, 7, .96), rgba(14, 11, 7, .84)); }
}

@media (max-width: 600px) {
  .hero-actions > *, .how-stores > * { width: 100%; }
  .checkout-steps { gap: 10px 16px; }
  .checkout-steps li:not([aria-current]) .checkout-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* On a phone the trail becomes a link back to the parent page. */
  .breadcrumb li { display: none; }
  .breadcrumb li:nth-last-child(2) { display: inline-flex; min-height: 44px; }
  .breadcrumb li:nth-last-child(2)::before { content: "←"; opacity: 1; }
}
