/* KDigitally Tour Booking — every rule is scoped under .kdtb so theme styles are not affected. */

.kdtb {
	--kdtb-primary: #0b4cd4;
	--kdtb-primary-hover: #083ca8;
	--kdtb-primary-soft: #e8f0ff;
	--kdtb-ink: #0b1b3f;
	--kdtb-text: #334155;
	--kdtb-muted: #5b6b82;
	--kdtb-border: #cfd8e6;
	--kdtb-border-strong: #9fb0c8;
	--kdtb-surface: #fff;
	--kdtb-bg: #f4f7fc;
	--kdtb-danger: #b91c1c;
	--kdtb-radius: 10px;
	--kdtb-radius-lg: 14px;
	--kdtb-radius-xl: 20px;
	--kdtb-shadow: 0 1px 2px rgba(11, 27, 63, 0.06), 0 12px 32px rgba(11, 27, 63, 0.14);
	--kdtb-card-max: 900px;
	--kdtb-tap: 44px;
	--kdtb-ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

	/* Component tokens. Defaults reproduce the values above, so output is unchanged until they are overridden. */
	--kdtb-on-primary: #fff;
	--kdtb-button-bg: var(--kdtb-primary);
	--kdtb-button-hover: var(--kdtb-primary-hover);
	--kdtb-button-text: #fff;
	--kdtb-button-shadow: rgba(11, 76, 212, 0.28);
	--kdtb-accent: #e9b852; /* Decorative gold only (never text): it does not meet text contrast on white. */
	--kdtb-form-bg: var(--kdtb-surface);
	--kdtb-focus: var(--kdtb-primary);
	--kdtb-control-h: 52px;
	--kdtb-icon-y: calc(var(--kdtb-control-h) / 2);
	--kdtb-cta-h: 56px;
	--kdtb-sticky-top: 24px; /* Gap above the sticky tour booking card (raise it for fixed theme headers). */

	/* Type scale: the existing sizes, smallest first. */
	--kdtb-fs-1: 0.75rem;
	--kdtb-fs-2: 0.8125rem;
	--kdtb-fs-3: 0.875rem;
	--kdtb-fs-4: 0.9375rem;
	--kdtb-fs-5: 1rem;
	--kdtb-fs-6: 1.0625rem;
	--kdtb-fs-7: 1.125rem;
	--kdtb-fs-8: 1.1875rem;
	--kdtb-fs-9: 1.25rem;
	--kdtb-fs-10: 1.375rem;
	--kdtb-fs-11: 1.5rem;
	--kdtb-fs-12: 1.75rem;

	/* Spacing scale (used for field gaps and card padding). */
	--kdtb-space-1: 4px;
	--kdtb-space-2: 8px;
	--kdtb-space-3: 12px;
	--kdtb-space-4: 16px;
	--kdtb-space-5: 20px;
	--kdtb-space-6: 24px;
	--kdtb-space-7: 28px;
	--kdtb-space-8: 32px;
	--kdtb-gap: var(--kdtb-space-4);

	box-sizing: border-box;
	color: var(--kdtb-text);
	font-family: inherit;
	line-height: 1.5;
	max-width: 100%;
}

.kdtb *,
.kdtb *::before,
.kdtb *::after {
	box-sizing: inherit;
}

.kdtb [hidden] {
	display: none !important;
}

.kdtb .kdtb-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.kdtb :focus-visible {
	outline: 2px solid var(--kdtb-focus);
	outline-offset: 2px;
}

.kdtb .kdtb-icon {
	display: block;
	flex: none;
	width: 20px;
	height: 20px;
}

/* ------------------------------------------------------------------ Widget card */

/* The card responds to its own width (container query), so it adapts inside narrow Elementor columns too. */
.kdtb-booking {
	container: kdtb-card / inline-size;
	width: 100%;
	max-width: var(--kdtb-card-max);
	padding: var(--kdtb-space-5);
	background: var(--kdtb-form-bg);
	border-radius: var(--kdtb-radius-xl);
	box-shadow: var(--kdtb-shadow);
	color: var(--kdtb-text);
}

/* Transfers / Day Tours: underlined tabs with icons; a sliding underline marks the active tab. */
.kdtb .kdtb-tabs {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	max-width: 480px;
	margin: 0 0 20px;
	padding: 0;
	border-bottom: 1px solid var(--kdtb-border);
	background: transparent;
}

.kdtb .kdtb-tabs::before {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 50%;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--kdtb-primary);
	transition: transform var(--kdtb-ease);
}

.kdtb .kdtb-tabs[data-kdtb-active="day_trip"]::before {
	transform: translateX(100%);
}

