/*
 * Marketplace components.
 *
 * style.css stays what it was — the handful of things theme.json cannot
 * express for the original operator directory. Everything added for the tour
 * marketplace lives here: the page shell, hero, tour cards, hearts, the
 * compare tray, galleries, itineraries, and the comparison table.
 *
 * Tokens come from theme.json. No colour, spacing or font size is hardcoded
 * below unless theme.json genuinely has no token for it (shadows, a couple of
 * overlay alphas), and those are noted.
 */

/* =========================================================================
 * 1. PAGE SHELL
 * ====================================================================== */

.mtkb-main {
	display: block;
}

.mtkb-shell {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) var(--wp--preset--spacing--60);
}

.mtkb-shell--wide {
	max-width: 1400px;
}

.mtkb-section {
	margin-block: var(--wp--preset--spacing--60);
}

.mtkb-section:first-child {
	margin-block-start: 0;
}

.mtkb-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--30);
}

.mtkb-section__header h2 {
	margin: 0;
}

.mtkb-section__note {
	color: var(--wp--preset--color--mist);
	font-size: var(--wp--preset--font-size--sm);
	margin-block: 0 var(--wp--preset--spacing--30);
	max-width: 60ch;
}

/* Long-form editorial content inside an otherwise component-driven page. */
.mtkb-prose > * + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

.mtkb-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--mtkb-radius);
}

/* =========================================================================
 * 2. BREADCRUMBS
 * ====================================================================== */

.mtkb-breadcrumbs {
	margin-bottom: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--mist);
}

.mtkb-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mtkb-breadcrumbs li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--wp--preset--color--border);
}

.mtkb-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.mtkb-breadcrumbs a:hover {
	color: var(--wp--preset--color--glacier);
	text-decoration: underline;
}

/* =========================================================================
 * 3. HERO
 * ====================================================================== */

.mtkb-hero {
	position: relative;
	background: var(--wp--preset--color--summit);
	color: var(--wp--preset--color--surface);
	overflow: hidden;
}

.mtkb-hero__media {
	position: absolute;
	inset: 0;
}

.mtkb-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Scrim: the headline has to stay readable over an arbitrary uploaded photo,
   and there is no token for a translucent overlay. */
.mtkb-hero--image .mtkb-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 32, .55), rgba(20, 48, 74, .82));
}

.mtkb-hero__inner {
	position: relative;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--30);
}

.mtkb-hero__title {
	color: var(--wp--preset--color--surface);
	max-width: 22ch;
	margin: 0 0 var(--wp--preset--spacing--20);
}

.mtkb-hero__lede {
	max-width: 58ch;
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--md);
	color: var(--wp--preset--color--ice);
}

/* ---- Hero search ---- */

.mtkb-hero__search {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr auto;
	gap: var(--wp--preset--spacing--10);
	align-items: end;
	background: var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--20);
	border-radius: var(--mtkb-radius);
	box-shadow: 0 8px 24px rgba(15, 23, 32, .18);
}

.mtkb-hero__search-field,
.mtkb-hero__search-submit {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mtkb-hero__search-field label {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: var(--wp--preset--color--mist);
	text-transform: uppercase;
	letter-spacing: .03em;
}

.mtkb-hero__search input,
.mtkb-hero__search select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--mtkb-radius);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.mtkb-hero__search-submit .wp-element-button {
	white-space: nowrap;
}

@media (max-width: 960px) {
	.mtkb-hero__search {
		grid-template-columns: 1fr 1fr;
	}
	.mtkb-hero__search-field:first-child,
	.mtkb-hero__search-submit {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.mtkb-hero__search {
		grid-template-columns: 1fr;
	}
	.mtkb-hero__inner {
		padding-block: var(--wp--preset--spacing--50);
	}
}

.mtkb-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	list-style: none;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--ice);
}

.mtkb-hero__stats strong {
	color: var(--wp--preset--color--surface);
	font-variant-numeric: tabular-nums;
}

/* =========================================================================
 * 4. ARCHIVE LAYOUT
 * ====================================================================== */

.mtkb-archive__header {
	margin-bottom: var(--wp--preset--spacing--40);
}

.mtkb-archive__header h1 {
	margin: 0 0 var(--wp--preset--spacing--10);
}

.mtkb-archive__lede {
	margin: 0;
	max-width: 68ch;
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--md);
}

.mtkb-archive__layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}

.mtkb-archive__sidebar {
	position: sticky;
	top: var(--wp--preset--spacing--20);
	max-height: calc(100vh - var(--wp--preset--spacing--40));
	overflow-y: auto;
	padding-right: 4px;
}

