/* ==========================================================================
   Single voyage page (single-trip.php)

   Layout, component set and interaction model are ported from the redesigned
   tour page on seduniatravel.com — hero with scrim + chips, sticky sub-nav,
   scrolling sections beside a sticky booking calculator, mobile bottom sheet.
   Everything is re-tokened to this site's own palette and type scale (see
   main.css) rather than that site's Barlow/#0f6f51/#c8a24d, so a voyage page
   sits alongside the home and collection pages without a visual seam.
   ========================================================================== */
:root {
	/* --trip-header-h is kept in sync with the site header by single-trip.js so
	   the two sticky bars stack instead of overlapping; --trip-tabbar-h does the
	   same for the mobile tab bar the sticky price bar has to sit above. */
	--trip-header-h: 0px;
	--trip-nav-h: 54px;
	--trip-tabbar-h: 0px;
}
@media (max-width: 767px) {
	:root { --trip-tabbar-h: 64px; }
}

/* main.css sets `overflow-x: hidden` on both html and body to contain stray
   full-bleed sections. That turns each of them into a scroll container, which
   silently disables every `position: sticky` inside — the sub-nav and the
   booking card scroll away instead of pinning. `overflow: clip` keeps the same
   horizontal containment without creating a scroll container. This stylesheet
   only loads on voyage pages, so the bare `html` selector can't reach any
   other page. Browsers without `clip` fall back to today's behaviour. */
@supports (overflow: clip) {
	html { overflow-x: clip; overflow-y: visible; }
	body.single-trip { overflow-x: clip; overflow-y: visible; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.trip-hero {
	position: relative; display: flex; align-items: flex-end;
	min-height: clamp(380px, 56vh, 560px);
}
.trip-hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.trip-hero__scrim {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(16,44,61,0.45) 0%, rgba(16,44,61,0.15) 38%, rgba(16,44,61,0.82) 100%);
}
.trip-hero__inner {
	position: relative; z-index: 2; width: 100%; max-width: var(--container);
	margin: 0 auto; padding: 140px 5% 40px; color: #fff;
}

.trip-crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 14px;
}
.trip-crumbs a { color: rgba(255,255,255,0.85); }
.trip-crumbs a:hover { color: var(--gold); }

