.cm-tour-sales-page,
.cm-resource-page {
	overflow: hidden;
}

.cm-tour-sales-hero {
	position: relative;
	display: grid;
	min-height: clamp(560px, 72vh, 760px);
	align-items: end;
	isolation: isolate;
	color: var(--cm-color-white);
}

.cm-tour-sales-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--cm-color-primary-900);
}

.cm-tour-sales-hero__media img,
.cm-tour-sales-hero__media > span {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.cm-tour-sales-hero__media img {
	object-fit: cover;
}

.cm-tour-sales-hero__media > span {
	background:
		linear-gradient(0deg, rgba(3,18,38,.97), rgba(3,18,38,.32) 70%),
		linear-gradient(90deg, rgba(3,18,38,.82), transparent 72%);
}

.cm-tour-sales-hero__inner {
	padding-top: 6rem;
	padding-bottom: clamp(3.5rem,7vw,5.5rem);
}

.cm-tour-sales-hero h1 {
	max-width: 13ch;
	margin: .55rem 0 0;
	color: var(--cm-color-white);
	font-size: clamp(3rem,7vw,6rem);
	line-height: .97;
	letter-spacing: -.055em;
}

.cm-tour-sales-hero__summary {
	max-width: 720px;
	margin: 1rem 0 0;
	color: rgba(255,255,255,.8);
	font-size: clamp(1rem,2vw,1.18rem);
	line-height: 1.7;
}

.cm-tour-sales-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem;
	margin-top: 1.5rem;
}

.cm-breadcrumbs {
	margin-bottom: 1.2rem;
	font-size: .78rem;
}

.cm-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: .35rem;
	color: rgba(255,255,255,.45);
}

.cm-breadcrumbs a,
.cm-breadcrumbs span {
	color: rgba(255,255,255,.8);
	text-decoration: none;
}

.cm-tour-snapshot {
	position: relative;
	z-index: 2;
	background: var(--cm-color-surface);
}

.cm-tour-snapshot__grid {
	display: grid;
	overflow: hidden;
	margin-top: -1.5rem;
	border: 1px solid rgba(8,37,74,.08);
	border-radius: var(--cm-radius-xl);
	background: var(--cm-color-white);
	box-shadow: var(--cm-shadow-md);
}

.cm-tour-snapshot article {
	padding: 1rem 1.15rem;
}

.cm-tour-snapshot article + article {
	border-top: 1px solid var(--cm-color-border);
}

.cm-tour-snapshot small,
.cm-tour-snapshot strong {
	display: block;
}

