/* Indigo Manta Trips – front end */

/* Sold-out cabin in Tourmaster's cabin list */
.tourmaster-tour-booking-package li.imt-sold-out {
	opacity: 0.55;
	cursor: not-allowed !important;
}
.tourmaster-tour-booking-package li.imt-sold-out .tourmaster-combobox-list-title {
	text-decoration: line-through;
}
.imt-sold-out-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 3px;
	background: #b3261e;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.6;
	text-transform: uppercase;
	text-decoration: none;
	vertical-align: middle;
}

/* No payment = no billing details on the booking page */
.imt-hide-billing .tourmaster-payment-billing-wrap,
.imt-hide-billing .tourmaster-payment-billing-detail {
	display: none !important;
}

/* Booking page style 2 with payment off: no card logos, full-width request button */
.imt-no-payment .tourmaster-payment-credit-card-type {
	display: none !important;
}
.imt-no-payment .imt-booking-button {
	display: block;
	width: 100%;
	margin-top: 20px;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
}

/* Header photo without the dark gradient (Trip Settings → Options) */
body.imt-no-header-gradient .tourmaster-single-header-top-overlay,
body.imt-no-header-gradient .tourmaster-single-header-overlay {
	display: none !important;
}

/* Style preview bar (admins only) */
.imt-preview-bar {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 99999;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	padding: 12px 16px;
	border-radius: 8px;
	background: #10223f;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.imt-preview-bar a {
	color: #fff;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	white-space: nowrap;
}
.imt-preview-bar a:hover,
.imt-preview-bar a.imt-active {
	background: #fff;
	color: #10223f;
}
.imt-preview-note {
	opacity: 0.75;
	flex: 1 1 260px;
}
.imt-preview-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.imt-preview-bar a.imt-preview-use {
	background: #2e8b57;
	border-color: #2e8b57;
	font-weight: 600;
}
.imt-preview-bar a.imt-preview-use:hover {
	background: #3aa86b;
	color: #fff;
}

/* Trip content blocks */
.imt-trip-section {
	margin-bottom: 40px;
}
.imt-trip-section h3,
.imt-trip-section h4 {
	margin-bottom: 16px;
}
.imt-trip-highlights {
	margin-left: 0;
	padding-left: 20px;
}
.imt-trip-highlights li {
	margin-bottom: 6px;
}

.imt-cabin-table,
.imt-facts-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 14px;
}
.imt-cabin-table th,
.imt-cabin-table td,
.imt-facts-table th,
.imt-facts-table td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	text-align: left;
	vertical-align: top;
}
.imt-facts-table th {
	width: 40%;
	font-weight: 600;
}
.imt-cabin-caption {
	display: block;
	font-size: 0.9em;
	opacity: 0.75;
}
.imt-cabin-price {
	font-weight: 700;
	white-space: nowrap;
}
.imt-cabin-sold-out td {
	opacity: 0.6;
}
.imt-cabin-sold-out .imt-cabin-price {
	text-decoration: line-through;
}
.imt-trip-note {
	font-style: italic;
	opacity: 0.85;
}

.imt-itinerary-day {
	margin-bottom: 18px;
}
.imt-itinerary-day-title {
	display: block;
	font-weight: 700;
	margin-bottom: 4px;
}

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

/* "Book Trip" bar and booking sheet: phones and tablets, and computers when switched on */
.imt-mbar,
.imt-sheet {
	display: none;
}
@media (max-width: 999px) {
	html.imt-mbar-on body {
		padding-bottom: 76px;
	}
	.imt-mbar {
		display: flex;
	}
	.imt-sheet {
		display: block;
	}
}
@media (min-width: 1000px) {
	html.imt-mbar-on body.imt-book-desktop {
		padding-bottom: 80px;
	}
	body.imt-book-desktop .imt-mbar {
		display: flex;
	}
	body.imt-book-desktop .imt-sheet {
		display: block;
	}
}
.imt-mbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: #ffffff;
	box-shadow: 0 -6px 20px rgba(11, 34, 64, 0.16);
	transform: translateY(110%);
	transition: transform 0.25s ease;
}
.imt-mbar.imt-mbar-show {
	transform: translateY(0);
}
.imt-mbar-price {
	font-size: 15px;
	font-weight: 700;
	color: #0b2240;
	line-height: 1.2;
}
.imt-mbar-btn {
	flex: 0 0 auto;
	min-width: 150px;
	padding: 13px 22px;
	border: 0;
	border-radius: 8px;
	background: #145fae;
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
}
.imt-mbar-btn:hover,
.imt-mbar-btn:focus-visible {
	background: #0e4c8f;
	outline: 2px solid #0e4c8f;
	outline-offset: 2px;
}

