/* =====================================================================
   tour.css: TOUR PAGE TEMPLATE (/tour/<slug>/). Depends on css/csa.css
   (header, footer, page hero, crumbs, cards + swipe row, ticklist,
   discounts, FAQ, gift, contact, phone booking bar).
   ===================================================================== */

/* ---------- Hero: long tour names wrap (Buck page keeps line 1 on one line) ---------- */
.tour-hero h1 .line:not(.accent) { white-space: normal; }
.tour-hero h1 { font-size: min(calc((100vw - 2 * var(--gutter)) / 12), 2.6rem); }
@media (min-width: 900px) { .tour-hero { min-height: 560px; } .tour-hero h1 { font-size: clamp(2.6rem, 3.6vw, 3.6rem); max-width: 15em; } }

/* ---------- Layout: content column + sticky booking card (desktop) ---------- */
.tour-body { padding-top: 22px; }
.tour-layout { display: grid; gap: 34px; }
.tour-layout > section > h2 { font-size: 1.5rem; margin: 0 0 14px; }
@media (min-width: 1024px) {
  .tour-body { padding-top: 34px; }
  .tour-layout { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 56px; row-gap: 44px; align-items: start; }
  .tour-layout > section { grid-column: 1; }
  .book-card { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 96px; }
  .tour-layout > section > h2 { font-size: 1.85rem; }
}

/* ---------- Quick facts ---------- */
.qf-grid { display: grid; gap: 10px; margin: 0; }
@media (min-width: 700px) { .qf-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.qf { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: start; background: var(--sand); border-radius: var(--radius-sm); padding: 12px 14px; }
.qf svg { grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
.qf dt { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.qf dd { margin: 2px 0 0; font-size: .93rem; color: var(--ink-2); line-height: 1.45; }

/* ---------- Booking card ---------- */
.book-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-top: 5px solid var(--orange); padding: 20px; display: grid; gap: 12px; }
.book-card__from { margin: 0; color: var(--navy); line-height: 1; }
.book-card__from small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.book-card__from strong { font-size: 2.2rem; font-weight: 800; }
.book-card__title { font-size: 1.15rem; margin: 0; }
.book-card__tiers { width: 100%; border-collapse: collapse; font-size: .95rem; }
.book-card__tiers th, .book-card__tiers td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.book-card__tiers th { font-weight: 700; color: var(--navy); }
.book-card__tiers th span { font-weight: 600; color: var(--ink-2); font-size: .85rem; margin-left: 4px; }
.book-card__tiers td { text-align: right; font-weight: 800; color: var(--navy); }
.book-card__note { margin: 0; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.book-card .btn svg { width: 18px; height: 18px; margin-right: 6px; }
.book-card__small { list-style: none; margin: 0; padding: 0; font-size: .8rem; color: var(--ink-2); display: grid; gap: 4px; }
.book-card__small li::before { content: "\2713"; color: var(--orange-700); font-weight: 800; margin-right: 6px; }

/* ---------- Overview ---------- */
.tour-lead { font-size: 1.04rem; }
.tour-overview .readmore > summary { color: var(--orange-700); }
.tour-overview .readmore { margin-bottom: 12px; }

/* ---------- Itinerary timeline ---------- */
.itin { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: itin; }
.itin li { position: relative; padding: 0 0 18px 44px; counter-increment: itin; }
.itin li::before { content: counter(itin); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .88rem; display: grid; place-items: center; }
.itin li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--navy-100); }
.itin__when { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-700); }
.itin h3 { font-size: 1.02rem; margin: 2px 0 2px; }
.itin p { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.5; }

/* Photo strip: swipe on phones, 4-up on desktop */
.photo-row { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.photo-row::-webkit-scrollbar { display: none; }
.photo-row li { flex: 0 0 70%; scroll-snap-align: start; }
.photo-row img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
@media (min-width: 700px) { .photo-row { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* ---------- Included / bring ---------- */
.pack { display: grid; gap: 22px; }
@media (min-width: 700px) { .pack { grid-template-columns: 1fr 1fr; gap: 28px; } }
.pack h3 { font-size: 1.05rem; margin: 0 0 10px; }
.pack .ticklist { gap: 8px; }
.pack .ticklist li { font-size: .94rem; }
.bring { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bring li { position: relative; padding-left: 32px; color: var(--ink-2); font-size: .94rem; }
.bring li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--navy); }
.pack__note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; background: var(--navy-100); border-radius: var(--radius-sm); font-size: .88rem; color: var(--navy); font-weight: 600; }
.pack__note svg { width: 20px; height: 20px; flex: none; color: var(--orange); }

/* ---------- Good to know ---------- */
.good { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .good { grid-template-columns: 1fr 1fr; gap: 14px; } }
.good li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius-sm); padding: 12px 14px; }
.good strong { display: block; color: var(--navy); margin-bottom: 2px; }
.good span { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.5; }