.kdtb .kdtb-tabs .kdtb-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	min-height: var(--kdtb-control-h);
	margin: 0;
	padding: 10px 6px 12px;
	border: 0;
	border-radius: var(--kdtb-radius) var(--kdtb-radius) 0 0;
	background: transparent;
	box-shadow: none;
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-6);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: color var(--kdtb-ease);
}

.kdtb .kdtb-tabs .kdtb-tab__icon {
	flex: none;
	width: 22px;
	height: 22px;
}

.kdtb .kdtb-tabs .kdtb-tab:hover {
	color: var(--kdtb-primary);
	text-decoration: none;
}

.kdtb .kdtb-tabs .kdtb-tab[aria-current="page"],
.kdtb .kdtb-tabs .kdtb-tab[aria-selected="true"] {
	color: var(--kdtb-primary);
	font-weight: 700;
}

.kdtb .kdtb-tabs .kdtb-tab:focus-visible {
	outline: 2px solid var(--kdtb-focus);
	outline-offset: -2px;
	box-shadow: none;
}

/* One Way / Return: native radios with a custom look. */
.kdtb .kdtb-trip-type {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	min-width: 0;
	margin: 0 0 8px;
	padding: 0;
	border: 0;
}

.kdtb .kdtb-trip-type .kdtb-radio {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: var(--kdtb-tap);
	margin: 0;
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-5);
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.kdtb .kdtb-radio input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--kdtb-border-strong);
	border-radius: 50%;
	background: var(--kdtb-surface);
	box-shadow: none;
	cursor: pointer;
	transition: border-width 0.15s ease, border-color 0.15s ease;
}

.kdtb .kdtb-radio input[type="radio"]:checked {
	border: 7px solid var(--kdtb-primary);
}

.kdtb .kdtb-radio input[type="radio"]:focus-visible {
	outline: 2px solid var(--kdtb-focus);
	outline-offset: 3px;
}

/* Fields */
.kdtb .kdtb-form-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--kdtb-gap);
}

.kdtb .kdtb-form-grid + .kdtb-form-grid {
	margin-top: var(--kdtb-gap);
}

@container kdtb-card (min-width: 520px) {
	.kdtb .kdtb-form-grid--route,
	.kdtb .kdtb-form-grid--details,
	.kdtb .kdtb-form-grid--tour {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kdtb .kdtb-form-grid--tour:not(.kdtb-form-grid--locked) > .kdtb-field:first-child {
		grid-column: 1 / -1;
	}
}

/* Phones: Passengers and Suitcases share a row once the card fits the longest option ("8 Passengers") twice; the
   dates stay full width. Narrower cards keep one column. */
@container kdtb-card (min-width: 340px) and (max-width: 519.98px) {
	.kdtb .kdtb-form-grid--details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kdtb .kdtb-form-grid--details > .kdtb-field:nth-child(-n+2) {
		grid-column: 1 / -1;
	}

	/* Side by side, the field labels name them, so the leading icons give their room to the option text (fits
	   "8 Passengers" up to about 7em wide). */
	.kdtb .kdtb-form-grid--details .kdtb-control--select .kdtb-input {
		padding-right: 32px;
		padding-left: 14px;
	}

	.kdtb .kdtb-form-grid--details .kdtb-control--select .kdtb-control__icon {
		display: none;
	}

	.kdtb .kdtb-form-grid--details .kdtb-control--select .kdtb-control__chevron {
		right: 10px;
	}
}

@container kdtb-card (min-width: 780px) {
	.kdtb .kdtb-form-grid--details {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.kdtb .kdtb-form-grid--tour:not(.kdtb-form-grid--locked) {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	}

	.kdtb .kdtb-form-grid--tour:not(.kdtb-form-grid--locked) > .kdtb-field:first-child {
		grid-column: auto;
	}
}

.kdtb .kdtb-field {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.kdtb .kdtb-field__label {
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-4);
	font-weight: 600;
	line-height: 1.3;
}

.kdtb .kdtb-field__hint {
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-2);
	font-weight: 400;
}

.kdtb .kdtb-input {
	width: 100%;
	min-height: var(--kdtb-control-h);
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--kdtb-border);
	border-radius: var(--kdtb-radius);
	background: var(--kdtb-surface);
	box-shadow: none;
	color: var(--kdtb-ink);
	font: inherit;
	font-size: var(--kdtb-fs-5);
	line-height: 1.4;
	transition: border-color 0.15s ease;
}

.kdtb .kdtb-input::placeholder {
	color: var(--kdtb-muted);
	opacity: 1;
}

.kdtb .kdtb-input:hover {
	border-color: var(--kdtb-border-strong);
}

