:root {
	--tdt-color-primary: #0f766e;
	--tdt-color-ink: #14213d;
	--tdt-color-muted: #586174;
	--tdt-color-line: #dbe3e0;
	--tdt-color-surface: #ffffff;
	--tdt-color-soft: #f4f8f6;
	--tdt-radius: 8px;
	--tdt-ios-shadow: 0 24px 70px rgba(20, 33, 61, 0.14);
}

.tdt-map-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
	gap: 24px;
	align-items: stretch;
}

.tdt-map {
	min-height: var(--tdt-map-height, 560px);
	border: 1px solid var(--tdt-color-line);
	border-radius: var(--tdt-radius);
	overflow: hidden;
	background: var(--tdt-color-soft);
}

.tdt-map:focus,
.tdt-tour-card:focus,
.tdt-button:focus {
	outline: 3px solid #f59e0b;
	outline-offset: 3px;
}

.tdt-map-cards,
.tdt-tour-grid {
	display: grid;
	gap: 18px;
}

.tdt-tour-grid {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tdt-tour-carousel {
	display: grid;
	grid-auto-columns: minmax(280px, 360px);
	grid-auto-flow: column;
	grid-template-columns: none;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 4px 4px 18px;
	scroll-padding-inline: 4px;
	scroll-snap-type: inline mandatory;
	scrollbar-color: var(--tdt-color-primary) transparent;
}

.tdt-tour-carousel .tdt-tour-card {
	scroll-snap-align: start;
}

.tdt-tour-card {
	background: var(--tdt-color-surface);
	border: 1px solid var(--tdt-color-line);
	border-radius: var(--tdt-radius);
	overflow: hidden;
	box-shadow: 0 12px 26px rgba(20, 33, 61, 0.08);
}

.tdt-tour-card img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.tdt-tour-card__body {
	padding: 18px;
}

.tdt-tour-card h3 {
	margin: 0 0 8px;
	font-size: 1.2rem;
	line-height: 1.25;
}

.tdt-muted {
	color: var(--tdt-color-muted);
	margin: 0 0 10px;
}

.tdt-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.tdt-facts span,
.tdt-tour-facts div {
	background: var(--tdt-color-soft);
	border: 1px solid var(--tdt-color-line);
	border-radius: 999px;
	color: var(--tdt-color-ink);
	font-size: 0.88rem;
	padding: 6px 10px;
}

.tdt-button {
	align-items: center;
	background: var(--tdt-color-primary);
	border: 2px solid var(--tdt-color-primary);
	border-radius: 6px;
	color: #fff;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	text-decoration: none;
}

.tdt-button-secondary {
	background: transparent;
	color: var(--tdt-color-primary);
}

.tdt-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tdt-leaflet-icon span {
	background: var(--tdt-marker-color, var(--tdt-color-primary));
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
	display: block;
	height: 22px;
	transform: rotate(-45deg);
	width: 22px;
}

.tdt-popup-altitude {
	color: var(--tdt-color-muted);
	font-weight: 700;
	margin-bottom: 6px;
}

.tdt-reservation-form {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.96));
	border: 1px solid rgba(219, 227, 224, 0.9);
	border-radius: 26px;
	box-sizing: border-box;
	box-shadow: var(--tdt-ios-shadow);
	display: grid;
	gap: 14px;
	max-width: 780px;
	padding: clamp(20px, 4vw, 34px);
	width: 100%;
}

.tdt-reservation-form * {
	box-sizing: border-box;
	min-width: 0;
}

.tdt-reservation-form label {
	display: grid;
	font-weight: 700;
	gap: 6px;
}

.tdt-reservation-form input,
.tdt-reservation-form select,
.tdt-reservation-form textarea {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(170, 185, 181, 0.42);
	border-radius: 14px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
	font: inherit;
	max-width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
	width: 100%;
}

.tdt-reservation-form textarea {
	border-radius: 18px;
}

.tdt-reservation-form input:focus,
.tdt-reservation-form select:focus,
.tdt-reservation-form textarea:focus {
	background: #fff;
	border-color: rgba(15, 118, 110, 0.62);
	box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
	outline: none;
}

.tdt-consent,
.tdt-reservation-form label:has(input[type="checkbox"]) {
	align-items: start;
	display: flex;
	font-weight: 500;
	gap: 10px;
}

