/**
 * Turasly Deals page styles.
 * Reuses site palette via CSS vars where available; falls back to Turasly brand colors.
 */

.td-wrap,
.td-section {
	--td-green: #1d3a3a;
	--td-sea: #0e6b6e;
	--td-orange: #e58a4a;
	--td-ink: #223434;
	--td-muted: #5b6f6f;
	--td-line: #e3e9e9;
	--td-bg-soft: #f4f7f7;
	--td-radius: 14px;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}

/* ---------- Sections ---------- */
.td-section {
	padding-block: clamp(28px, 5vw, 56px);
}

.td-h1 {
	font-size: clamp(30px, 5.4vw, 52px);
	line-height: 1.1;
	margin: 0 0 14px;
	color: var(--td-ink);
}

.td-h2 {
	font-size: clamp(22px, 3vw, 32px);
	line-height: 1.2;
	margin: 0 0 10px;
	color: var(--td-ink);
}

.td-lead,
.td-copy {
	font-size: clamp(16px, 1.6vw, 19px);
	color: var(--td-muted);
	max-width: 70ch;
	margin: 0 0 20px;
}

.td-microcopy {
	font-size: 13px;
	color: var(--td-muted);
	margin: 10px 0 0;
}

.td-admin-note {
	color: #b3541e;
	font-weight: 600;
}

/* ---------- Buttons ---------- */
.td-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.td-btn--primary {
	background: var(--td-orange);
	color: #fff;
}

.td-btn--primary:hover {
	background: var(--td-green);
	color: #fff;
}

.td-btn--ghost {
	color: var(--td-green);
	border-color: var(--td-green);
	background: transparent;
}

.td-btn--ghost:hover {
	background: var(--td-green);
	color: #fff;
}

.td-btn:focus-visible {
	outline: 3px solid var(--td-orange);
	outline-offset: 2px;
}

/* ---------- Trust strip ---------- */
.td-trust__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px 28px;
	list-style: none;
	padding: 22px 26px;
	margin: 0;
	background: var(--td-bg-soft);
	border-radius: var(--td-radius);
	color: var(--td-ink);
	font-weight: 600;
}

.td-trust__list li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.td-trust__ico {
	flex: 0 0 20px;
	color: var(--td-sea);
}

@media (min-width: 768px) {
	.td-trust__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- Widget shells ---------- */
.td-widget-shell {
	position: relative;
	min-height: var(--td-h, 420px);
	background: #fff;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	overflow: hidden;
	margin-block: 8px 16px;
}

.td-widget-embed iframe,
.td-widget-embed > div {
	width: 100% !important;
}

/* loading skeleton */
.td-widget-loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	z-index: 0;
}

.td-skel {
	display: block;
	height: 44px;
	border-radius: 8px;
	background: linear-gradient(100deg, #eef2f2 40%, #f7fafa 50%, #eef2f2 60%);
	background-size: 200% 100%;
	animation: td-pulse 1.4s ease-in-out infinite;
}

.td-skel--short {
	width: 55%;
	height: 28px;
}

@keyframes td-pulse {
	0% { background-position: 120% 0; }
	100% { background-position: -80% 0; }
}

.td-widget-embed {
	position: relative;
	z-index: 1;
	min-height: var(--td-h, 420px);
}

/* hide skeleton once embed mounts (JS adds class) */
.td-widget-shell.td-loaded .td-widget-loading {
	display: none;
}

/* ---------- Fallback cards ---------- */
.td-fallback .td-fallback__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	height: 100%;
	padding: clamp(24px, 4vw, 48px);
	background: linear-gradient(135deg, var(--td-green) 0%, var(--td-sea) 100%);
	color: #fff;
	border-radius: var(--td-radius);
}

.td-fallback__title {
	margin: 0;
	font-size: clamp(20px, 2.4vw, 28px);
	color: #fff;
}

.td-fallback__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	max-width: 60ch;
}

.td-fallback__cta {
	display: inline-block;
	margin-top: 6px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--td-orange);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.td-fallback__cta:hover {
	background: #fff;
	color: var(--td-green);
}

.td-fallback__cta:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.td-fallback-empty {
	display: none;
}