.kdtb .kdtb-input:focus-visible {
	border-color: var(--kdtb-primary);
	outline: 2px solid var(--kdtb-focus);
	outline-offset: 1px;
}

.kdtb .kdtb-input[aria-invalid="true"] {
	border-color: var(--kdtb-danger);
}

.kdtb .kdtb-input:disabled {
	background: var(--kdtb-bg);
	color: var(--kdtb-muted);
	cursor: not-allowed;
}

.kdtb .kdtb-field.is-disabled .kdtb-field__label {
	color: var(--kdtb-muted);
}

.kdtb .kdtb-field__error {
	margin: 0;
	color: var(--kdtb-danger);
	font-size: var(--kdtb-fs-3);
}

/* Controls with a leading icon and trailing chevron. Three-class selectors outrank theme rules like
   ".elementor-kit-5 input[type=date]" without needing !important. */
.kdtb .kdtb-control {
	position: relative;
}

.kdtb .kdtb-control .kdtb-input {
	width: 100%;
	height: var(--kdtb-control-h);
	margin: 0;
	padding: 12px 44px 12px 46px;
	border: 1px solid var(--kdtb-border);
	border-radius: var(--kdtb-radius);
	background-color: var(--kdtb-surface);
	box-shadow: none;
	color: var(--kdtb-ink);
	font-family: inherit;
	font-size: var(--kdtb-fs-5);
	letter-spacing: normal;
	line-height: 1.4;
	text-transform: none;
}

.kdtb .kdtb-control .kdtb-input:hover {
	border-color: var(--kdtb-border-strong);
}

.kdtb .kdtb-control .kdtb-input:focus-visible {
	border-color: var(--kdtb-primary);
}

.kdtb .kdtb-control .kdtb-input[aria-invalid="true"] {
	border-color: var(--kdtb-danger);
}

.kdtb .kdtb-control .kdtb-input:disabled {
	background-color: var(--kdtb-bg);
	color: var(--kdtb-muted);
}

.kdtb .kdtb-control--select .kdtb-input {
	-webkit-appearance: none;
	appearance: none;
	background-image: none;
	text-overflow: ellipsis;
	cursor: pointer;
}

/* Required select still on its empty "Select …" option: show it as a placeholder. */
.kdtb .kdtb-control--select select.kdtb-input:invalid {
	color: var(--kdtb-muted);
}

.kdtb .kdtb-control--select select.kdtb-input option {
	color: var(--kdtb-ink);
}

.kdtb .kdtb-control__icon,
.kdtb .kdtb-control__chevron {
	position: absolute;
	z-index: 1;
	top: var(--kdtb-icon-y);
	transform: translateY(-50%);
	pointer-events: none;
}

.kdtb .kdtb-control__icon {
	left: 16px;
	color: var(--kdtb-ink);
}

.kdtb .kdtb-control__chevron {
	right: 16px;
	color: var(--kdtb-text);
}

/* Native date picker: make the browser's picker button cover the field so any click opens it. */
.kdtb .kdtb-control--date .kdtb-input::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

/* iOS Safari: native date inputs keep an intrinsic minimum width and overflow width: 100% on phones. */
.kdtb .kdtb-control--date .kdtb-input {
	min-width: 0;
	max-width: 100%;
}

/* Date fields: the calendar sits on the right, where the browser's own picker opens; no chevron. */
.kdtb .kdtb-control--date .kdtb-input {
	padding-left: 14px;
}

.kdtb .kdtb-control--date .kdtb-control__icon {
	right: 16px;
	left: auto;
}

.kdtb .kdtb-control--date .kdtb-control__chevron {
	display: none;
}

/* iOS only (-webkit-touch-callout): drop the native control look, as for selects, and left-align the value. */
@supports (-webkit-touch-callout: none) {
	.kdtb .kdtb-control--date .kdtb-input {
		display: block;
		-webkit-appearance: none;
		appearance: none;
	}

	.kdtb .kdtb-control--date .kdtb-input::-webkit-date-and-time-value {
		margin: 0;
		text-align: left;
	}
}

/* Firefox shows its own calendar button; hide ours to avoid two icons. */
@supports (-moz-appearance: none) {
	.kdtb .kdtb-control--date .kdtb-control__icon {
		display: none;
	}
}

.kdtb .kdtb-control .kdtb-input:disabled ~ .kdtb-control__chevron,
.kdtb .kdtb-field.is-disabled .kdtb-control__icon {
	color: var(--kdtb-muted);
}

/* Buttons */
.kdtb .kdtb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: var(--kdtb-tap);
	margin: 0;
	padding: 10px 22px;
	border: 0;
	border-radius: var(--kdtb-radius);
	background: var(--kdtb-button-bg);
	box-shadow: none;
	color: var(--kdtb-button-text);
	font: inherit;
	font-size: var(--kdtb-fs-5);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.kdtb .kdtb-button:hover,