.tdt-consent input[type="checkbox"],
.tdt-reservation-form label:not(.tdt-switch) input[type="checkbox"] {
	accent-color: var(--tdt-color-primary);
	flex: 0 0 auto;
	height: 24px;
	margin-top: 1px;
	width: 24px;
}

.tdt-required {
	color: #b91c1c;
	font-weight: 800;
}

.tdt-capacity-note,
.tdt-payment-estimate {
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.28);
	border-radius: 14px;
	color: var(--tdt-color-ink);
	font-weight: 700;
	line-height: 1.45;
	margin: 0;
	overflow-wrap: anywhere;
	padding: 12px 14px;
}

.tdt-payment-estimate {
	background: rgba(15, 118, 110, 0.08);
	border-color: rgba(15, 118, 110, 0.2);
}

.tdt-payment-estimate--ready {
	background: rgba(15, 118, 110, 0.12);
	border-color: rgba(15, 118, 110, 0.32);
}

.tdt-switch {
	align-items: center !important;
	background: rgba(255, 255, 255, 0.74);
	border: 1px solid rgba(219, 227, 224, 0.8);
	border-radius: 18px;
	display: flex !important;
	font-weight: 700 !important;
	gap: 12px !important;
	padding: 12px 14px;
}

.tdt-switch input {
	clip: rect(0 0 0 0);
	height: 1px;
	position: absolute;
	width: 1px;
}

.tdt-switch span {
	background: #d6dfdc;
	border-radius: 999px;
	display: inline-flex;
	height: 30px;
	position: relative;
	transition: background-color 160ms ease;
	width: 52px;
}

.tdt-switch span::after {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(20, 33, 61, 0.24);
	content: "";
	height: 26px;
	left: 2px;
	position: absolute;
	top: 2px;
	transition: transform 160ms ease;
	width: 26px;
}

.tdt-switch input:checked + span {
	background: var(--tdt-color-primary);
}

.tdt-switch input:checked + span::after {
	transform: translateX(22px);
}

.tdt-switch input:focus + span {
	box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.tdt-hp {
	left: -9999px;
	position: absolute;
}

.tdt-form-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tdt-form-message {
	color: var(--tdt-color-ink);
	flex: 1 1 280px;
	font-weight: 700;
}

.tdt-form-message:empty {
	display: none;
}

.tdt-form-message--success,
.tdt-form-message--error {
	border-radius: 18px;
	margin: 0;
	padding: 14px 16px;
}

.tdt-form-message--success {
	background: rgba(15, 118, 110, 0.1);
	border: 1px solid rgba(15, 118, 110, 0.24);
}

.tdt-form-message--error {
	background: rgba(185, 28, 28, 0.08);
	border: 1px solid rgba(185, 28, 28, 0.24);
	color: #991b1b;
}

@media (max-width: 640px) {
	.tdt-tour-carousel {
		grid-auto-columns: minmax(82vw, 1fr);
		margin-inline: -4px;
		padding-inline: 4px;
	}

	.tdt-reservation-form {
		border-radius: 18px;
		gap: 12px;
		padding: 18px;
	}

	.tdt-reservation-form label {
		font-size: 1rem;
	}

	.tdt-reservation-form input,
	.tdt-reservation-form select,
	.tdt-reservation-form textarea {
		border-radius: 12px;
		font-size: 16px;
		min-height: 46px;
		padding: 10px 12px;
	}

	.tdt-capacity-note,
	.tdt-payment-estimate {
		border-radius: 12px;
		font-size: 0.96rem;
		padding: 10px 12px;
	}

	.tdt-form-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.tdt-form-actions .tdt-button,
	.tdt-form-message {
		width: 100%;
	}
}

.tdt-tour-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
}

.tdt-tour-facts dt {
	color: var(--tdt-color-muted);
	font-size: 0.78rem;
	text-transform: uppercase;
}

.tdt-tour-facts dd {
	margin: 0;
}

.tdt-itinerary {
	display: grid;
	gap: 14px;
}

@media (max-width: 800px) {
	.tdt-map-wrap {
		grid-template-columns: 1fr;
	}

	.tdt-map {
		min-height: 420px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
	}
}