.cm-tour-snapshot small {
	color: var(--cm-color-muted);
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.cm-tour-snapshot strong {
	margin-top: .25rem;
	color: var(--cm-color-primary-900);
	font-family: var(--cm-font-heading);
	font-size: 1.05rem;
}

.cm-tour-date--departure strong {
	color: #0b3d70;
}

.cm-tour-date--deadline {
	padding: .75rem;
	border-left: 4px solid var(--cm-color-accent);
	border-radius: var(--cm-radius-md);
	background: rgba(247,168,27,.11);
}

.cm-tour-date--deadline strong {
	color: var(--cm-color-primary-900);
}

.cm-tour-sales-body {
	padding: clamp(4rem,7vw,6.5rem) 0;
	background: var(--cm-color-surface);
}

.cm-tour-sales-layout {
	display: grid;
	gap: 2rem;
	align-items: start;
}

.cm-tour-sales-content {
	min-width: 0;
	display: grid;
	gap: 1rem;
}

.cm-tour-section {
	padding: clamp(1.15rem,3vw,2rem);
	border: 1px solid rgba(8,37,74,.08);
	border-radius: var(--cm-radius-xl);
	background: var(--cm-color-white);
	box-shadow: var(--cm-shadow-sm);
}

.cm-tour-section > h2 {
	margin: 0 0 1.25rem;
	font-size: clamp(1.8rem,3.5vw,2.7rem);
	letter-spacing: -.035em;
}

.cm-tour-overview .cm-prose {
	padding: 0;
	box-shadow: none;
}

.cm-tour-facts-grid,
.cm-tour-detail-list {
	display: grid;
	gap: .75rem;
}

.cm-tour-facts-grid article,
.cm-tour-detail-list article {
	padding: 1rem;
	border-radius: var(--cm-radius-lg);
	background: var(--cm-color-surface);
}

.cm-tour-facts-grid small,
.cm-tour-facts-grid strong,
.cm-tour-detail-list strong,
.cm-tour-detail-list p {
	display: block;
	margin: 0;
}

.cm-tour-facts-grid small {
	color: var(--cm-color-muted);
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.cm-tour-facts-grid strong {
	margin-top: .3rem;
	color: var(--cm-color-primary-900);
}

.cm-tour-detail-list p {
	margin-top: .35rem;
	color: var(--cm-color-muted);
	font-size: .88rem;
}

.cm-tour-itinerary-list,
.cm-tour-faq-list {
	display: grid;
	gap: .65rem;
}

.cm-tour-itinerary-list details,
.cm-tour-faq-list details {
	border: 1px solid var(--cm-color-border);
	border-radius: var(--cm-radius-lg);
	background: var(--cm-color-surface);
}

.cm-tour-itinerary-list summary,
.cm-tour-faq-list summary {
	padding: 1rem;
	color: var(--cm-color-primary-900);
	cursor: pointer;
}

.cm-tour-itinerary-list summary {
	display: grid;
	gap: .2rem;
}

.cm-tour-itinerary-list summary span {
	color: var(--cm-color-accent-hover);
	font-size: .72rem;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.cm-tour-itinerary-list p,
.cm-tour-faq-list p {
	margin: 0;
	padding: 0 1rem 1rem;
	color: var(--cm-color-muted);
	line-height: 1.7;
}

.cm-tour-requirements,
.cm-tour-payment-panel {
	padding: 1.15rem;
	border-radius: var(--cm-radius-lg);
	background: var(--cm-color-surface);
}

.cm-tour-requirements p,
.cm-tour-payment-panel p {
	margin-top: 0;
}

.cm-tour-disclaimer,
.cm-tour-cancellation {
	padding: .85rem;
	border-left: 4px solid var(--cm-color-accent);
	background: rgba(247,168,27,.09);
	font-size: .84rem;
}

.cm-tour-payment-panel > a {
	color: var(--cm-color-primary-700);
	font-weight: 800;
	text-decoration: none;
}

.cm-tour-booking-card {
	padding: 1.3rem;
	border: 1px solid rgba(8,37,74,.08);
	border-radius: var(--cm-radius-xl);
	background: var(--cm-color-white);
	box-shadow: var(--cm-shadow-md);
}

.cm-tour-booking-card > small {
	color: var(--cm-color-muted);
}

.cm-tour-booking-card__price {
	display: block;
	margin: .15rem 0 1rem;
	color: #ef8500;
	font-family: var(--cm-font-heading);
	font-size: 2.25rem;
}

.cm-tour-booking-card dl {
	margin: 0 0 1rem;
}

.cm-tour-booking-card dl > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .75rem 0;
	border-bottom: 1px solid var(--cm-color-border);
}

.cm-tour-booking-card dt {
	color: var(--cm-color-muted);
}

.cm-tour-booking-card dd {
	margin: 0;
	color: var(--cm-color-primary-900);
	font-weight: 800;
	text-align: right;
}

.cm-tour-booking-card .cm-button + .cm-button {
	margin-top: .65rem;
}

.cm-tour-phone-link {
	display: inline-flex;
	justify-content: center;
	width: 100%;
	margin-top: .65rem;
	color: var(--cm-color-primary-800);
	font-weight: 800;
	text-decoration: none;
}

.cm-tour-phone-link:hover,
.cm-tour-phone-link:focus-visible {
	color: var(--cm-color-accent-hover);
	text-decoration: underline;
}

.cm-tour-mobile-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9998;
	display: grid;
	grid-template-columns: minmax(0,1fr) auto auto auto;
	gap: .55rem;
	align-items: center;
	padding: .65rem max(.75rem, env(safe-area-inset-right)) calc(.65rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
	border-top: 1px solid rgba(8,37,74,.12);
	background: rgba(255,255,255,.97);
	box-shadow: 0 -12px 35px rgba(8,37,74,.12);
	backdrop-filter: blur(12px);
}

.cm-tour-mobile-bar small,
.cm-tour-mobile-bar strong {
	display: block;
}

.cm-tour-mobile-bar small {
	color: var(--cm-color-muted);
	font-size: .66rem;
}

.cm-tour-mobile-bar strong {
	color: var(--cm-color-primary-900);
	font-size: .92rem;
}

.cm-tour-mobile-bar .cm-button {
	min-height: 48px;
	padding: .65rem .9rem;
}

.cm-tour-mobile-bar__whatsapp {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
}

.cm-tour-mobile-bar__phone {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--cm-color-border);
	border-radius: 50%;
	background: #fff;
	color: var(--cm-color-primary-900);
}

.cm-tour-mobile-bar__whatsapp svg,
.cm-tour-mobile-bar__phone svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.single-cm_trip_package .cm-whatsapp-float {
	display: none;
}

/* Traveller resources */
.cm-resource-hero {
	padding: clamp(4rem,7vw,6rem) 0;
	background:
		radial-gradient(circle at 85% 18%, rgba(25,169,229,.18), transparent 28%),
		linear-gradient(135deg,#061d3a,var(--cm-color-primary-700));
	color: var(--cm-color-white);
}

.cm-resource-hero h1 {
	max-width: 14ch;
	margin: 0;
	color: var(--cm-color-white);
	font-size: clamp(2.6rem,5.5vw,4.8rem);
	letter-spacing: -.05em;
}

.cm-resource-hero > .cm-container > p:not(.cm-page-eyebrow) {
	max-width: 700px;
	color: rgba(255,255,255,.74);
}

.cm-resource-body {
	padding: clamp(4rem,7vw,6rem) 0;
	background: var(--cm-color-surface);
}

.cm-resource-layout {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

.cm-resource-prose {
	font-size: 1.02rem;
	line-height: 1.8;
}

.cm-resource-sidebar {
	padding: 1.2rem;
	border-radius: var(--cm-radius-xl);
	background: var(--cm-color-white);
	box-shadow: var(--cm-shadow-sm);
}

.cm-resource-sidebar h2 {
	margin-top: 0;
	font-size: 1.2rem;
}

.cm-resource-sidebar ul {
	display: grid;
	gap: .5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.cm-resource-sidebar a:not(.cm-button) {
	color: var(--cm-color-primary-700);
	font-weight: 750;
	text-decoration: none;
}

@media (min-width: 600px) {
	.cm-tour-snapshot__grid,
	.cm-tour-facts-grid,
	.cm-tour-detail-list {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}

	.cm-tour-snapshot article:nth-child(2) {
		border-top: 0;
	}

	.cm-tour-snapshot article:nth-child(even) {
		border-left: 1px solid var(--cm-color-border);
	}
}

@media (min-width: 900px) {
	.cm-tour-snapshot__grid {
		grid-template-columns: repeat(4,minmax(0,1fr));
	}

	.cm-tour-snapshot article {
		border-top: 0 !important;
	}

	.cm-tour-snapshot article + article {
		border-left: 1px solid var(--cm-color-border);
	}

	.cm-tour-sales-layout {
		grid-template-columns: minmax(0,1fr) minmax(290px,360px);
	}

	.cm-tour-booking-card {
		position: sticky;
		top: calc(var(--cm-header-height) + 1.5rem);
	}

	.admin-bar .cm-tour-booking-card {
		top: calc(var(--cm-header-height) + 3.5rem);
	}

	.cm-tour-mobile-bar {
		display: none;
	}

	.single-cm_trip_package .cm-whatsapp-float {
		display: flex;
	}

	.cm-resource-layout {
		grid-template-columns: minmax(0,1fr) minmax(260px,330px);
	}

	.cm-resource-sidebar {
		position: sticky;
		top: calc(var(--cm-header-height) + 1.5rem);
	}
}

@media (max-width: 899px) {
	body.single-cm_trip_package {
		padding-bottom: calc(76px + env(safe-area-inset-bottom));
	}
}