body.admin-bar .td-fallback-empty,
.td-fallback-empty:has(.td-admin-note) {
	display: block;
	min-height: 0;
	padding: 12px;
}

/* ---------- Cards grid ---------- */
.td-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.td-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.td-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.td-card {
	background: #fff;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.td-card:hover,
.td-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(29, 58, 58, 0.12);
}

.td-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.td-card__link:focus-visible {
	outline: 3px solid var(--td-orange);
	outline-offset: 2px;
}

.td-card__media {
	position: relative;
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--td-bg-soft);
}

.td-card__media--short {
	aspect-ratio: 16 / 9;
	height: auto;
}

.td-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.td-card:hover .td-card__media img {
	transform: scale(1.05);
}

.td-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(45deg, #e8eeee, #e8eeee 12px, #dfe7e7 12px, #dfe7e7 24px);
	color: var(--td-muted);
	font-weight: 600;
}

.td-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.td-badge--live {
	background: rgba(255, 255, 255, 0.92);
	color: var(--td-green);
	border: 1px solid var(--td-line);
}

.td-badge--live::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2e9e5b;
	margin-right: 6px;
}

.td-card__body {
	padding: 16px 18px 18px;
}

.td-card__title {
	margin: 0 0 4px;
	font-size: 19px;
	color: var(--td-ink);
}

.td-card__label {
	margin: 0 0 12px;
	color: var(--td-muted);
	font-size: 15px;
}

.td-card__cta {
	color: var(--td-orange);
	font-weight: 700;
	font-size: 15px;
}

/* ---------- Final CTA ---------- */
.td-final {
	background: var(--td-bg-soft);
	border-radius: var(--td-radius);
	text-align: center;
}

.td-final .td-copy {
	margin-inline: auto;
}

/* ---------- Disclosure + FAQ ---------- */
.td-disclosure__text {
	background: var(--td-bg-soft);
	padding: 16px 20px;
	border-radius: 10px;
	box-shadow: inset 0 1px 0 var(--td-line);
	color: var(--td-ink);
	font-size: 14px;
}

.td-faq {
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	overflow: hidden;
}

.td-faq__item + .td-faq__item {
	border-top: 1px solid var(--td-line);
}

.td-faq__q {
	margin: 0;
}

.td-faq__btn {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: #fff;
	border: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--td-ink);
	cursor: pointer;
	text-align: left;
}

.td-faq__btn:hover {
	background: var(--td-bg-soft);
}

.td-faq__btn:focus-visible {
	outline: 3px solid var(--td-orange);
	outline-offset: -3px;
}

.td-faq__icon {
	position: relative;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

.td-faq__icon::before,
.td-faq__icon::after {
	content: "";
	position: absolute;
	background: var(--td-orange);
	transition: transform 0.25s ease;
}

.td-faq__icon::before {
	inset: 6px 0;
	height: 2px;
}

.td-faq__icon::after {
	inset: 0 6px;
	width: 2px;
}

.td-faq__btn[aria-expanded="true"] .td-faq__icon::after {
	transform: scaleY(0);
}

.td-faq__a {
	padding: 4px 20px 18px;
	color: var(--td-muted);
}

.td-faq__a p {
	margin: 0;
}

/* consent placeholder for lazy third-party embeds */
.td-consent-gate {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	text-align: center;
	background: rgba(244, 247, 247, 0.96);
}

.td-consent-gate__note {
	max-width: 46ch;
	color: var(--td-muted);
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.td-widget-shell,
	.td-card,
	.td-card__media img,
	.td-skel,
	.td-faq__icon::before,
	.td-faq__icon::after {
		transition: none !important;
		animation: none !important;
	}
}
/* ---------- Hero banner (matches other pages: light menu, big image under) ---------- */
.td-hero--banner {
	position: relative;
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	padding-block: clamp(56px, 6.5vw, 88px) clamp(34px, 4vw, 50px);
	padding-inline: clamp(16px, 4vw, 32px);
	background-image: var(--td-hero-img, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='16' height='16' fill='%230e6b6e'/%3E%3C/svg%3E"));
	background-size: cover;
	background-position: center;
	isolation: isolate;
	text-align: center;
	overflow: hidden;
}

.td-hero--banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(15, 30, 30, 0.55) 0%, rgba(15, 30, 30, 0.75) 100%);
}