/* ---------- Reviews line ---------- */
.rline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; text-align: center; }
.rline img { width: 52px; height: auto; }
.rline__score { margin: 0; color: var(--navy); font-weight: 700; font-size: .95rem; }
.rline__score strong { font-size: 1.6rem; font-weight: 800; margin-right: 6px; vertical-align: -2px; }
.rline__stars { color: #00AA6C; letter-spacing: 2px; margin-right: 4px; }
.rline__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.rq-row { display: grid; gap: 12px; margin: 16px auto 0; max-width: 980px; }
@media (min-width: 900px) { .rq-row { grid-template-columns: 1fr 1fr; gap: 20px; } }
.rq { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.rq blockquote { margin: 0 0 8px; color: var(--ink); font-size: .95rem; line-height: 1.55; }
.rq figcaption { font-size: .8rem; font-weight: 700; color: var(--navy); }

/* ---------- Related cards: 3-up on desktop ---------- */
@media (min-width: 1024px) { .tour-grid--3 { grid-template-columns: repeat(3, 1fr); } .tour-grid--3 .tour-card__media { aspect-ratio: 16 / 10; } }

/* ---------- Phone compaction ---------- */
@media (max-width: 699px) {
  .tour-layout { gap: 28px; }
  .tour-layout > section > h2 { font-size: 1.3rem; }
  .rq:nth-child(2) { display: none; }
  .good span { font-size: .86rem; }
}

/* ---------- v1.1: compact quick facts (2-up on phones, wide items span), wider desktop H1 ---------- */
.qf-grid { grid-template-columns: 1fr 1fr; }
.qf { align-content: start; }
.qf--wide { grid-column: 1 / -1; }
.qf dd small { display: block; font-size: .8rem; margin-top: 2px; }
@media (max-width: 699px) {
  .qf-grid { gap: 8px; }
  .qf { grid-template-columns: 1fr; padding: 10px 12px; }
  .qf svg { display: none; }
  .qf dt { font-size: .68rem; }
  .qf dd { font-size: .88rem; }
}
@media (min-width: 900px) { .tour-hero h1 { font-size: clamp(2.4rem, 3.2vw, 3.2rem); max-width: 20em; } }
/* Desktop scrim: tour photos often have a white hull behind the headline, so darken further across the text column. */
@media (min-width: 900px) {
  .tour-hero::after { background: linear-gradient(90deg, rgba(14,17,52,.94) 0%, rgba(14,17,52,.92) 48%, rgba(14,17,52,.78) 62%, rgba(14,17,52,.25) 82%, rgba(14,17,52,.05) 100%), linear-gradient(0deg, rgba(14,17,52,.35), rgba(14,17,52,0) 40%); }
}
@media (min-width: 900px) { .tour-hero h1 { max-width: 12.5em; } }
/* Phone booking bar: stacked label + From price */
.mbar .btn--primary { flex-direction: column; gap: 0; line-height: 1.1; }
.mbar .btn--primary small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: none; opacity: .92; }
.itin__note { margin: -6px 0 16px; color: var(--ink-2); font-size: .9rem; }

/* Inline snorkel photo pair (guests snorkeling + southern stingray): side by side ≥700px, stacked on phones. */
.tour-photos { margin: 0; }
.snorkel-pair { display: grid; gap: 14px; }
.snorkel-pair figure { margin: 0; }
.snorkel-pair img { display: block; width: 100%; height: auto; border-radius: var(--radius, 14px); }
@media (min-width: 700px) {
  .snorkel-pair { grid-template-columns: 3fr 5fr; align-items: stretch; }
  .snorkel-pair__a img { aspect-ratio: 3 / 4; height: auto; object-fit: cover; }
  .snorkel-pair__b, .snorkel-pair__b picture { height: 100%; }
  .snorkel-pair__b picture { display: block; }
  .snorkel-pair__b img { height: 100%; object-fit: cover; object-position: 62% 50%; }
}
