/******************************************************************************
 * Staff-preview property favorites and hidden-property controls.
 ******************************************************************************/

.property-thumb-container {
	position: relative;
}

[data-property-card][hidden] {
	display: none !important;
}

.crdm-property-pref-actions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.property-thumb-container > .crdm-property-pref-actions {
	position: absolute;
	top: 8px;
	right: auto;
	bottom: auto;
	left: 8px;
	z-index: 3;
}

.box2 .property-thumb-container {
	float: left;
	width: 358px;
	max-width: 100%;
	margin: 0 20px 8px 0;
}

.box2 .property-thumb-container > .img-wrapp img {
	float: none;
	width: 100%;
	margin: 0;
}

.crdm-property-pref-action {
	display: inline-flex;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	align-items: center;
	justify-content: center;
	color: var(--crdm-text-strong);
	background: var(--crdm-page);
	border: 1px solid var(--crdm-brand-button-border);
	border-radius: var(--crdm-radius-pill);
	box-shadow: var(--crdm-shadow-raised);
	cursor: pointer;
	font: 14px/1 var(--crdm-font-ui);
	transition: background var(--crdm-transition-fast), border-color var(--crdm-transition-fast), color var(--crdm-transition-fast), transform var(--crdm-transition-fast);
}

.crdm-property-pref-action--favorite > i {
	font-size: 17px;
}

.crdm-property-pref-action--favorite.is-active > i {
	color: #c00;
	-webkit-text-stroke: 1px #000;
	paint-order: stroke fill;
}

.crdm-property-pref-action:hover,
.crdm-property-pref-action:focus-visible {
	color: var(--crdm-brand-gold);
	background: var(--crdm-surface-control-hover);
	border-color: var(--crdm-brand-gold);
	outline: none;
	transform: translateY(-1px);
}

.crdm-property-pref-action.is-active {
	color: var(--crdm-page);
	background: var(--crdm-brand-gold);
	border-color: var(--crdm-brand-gold);
}

.crdm-property-pref-actions--labeled .crdm-property-pref-action {
	width: auto;
	min-width: 32px;
	padding: 0 12px;
	gap: 7px;
	border-radius: var(--crdm-radius-sm);
	font-size: 13px;
	font-weight: 700;
}

.property-details-content .property-heading-toolbar__actions {
	flex-wrap: wrap;
}

.crdm-property-pref-summary {
	display: inline-flex;
	margin-left: 9px;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 9px;
	vertical-align: baseline;
}

.listing-results-toolbar > .crdm-property-pref-summary {
	display: flex;
	margin: 0;
	justify-content: flex-start;
}

.crdm-property-pref-summary__action {
	margin: 0;
}

.crdm-property-pref-summary__label {
	text-transform: capitalize;
}

.crdm-property-pref-edge-toggle {
	display: none;
}

body.listing-aside-page .crdm-property-pref-edge-toggle {
	right: max(4px, calc((100vw - 990px) / 2 + 4px));
	left: auto;
	display: inline-flex;
	justify-content: flex-end;
}

body.listing-aside-page .crdm-property-pref-edge-toggle::before,
body.listing-aside-page .crdm-property-pref-edge-toggle::after {
	right: 0;
	left: auto;
}

body.listing-aside-page .crdm-property-pref-edge-toggle > i {
	transform: translateX(-1px);
}

.crdm-property-pref-edge-toggle[hidden] {
	display: none !important;
}

@media all and (min-width: 768px) {
	body.listing-aside-page .crdm-property-pref-edge-toggle::after {
		height: 44px;
	}
}

body.crdm-property-pref-drawer-open {
	overflow: hidden;
}

body.crdm-property-pref-drawer-open .crdm-edge-toggle {
	opacity: 0;
	pointer-events: none;
}

.crdm-property-pref-drawer-backdrop {
	position: fixed;
	inset: 0;
	z-index: 10010;
	display: block;
	background: rgba(0, 0, 0, .64);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--crdm-transition-fast), visibility var(--crdm-transition-fast);
}

.crdm-property-pref-drawer-backdrop.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.crdm-property-pref-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10012;
	box-sizing: border-box;
	width: min(500px, calc(100vw - 46px));
	max-width: calc(100vw - 46px);
	padding: 12px;
	padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: var(--crdm-text);
	background: var(--crdm-surface);
	box-shadow: -9px 0 28px rgba(0, 0, 0, .55);
	visibility: hidden;
	pointer-events: none;
	transform: translate3d(105%, 0, 0);
	transition: transform .24s ease, visibility .24s ease;
	-webkit-overflow-scrolling: touch;
}

.crdm-property-pref-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
}

.crdm-property-pref-drawer .listing-filter-drawer-close {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	width: 30px;
	height: 30px;
	margin: 16px 14px -48px auto;
	padding: 0;
	align-items: center;
	justify-content: center;
	background: var(--crdm-brand-button);
	border: 1px solid var(--crdm-brand-button-border);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
}

.crdm-property-pref-drawer .listing-filter-drawer-close:hover,
.crdm-property-pref-drawer .listing-filter-drawer-close:focus {
	background: var(--crdm-brand-button-hover);
	outline: 2px solid var(--crdm-brand-gold);
	outline-offset: 2px;
}