.kdtb .kdtb-button:focus-visible {
	background: var(--kdtb-button-hover);
	color: var(--kdtb-button-text);
}

.kdtb .kdtb-form .kdtb-button--block {
	display: flex;
	min-height: var(--kdtb-cta-h);
	margin-top: 22px;
	border-radius: 12px;
	box-shadow: 0 8px 18px var(--kdtb-button-shadow);
	font-size: var(--kdtb-fs-7);
}

.kdtb .kdtb-form .kdtb-button--block .kdtb-icon {
	width: 20px;
	height: 20px;
}

.kdtb .kdtb-help {
	margin: -8px 0 12px;
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-3);
	text-align: right;
}

.kdtb .kdtb-alert,
.kdtb .kdtb-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: var(--kdtb-radius);
	background: var(--kdtb-bg);
	color: var(--kdtb-ink);
}

.kdtb .kdtb-alert {
	border-left: 4px solid var(--kdtb-danger);
}

/* Combobox (JS enhancement of the location <select>). */

.kdtb .kdtb-listbox {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 20;
	max-height: 280px;
	margin: 6px 0 0;
	padding: 4px;
	overflow-y: auto;
	list-style: none;
	background: var(--kdtb-surface);
	border: 1px solid var(--kdtb-border);
	border-radius: var(--kdtb-radius);
	box-shadow: var(--kdtb-shadow);
}

.kdtb .kdtb-option {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	min-height: var(--kdtb-tap);
	align-items: center;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--kdtb-ink);
	cursor: pointer;
}

.kdtb .kdtb-option[aria-selected="true"],
.kdtb .kdtb-option:hover {
	background: var(--kdtb-primary-soft);
}

.kdtb .kdtb-option__type {
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-2);
}

.kdtb .kdtb-option--empty {
	color: var(--kdtb-muted);
	cursor: default;
}

.kdtb .kdtb-option__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.kdtb .kdtb-option__name {
	overflow-wrap: anywhere;
}

.kdtb .kdtb-option__meta {
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-2);
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.kdtb .kdtb-option__tags {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px 8px;
}

.kdtb .kdtb-option__badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--kdtb-primary-soft);
	color: var(--kdtb-primary);
	font-size: var(--kdtb-fs-1);
	font-weight: 600;
	white-space: nowrap;
}

.kdtb .kdtb-option[aria-selected="true"] .kdtb-option__badge,
.kdtb .kdtb-option:hover .kdtb-option__badge {
	background: var(--kdtb-surface);
}

@media (forced-colors: active) {
	.kdtb .kdtb-option[aria-selected="true"] {
		outline: 2px solid Highlight;
	}

	.kdtb .kdtb-option__badge {
		border: 1px solid CanvasText;
	}
}

/* ------------------------------------------------------------------ Results */

.kdtb .kdtb-results {
	margin-top: 24px;
}

.kdtb .kdtb-results__title {
	margin: 0 0 4px;
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-10);
}

.kdtb .kdtb-results__summary {
	margin: 0 0 16px;
	color: var(--kdtb-muted);
}

.kdtb .kdtb-vehicles {
	display: grid;
	gap: var(--kdtb-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.kdtb .kdtb-vehicle {
	display: grid;
	grid-template-columns: 140px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--kdtb-border);
	border-radius: var(--kdtb-radius-lg);
}

.kdtb .kdtb-vehicle--no-media {
	grid-template-columns: 1fr auto;
}

.kdtb .kdtb-vehicle__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--kdtb-radius);
}

.kdtb .kdtb-vehicle__name {
	margin: 0 0 4px;
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-6);
}

.kdtb .kdtb-vehicle__meta {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-3);
}

.kdtb .kdtb-vehicle__price {
	text-align: right;
}

.kdtb .kdtb-price {
	display: block;
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-11);
	font-weight: 700;
}

.kdtb .kdtb-price__label {
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-3);
}

/* ------------------------------------------------------------------ Tour cards */
/* Day trip cards for [kd_tour_list], [kd_featured_day_trips] and [kd_day_trips]. Columns follow the width of the
   container the shortcode sits in (Elementor column, page content): 1, then 2 from 600px, then 3 from 1000px. */

.kdtb.kdtb-tour-list,
.kdtb.kdtb-trips {
	container: kdtb-trips / inline-size;
	width: 100%;
}

.kdtb .kdtb-tour-list__header,
.kdtb .kdtb-trips__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 20px;
}

