/* Contextual related properties. The native theme block remains visible until
 * the controller renders at least one complete replacement card. */
.waoh-related-native-hidden {
	display: none !important;
}

.waoh-related {
	--waoh-related-accent: var(--waoh-single-accent, var(--theme-primary-color, #2c7a7b));
	--waoh-related-ink: var(--waoh-single-ink, #343b3d);
	--waoh-related-muted: var(--waoh-single-muted, #626978);
	--waoh-related-divider: var(--waoh-single-divider, #e2e5e8);
	box-sizing: border-box;
	width: 100%;
	margin: 36px 0 0;
	border-top: 1px solid var(--waoh-related-divider);
	background: #fff;
	color: var(--waoh-related-ink);
	font-family: inherit;
	padding: 30px 0 0;
}

.waoh-related *, .waoh-related *::before, .waoh-related *::after { box-sizing: border-box; }

.waoh-related__title {
	margin: 0 0 20px;
	color: var(--waoh-related-ink);
	font: inherit;
	font-size: clamp(21px, 2vw, 27px);
	font-weight: 600;
	line-height: 1.25;
}

.waoh-related__viewport { position: relative; min-width: 0; }

.waoh-related__track {
	display: flex;
	gap: 18px;
	width: 100%;
	margin: 0;
	padding: 0 2px 12px;
	overflow-x: auto;
	overflow-y: hidden;
	list-style: none;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--waoh-related-accent) 36%, transparent) transparent;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

.waoh-related__item {
	flex: 0 0 calc((100% - 36px) / 3);
	min-width: 0;
	margin: 0;
	scroll-snap-align: start;
}

.waoh-related-card, .waoh-related-card__link { display: block; min-width: 0; height: 100%; }
.waoh-related-card__link, .waoh-related-card__link:hover, .waoh-related-card__link:focus { color: inherit; text-decoration: none; }
.waoh-related-card__link:focus-visible { border-radius: 14px; outline: 3px solid color-mix(in srgb, var(--waoh-related-accent) 34%, white); outline-offset: 3px; }

.waoh-related-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 14px;
	background: #edf1f1;
}

.waoh-related-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 180ms ease;
}

@media (hover: hover) { .waoh-related-card__link:hover .waoh-related-card__media img { transform: scale(1.018); } }

.waoh-related-card__offer, .waoh-related-card__review {
	position: absolute;
	top: 12px;
	z-index: 1;
	display: inline-flex;
	min-height: 32px;
	align-items: center;
	border-radius: 999px;
	box-shadow: 0 3px 10px rgb(25 37 39 / 14%);
	font-size: 13px;
	line-height: 1;
}

.waoh-related-card__offer { left: 12px; background: var(--waoh-related-accent); color: #fff; font-weight: 600; padding: 8px 13px; }
.waoh-related-card__review { right: 12px; overflow: hidden; background: #fff; color: var(--waoh-related-ink); }
.waoh-related-card__review-score, .waoh-related-card__review-label { display: inline-flex; min-height: 32px; align-items: center; padding: 7px 10px; }
.waoh-related-card__review-score { background: var(--waoh-related-accent); color: #fff; font-weight: 600; }
.waoh-related-card__review-label { color: var(--waoh-related-accent); font-weight: 500; }

.waoh-related-card__body { padding: 12px 2px 2px; }
.waoh-related-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--waoh-related-ink);
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.32;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.waoh-related-card__meta, .waoh-related-card__price { margin: 6px 0 0; color: var(--waoh-related-muted); font-size: 14px; font-weight: 400; line-height: 1.35; }
.waoh-related-card__price { color: var(--waoh-related-accent); font-size: 13px; }
.waoh-related-card__price strong { font-weight: 600; }

.waoh-related__arrow {
	position: absolute;
	top: min(38%, 126px);
	z-index: 3;
	display: inline-flex;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: 1px solid var(--waoh-related-divider);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 14px rgb(27 39 40 / 15%);
	color: var(--waoh-related-ink);
	cursor: pointer;
	font: inherit;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-50%);
}
.waoh-related__arrow:focus-visible { outline: 3px solid color-mix(in srgb, var(--waoh-related-accent) 34%, white); outline-offset: 2px; }
.waoh-related__arrow--previous { left: -18px; }
.waoh-related__arrow--next { right: -18px; }

.waoh-related-return {
	margin-top: 20px;
	border-top: 1px solid var(--waoh-related-divider);
	padding: 28px 0 4px;
	text-align: center;
}
.waoh-related-return__prompt { margin: 0 0 15px; color: var(--waoh-related-ink); font-size: 18px; font-weight: 600; line-height: 1.35; }
.waoh-related-return__link {
	display: inline-flex;
	min-width: min(100%, 320px);
	min-height: 52px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--waoh-related-accent);
	border-radius: 11px;
	background: #fff;
	color: var(--waoh-related-accent);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	padding: 14px 24px;
	text-decoration: none;
}
.waoh-related-return__link:hover, .waoh-related-return__link:focus { background: color-mix(in srgb, var(--waoh-related-accent) 8%, white); color: var(--waoh-related-accent); text-decoration: none; }
.waoh-related-return__link:focus-visible { outline: 3px solid color-mix(in srgb, var(--waoh-related-accent) 34%, white); outline-offset: 3px; }

@media (max-width: 767px) {
	body.single-estate_property .waoh-related {
		position: relative;
		left: 50%;
		width: 100vw;
		max-width: none;
		margin-top: 28px;
		padding: 26px 0 0;
		transform: translateX(-50%);
	}
	.waoh-related__title { margin: 0 20px 18px; font-size: 21px; }
	.waoh-related__track { gap: 14px; padding: 0 20px 10px; scrollbar-width: none; scroll-padding-inline: 20px; }
	.waoh-related__track::-webkit-scrollbar { display: none; }
	.waoh-related__item { flex-basis: min(82vw, 320px); }
	.waoh-related-card__title { font-size: 16px; }
	.waoh-related-card__review-label { display: none; }
	.waoh-related__arrow { display: none; }
	.waoh-related-return { margin-top: 18px; padding: 25px 20px 3px; }
	.waoh-related-return__prompt { font-size: 17px; }
	.waoh-related-return__link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.waoh-related__track, .waoh-related-card__media img { scroll-behavior: auto; transition: none; }
}