.mtkb-archive__filter-toggle {
	display: none;
}

.mtkb-archive__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	padding-bottom: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.mtkb-archive__count {
	margin: 0;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.mtkb-archive__sort,
.mtkb-archive__sort-note {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--mist);
}

.mtkb-archive__sort select {
	padding: 7px 10px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--mtkb-radius);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.mtkb-archive__fallback {
	margin-top: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--surface-alt);
	border-radius: var(--mtkb-radius);
	text-align: center;
}

@media (max-width: 900px) {
	.mtkb-archive__layout {
		grid-template-columns: 1fr;
	}
	.mtkb-archive__filter-toggle {
		display: inline-block;
		justify-self: start;
	}
	.mtkb-archive__sidebar {
		position: static;
		max-height: none;
		overflow: visible;
		display: none;
	}
	.mtkb-archive__sidebar.is-open {
		display: block;
	}
}

/* =========================================================================
 * 5. FACET PANEL
 * ====================================================================== */

.mtkb-facet-panel__scroll {
	max-height: 220px;
	overflow-y: auto;
	padding-right: 6px;
}

.mtkb-facet-panel input[type="search"],
.mtkb-facet-panel input[type="number"] {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--mtkb-radius);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.mtkb-facet-panel__range {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.mtkb-facet-panel__range legend {
	flex-basis: 100%;
}

.mtkb-facet-panel__range input {
	flex: 1 1 80px;
	min-width: 0;
}

.mtkb-facet-panel__actions {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	padding-top: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--wp--preset--color--border);
}

.mtkb-facet-panel__clear {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--mist);
}

/* =========================================================================
 * 6. TOUR CARD
 * ====================================================================== */

.mtkb-tour-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: 0;
}

.mtkb-tour-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--mtkb-radius);
	overflow: hidden;
	transition: box-shadow var(--mtkb-transition), transform var(--mtkb-transition);
}

.mtkb-tour-card:hover {
	box-shadow: 0 6px 18px rgba(15, 23, 32, .10);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.mtkb-tour-card:hover {
		transform: none;
	}
}

.mtkb-tour-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	background: var(--wp--preset--color--ice);
}

.mtkb-tour-card__media > a {
	display: block;
	width: 100%;
	height: 100%;
}

.mtkb-tour-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mtkb-tour-card__image--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, var(--wp--preset--color--ice) 0%, var(--wp--preset--color--surface-alt) 100%);
}

.mtkb-tour-card__body {
	flex: 1 1 auto;
	padding: var(--wp--preset--spacing--20);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mtkb-tour-card__eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--wp--preset--color--glacier);
	font-weight: 600;
}

.mtkb-tour-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.25;
}

.mtkb-tour-card__title a {
	text-decoration: none;
	color: var(--wp--preset--color--summit);
}

.mtkb-tour-card__title a:hover {
	text-decoration: underline;
}

.mtkb-tour-card__operator {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--mist);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}

.mtkb-tour-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--slate);
}

.mtkb-tour-card__facts li + li::before {
	content: "·";
	margin-right: 8px;
	color: var(--wp--preset--color--border);
}

.mtkb-tour-card__commercial {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--10);
	padding: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface-alt);
}

.mtkb-tour-card__price {
	margin: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.mtkb-tour-card__price-label,
.mtkb-tour-card__price-basis {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--mist);
}

.mtkb-tour-card__price .mtkb-price {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	color: var(--wp--preset--color--summit);
}

.mtkb-tour-card__commercial .wp-element-button {
	font-size: var(--wp--preset--font-size--xs);
	padding: 9px 16px;
}

/* =========================================================================
 * 7. RATING
 * ====================================================================== */

.mtkb-rating-inline {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	white-space: nowrap;
	color: var(--wp--preset--color--slate);
}

.mtkb-rating-inline__star {
	color: var(--wp--preset--color--caution);
}

.mtkb-rating-inline__count {
	color: var(--wp--preset--color--mist);
}

.mtkb-rating-inline--none {
	color: var(--wp--preset--color--mist);
	font-style: italic;
}

/* =========================================================================
 * 8. PILLS
 * ====================================================================== */

.mtkb-pill {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	line-height: 1.5;
}

.mtkb-pill--featured {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--wp--preset--color--summit);
	color: var(--wp--preset--color--surface);
}