.kdtb .kdtb-trips__header {
	display: block;
}

.kdtb .kdtb-tour-list__title,
.kdtb .kdtb-trips__title {
	margin: 0;
	color: var(--kdtb-ink);
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.2;
}

.kdtb .kdtb-trips__title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 10px;
	border-radius: 2px;
	background: var(--kdtb-accent);
}

.kdtb .kdtb-tour-list__subtitle,
.kdtb .kdtb-trips__subtitle {
	margin: 8px 0 0;
	color: var(--kdtb-muted);
}

.kdtb .kdtb-tour-list__more {
	display: inline-flex;
	align-items: center;
	min-height: var(--kdtb-tap);
	color: var(--kdtb-primary);
	font-weight: 600;
	text-decoration: none;
}

.kdtb .kdtb-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--kdtb-space-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

@container kdtb-trips (min-width: 600px) {
	.kdtb .kdtb-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container kdtb-trips (min-width: 1000px) {
	.kdtb .kdtb-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.kdtb .kdtb-card {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.kdtb .kdtb-card__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--kdtb-border);
	border-radius: var(--kdtb-radius-lg);
	background: var(--kdtb-surface);
	box-shadow: 0 1px 2px rgba(11, 27, 63, 0.05), 0 8px 24px rgba(11, 27, 63, 0.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kdtb .kdtb-card__inner:hover {
	box-shadow: 0 2px 4px rgba(11, 27, 63, 0.06), 0 16px 36px rgba(11, 27, 63, 0.14);
	transform: translateY(-2px);
}

.kdtb .kdtb-card__inner:focus-within {
	outline: 3px solid var(--kdtb-focus);
	outline-offset: 2px;
}

.kdtb .kdtb-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--kdtb-bg);
}

.kdtb .kdtb-card__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.kdtb .kdtb-card__inner:hover .kdtb-card__img {
	transform: scale(1.04);
}

.kdtb .kdtb-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--kdtb-primary-soft), var(--kdtb-bg));
	color: var(--kdtb-border-strong);
}

.kdtb .kdtb-card__placeholder .kdtb-icon {
	width: 48px;
	height: 48px;
}

.kdtb .kdtb-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 20px;
}

.kdtb .kdtb-card__title {
	margin: 0;
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-8);
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.kdtb .kdtb-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-4);
	list-style: none;
}

.kdtb .kdtb-card__facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.kdtb .kdtb-card__facts .kdtb-icon {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--kdtb-primary);
}

.kdtb .kdtb-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--kdtb-border);
}

.kdtb .kdtb-card__price {
	display: flex;
	flex-direction: column;
	margin: 0;
	line-height: 1.25;
}

.kdtb .kdtb-card__amount {
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-8);
	font-weight: 700;
}

.kdtb .kdtb-card__per,
.kdtb .kdtb-card__price--request {
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-3);
}

.kdtb .kdtb-card__price--request {
	font-weight: 600;
}

/* "View details →": a text link (44px tall target), the card's only link. */
.kdtb .kdtb-card a.kdtb-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: var(--kdtb-tap);
	margin: 0;
	padding: 0 2px;
	color: var(--kdtb-primary);
	font-size: var(--kdtb-fs-5);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.kdtb .kdtb-card a.kdtb-card__cta:hover,
.kdtb .kdtb-card a.kdtb-card__cta:focus-visible {
	color: var(--kdtb-primary-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kdtb .kdtb-card__arrow {
	transition: transform 0.15s ease;
}

.kdtb .kdtb-card a.kdtb-card__cta:hover .kdtb-card__arrow {
	transform: translateX(3px);
}

/* The CTA is the card's only link; this pseudo-element makes the whole card clickable. */
.kdtb .kdtb-card__cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.kdtb .kdtb-card__cta:focus-visible {
	outline: none;
}

/* Listing toolbar, count, empty state, pagination. */
.kdtb .kdtb-trips__filters {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin: 0 0 16px;
	padding: 16px;
	border: 1px solid var(--kdtb-border);
	border-radius: var(--kdtb-radius-lg);
	background: var(--kdtb-surface);
}

@container kdtb-trips (min-width: 600px) {
	.kdtb .kdtb-trips__filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: end;
	}

	.kdtb .kdtb-trips__search {
		grid-column: 1 / -1;
	}
}

@container kdtb-trips (min-width: 900px) {
	.kdtb .kdtb-trips__filters {
		grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(0, 1fr));
		grid-auto-flow: column;
	}

	.kdtb .kdtb-trips__search {
		grid-column: auto;
	}
}

.kdtb .kdtb-trips__filters .kdtb-input {
	min-height: 48px;
}