.td-hero--banner .td-h1,
.td-hero--banner .td-lead {
	color: #ffffff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.td-hero--banner .td-lead {
	margin-inline: auto;
}

.td-hero--banner .td-microcopy,
.td-hero--banner .td-btn--ghost {
	color: #fff;
	border-color: #fff;
}

.td-hero--banner .td-microcopy {
	opacity: 0.85;
}

.td-hero--banner .td-btn--ghost:hover {
	background: #fff;
	color: var(--td-green);
}

.td-hero--banner .td-widget-shell {
	text-align: left;
}

/* ---------- Price badges + prices (v2) ---------- */
.td-badge--price {
	background: var(--td-orange);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	font-size: 13px;
}

.td-card__pricerow {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 10px;
}

.td-price {
	font-weight: 800;
	color: var(--td-ink);
	font-size: 18px;
	white-space: nowrap;
}

.td-price__from {
	font-weight: 600;
	font-size: 13px;
	color: var(--td-muted);
	margin-right: 4px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.td-price__note {
	font-size: 12px;
	color: var(--td-muted);
}

.td-fallback__cta:hover {
	background: #fff;
	color: var(--td-green);
}

/* inline (non-fallback) fallback card variant: tighter */
.td-widget-shell.td-fallback {
	min-height: 0;
}

.td-widget-shell.td-fallback .td-fallback__inner {
	height: auto;
}

/* =========================================================
   Live data components (routes / calendar / offers)
   ========================================================= */

.td-h3 {
	font-size: clamp(17px, 1.6vw, 20px);
	margin: 0 0 12px;
	color: var(--td-ink);
}

/* --- cheapest routes list --- */
.td-routes {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	overflow: hidden;
	background: #fff;
}

.td-routes__row + .td-routes__row {
	border-top: 1px solid var(--td-line);
}

.td-routes__link {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	text-decoration: none;
	color: var(--td-ink);
	transition: background 0.2s ease, transform 0.2s ease;
}

.td-routes__link:hover,
.td-routes__link:focus-visible {
	background: var(--td-bg-soft);
	transform: translateX(4px);
}

.td-routes__link:focus-visible {
	outline: 3px solid var(--td-orange);
	outline-offset: -3px;
}

.td-routes__route {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	min-width: 0;
}

.td-routes__from {
	color: var(--td-muted);
	font-weight: 500;
}

.td-routes__arrow {
	color: var(--td-orange);
}

.td-routes__dest {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.td-routes__meta {
	font-size: 13px;
	color: var(--td-muted);
	white-space: nowrap;
}

.td-routes__price {
	font-weight: 800;
	color: var(--td-sea);
	font-variant-numeric: tabular-nums;
	min-width: 56px;
	text-align: right;
}

@media (max-width: 560px) {
	.td-routes__link {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"route price"
			"meta meta";
		row-gap: 4px;
	}
	.td-routes__route { grid-area: route; }
	.td-routes__meta { grid-area: meta; }
	.td-routes__price { grid-area: price; }
}

/* --- fare calendar --- */
.td-cal {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 10px;
	margin: 0 0 8px;
	padding: 0;
}

.td-cal__day a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 10px;
	border: 1px solid var(--td-line);
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: var(--td-ink);
	text-align: center;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.td-cal__day a:hover {
	border-color: var(--td-sea);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(29, 58, 58, 0.1);
}

.td-cal__day a:focus-visible {
	outline: 3px solid var(--td-orange);
	outline-offset: 2px;
}

.td-cal__date {
	font-size: 13px;
	color: var(--td-muted);
}

.td-cal__price {
	font-size: 18px;
	font-weight: 800;
	color: var(--td-ink);
	font-variant-numeric: tabular-nums;
}

.td-cal__day.is-cheapest a {
	border-color: var(--td-orange);
	background: #fff7f0;
}

.td-cal__day.is-cheapest .td-cal__price {
	color: var(--td-orange);
}

.td-cal__tag {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--td-orange);
	font-weight: 700;
}

/* --- current promo offers --- */
.td-offers-wrap {
	margin-bottom: 22px;
}

.td-offers {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.td-offers__item a {
	display: flex;
	flex-direction: column;
	gap: 3px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	background: #fff;
	text-decoration: none;
	color: var(--td-ink);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.td-offers__item a:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(29, 58, 58, 0.1);
}

.td-offers__item a:focus-visible {
	outline: 3px solid var(--td-orange);
	outline-offset: 2px;
}

.td-offers__dest {
	font-weight: 700;
}

.td-offers__airline {
	font-size: 13px;
	color: var(--td-muted);
}

.td-offers__price {
	margin-top: 4px;
	font-size: 20px;
	font-weight: 800;
	color: var(--td-sea);
	font-variant-numeric: tabular-nums;
}

/* =========================================================
   Native search forms (flight + hotel)
   ========================================================= */
.td-search-wrap {
	margin-block: 10px 12px;
}

.td-search {
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: var(--td-radius);
	padding: 18px;
	box-shadow: 0 18px 40px rgba(10, 25, 25, 0.18);
	max-width: 940px;
	margin-inline: auto;
}

.td-search__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 720px) {
	.td-search__row {
		grid-template-columns: repeat(4, 1fr);
	}
	.td-search--hotels .td-search__row {
		grid-template-columns: 2fr 1fr 1fr;
	}
	.td-field--wide {
		grid-column: auto;
	}
}

.td-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	text-align: left;
}