.crdm-property-pref-card {
	box-sizing: border-box;
	padding: 0 14px 14px;
	overflow: hidden;
	background:
		radial-gradient(circle at calc(100% + 28px) calc(100% + 28px), rgba(214, 180, 123, .07) 0 84px, transparent 85px),
		linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008)),
		var(--crdm-surface-raised);
	border: 1px solid var(--crdm-border);
	border-top: 3px solid var(--crdm-brand-gold);
	border-radius: var(--crdm-radius-md);
	box-shadow: var(--crdm-shadow-inset);
}

.crdm-property-pref-card .listing-filter-header {
	display: flex;
	margin: 0 -14px;
	padding: 14px 58px 14px 14px;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, .018);
	border-bottom: 1px solid var(--crdm-border);
}

.crdm-property-pref-card .listing-filter-header__icon {
	display: flex;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	background: rgba(214, 180, 123, .09);
	border: 1px solid rgba(214, 180, 123, .3);
	border-radius: 50%;
	color: var(--crdm-brand-gold);
}

.crdm-property-pref-card .listing-filter-header__icon > i {
	color: inherit;
}

.crdm-property-pref-card .listing-filter-header strong,
.crdm-property-pref-card .listing-filter-header small {
	display: block;
}

.crdm-property-pref-card .listing-filter-header strong {
	color: var(--crdm-text-strong);
	font: bold 13px/1.25 var(--crdm-font-ui);
}

.crdm-property-pref-card .listing-filter-header small {
	margin-top: 2px;
	color: var(--crdm-text-muted);
	font: 11px/1.3 var(--crdm-font-ui);
}

.crdm-property-pref-list {
	display: grid;
	margin: 0;
	padding: 4px 0 0;
	gap: 0;
	list-style: none;
}

.crdm-property-pref-item {
	display: flex;
	min-width: 0;
	padding: 10px 0;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--crdm-border);
}

.crdm-property-pref-item:last-child {
	border-bottom: 0;
}

.crdm-property-pref-item__property {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	align-items: center;
	gap: 12px;
	color: var(--crdm-text-strong);
	font: 700 14px/1.35 var(--crdm-font-ui);
	text-decoration: none;
}

.crdm-property-pref-item__identity {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}

.crdm-property-pref-item__identity > span,
.crdm-property-pref-item__identity > small {
	display: block;
}

.crdm-property-pref-item__identity > small {
	margin-top: 3px;
	color: var(--crdm-text-muted);
	font: 11px/1.3 var(--crdm-font-ui);
}

.crdm-property-pref-item > .crdm-button {
	flex: 0 0 auto;
}

.crdm-property-pref-item__property:hover,
.crdm-property-pref-item__property:focus {
	color: var(--crdm-brand-gold);
}

.crdm-property-pref-item__property img {
	width: 88px;
	height: 54px;
	flex: 0 0 auto;
	object-fit: cover;
	border: 1px solid var(--crdm-border);
	border-radius: var(--crdm-radius-sm);
}

.crdm-property-pref-empty {
	margin: 0;
	padding: 28px 0;
	color: var(--crdm-text-muted);
	font: 14px/1.5 var(--crdm-font-ui);
	text-align: center;
}

.crdm-property-pref-drawer__footer {
	display: flex;
	padding: 13px 0 0;
	justify-content: flex-end;
	border-top: 1px solid var(--crdm-border);
}

.crdm-property-pref-toast {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 10020;
	display: flex;
	box-sizing: border-box;
	max-width: min(480px, calc(100vw - 36px));
	padding: 13px 15px;
	align-items: center;
	gap: 12px;
	color: var(--crdm-text-strong);
	background: var(--crdm-surface-control);
	border: 1px solid var(--crdm-brand-gold);
	border-radius: var(--crdm-radius-sm);
	box-shadow: var(--crdm-shadow-popover);
	font: 14px/1.4 var(--crdm-font-ui);
}

.crdm-property-pref-toast[hidden] {
	display: none;
}

.crdm-property-pref-toast button {
	margin: 0;
	padding: 2px 0;
	color: var(--crdm-brand-gold);
	background: none;
	border: 0;
	cursor: pointer;
	font: 700 13px/1.2 var(--crdm-font-ui);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media all and (max-width: 520px) {
	.crdm-property-pref-actions--labeled .crdm-property-pref-action span {
		display: none;
	}

	.crdm-property-pref-actions--labeled .crdm-property-pref-action {
		width: 32px;
		padding: 0;
	}

	.crdm-property-pref-item__property img {
		width: 72px;
		height: 45px;
	}

	.crdm-property-pref-toast {
		right: 12px;
		bottom: 12px;
		max-width: calc(100vw - 24px);
	}
}

@media all and (min-width: 768px) and (max-width: 1023px) {
	.box2 .property-thumb-container {
		width: calc(50% - 10px);
	}

	.box2 .property-thumb-container > .img-wrapp img {
		width: 100% !important;
	}
}

@media all and (max-width: 767px) {
	.box2 .property-thumb-container {
		float: none;
		width: 100%;
		margin: 0;
	}

	.box2 .property-thumb-container > .img-wrapp img {
		width: 100% !important;
		margin: 10px 0 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.crdm-property-pref-drawer,
	.crdm-property-pref-drawer-backdrop {
		transition: none;
	}
}