.kdtb .kdtb-trips__submit {
	min-height: 48px;
}

.kdtb .kdtb-trips__count {
	margin: 0 0 16px;
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-4);
}

.kdtb .kdtb-trips__empty {
	padding: 32px 16px;
	border: 1px dashed var(--kdtb-border-strong);
	border-radius: var(--kdtb-radius-lg);
	background: var(--kdtb-bg);
	color: var(--kdtb-text);
	text-align: center;
}

.kdtb .kdtb-trips__empty p {
	margin: 0 0 8px;
}

.kdtb .kdtb-trips__reset {
	display: inline-flex;
	align-items: center;
	min-height: var(--kdtb-tap);
	color: var(--kdtb-primary);
	font-weight: 600;
}

.kdtb .kdtb-trips__more {
	display: flex;
	justify-content: center;
	margin: 28px 0 0;
}

.kdtb a.kdtb-button.kdtb-button--secondary {
	border: 2px solid var(--kdtb-primary);
	background: var(--kdtb-surface);
	color: var(--kdtb-primary);
}

.kdtb a.kdtb-button.kdtb-button--secondary:hover,
.kdtb a.kdtb-button.kdtb-button--secondary:focus-visible {
	background: var(--kdtb-button-bg);
	color: var(--kdtb-button-text);
}

.kdtb .kdtb-pagination {
	margin: 28px 0 0;
}

.kdtb .kdtb-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kdtb .kdtb-pagination li {
	margin: 0;
}

.kdtb .kdtb-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: var(--kdtb-tap);
	min-height: var(--kdtb-tap);
	padding: 0 14px;
	border: 1px solid var(--kdtb-border);
	border-radius: var(--kdtb-radius);
	background: var(--kdtb-surface);
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-5);
	font-weight: 600;
	text-decoration: none;
}

.kdtb a.kdtb-pagination__link:hover,
.kdtb a.kdtb-pagination__link:focus-visible {
	border-color: var(--kdtb-primary);
	color: var(--kdtb-primary);
}

.kdtb a.kdtb-pagination__link:focus-visible {
	outline: 2px solid var(--kdtb-focus);
	outline-offset: 2px;
}

.kdtb .kdtb-pagination__link.is-current {
	border-color: var(--kdtb-primary);
	background: var(--kdtb-primary);
	color: var(--kdtb-on-primary);
}

.kdtb .kdtb-tour-details__back {
	margin: 0 0 16px;
}

.kdtb .kdtb-tour-details__back a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: var(--kdtb-tap);
	color: var(--kdtb-primary);
	font-weight: 600;
	text-decoration: none;
}

@media (forced-colors: active) {
	.kdtb .kdtb-card__inner:focus-within {
		outline-color: Highlight;
	}

	.kdtb .kdtb-pagination__link.is-current {
		outline: 2px solid Highlight;
	}
}

/* ------------------------------------------------------------------ Tour gallery */
/* One large photo with Previous / Next and a counter, then a thumbnail row that scrolls on its own (never the page). */

.kdtb.kdtb-gallery {
	width: 100%;
	margin: 0 0 24px;
}

.kdtb .kdtb-gallery__stage {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	max-height: min(75vh, 640px);
	width: 100%;
	border-radius: var(--kdtb-radius-lg);
	background: var(--kdtb-bg);
}

.kdtb .kdtb-gallery__slide {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

/* The whole photo stays visible (portrait photos are not cropped). */
.kdtb .kdtb-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	object-fit: contain;
}

.kdtb .kdtb-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--kdtb-tap);
	height: var(--kdtb-tap);
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(11, 27, 63, 0.2);
	color: var(--kdtb-ink);
	cursor: pointer;
	transform: translateY(-50%);
}

.kdtb .kdtb-gallery__nav--prev {
	left: 12px;
}

.kdtb .kdtb-gallery__nav--next {
	right: 12px;
}

.kdtb .kdtb-gallery__nav--prev .kdtb-icon {
	transform: rotate(180deg);
}

.kdtb .kdtb-gallery__nav:hover {
	background: #fff;
	color: var(--kdtb-primary);
}

.kdtb .kdtb-gallery__nav:focus-visible {
	outline: 3px solid var(--kdtb-focus);
	outline-offset: 2px;
}

.kdtb .kdtb-gallery__counter {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 1;
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(11, 27, 63, 0.8);
	color: #fff;
	font-size: var(--kdtb-fs-2);
	font-weight: 600;
	line-height: 1.4;
}

.kdtb .kdtb-gallery__thumbs {
	position: relative;
	display: flex;
	gap: 8px;
	margin: 8px 0 0;
	padding: 5px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	list-style: none;
}