.td-field__label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--td-muted);
}

form.td-search input.td-field__input:is([type="text"], [type="date"], [type="search"]),
form.td-search input.td-field__input:is([type="text"]):not([disabled]),
form.td-search input.td-field__input:is([type="date"]):not([disabled]) {
	appearance: none;
	width: 100%;
	min-height: 46px;
	padding: 12px 14px;
	border: 1px solid var(--td-line) !important;
	border-radius: 10px;
	font-size: 16px;
	line-height: 1.2;
	color: var(--td-ink);
	background-color: #fff;
	background-image: none;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.td-search input.td-field__input:focus {
	outline: none;
	border-color: var(--td-sea);
	box-shadow: 0 0 0 3px rgba(14, 107, 110, 0.18);
}

form.td-search .td-search__submit {
	width: 100%;
	margin-top: 14px;
	border: 0;
	cursor: pointer;
	font-size: 16px;
}

.td-search__note {
	font-size: 13px;
	color: #fff;
	opacity: 0.9;
	max-width: 70ch;
	margin: 10px auto 0;
	text-align: center;
}

/* inside light sections the note is dark */
.td-section:not(.td-hero--banner) .td-search__note {
	color: var(--td-muted);
}

.td-section:not(.td-hero--banner) .td-search {
	box-shadow: 0 10px 26px rgba(10, 25, 25, 0.08);
	border-color: var(--td-line);
}

.td-search__note a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* hero: keep the form visually part of the hero */
.td-hero--banner .td-search-wrap {
	margin-top: 8px;
}

/* =========================================================
   Official Travelpayouts widget shells
   ========================================================= */
.td-tp-widget {
	margin-block: 8px 16px;
}

.td-tp-widget__label {
	font-size: 13px;
	color: var(--td-muted);
	margin: 0 0 10px;
}

.td-tp-widget__body {
	background: #fff;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	padding: clamp(10px, 2vw, 18px);
	/* official tables can be wide - keep them scrollable, never break layout */
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* make the partner tables inherit our type + colours */
.td-tp-widget__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.td-tp-widget__body th {
	text-align: left;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--td-muted);
	padding: 8px 10px;
}

.td-tp-widget__body td {
	padding: 10px;
	border-top: 1px solid var(--td-line);
	color: var(--td-ink);
	vertical-align: middle;
}

.td-tp-widget__body tr:hover td {
	background: var(--td-bg-soft);
}

.td-tp-widget__body .tp-widget-price,
.td-tp-widget__body [class*="price"] {
	color: var(--td-sea);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.td-tp-widget__body a {
	color: var(--td-orange);
	text-decoration: none;
	font-weight: 600;
}

.td-tp-widget__body a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.td-tp-widget__body img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 640px) {
	.td-tp-widget__body {
		margin-inline: calc(var(--td-radius) * -1 + 4px);
		border-radius: 10px;
	}
	.td-tp-widget__body table {
		min-width: 520px; /* scroll instead of squashing */
	}
}

/* ---------- Search autocomplete ---------- */
.td-ac {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 30;
	background: #fff;
	border: 1px solid var(--td-line);
	border-radius: 10px;
	box-shadow: 0 16px 34px rgba(10, 25, 25, 0.16);
	overflow: hidden;
	max-height: 280px;
	overflow-y: auto;
}

.td-ac__item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 14px;
	border: 0;
	background: #fff;
	cursor: pointer;
	font-size: 15px;
	color: var(--td-ink);
}