.mtkb-pill--limited,
.mtkb-pill--guaranteed {
	background: color-mix(in srgb, var(--wp--preset--color--caution) 16%, transparent);
	color: var(--wp--preset--color--caution);
}

.mtkb-pill--unavailable,
.mtkb-pill--full {
	background: color-mix(in srgb, var(--wp--preset--color--ember) 14%, transparent);
	color: var(--wp--preset--color--ember-hover);
}

.mtkb-pill--open,
.mtkb-pill--available {
	background: color-mix(in srgb, var(--wp--preset--color--verified) 14%, transparent);
	color: var(--wp--preset--color--verified);
}

/* =========================================================================
 * 9. FAVOURITE HEART
 * ====================================================================== */

.mtkb-fav {
	margin: 0;
}

.mtkb-fav--icon {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
}

.mtkb-fav__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--mist);
	cursor: pointer;
	transition: color var(--mtkb-transition), border-color var(--mtkb-transition), background var(--mtkb-transition);
}

.mtkb-fav--icon .mtkb-fav__button {
	width: 36px;
	height: 36px;
	justify-content: center;
	padding: 0;
	/* The card image behind it can be any colour, so the button needs its own
	   ground. No token for a translucent surface. */
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 1px 4px rgba(15, 23, 32, .18);
	border-color: transparent;
}

.mtkb-fav--button .mtkb-fav__button {
	padding: 11px 20px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--slate);
}

.mtkb-fav__button:hover {
	color: var(--wp--preset--color--ember);
	border-color: var(--wp--preset--color--ember);
}

.mtkb-fav__button.is-saved {
	color: var(--wp--preset--color--ember);
	border-color: var(--wp--preset--color--ember);
}

.mtkb-fav__button[disabled] {
	opacity: .6;
	cursor: default;
}

.mtkb-fav__icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
	transition: fill var(--mtkb-transition);
}

.mtkb-fav__button.is-saved .mtkb-fav__icon {
	fill: currentColor;
}

/* Header counter bubble. */
.mtkb-fav-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	margin-left: 6px;
	border-radius: 999px;
	background: var(--wp--preset--color--ember);
	color: var(--wp--preset--color--surface);
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* =========================================================================
 * 10. COMPARE
 * ====================================================================== */

/* Hidden until compare.js runs: selecting tours does nothing without it. */
.mtkb-compare-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--mist);
}

.js-mtkb-compare .mtkb-compare-toggle {
	display: inline-flex;
}

.mtkb-compare-toggle.is-disabled {
	opacity: .45;
}

.mtkb-compare-toggle label {
	cursor: pointer;
}

/* ---- Sticky tray ---- */

.mtkb-compare-tray {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	background: var(--wp--preset--color--summit);
	color: var(--wp--preset--color--surface);
	box-shadow: 0 -4px 20px rgba(15, 23, 32, .25);
}

.mtkb-compare-tray__inner {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

.mtkb-compare-tray__count {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	white-space: nowrap;
}

.mtkb-compare-tray__list {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.mtkb-compare-tray__list li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 220px;
	padding: 4px 6px 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	font-size: var(--wp--preset--font-size--xs);
}

.mtkb-compare-tray__list li span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mtkb-compare-tray__list button {
	appearance: none;
	border: none;
	background: none;
	color: inherit;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0 4px;
	opacity: .8;
}

.mtkb-compare-tray__list button:hover {
	opacity: 1;
}

.mtkb-compare-tray__actions {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin-left: auto;
}

.mtkb-compare-tray__actions .wp-element-button.is-disabled {
	opacity: .55;
	pointer-events: none;
}

.mtkb-compare-tray__clear {
	appearance: none;
	border: none;
	background: none;
	color: var(--wp--preset--color--ice);
	text-decoration: underline;
	cursor: pointer;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--xs);
}

/* Keep the tray from covering the last row of results. */
body.has-mtkb-tray {
	padding-bottom: 96px;
}

@media (max-width: 700px) {
	.mtkb-compare-tray__list {
		display: none;
	}
	.mtkb-compare-tray__actions {
		margin-left: 0;
	}
}

/* ---- Comparison table ---- */

.mtkb-compare-scroll {
	overflow-x: auto;
	margin-bottom: var(--wp--preset--spacing--30);
	/* The table is genuinely wide; it scrolls inside this box, never the page. */
	-webkit-overflow-scrolling: touch;
}

.mtkb-compare-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--sm);
}

.mtkb-compare-table th,
.mtkb-compare-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--wp--preset--color--border);
	vertical-align: top;
}