.imt-sheet {
	position: fixed;
	inset: 0;
	z-index: 10000; /* below Tourmaster pop-ups (10001) */
	visibility: hidden;
	pointer-events: none;
}
.imt-sheet.imt-sheet-open {
	visibility: visible;
	pointer-events: auto;
}
.imt-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 12, 24, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.imt-sheet-open .imt-sheet-backdrop {
	opacity: 1;
}
.imt-sheet-panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 88vh;
	max-height: 88dvh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
	transform: translateY(100%);
	transition: transform 0.28s ease;
}
.imt-sheet-open .imt-sheet-panel {
	transform: translateY(0);
}
.imt-sheet-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 16px 10px 20px;
	border-bottom: 1px solid #e3e8ef;
}
.imt-sheet-grip {
	position: absolute;
	top: 7px;
	left: 50%;
	width: 40px;
	height: 4px;
	margin-left: -20px;
	border-radius: 2px;
	background: #ccd5e1;
}
.imt-sheet-title {
	font-size: 17px;
	color: #0b2240;
}
.imt-sheet-close {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: #eef2f7;
	color: #0b2240;
	font-size: 24px;
	line-height: 38px;
	cursor: pointer;
	padding: 0;
}
.imt-sheet-body {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0 0 calc(16px + env(safe-area-inset-bottom));
}
.imt-sheet-body .tourmaster-tour-booking-bar-wrap {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}
.imt-sheet-body .tourmaster-tour-booking-bar-outer,
.imt-sheet-body .tourmaster-header-price {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	box-shadow: none !important;
}
/* The sheet already has a title; the "Price" strip loses its colours outside the page layout. */
.imt-sheet-body .tourmaster-header-price-ribbon,
.imt-sheet-body .tourmaster-tour-booking-bar-widget {
	display: none !important;
}

/* The cabin list opens inside the sheet's content (not on top of it), so the sheet grows to show it. */
.imt-sheet-body .tourmaster-combobox-list-wrap > ul {
	position: static !important;
	margin-top: 8px;
}

/* Computers: no booking box beside the trip; the content uses the full width. */
@media (min-width: 1000px) {
	body.imt-book-desktop #tourmaster-tour-booking-bar-wrap:not(.imt-in-sheet) {
		display: none !important;
	}
	body.imt-book-desktop.single-tour .tourmaster-with-sidebar .tourmaster-single-main-content {
		padding-right: 0;
		max-width: 940px;
	}
	body.imt-book-desktop.single-tour .tourmaster-with-sidebar .tourmaster-tour-info-outer .tourmaster-tour-info-wrap,
	body.imt-book-desktop.single-tour .tourmaster-with-sidebar .tourmaster-single-review {
		padding-right: 0;
	}
	body.imt-book-desktop.single-tour .tourmaster-with-sidebar .tourmaster-single-related-tour-container,
	body.imt-book-desktop.single-tour .tourmaster-with-sidebar .gdlr-core-container,
	body.imt-book-desktop.single-tour .tourmaster-with-sidebar .pixe-editor > .pixe-wrapper:not(.pixe-content-full) > .pixe-wrapper-content {
		padding-right: 15px;
	}

	/* The bar: price on the left, button on the right, lined up with the page. */
	body.imt-book-desktop .imt-mbar {
		padding: 14px max(24px, calc((100vw - 1180px) / 2));
		justify-content: space-between;
	}
	body.imt-book-desktop .imt-mbar-price {
		font-size: 18px;
	}
	body.imt-book-desktop .imt-mbar-btn {
		min-width: 190px;
	}

	/* The form opens in the middle of the screen over a dimmed page. */
	body.imt-book-desktop .imt-sheet-panel {
		left: 50%;
		right: auto;
		top: 50%;
		bottom: auto;
		width: 480px;
		max-width: calc(100vw - 48px);
		max-height: calc(100vh - 80px);
		border-radius: 14px;
		box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
		opacity: 0;
		transform: translate(-50%, -46%);
		transition: transform 0.25s ease, opacity 0.25s ease;
	}
	body.imt-book-desktop .imt-sheet-open .imt-sheet-panel {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
	body.imt-book-desktop .imt-sheet-grip {
		display: none;
	}
	body.imt-book-desktop .imt-sheet-head {
		padding: 16px 16px 12px 24px;
	}
}