.td-ac__item strong {
	display: inline-block;
	min-width: 42px;
	color: var(--td-sea);
}

.td-ac__item:hover,
.td-ac__item.is-active {
	background: var(--td-bg-soft);
}

/* =========================================================
   Hotels page
   ========================================================= */
.td-hotels {
	--td-hotel-tint: rgba(15, 32, 34, 0.62);
}

/* Hero uses the shared banner; hotels gets a slightly taller crop */
.td-hero--hotels {
	text-align: center;
}

.td-hero--hotels .td-hero__tag {
	display: inline-block;
	margin: 6px 0 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	backdrop-filter: blur(2px);
}

/* value cards */
.td-value-grid {
	grid-template-columns: 1fr;
}

.td-value {
	background: #fff;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	padding: 22px 20px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.td-value:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(29, 58, 58, 0.1);
}

.td-value__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--td-bg-soft);
	color: var(--td-sea);
	margin-bottom: 12px;
}

.td-value__title {
	margin: 0 0 6px;
	font-size: 18px;
	color: var(--td-ink);
}

.td-value__text {
	margin: 0;
	color: var(--td-muted);
	font-size: 15px;
}

/* budget categories */
.td-budget {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.td-budget__item {
	background: #fff;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	padding: 20px 22px;
}

.td-budget__title {
	margin: 0 0 6px;
	font-size: 18px;
	color: var(--td-sea);
}

.td-budget__text {
	margin: 0;
	color: var(--td-muted);
	font-size: 15px;
}

@media (min-width: 640px) {
	.td-budget { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
	.td-value-grid { grid-template-columns: repeat(4, 1fr); }
}

/* the hotel search block gets a soft panel so it reads as a tool, not content */
.td-hotel-search .td-search {
	max-width: 960px;
}

/* Hotels hero: match the home/deals hero height (~550px total) */
.td-hero--hotels {
	padding-block: clamp(120px, 17vw, 190px) clamp(70px, 8vw, 96px);
	min-height: clamp(420px, 38vw, 560px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

@media (max-width: 560px) {
	.td-hero--hotels {
		padding-block: 116px 60px;
		min-height: 440px;
	}
	.td-hero--hotels .td-hero__tag { font-size: 13px; }
}

/* Hero eyebrows sit on imagery — keep them legible (deals + hotels) */
.td-hero--banner .td-eyebrow {
	color: #ffffff;
	opacity: 0.95;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ---------- Hotels: map ---------- */
.td-hotelmap {
	position: relative;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	overflow: hidden;
	background: var(--td-bg-soft);
	margin-top: 8px;
}

.td-hotelmap__canvas {
	height: clamp(300px, 42vw, 440px);
	width: 100%;
	z-index: 0;
}

.td-hotelmap__hint {
	position: absolute;
	inset: auto 0 0 0;
	margin: 0;
	padding: 10px 14px;
	font-size: 13px;
	color: var(--td-muted);
	background: rgba(255, 255, 255, 0.9);
	border-top: 1px solid var(--td-line);
}

.td-hotelmap.is-loaded .td-hotelmap__hint {
	display: none;
}

/* marker tooltip + pin colouring */
.td-hotelmap .leaflet-popup-content {
	font-family: inherit;
	font-size: 14px;
	margin: 10px 14px;
}

.td-hotelmap .leaflet-popup-content a {
	font-weight: 700;
	color: var(--td-orange);
	text-decoration: none;
}

.td-hotelmap .leaflet-popup-content a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Buttons inside popups: keep white text on the orange fill (the generic
   link colour rule above would otherwise make it orange-on-orange). */
.td-hotelmap .leaflet-popup-content a.td-pop__btn {
	color: #ffffff;
}

.td-hotelmap .leaflet-popup-content a.td-pop__btn:hover {
	color: #ffffff;
}

/* Ghost button keeps its green outline/text, white only on hover. */
.td-hotelmap .leaflet-popup-content a.td-pop__btn--ghost {
	color: var(--td-green);
}

.td-hotelmap .leaflet-popup-content a.td-pop__btn--ghost:hover {
	color: #ffffff;
}

.td-hotelmap .td-pin {
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--td-orange);
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ---------- Hotels: guides strip ---------- */
.td-guides {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.td-guide {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 16px;
	padding: 18px 20px;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	background: #fff;
	text-decoration: none;
	color: var(--td-ink);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.td-guide:hover {
	transform: translateY(-2px);
	border-color: var(--td-sea);
	box-shadow: 0 10px 22px rgba(29, 58, 58, 0.1);
}

.td-guide:focus-visible {
	outline: 3px solid var(--td-orange);
	outline-offset: 2px;
}

.td-guide__label {
	font-weight: 700;
	font-size: 17px;
}

.td-guide__text {
	grid-column: 1;
	color: var(--td-muted);
	font-size: 14px;
}

.td-guide__arrow {
	grid-row: 1 / span 2;
	grid-column: 2;
	color: var(--td-orange);
	font-weight: 700;
}

@media (min-width: 720px) {
	.td-guides { grid-template-columns: repeat(3, 1fr); }
	.td-guide { grid-template-columns: 1fr; }
	.td-guide__arrow { grid-row: auto; grid-column: 1; margin-top: 6px; }
}

/* ---------- Hotels: rich map popups (booking-style) ---------- */
.td-hotelmap .leaflet-popup-content-wrapper {
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(10, 25, 25, 0.22);
	padding: 0;
	overflow: hidden;
}

.td-hotelmap .leaflet-popup-content {
	margin: 0;
	width: auto !important;
}

.td-pop {
	width: 260px;
}

.td-pop__media {
	height: 132px;
	overflow: hidden;
	background: var(--td-bg-soft);
}

.td-pop__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.td-pop__body {
	padding: 12px 14px 14px;
}

.td-pop__title {
	margin: 0 0 3px;
	font-size: 17px;
	color: var(--td-ink);
}

.td-pop__text {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--td-muted);
	line-height: 1.35;
}

.td-pop__price {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 800;
	color: var(--td-sea);
	font-variant-numeric: tabular-nums;
}

.td-pop__price .td-pop__from {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--td-muted);
}

.td-pop__price--na {
	color: var(--td-orange);
}

.td-pop__actions {
	display: flex;
	gap: 8px;
}

.td-pop__btn {
	flex: 1;
	display: inline-block;
	text-align: center;
	padding: 9px 12px;
	border-radius: 999px;
	background: var(--td-orange);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.td-pop__btn:hover {
	background: var(--td-green);
	color: #fff;
}

.td-pop__btn--ghost {
	background: transparent;
	border: 2px solid var(--td-green);
	color: var(--td-green);
	padding: 7px 12px;
}

.td-pop__btn--ghost:hover {
	background: var(--td-green);
	color: #fff;
}

/* keep the map's own controls on-brand */
.td-hotelmap .leaflet-control-zoom a {
	color: var(--td-ink);
}

/* ---------- Hotels: destinations carousel (pager + slideshow) ---------- */
.td-dest-carousel {
	position: relative;
	margin-top: 8px;
}

.td-carousel__viewport {
	overflow: hidden;
}

.td-carousel__track {
	display: flex;
	gap: 20px;
	transition: transform 0.5s cubic-bezier(0.45, 0.05, 0.25, 1);
	will-change: transform;
}

/* each destination card takes one "slot" (3 visible on desktop) */
.td-card--dest {
	flex: 0 0 calc((100% - 2 * 20px) / 3);
	min-width: 0;
}

@media (max-width: 1023px) {
	.td-card--dest { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 639px) {
	.td-card--dest { flex-basis: 100%; }
}

.td-carousel__nav {
	position: absolute;
	top: 34%;
	z-index: 3;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--td-line);
	border-radius: 50%;
	background: #fff;
	color: var(--td-ink);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(29, 58, 58, 0.14);
	transition: background 0.2s ease, color 0.2s ease;
}

.td-carousel__nav:hover {
	background: var(--td-green);
	color: #fff;
}

.td-carousel__nav:focus-visible {
	outline: 3px solid var(--td-orange);
	outline-offset: 2px;
}

.td-carousel__nav--prev { left: -18px; }
.td-carousel__nav--next { right: -18px; }

@media (max-width: 640px) {
	.td-carousel__nav { display: none; }
}

.td-carousel__dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.td-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(29, 58, 58, 0.22);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.td-carousel__dot:hover { background: rgba(29, 58, 58, 0.5); }

.td-carousel__dot.is-active {
	background: var(--td-orange);
	transform: scale(1.3);
}

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

/* =========================================================
   Rent a Car page
   ========================================================= */

/* hero: match the home/deals hero height */
.td-hero--cars {
	padding-block: clamp(120px, 17vw, 190px) clamp(70px, 8vw, 96px);
	min-height: clamp(420px, 38vw, 560px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

@media (max-width: 560px) {
	.td-hero--cars { padding-block: 116px 60px; min-height: 440px; }
	.td-hero--cars .td-hero__tag { font-size: 13px; }
}

/* car search form: 3 fields on desktop */
.td-search--cars .td-search__row {
	grid-template-columns: 1fr;
}

@media (min-width: 760px) {
	.td-search--cars .td-search__row {
		grid-template-columns: 1.6fr 1fr 1fr;
	}
}

.td-car-search .td-search { max-width: 980px; }

/* accessibility block */
.td-accessible {
	background: var(--td-bg-soft);
	border-radius: var(--td-radius);
}

.td-accessible__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 860px) {
	.td-accessible__grid { grid-template-columns: 1fr 1.2fr; }
}

.td-accessible__media {
	border-radius: var(--td-radius);
	overflow: hidden;
	border: 1px solid var(--td-line);
}

.td-accessible__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 380px;
	object-fit: cover;
}

.td-accessible__list {
	margin: 0 0 18px;
	padding-left: 20px;
	color: var(--td-ink);
	font-size: 15px;
	line-height: 1.7;
}

.td-accessible__list li::marker {
	color: var(--td-orange);
}

.td-accessible .td-btn { margin-bottom: 8px; }

/* partner list */
.td-partners {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.td-partners { grid-template-columns: repeat(2, 1fr); }
}

.td-partner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 2px 14px;
	padding: 16px 18px;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	background: #fff;
	text-decoration: none;
	color: var(--td-ink);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.td-partner:hover {
	transform: translateY(-2px);
	border-color: var(--td-sea);
	box-shadow: 0 10px 22px rgba(29, 58, 58, 0.1);
}

.td-partner:focus-visible {
	outline: 3px solid var(--td-orange);
	outline-offset: 2px;
}

.td-partner__name {
	font-weight: 700;
	font-size: 17px;
}

.td-partner__note {
	grid-column: 1;
	font-size: 13px;
	color: var(--td-muted);
}

.td-partner__arrow {
	grid-row: 1 / span 2;
	grid-column: 2;
	color: var(--td-orange);
	font-weight: 700;
}

/* ---------- Owner-pasted widget (async, lazy on scroll) ---------- */
.td-embed {
	margin-top: 8px;
}

.td-embed__loading {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(24px, 5vw, 48px) 20px;
	border-radius: var(--td-radius);
	background: var(--td-bg-soft);
}

.td-embed > noscript { display: block; margin-top: 8px; }

.td-embed__loaded {
	margin-top: 4px;
	min-height: 220px;
}

.td-embed__loaded iframe,
.td-embed__loaded > div {
	max-width: 100%;
}