.mtkb-compare-table tbody th {
	width: 200px;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
	background: var(--wp--preset--color--surface-alt);
}

.mtkb-compare-table tbody tr:nth-child(even) td {
	background: color-mix(in srgb, var(--wp--preset--color--surface-alt) 55%, transparent);
}

.mtkb-compare-table__head {
	min-width: 200px;
	vertical-align: bottom;
	background: var(--wp--preset--color--surface);
}

.mtkb-compare-table__thumb {
	display: block;
	margin-bottom: 8px;
}

.mtkb-compare-table__thumb .mtkb-tour-card__image,
.mtkb-compare-table__thumb .mtkb-tour-card__image--placeholder {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: var(--mtkb-radius);
}

.mtkb-compare-table__title {
	display: block;
	font-weight: 600;
	line-height: 1.3;
}

.mtkb-compare-table__remove {
	display: block;
	margin-top: 4px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
}

.mtkb-compare-reset {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--mist);
}

.mtkb-compare-pickers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--wp--preset--spacing--30);
}

.mtkb-compare-picker label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 5px 0;
	font-size: var(--wp--preset--font-size--sm);
}

.mtkb-compare-picker label em {
	color: var(--wp--preset--color--mist);
	font-style: normal;
	font-size: var(--wp--preset--font-size--xs);
}

.mtkb-compare-picker fieldset {
	border: none;
	padding: 0;
	margin: 0 0 var(--wp--preset--spacing--20);
}

.mtkb-compare-picker legend {
	font-weight: 600;
	margin-bottom: 8px;
}

/* =========================================================================
 * 11. GALLERY & LIGHTBOX
 * ====================================================================== */

.mtkb-gallery {
	margin-block: var(--wp--preset--spacing--30);
}

.mtkb-gallery__main img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: var(--mtkb-radius);
	background: var(--wp--preset--color--ice);
}

.mtkb-gallery__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	list-style: none;
	margin: 8px 0 0;
	padding: 0 0 4px;
}

.mtkb-gallery__thumbs a {
	display: block;
	border-radius: var(--mtkb-radius);
	overflow: hidden;
	border: 2px solid transparent;
}

.mtkb-gallery__thumbs a:hover,
.mtkb-gallery__thumbs a:focus-visible {
	border-color: var(--wp--preset--color--glacier);
}

.mtkb-gallery__thumbs img {
	display: block;
	width: 96px;
	height: 68px;
	object-fit: cover;
}

.mtkb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--40);
	/* Deliberately near-opaque; no token exists for a modal scrim. */
	background: rgba(15, 23, 32, .92);
}

.mtkb-lightbox[hidden] {
	display: none;
}

.mtkb-lightbox__figure {
	margin: 0;
	max-width: min(1100px, 90vw);
	text-align: center;
}

.mtkb-lightbox__figure img {
	max-width: 100%;
	max-height: 78vh;
	object-fit: contain;
	border-radius: var(--mtkb-radius);
}

.mtkb-lightbox figcaption {
	margin-top: 10px;
	color: var(--wp--preset--color--ice);
	font-size: var(--wp--preset--font-size--sm);
}

.mtkb-lightbox__counter {
	color: var(--wp--preset--color--mist);
	font-variant-numeric: tabular-nums;
}

.mtkb-lightbox__close,
.mtkb-lightbox__nav {
	appearance: none;
	border: none;
	background: rgba(255, 255, 255, .12);
	color: var(--wp--preset--color--surface);
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 26px;
	line-height: 1;
	flex: 0 0 auto;
}

.mtkb-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	font-size: 30px;
}

.mtkb-lightbox__close:hover,
.mtkb-lightbox__nav:hover {
	background: rgba(255, 255, 255, .24);
}

/* =========================================================================
 * 12. TOUR DETAIL
 * ====================================================================== */

.mtkb-tour-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--wp--preset--spacing--40);
	align-items: start;
	margin-bottom: var(--wp--preset--spacing--30);
}

.mtkb-tour-header h1 {
	margin: 0 0 var(--wp--preset--spacing--10);
}

.mtkb-tour-header__eyebrow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 8px;
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 600;
}

.mtkb-tour-header__operator {
	margin: 0 0 var(--wp--preset--spacing--20);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--sm);
}

.mtkb-tour-header__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
	margin: 0 0 var(--wp--preset--spacing--20);
	padding: 0;
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--sm);
}

.mtkb-tour-header__cta {
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--mtkb-radius);
	padding: var(--wp--preset--spacing--30);
	position: sticky;
	top: var(--wp--preset--spacing--20);
}