.kdtb .kdtb-gallery__thumbs li {
	flex: none;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

.kdtb .kdtb-gallery__thumb {
	display: block;
	width: 72px;
	height: 54px;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: var(--kdtb-radius);
	background: var(--kdtb-bg);
	opacity: 0.8;
}

.kdtb .kdtb-gallery__thumb:hover {
	opacity: 1;
}

.kdtb .kdtb-gallery__thumb[aria-current="true"] {
	border-color: var(--kdtb-primary);
	opacity: 1;
}

.kdtb .kdtb-gallery__thumb:focus-visible {
	outline: 3px solid var(--kdtb-focus);
	outline-offset: 2px;
}

.kdtb .kdtb-gallery__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

@media (min-width: 768px) {
	.kdtb .kdtb-gallery__thumb {
		width: 96px;
		height: 72px;
	}
}

@media (forced-colors: active) {
	.kdtb .kdtb-gallery__thumb[aria-current="true"] {
		border-color: Highlight;
	}

	.kdtb .kdtb-gallery__nav {
		border: 1px solid ButtonText;
	}
}

/* ------------------------------------------------------------------ Tour details */

/* Tour header: back link, optional title, gallery + quick facts, and the booking card beside them once the header
   itself is wide enough (narrow theme columns keep one column). */
.kdtb.kdtb-tour-details {
	container: kdtb-tour / inline-size;
	margin: 0 0 var(--kdtb-space-6);
}

.kdtb .kdtb-tour-details__title {
	margin: 0 0 var(--kdtb-space-4);
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-12);
	font-weight: 800;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.kdtb .kdtb-tour-details__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--kdtb-space-6);
	align-items: start;
}

.kdtb .kdtb-tour-details__main,
.kdtb .kdtb-tour-details__aside {
	min-width: 0;
}

@container kdtb-tour (min-width: 880px) {
	.kdtb.kdtb-tour-details--aside .kdtb-tour-details__grid {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
	}

	/* Stays in view while the gallery scrolls past, within the header only (never over the footer). Themes with a
	   fixed header can raise --kdtb-sticky-top. */
	.kdtb .kdtb-tour-details__aside {
		position: sticky;
		top: var(--kdtb-sticky-top);
	}

	/* Logged-in visitors: below the WordPress toolbar (32px on wide screens). */
	.admin-bar .kdtb .kdtb-tour-details__aside {
		top: calc(32px + var(--kdtb-sticky-top));
	}
}

.kdtb .kdtb-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 0 0 24px;
}

.kdtb .kdtb-tour-details__main > .kdtb-facts:last-child {
	margin-bottom: 0;
}

.kdtb .kdtb-facts div {
	padding: 12px;
	border-radius: var(--kdtb-radius);
	background: var(--kdtb-bg);
}

.kdtb .kdtb-facts dt {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-2);
}

.kdtb .kdtb-facts__icon {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--kdtb-primary);
}

.kdtb .kdtb-facts dd {
	margin: 0;
	color: var(--kdtb-ink);
	font-weight: 600;
}

/* Day trips priced per vehicle: the vehicle list takes a full row. */
.kdtb .kdtb-facts .kdtb-facts__vehicles {
	grid-column: 1 / -1;
}

.kdtb .kdtb-facts__list {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kdtb .kdtb-facts__list li {
	margin: 0;
	overflow-wrap: anywhere;
}

/* Itinerary and inclusions after the tour text. */
.kdtb.kdtb-tour-sections {
	margin: var(--kdtb-space-6) 0;
}

.kdtb .kdtb-tour-sections h2 {
	margin: 0 0 var(--kdtb-space-3);
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-10);
	line-height: 1.3;
}

.kdtb .kdtb-tour-sections__part + .kdtb-tour-sections__part {
	margin-top: var(--kdtb-space-6);
}

/* One marker per item: browser and theme list markers are reset, then a single dot (itinerary) or check icon
   (inclusions) is drawn. */