/* Gallery lightbox */
.imt-gallery a.imt-lightbox {
	cursor: zoom-in;
}
html.imt-lb-noscroll,
html.imt-lb-noscroll body {
	overflow: hidden !important;
}
.imt-lb {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(4, 12, 24, 0.94);
}
.imt-lb.imt-lb-open {
	display: flex;
	animation: imt-lb-fade 0.2s ease;
}
@keyframes imt-lb-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
.imt-lb-stage {
	position: absolute;
	inset: 60px 70px 70px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.imt-lb-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	transition: opacity 0.2s ease;
}
.imt-lb-loading .imt-lb-img {
	opacity: 0.3;
}
.imt-lb-caption {
	position: absolute;
	left: 70px;
	right: 70px;
	bottom: 22px;
	color: #e8eef5;
	text-align: center;
	font-size: 15px;
	line-height: 1.4;
}
.imt-lb-count {
	position: absolute;
	top: 20px;
	left: 24px;
	color: #c3cedb;
	font-size: 14px;
	letter-spacing: 0.05em;
}
.imt-lb-btn {
	position: absolute;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	font-size: 34px;
	line-height: 48px;
	text-align: center;
	transition: background 0.2s ease;
}
.imt-lb-btn:hover,
.imt-lb-btn:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	outline: none;
}
.imt-lb-close {
	top: 10px;
	right: 14px;
	font-size: 30px;
}
.imt-lb-prev,
.imt-lb-next {
	top: 50%;
	margin-top: -24px;
}
.imt-lb-prev {
	left: 12px;
}
.imt-lb-next {
	right: 12px;
}
@media (max-width: 767px) {
	.imt-lb-stage {
		inset: 56px 8px 64px;
	}
	.imt-lb-prev,
	.imt-lb-next {
		top: auto;
		bottom: 10px;
		margin-top: 0;
	}
	.imt-lb-caption {
		left: 64px;
		right: 64px;
		bottom: 18px;
		font-size: 13px;
	}
}

.imt-contact a {
	word-break: break-word;
}

/* Gallery photos that play a video */
a.imt-video-tile {
	position: relative;
	display: block;
}
a.imt-video-tile .imt-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(8, 24, 44, 0.6);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
	transition: transform 0.2s ease, background 0.2s ease;
	pointer-events: none;
}
a.imt-video-tile .imt-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -12px 0 0 -7px;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #fff;
}
a.imt-video-tile:hover .imt-play,
a.imt-video-tile:focus-visible .imt-play {
	transform: scale(1.08);
	background: rgba(20, 95, 174, 0.85);
}

/* Waitlist */
.imt-waitlist {
	padding: 26px 30px 24px;
	text-align: left;
}
.imt-waitlist[hidden],
.imt-waitlist [hidden] {
	display: none !important;
}
.imt-wl-title {
	margin: 0 0 6px !important;
	font-size: 20px !important;
	line-height: 1.3 !important;
}
.imt-wl-intro {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.5;
}
.imt-wl-form p {
	margin: 0 0 12px;
}
.imt-wl-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
}
.imt-wl-form input[type="text"],
.imt-wl-form input[type="email"],
.imt-wl-form input[type="tel"],
.imt-wl-form select,
.imt-wl-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #cfd6df;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 15px;
}
.imt-wl-row {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 10px;
}
.imt-wl-req {
	color: #b3261e;
}
.imt-wl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.imt-wl-submit,
.imt-wl-open {
	display: inline-block;
	padding: 13px 22px;
	border: 0;
	border-radius: 8px;
	background: #145fae;
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.imt-wl-submit {
	width: 100%;
}
.imt-wl-submit:hover,
.imt-wl-open:hover {
	background: #0e4c8f;
}
.imt-wl-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}
.imt-wl-error {
	color: #b3261e;
	font-weight: 600;
}
.imt-wl-note {
	margin: 10px 0 0 !important;
	font-size: 13px;
	opacity: 0.8;
}
.imt-wl-back {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	background: none;
	color: #145fae;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.imt-wl-link {
	margin: 0;
	padding: 0 30px 18px;
	font-size: 14px;
}
.imt-wl-link button {
	padding: 0;
	border: 0;
	background: none;
	color: #145fae;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}
.imt-wl-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 6px 0 14px;
	font-weight: 600;
}
.imt-trip-cabins .imt-waitlist {
	max-width: 520px;
	padding: 20px 0 0;
}

/* Important Trip News (top of trip pages) */
.imt-trip-news {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 14px;
	padding: 12px 16px;
	border-left: 4px solid #c9a45c;
	border-radius: 6px;
	background: #fbf6ea;
	color: #0b2240;
	font-size: 16px;
	line-height: 1.4;
	clear: both;
}
.imt-trip-news[hidden] {
	display: none;
}
.imt-trip-news .fa {
	color: #b0852f;
	font-size: 18px;
	margin-right: 4px;
}
.imt-trip-news-label {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 13px;
}
.imt-trip-news-text {
	font-weight: 600;
}
.tourmaster-tour-info-wrap .imt-trip-news {
	margin-left: 20px;
	margin-right: 20px;
	width: auto;
	flex-basis: calc(100% - 40px);
}

/* No coupon box on the booking pages (no discounts by code) */
.tourmaster-tour-booking-bar-coupon-wrap,
.tourmaster-tour-booking-coupon-message {
	display: none !important;
}