.mtkb-tour-header__price {
	margin: 0 0 var(--wp--preset--spacing--20);
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.mtkb-tour-header__price-label,
.mtkb-tour-header__price-basis {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--mist);
}

.mtkb-tour-header__price .mtkb-price {
	font-size: var(--wp--preset--font-size--2xl);
	font-weight: 700;
	color: var(--wp--preset--color--summit);
}

.mtkb-tour-header__cta > .wp-element-button {
	display: block;
	width: 100%;
	text-align: center;
}

.mtkb-tour-header__secondary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--10);
	margin-top: var(--wp--preset--spacing--20);
}

@media (max-width: 900px) {
	.mtkb-tour-header {
		grid-template-columns: 1fr;
	}
	.mtkb-tour-header__cta {
		position: static;
	}
}

.mtkb-tour-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}

@media (max-width: 900px) {
	.mtkb-tour-layout {
		grid-template-columns: 1fr;
	}
}

/* ---- Highlights ---- */

.mtkb-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 10px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mtkb-highlights li {
	position: relative;
	padding-left: 26px;
	line-height: 1.5;
}

.mtkb-highlights li::before {
	content: "▲";
	position: absolute;
	left: 0;
	top: 2px;
	font-size: 11px;
	color: var(--wp--preset--color--glacier);
}

/* ---- Inclusions ---- */

.mtkb-inclusions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--wp--preset--spacing--30);
}

.mtkb-inclusions__heading {
	font-size: var(--wp--preset--font-size--lg);
	margin: 0 0 10px;
}

.mtkb-inclusions__heading--in {
	color: var(--wp--preset--color--verified);
}

.mtkb-inclusions__heading--out {
	color: var(--wp--preset--color--mist);
}

.mtkb-inclusions__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mtkb-inclusions__list li {
	position: relative;
	padding: 5px 0 5px 26px;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.45;
}

.mtkb-inclusions__list--in li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--verified);
	font-weight: 700;
}

.mtkb-inclusions__list--out li::before {
	content: "✕";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--mist);
}

.mtkb-inclusions__empty {
	color: var(--wp--preset--color--mist);
	font-style: italic;
	font-size: var(--wp--preset--font-size--sm);
}

/* ---- Itinerary ---- */

.mtkb-itinerary {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mtkb-itinerary__day {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: var(--wp--preset--spacing--20);
	padding-bottom: var(--wp--preset--spacing--30);
	position: relative;
}

/* The connecting line between day markers. */
.mtkb-itinerary__day:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 21px;
	top: 44px;
	bottom: 0;
	width: 2px;
	background: var(--wp--preset--color--border);
}

.mtkb-itinerary__marker {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--ice);
	color: var(--wp--preset--color--summit);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.mtkb-itinerary__title {
	margin: 8px 0 6px;
	font-size: var(--wp--preset--font-size--lg);
}

.mtkb-itinerary__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--mist);
}

.mtkb-itinerary__stats li + li::before {
	content: "·";
	margin-right: 8px;
}

.mtkb-itinerary__text {
	margin: 0;
	line-height: 1.6;
}

/* ---- Sidebar panels ---- */

.mtkb-panel {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--mtkb-radius);
	padding: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
}

.mtkb-panel__title {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--lg);
}

.mtkb-panel__logo img {
	max-width: 140px;
	height: auto;
}

.mtkb-panel__credentials {
	list-style: none;
	margin: 10px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-start;
}

.mtkb-facts {
	margin: 0;
}

.mtkb-facts__row {
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	padding: 8px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--sm);
}

.mtkb-facts__row:last-child {
	border-bottom: none;
}

.mtkb-facts dt {
	color: var(--wp--preset--color--mist);
	flex: 0 0 auto;
}

.mtkb-facts dd {
	margin: 0;
	text-align: right;
	font-weight: 500;
}

.mtkb-data-table--compact th,
.mtkb-data-table--compact td {
	padding: 7px 8px;
	font-size: var(--wp--preset--font-size--xs);
}

/* =========================================================================
 * 13. HOMEPAGE SECTIONS
 * ====================================================================== */

.mtkb-route-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--wp--preset--spacing--20);
}

.mtkb-route-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--mtkb-radius);
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	transition: box-shadow var(--mtkb-transition);
}

.mtkb-route-card:hover {
	box-shadow: 0 6px 18px rgba(15, 23, 32, .10);
}

.mtkb-route-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--wp--preset--color--ice);
}