.kdtb .kdtb-itinerary,
.kdtb .kdtb-inclusions {
	display: grid;
	gap: var(--kdtb-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.kdtb .kdtb-itinerary li,
.kdtb .kdtb-inclusions li {
	position: relative;
	margin: 0;
	padding: 0 0 0 28px;
	background: none;
	color: var(--kdtb-text);
	line-height: 1.5;
	list-style: none;
	overflow-wrap: anywhere;
}

.kdtb .kdtb-itinerary li::before {
	content: "";
	position: absolute;
	top: calc(0.75em - 4px);
	left: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--kdtb-primary);
}

.kdtb .kdtb-inclusions li::before,
.kdtb .kdtb-itinerary li::after,
.kdtb .kdtb-inclusions li::after {
	content: none;
}

.kdtb .kdtb-inclusions__icon {
	position: absolute;
	top: calc(0.75em - 10px);
	left: 0;
	width: 20px;
	height: 20px;
	color: var(--kdtb-primary);
}

.kdtb-tour-details + .kdtb-booking,
.kdtb-tour-sections + .kdtb-booking {
	margin-top: 24px;
}

@media (forced-colors: active) {
	.kdtb .kdtb-itinerary li::before {
		background: CanvasText;
		forced-color-adjust: none;
	}
}

/* ------------------------------------------------------------------ Checkout & confirmation */

.kdtb a.kdtb-button {
	width: auto;
	color: var(--kdtb-button-text);
	text-decoration: none;
}

.kdtb .kdtb-button--small {
	min-width: 96px;
	margin-top: 8px;
	padding: 8px 16px;
}

.kdtb .kdtb-checkout__title,
.kdtb .kdtb-confirmation__title {
	margin: 0 0 16px;
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-11);
}

.kdtb .kdtb-summary {
	margin: 0 0 24px;
	padding: 16px;
	border-radius: var(--kdtb-radius-lg);
	background: var(--kdtb-bg);
}

.kdtb .kdtb-summary h3 {
	margin: 0 0 12px;
	font-size: var(--kdtb-fs-6);
}

.kdtb .kdtb-summary__list {
	display: grid;
	gap: 8px;
	margin: 0;
}

.kdtb .kdtb-summary__list div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
}

.kdtb .kdtb-summary__list dt {
	color: var(--kdtb-muted);
}

.kdtb .kdtb-summary__list dd {
	margin: 0;
	color: var(--kdtb-ink);
	font-weight: 600;
	text-align: right;
	overflow-wrap: anywhere;
}

.kdtb .kdtb-summary__total {
	padding-top: 8px;
	border-top: 1px solid var(--kdtb-border);
	font-size: var(--kdtb-fs-9);
}

.kdtb .kdtb-summary__note {
	margin: 12px 0 0;
	color: var(--kdtb-muted);
	font-size: var(--kdtb-fs-3);
}

.kdtb .kdtb-fieldset {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

.kdtb .kdtb-fieldset legend {
	margin: 0 0 12px;
	padding: 0;
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-6);
	font-weight: 700;
}

.kdtb .kdtb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--kdtb-gap);
}

.kdtb .kdtb-field--wide {
	grid-column: 1 / -1;
}

.kdtb textarea.kdtb-input {
	min-height: 96px;
	resize: vertical;
}

.kdtb .kdtb-consent {
	margin: 0 0 20px;
}

.kdtb .kdtb-consent__label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	min-height: var(--kdtb-tap);
	padding: 10px 0;
	cursor: pointer;
}

.kdtb .kdtb-consent__label input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--kdtb-primary);
}

.kdtb .kdtb-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kdtb .kdtb-confirmation__head {
	margin: 0 0 24px;
	text-align: center;
}

.kdtb .kdtb-confirmation__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 0 12px;
	border-radius: 50%;
	background: #15803d;
	color: #fff;
	font-size: var(--kdtb-fs-12);
}

.kdtb .kdtb-confirmation__ref strong {
	display: block;
	margin-top: 4px;
	color: var(--kdtb-ink);
	font-size: var(--kdtb-fs-12);
	letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------ Responsive */

@media (min-width: 768px) {
	.kdtb-booking {
		padding: var(--kdtb-space-7);
	}
}

@media (max-width: 767px) {
	.kdtb .kdtb-tabs {
		max-width: none;
	}

	.kdtb .kdtb-vehicle {
		grid-template-columns: 96px 1fr;
	}

	.kdtb .kdtb-vehicle--no-media {
		grid-template-columns: 1fr;
	}

	.kdtb .kdtb-vehicle__price {
		grid-column: 1 / -1;
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		text-align: left;
	}
}

/* Windows high-contrast: background colours are replaced, so mark the active tab and checked radio explicitly. */
@media (forced-colors: active) {
	.kdtb .kdtb-tabs {
		border-bottom-color: CanvasText;
	}

	.kdtb .kdtb-tabs::before {
		background: Highlight;
	}

	.kdtb .kdtb-tabs .kdtb-tab[aria-current="page"],
	.kdtb .kdtb-tabs .kdtb-tab[aria-selected="true"] {
		outline: 2px solid Highlight;
		outline-offset: -4px;
	}

	.kdtb .kdtb-radio input[type="radio"]:checked {
		border-color: Highlight;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kdtb *,
	.kdtb *::before,
	.kdtb *::after {
		transition: none !important;
		animation: none !important;
	}
}
