:root {
	--waoh-favorites-accent: #2c7a7b;
	--waoh-favorites-border: #dedede;
	--waoh-favorites-ink: #343b3d;
	--waoh-favorites-muted: #676b76;
	--waoh-favorites-soft: #eff7f6;
}

.waoh-anonymous-favorites-enabled .icon-fav,
.waoh-anonymous-favorites-enabled #add_favorites {
	cursor: pointer;
}

.waoh-anonymous-favorites-enabled .icon-fav.waoh-favorite-is-saved::before,
.waoh-anonymous-favorites-enabled .icon-fav.icon-fav-on::before {
	color: var(--waoh-favorites-accent) !important;
}

.waoh-anonymous-favorites-enabled .icon-fav:focus-visible,
.waoh-anonymous-favorites-enabled #add_favorites:focus-visible {
	outline: 3px solid var(--waoh-favorites-accent);
	outline-offset: 3px;
}

.waoh-favorites-nav-count {
	display: inline-flex;
	min-width: 1.35rem;
	min-height: 1.35rem;
	align-items: center;
	justify-content: center;
	margin-inline-start: 0.15rem;
	border-radius: 999px;
	background: var(--waoh-favorites-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.waoh-favorites-nav-count[hidden] {
	display: none;
}

/* Defensive fallback if a cached theme response still contains its map hero. */
body.waoh-anonymous-favorites-page .header_media.with_search_oldtype,
body.waoh-anonymous-favorites-page #search_wrapper,
body.waoh-anonymous-favorites-page #adv-search-header-mobile,
body.waoh-anonymous-favorites-page #adv-search-mobile,
body.waoh-anonymous-favorites-page .breadcrumb_container {
	display: none !important;
}

.waoh-favorites-page {
	min-height: 62vh;
	background: linear-gradient(180deg, #fff 0%, #f8fbfa 100%);
	color: var(--waoh-favorites-ink);
}

.waoh-favorites-page__inner {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
	padding-block: clamp(2rem, 5vw, 4.5rem) 5rem;
}

.waoh-favorites__theme-probe {
	position: fixed;
	inset: -100px auto auto -100px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.waoh-favorites__header {
	max-width: 780px;
	margin-block-end: 1.75rem;
}

.waoh-favorites__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-block-end: 1.2rem;
	color: var(--waoh-favorites-accent);
	font-weight: 600;
	text-decoration: none;
}

.waoh-favorites__back:hover,
.waoh-favorites__back:focus-visible {
	text-decoration: underline;
}

.waoh-favorites__header h1 {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.12;
}

.waoh-favorites__populated-heading > p:first-child {
	margin: 0.75rem 0 0;
	color: var(--waoh-favorites-muted);
	font: inherit;
	line-height: 1.55;
}

.waoh-favorites__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem 1rem;
	margin-block-start: 1.15rem;
}

.waoh-favorites__toolbar strong {
	font-size: var(--waoh-favorites-card-meta-font-size, 13px);
}

.waoh-favorites__status {
	margin: 2rem 0;
	color: var(--waoh-favorites-muted);
}

.waoh-favorites__empty {
	position: relative;
	max-width: 680px;
	overflow: hidden;
	border: 1px solid #dce8e7;
	border-radius: 1.1rem;
	background: #fff;
	box-shadow: 0 14px 38px rgb(38 62 61 / 8%);
	padding: clamp(1.5rem, 5vw, 3rem);
}

.waoh-favorites__empty::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: var(--waoh-favorites-accent);
	content: "";
}

.waoh-favorites__empty h2 {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: clamp(1.35rem, 4vw, 1.8rem);
	line-height: 1.25;
}

.waoh-favorites__empty p {
	margin: 0.8rem 0 0;
	color: var(--waoh-favorites-muted);
	font: inherit;
	line-height: 1.6;
}

.waoh-favorites__search {
	display: inline-flex !important;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	margin-block-start: 1.35rem;
	border-radius: 0.65rem !important;
	padding-inline: 1.25rem !important;
	border: 1px solid var(--waoh-favorites-accent) !important;
	background: var(--waoh-favorites-accent) !important;
	color: #fff !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgb(44 122 123 / 18%);
}

.waoh-favorites__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem;
	align-items: stretch;
}

.waoh-favorites__grid[hidden],
.waoh-favorites__empty[hidden],
.waoh-favorites__populated-heading[hidden],
.waoh-favorites__status[hidden],
.waoh-favorites__continue[hidden] {
	display: none !important;
}

.waoh-favorites__item {
	display: flex;
	min-width: 0;
	flex-direction: column;
	border-radius: 1rem;
	background: #fff;
}

.waoh-favorites__native-card {
	min-width: 0;
	flex: 1 1 auto;
}

.waoh-favorites__native-card > .listing_wrapper,
.waoh-favorites__native-card > [class*="listing_wrapper"] {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 100%;
	padding-inline: 0 !important;
}