.mtkb-route-card__media img,
.mtkb-route-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mtkb-route-card__placeholder {
	background: linear-gradient(135deg, var(--wp--preset--color--ice), var(--wp--preset--color--surface-alt));
}

.mtkb-route-card__body {
	display: block;
	padding: var(--wp--preset--spacing--20);
}

.mtkb-route-card__name {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 600;
	color: var(--wp--preset--color--summit);
}

.mtkb-route-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 4px;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--slate);
}

.mtkb-route-card__count {
	display: block;
	margin-top: 6px;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--mist);
}

.mtkb-band-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--wp--preset--spacing--20);
}

.mtkb-band-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--mtkb-radius);
	text-decoration: none;
	color: inherit;
	background: var(--wp--preset--color--surface);
}

.mtkb-band-card:hover {
	border-color: var(--wp--preset--color--glacier);
}

.mtkb-band-card__name {
	font-weight: 600;
	color: var(--wp--preset--color--summit);
}

.mtkb-band-card__count {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--mist);
}

.mtkb-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--wp--preset--spacing--30);
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: mtkb-step;
}

.mtkb-steps__item {
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface-alt);
	border-radius: var(--mtkb-radius);
}

.mtkb-steps__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--summit);
	color: var(--wp--preset--color--surface);
	font-weight: 700;
	margin-bottom: 10px;
}

.mtkb-steps__title {
	margin: 0 0 6px;
	font-size: var(--wp--preset--font-size--lg);
}

.mtkb-steps__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate);
	line-height: 1.55;
}

.mtkb-guide-card h3 {
	margin: 10px 0 6px;
	font-size: var(--wp--preset--font-size--lg);
}

.mtkb-guide-card img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--mtkb-radius);
}

.mtkb-guide-card p {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate);
}

/* =========================================================================
 * 14. OPERATOR PROFILE ADDITIONS
 * ====================================================================== */

.mtkb-operator-header__identity {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	flex-wrap: wrap;
}

.mtkb-operator-header__identity h1 {
	margin: 0;
}

.mtkb-operator-header__logo img {
	display: block;
	width: 84px;
	height: 84px;
	object-fit: contain;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--mtkb-radius);
	padding: 6px;
}

/* The operator card's media box now hosts an absolutely-positioned heart. */
.mtkb-operator-card__media {
	position: relative;
}

/* =========================================================================
 * 15. EMPTY STATES & FORMS
 * ====================================================================== */

.mtkb-empty-state {
	text-align: center;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface-alt);
	border-radius: var(--mtkb-radius);
}

.mtkb-empty-state__icon {
	font-size: 48px;
	line-height: 1;
	margin: 0 0 var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--mist);
}

.mtkb-empty-state h2 {
	margin: 0 0 10px;
}

.mtkb-empty-state p {
	max-width: 52ch;
	margin-inline: auto;
	color: var(--wp--preset--color--slate);
}

.mtkb-empty-state__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	justify-content: center;
	margin-top: var(--wp--preset--spacing--30);
}

.mtkb-section--enquiry {
	background: var(--wp--preset--color--surface-alt);
	border-radius: var(--mtkb-radius);
	padding: var(--wp--preset--spacing--40);
}

.mtkb-quote-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 var(--wp--preset--spacing--20);
}

.mtkb-quote-form--tour label {
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: var(--wp--preset--color--slate);
	margin-bottom: 4px;
}

.mtkb-quote-form--tour input,
.mtkb-quote-form--tour textarea {
	max-width: none;
	background: var(--wp--preset--color--surface);
}

.mtkb-form-notice--success {
	background: color-mix(in srgb, var(--wp--preset--color--verified) 12%, transparent);
	color: var(--wp--preset--color--verified);
	font-weight: 600;
}

.mtkb-form-notice--error {
	background: color-mix(in srgb, var(--wp--preset--color--ember) 12%, transparent);
	color: var(--wp--preset--color--ember-hover);
	font-weight: 600;
}

/* =========================================================================
 * 16. SITE HEADER
 *
 * The header lives in assets/css/chrome.css now, alongside the footer and the
 * three layout variants each of them offers. The `.mtkb-header-actions` rules
 * that were here styled a link injected into the old block-template header;
 * that markup no longer exists.
 * ====================================================================== */

/* =========================================================================
 * 17. UTILITIES
 * ====================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	top: 5px;
	left: 5px;
	padding: 15px 23px 14px;
	background: var(--wp--preset--color--surface);
	z-index: 100000;
}