.trip-hero__offer {
	display: inline-block; margin-bottom: 14px; padding: 6px 16px; border-radius: 4px;
	background: var(--gold); color: var(--navy);
	font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

.trip-hero__title {
	font-family: var(--font-serif); font-weight: 500; color: #fff;
	font-size: clamp(28px, 4vw, 46px); line-height: 1.15; margin: 0 0 18px;
	text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.trip-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
	background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	color: #fff; font-size: 13px; font-weight: 500;
}
.trip-chip .dashicons { color: var(--gold); font-size: 16px; width: 16px; height: 16px; }
.trip-chip--type { background: rgba(14,59,50,0.7); border-color: rgba(199,154,59,0.5); }

/* --------------------------------------------------------------------------
   Sticky section nav
   -------------------------------------------------------------------------- */
.trip-subnav {
	position: sticky; top: var(--trip-header-h); z-index: 60;
	background: #fff; border-bottom: 1px solid var(--border);
	box-shadow: 0 2px 10px rgba(16,44,61,0.05); transition: top .15s ease;
}
.trip-subnav__track {
	max-width: var(--container); margin: 0 auto; padding: 0 5%;
	display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.trip-subnav__track::-webkit-scrollbar { display: none; }
.trip-subnav__track a {
	flex: 0 0 auto; padding: 16px 14px 13px; white-space: nowrap;
	font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted);
	border-bottom: 3px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.trip-subnav__track a:hover { color: var(--navy); }
.trip-subnav__track a.is-active { color: var(--navy); border-bottom-color: var(--gold); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.trip-layout {
	max-width: var(--container); margin: 0 auto; padding: 8px 5% 80px;
	display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start;
	background: transparent;
}
.trip-main { min-width: 0; }

.trip-section {
	padding: 32px 0; border-bottom: 1px solid var(--border);
	scroll-margin-top: calc(var(--trip-header-h) + var(--trip-nav-h) + 8px);
}
.trip-section:last-child { border-bottom: none; }

.trip-h2 { font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 16px; color: var(--navy); }
.trip-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trip-section__head .trip-h2 { margin-bottom: 16px; }
.trip-muted { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.trip-lede { font-size: 16px; line-height: 1.8; color: #3C3C38; margin: 0; }
.trip-prose { font-size: 15px; line-height: 1.8; color: #3C3C38; }
.trip-prose p { margin: 0 0 14px; }
.trip-prose img { border-radius: var(--radius); margin: 8px 0; }
.trip-prose h2, .trip-prose h3, .trip-prose h4 { color: var(--navy); margin: 22px 0 10px; }
.trip-prose ul { list-style: disc; padding-left: 20px; margin: 0 0 14px; }
.trip-prose li { margin-bottom: 6px; }

.trip-textlink {
	display: inline-block; margin-top: 12px; color: var(--gold-dark);
	font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.trip-textlink:hover { color: var(--navy); }

/* Facts grid */
.trip-facts {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px; margin-top: 24px;
}
.trip-fact {
	display: flex; gap: 12px; align-items: center; padding: 14px 16px;
	background: var(--ivory); border: 1px solid rgba(199,154,59,0.28); border-radius: var(--radius);
}
.trip-fact .dashicons { color: var(--gold); flex: 0 0 auto; font-size: 20px; width: 20px; height: 20px; }
.trip-fact span { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.trip-fact strong { display: block; font-size: 14px; color: var(--navy); line-height: 1.35; }

/* Highlights panel */
.trip-lineitems {
	margin-top: 24px; padding: 20px 22px; border-radius: var(--radius);
	background: #FDFAF3; border: 1px solid rgba(199,154,59,0.34);
}
.trip-lineitems__title { font-family: var(--font-serif); font-size: 20px; color: var(--navy); margin: 0 0 12px; }
.trip-lineitems li {
	position: relative; padding: 8px 0 8px 22px; font-size: 15px; line-height: 1.65;
	color: #3C3C38; border-bottom: 1px dotted rgba(16,44,61,0.12);
}
.trip-lineitems li:last-child { border-bottom: none; }
.trip-lineitems li::before {
	content: ""; position: absolute; left: 4px; top: 16px;
	width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

/* --------------------------------------------------------------------------
   Itinerary timeline
   -------------------------------------------------------------------------- */
.trip-toggle-days {
	flex: 0 0 auto; margin-bottom: 16px; padding: 9px 20px; border-radius: 4px; cursor: pointer;
	background: #fff; border: 1px solid var(--navy); color: var(--navy);
	font-family: var(--font-sans); font-size: 13px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.06em; transition: all .2s ease;
}
.trip-toggle-days:hover { background: var(--navy); color: #fff; }

.trip-timeline { position: relative; padding-left: 20px; }
.trip-timeline::before {
	content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px;
	background: linear-gradient(180deg, var(--gold), rgba(199,154,59,0.15));
}
.trip-day {
	position: relative; margin-bottom: 12px; background: #fff;
	border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow .25s ease;
}
.trip-day[open] { box-shadow: var(--shadow-card); }
.trip-day::before {
	content: ""; position: absolute; left: -20px; top: 24px; width: 10px; height: 10px;
	border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,59,0.25);
}
.trip-day summary {
	display: flex; align-items: center; gap: 12px; padding: 16px 18px;
	cursor: pointer; list-style: none;
}
.trip-day summary::-webkit-details-marker { display: none; }
.trip-day__num {
	flex: 0 0 auto; padding: 4px 12px; border-radius: 999px; background: #EAF1EE;
	color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}
.trip-day__head { flex: 1 1 auto; font-family: var(--font-serif); font-size: 18px; color: var(--navy); line-height: 1.35; }
.trip-day__chevron { color: var(--muted); transition: transform .25s ease; flex: 0 0 auto; }
.trip-day[open] .trip-day__chevron { transform: rotate(180deg); }
.trip-day__body { padding: 0 18px 18px; font-size: 15px; line-height: 1.75; color: #3C3C38; }
.trip-day__body p { margin: 0 0 12px; }
.trip-day__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Ports & map
   -------------------------------------------------------------------------- */
.trip-ports { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; margin-bottom: 24px; }
.trip-ports li {
	display: flex; align-items: flex-start; gap: 8px; padding: 8px 0;
	font-size: 15px; color: #3C3C38; border-bottom: 1px dotted rgba(16,44,61,0.12);
}
.trip-ports .dashicons { color: var(--gold); font-size: 17px; width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; }
.trip-routemap { margin: 0; }
.trip-routemap img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.trip-routemap--embed iframe { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   Inclusions
   -------------------------------------------------------------------------- */
.trip-incl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trip-incl { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); }
.trip-incl--yes { background: #F2F7F4; border-color: rgba(14,59,50,0.2); }
.trip-incl--no { background: #FBF6F3; border-color: rgba(158,86,58,0.2); }
.trip-incl h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 19px; color: var(--navy); margin: 0 0 12px; }
.trip-incl--yes h3 .dashicons { color: var(--green); }
.trip-incl--no h3 .dashicons { color: #9E563A; }
.trip-incl ul { list-style: disc; padding-left: 20px; }
.trip-incl li { margin-bottom: 8px; font-size: 15px; line-height: 1.6; color: #3C3C38; }

/* --------------------------------------------------------------------------
   Fare cards (one per sailing date)
   -------------------------------------------------------------------------- */
.trip-farecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.trip-farecard {
	display: block; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
	padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.trip-farecard:hover { border-color: var(--gold); }
.trip-farecard.is-selected { border-color: var(--green); box-shadow: 0 6px 18px rgba(14,59,50,0.14); }
.trip-farecard__date { display: block; font-family: var(--font-serif); font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.trip-farecard__lead { display: block; font-size: 15px; font-weight: 600; color: var(--green); margin-bottom: 12px; }
.trip-farecard__lead em { font-style: normal; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.trip-farecard.is-selected .trip-farecard__date::after {
	content: " \2713"; color: var(--green); font-family: var(--font-sans); font-size: 14px;
}
.trip-farecard__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.trip-farecard__cell em { display: block; font-style: normal; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.trip-farecard__cell strong { font-size: 14px; color: var(--navy); font-weight: 600; }
.trip-farecard__cell.is-sold strong { color: #9E563A; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

/* --------------------------------------------------------------------------
   Cabin cards
   -------------------------------------------------------------------------- */
.trip-cabins { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.trip-cabin { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.trip-cabin__img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.trip-cabin__body { padding: 16px 18px; }
.trip-cabin__body h3 { font-family: var(--font-serif); font-size: 19px; color: var(--navy); margin: 0 0 4px; }
.trip-cabin__meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.trip-cabin__price { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.trip-cabin__price strong { font-family: var(--font-serif); font-size: 20px; color: var(--green); }
.trip-cabin__desc { font-size: 14px; line-height: 1.6; color: #3C3C38; }
.trip-cabin__more {
	margin-top: 12px; padding: 0; background: none; border: none;
	color: var(--gold-dark); font-family: var(--font-sans); font-size: 13px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.06em;
}
.trip-cabin__more:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   Brand mark, gallery, video
   -------------------------------------------------------------------------- */
.trip-brandmark { margin-bottom: 20px; }
.trip-brandmark img { max-height: 64px; width: auto; }

.trip-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.trip-gallery__item { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.trip-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.trip-gallery__item:hover img { transform: scale(1.06); }

.trip-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.trip-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.trip-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tags */
.trip-tags-section { border-bottom: none; }
.trip-tags-label {
	display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.trip-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.trip-tag {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 999px;
	background: var(--ivory); border: 1px solid var(--border);
	font-size: 13px; font-weight: 500; color: var(--navy); transition: all .2s ease;
}
.trip-tag span { color: var(--gold); font-weight: 700; }
.trip-tag:hover { border-color: var(--gold); box-shadow: var(--shadow-card); }

/* --------------------------------------------------------------------------
   Booking card (desktop sidebar / mobile bottom sheet)
   -------------------------------------------------------------------------- */
/* A sticky box taller than the space below the two sticky bars would pin at
   the top with its lower half permanently unreachable — on a laptop that's the
   CTAs, trust list and QR. Cap it to the visible space and let it scroll
   inside instead. The padding/negative-margin pair is net-zero on layout and
   just gives the card's shadow room so `overflow` doesn't shear it off. */
.trip-aside {
	position: sticky;
	top: calc(var(--trip-header-h) + var(--trip-nav-h) + 16px);
	max-height: calc(100vh - var(--trip-header-h) - var(--trip-nav-h) - 40px);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	padding: 8px;
	margin: -8px;
	scrollbar-width: thin;
	scrollbar-color: var(--border) transparent;
}
.trip-aside::-webkit-scrollbar { width: 6px; }
.trip-aside::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.trip-aside::-webkit-scrollbar-track { background: transparent; }
.trip-sheet-handle, .trip-sheet-backdrop { display: none; }

.trip-book {
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	padding: 24px; box-shadow: var(--shadow-card);
}
.trip-book__offer {
	margin: -24px -24px 18px; padding: 10px 20px; border-radius: 7px 7px 0 0;
	background: var(--gold); color: var(--navy); text-align: center;
	font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.trip-book__price { margin-bottom: 18px; }
.trip-book__from { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.trip-book__amount { font-family: var(--font-sans); font-size: 17px; color: var(--green); font-weight: 600; }
.trip-book__amount strong { font-family: var(--font-serif); font-size: 32px; font-weight: 600; letter-spacing: -0.01em; }
.trip-book__amount em { font-style: normal; font-size: 13px; color: var(--muted); }

.trip-calc { padding-top: 18px; border-top: 1px dashed var(--border); margin-bottom: 18px; }
.trip-calc__label {
	display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.trip-calc__select {
	width: 100%; margin-bottom: 14px; padding: 12px 12px; border-radius: 4px;
	border: 1px solid var(--border); background: #fff;
	font-family: var(--font-sans); font-size: 14px; color: var(--navy);
}
.trip-calc__cabins { display: grid; gap: 8px; margin-bottom: 14px; }
.trip-cabin-opt {
	display: flex; align-items: center; gap: 10px; padding: 11px 12px; cursor: pointer;
	border: 1px solid var(--border); border-radius: 4px; font-size: 13.5px; transition: border-color .2s ease;
}
.trip-cabin-opt input { accent-color: var(--green); flex: 0 0 auto; }
.trip-cabin-opt.is-on { border-color: var(--green); background: #F2F7F4; }
.trip-cabin-opt strong { margin-left: auto; color: var(--green); white-space: nowrap; font-size: 13.5px; }
.trip-cabin-opt.is-sold { opacity: 0.55; cursor: not-allowed; }
.trip-cabin-opt.is-sold strong { color: #9E563A; }

.trip-calc__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--navy); }
.trip-stepper { display: inline-flex; align-items: center; gap: 4px; }
.trip-stepper button {
	width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
	background: #fff; color: var(--navy); font-size: 17px; line-height: 1; transition: all .2s ease;
}
.trip-stepper button:hover { border-color: var(--green); color: var(--green); }
.trip-stepper output { min-width: 34px; text-align: center; font-weight: 700; font-size: 15px; }

.trip-calc__total {
	display: flex; align-items: baseline; justify-content: space-between;
	padding: 13px 15px; border-radius: 4px; background: #F2F7F4; font-size: 13.5px; color: var(--navy);
}
.trip-calc__total strong { font-family: var(--font-serif); font-size: 22px; color: var(--green); }
.trip-calc__note { margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }

.trip-book__ctas { display: grid; gap: 10px; margin-bottom: 18px; }
.trip-book__cta { width: 100%; height: 48px; }
.trip-book__cta--wa { background: #25D366; color: #fff; }
.trip-book__cta--wa:hover { background: #1EB857; color: #fff; }

.trip-trust { padding-top: 16px; border-top: 1px dashed var(--border); }
.trip-trust li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.trip-trust li:last-child { margin-bottom: 0; }
.trip-trust .dashicons { color: var(--gold); font-size: 16px; width: 16px; height: 16px; flex: 0 0 auto; }
.trip-trust a:hover { color: var(--navy); }

/* Brochure QR. The Kaya plugin emits its own wrappers, a stray float and a
   duplicate download link inside .trip-qr — normalise them rather than fight
   the plugin's markup. */
.trip-qr { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); text-align: center; }
.trip-qr img, .trip-qr canvas {
	width: 112px !important; height: 112px !important;
	margin: 0 auto 8px !important; display: block; float: none !important;
}
.trip-qr .wpkqcg_qrcode_wrapper, .trip-qr div, .trip-qr center, .trip-qr p {
	margin: 0 auto !important; float: none !important; text-align: center !important;
}
.trip-qr a[download] { display: none; }
.trip-qr span { display: block; font-size: 11.5px; line-height: 1.5; color: var(--muted); }

.trip-book__brand { display: block; margin-top: 16px; text-align: center; }
.trip-book__brand img { max-height: 52px; width: auto; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Mobile sticky bar
   -------------------------------------------------------------------------- */
.trip-mobilebar { display: none; }

/* --------------------------------------------------------------------------
   Lightbox & cabin modal
   -------------------------------------------------------------------------- */
.trip-lightbox, .trip-modal {
	position: fixed; inset: 0; z-index: 9999; padding: 24px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(16,44,61,0.92);
}
.trip-lightbox[hidden], .trip-modal[hidden] { display: none !important; }
.trip-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); }
.trip-lightbox__close, .trip-modal__close {
	position: absolute; top: 10px; right: 16px; background: none; border: none;
	color: #fff; font-size: 38px; line-height: 1;
}
.trip-modal__panel {
	position: relative; width: min(760px, 100%); max-height: 86vh; overflow-y: auto;
	background: #fff; border-radius: var(--radius); padding: 28px;
}
.trip-modal__close { color: var(--navy); top: 6px; right: 14px; }
.trip-modal__panel h3 { font-family: var(--font-serif); font-size: 24px; color: var(--navy); margin: 0 0 6px; padding-right: 32px; }
.trip-modal__meta { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.trip-modal__body p { font-size: 15px; line-height: 1.7; color: #3C3C38; margin: 0 0 14px; }
.trip-modal__images { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.trip-modal__images figure { margin: 0; }
.trip-modal__images img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.trip-modal__images figcaption { margin-top: 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------------------
   Tablet / mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
	.trip-layout { grid-template-columns: 1fr; gap: 0; padding-bottom: 40px; }
	.trip-incl-grid { grid-template-columns: 1fr; }

	/* Booking card becomes a bottom sheet, opened from the sticky price bar. */
	.trip-aside {
		position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 148;
		max-height: 82vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
		transform: translateY(103%); transition: transform .35s cubic-bezier(.22,.9,.3,1);
		padding: 0; margin: 0; /* reset the desktop shadow gutter */
	}
	.trip-aside.is-open { transform: none; }
	.trip-aside .trip-book {
		border-radius: 16px 16px 0 0; border-bottom: none;
		box-shadow: 0 -12px 44px rgba(16,44,61,0.28);
		padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	}
	.trip-aside .trip-book__offer { border-radius: 0; margin-top: 0; }
	/* A QR is for moving the brochure from a big screen to your phone — on the
	   phone itself it is unscannable and just costs sheet height. The
	   "Download Brochure" button right above it does the same job here. */
	.trip-qr { display: none; }
	.trip-sheet-handle {
		display: flex; align-items: center; justify-content: center; position: relative; z-index: 2;
		background: #fff; border-radius: 16px 16px 0 0; padding: 10px 0 0; margin-bottom: -21px;
	}
	.trip-sheet-handle__bar { display: block; width: 44px; height: 4px; border-radius: 3px; background: #D9D2C2; }
	.trip-sheet-handle__close {
		position: absolute; right: 10px; top: 2px; width: 34px; height: 34px;
		background: none; border: none; font-size: 26px; line-height: 1; color: var(--muted);
	}
	.trip-sheet-backdrop {
		display: block; position: fixed; inset: 0; z-index: 147;
		background: rgba(16,44,61,0.5); opacity: 0; visibility: hidden;
		transition: opacity .3s ease, visibility .3s ease;
	}
	.trip-sheet-backdrop.is-on { opacity: 1; visibility: visible; }
	body.trip-sheet-open { overflow: hidden; }

	/* Sticky price bar sits directly above the site's mobile tab bar. */
	.trip-mobilebar {
		display: flex; align-items: center; gap: 12px; cursor: pointer;
		position: fixed; left: 0; right: 0; bottom: var(--trip-tabbar-h); z-index: 145;
		padding: 10px 16px; background: var(--navy);
		box-shadow: 0 -4px 16px rgba(0,0,0,0.22);
	}
	.trip-mobilebar__chevron { flex: 0 0 auto; color: var(--gold); }
	.trip-mobilebar__price { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
	.trip-mobilebar__price span { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
	.trip-mobilebar__price strong { font-size: 18px; color: var(--gold); font-weight: 700; }
	.trip-mobilebar__price em {
		display: block; font-style: normal; font-size: 11px; color: rgba(255,255,255,0.7);
		white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	}
	.trip-mobilebar .btn { flex: 0 0 auto; height: 42px; padding: 0 18px; font-size: 13px; }

	/* Keep the tab bar, the price bar and the floating widgets off each other. */
	body.single-trip { padding-bottom: calc(var(--trip-tabbar-h) + 64px); }
	/* The body rule above is the one plugins are most likely to fight over, so
	   also pad the footer itself — the last thing the two fixed bars overlap. */
	body.single-trip .site-footer { padding-bottom: calc(var(--trip-tabbar-h) + 72px); }
	body.single-trip #qlwapp.qlwapp-bottom-left { bottom: calc(var(--trip-tabbar-h) + 72px) !important; }
	body.single-trip .ai-fab { bottom: calc(var(--trip-tabbar-h) + 72px); }
	body.trip-sheet-open #qlwapp.qlwapp-bottom-left,
	body.trip-sheet-open .ai-fab { opacity: 0 !important; pointer-events: none !important; }
}

@media (max-width: 767px) {
	.trip-hero { min-height: 440px; }
	.trip-hero__inner { padding: 110px 5% 28px; }
	.trip-farecard__cols { grid-template-columns: 1fr; }
	.trip-section { padding: 26px 0; }
	.trip-modal__panel { padding: 22px 18px; }
}