.waoh-favorites__native-card .listing-unit-img-wrapper,
.waoh-favorites__native-card .property_listing {
	border-radius: 1rem;
}

.waoh-favorites__continue {
	display: flex;
	justify-content: center;
	margin-block-start: 2rem;
}

.waoh-favorites__continue-link {
	display: inline-flex !important;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	border: 1px solid #cfd3d4;
	border-radius: 999px;
	background: #fff;
	color: #3f4345 !important;
	font-weight: 600;
	padding-inline: 1.25rem;
	text-align: center;
	text-decoration: none !important;
}

.waoh-favorites__search:hover,
.waoh-favorites__search:focus-visible,
.waoh-favorites__continue-link:hover,
.waoh-favorites__continue-link:focus-visible {
	filter: brightness(0.92);
}

.waoh-favorites__continue-link:hover,
.waoh-favorites__continue-link:focus-visible {
	border-color: #9da3a5;
	background: #f3f4f4;
}

.waoh-favorites__fallback-card img {
	display: block;
	width: 100%;
	border-radius: 1rem;
}

.waoh-favorites-toast {
	position: fixed;
	z-index: 999999;
	top: auto;
	right: auto;
	bottom: max(1.25rem, env(safe-area-inset-bottom));
	left: 50%;
	display: flex;
	width: max-content;
	max-width: min(92vw, 520px);
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem;
	border-radius: 0.8rem;
	background: #263638;
	box-shadow: 0 10px 28px rgb(0 0 0 / 22%);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	padding: 0.85rem 1rem;
	pointer-events: none;
	transform: translate(-50%, 1rem);
	transition: opacity 160ms ease, transform 160ms ease;
}

.waoh-favorites-toast a {
	flex: 0 0 auto;
	border-radius: 0.55rem;
	background: #fff;
	color: var(--waoh-favorites-accent) !important;
	font-weight: 750;
	line-height: 1.2;
	padding: 0.55rem 0.75rem;
	text-decoration: none;
	white-space: nowrap;
}

.waoh-favorites-toast > span {
	min-width: 0;
	line-height: 1.4;
}

.waoh-favorites-toast a:hover,
.waoh-favorites-toast a:focus-visible {
	background: #f3f7f7;
	text-decoration: none;
}

.waoh-favorites-toast.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

@media (max-width: 980px) {
	.waoh-favorites__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	body.waoh-anonymous-favorites-page .master_header {
		display: flow-root;
		height: auto !important;
	}

	body.waoh-anonymous-favorites-page .waoh-favorites-page {
		padding-top: 0 !important;
	}

	body.waoh-anonymous-favorites-page .mobile_header {
		float: none !important;
		border-bottom: 1px solid #e1e3e6 !important;
		background: #fff !important;
		box-shadow: none !important;
	}

	body.waoh-anonymous-favorites-page .mobile_header .mobile-trigger,
	body.waoh-anonymous-favorites-page .mobile_header .mobile-trigger-user,
	body.waoh-anonymous-favorites-page .mobile_header .mobile-trigger i,
	body.waoh-anonymous-favorites-page .mobile_header .mobile-trigger-user i {
		color: #484848 !important;
	}
}

@media (max-width: 640px) {
	body.waoh-anonymous-favorites-page .waoh-favorites-page__inner {
		width: min(100% - 32px, 600px);
		padding: 32px 0 4rem !important;
	}

	.waoh-favorites__header {
		margin-block-end: 1.5rem;
	}

	.waoh-favorites__back {
		min-height: auto;
		margin-block-end: 1.5rem;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: var(--waoh-favorites-accent) !important;
		padding: 0;
		font-size: 14px;
		line-height: 1.2;
		text-decoration: none !important;
	}

	.waoh-favorites__back:hover,
	.waoh-favorites__back:focus-visible {
		background: transparent;
		text-decoration: underline !important;
	}

	.waoh-favorites__back span {
		font-size: 20px;
		line-height: 1;
	}

	.waoh-favorites__header h1 {
		font-size: 28px;
		line-height: 1.18;
	}

	.waoh-favorites__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}

	.waoh-favorites__empty {
		border-radius: 18px;
		padding: 1.65rem 1.35rem 1.35rem;
	}

	.waoh-favorites__empty h2 {
		font-size: 21px;
		line-height: 1.3;
	}

	.waoh-favorites__empty p {
		font-size: 15px;
		line-height: 1.55;
	}

	.waoh-favorites__search,
	.waoh-favorites__continue-link {
		width: 100%;
		min-height: 52px;
		border-radius: 12px !important;
		font-size: 16px;
	}

	.waoh-favorites__continue {
		margin-block-start: 1.75rem;
	}

	.waoh-favorites-toast {
		width: calc(100% - 30px);
		max-width: calc(100% - 30px);
		gap: 0.75rem;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.waoh-favorites-toast {
		transition: none;
	}
}
