#properties.hpf-enhanced {
	--hpf-raspberry: #dc355e;
	--hpf-navy: #2e4066;
	--hpf-ink: #201e28;
	--hpf-surface: #f0f0f0;
	--hpf-card: #ffffff;
	--hpf-line: #d8dce5;
	--hpf-available: #267a42;
	--hpf-coming: #a76600;
	--hpf-muted: #667085;
	--hpf-yellow: #faeb89;
	--hpf-serif: "ClearfaceStd-Regular", "Clearface Std", Georgia, serif;
	--hpf-sans: "GT-Walsheim-Regular", "GT Walsheim", Arial, sans-serif;
}

#properties.hpf-enhanced,
#properties.hpf-enhanced *,
#properties.hpf-enhanced *::before,
#properties.hpf-enhanced *::after {
	box-sizing: border-box;
}

#properties.hpf-enhanced .upper {
	display: grid;
	width: 100% !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 22px;
	align-items: start;
	margin-bottom: 28px;
	border-bottom: 0;
	padding-bottom: 0;
}

#properties.hpf-enhanced .upper h2 {
	margin: 0;
	color: var(--hpf-ink);
	font-family: var(--hpf-serif);
	font-size: clamp(32px, 3vw, 44px);
	font-weight: 400;
	line-height: 1.1;
}

#properties.hpf-enhanced .hpf-toolbar {
	display: grid;
	width: 100% !important;
	max-width: none !important;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	border: 1px solid var(--hpf-line);
	border-radius: 12px;
	padding: 17px 18px;
	background: var(--hpf-card);
	box-shadow: 0 8px 28px rgba(46, 64, 102, 0.08);
	font-family: var(--hpf-sans);
}

#properties.hpf-enhanced .hpf-result-count {
	margin: 0;
	color: var(--hpf-navy);
	font-size: 16px;
	line-height: 1.3;
	white-space: nowrap;
}

#properties.hpf-enhanced .hpf-result-count strong {
	font-size: 19px;
	font-weight: 600;
}

#properties.hpf-enhanced .hpf-control-row,
#properties.hpf-enhanced .hpf-status-controls,
#properties.hpf-enhanced .hpf-bedroom-buttons {
	display: flex;
	align-items: center;
}

#properties.hpf-enhanced .hpf-control-row {
	justify-content: flex-end;
	gap: 18px;
}

#properties.hpf-enhanced .hpf-status-controls {
	display: grid;
	grid-template-columns: repeat(3, minmax(150px, 1fr));
	gap: 9px;
}

#properties.hpf-enhanced .hpf-toggle,
#properties.hpf-enhanced .hpf-bedroom {
	white-space: nowrap;
}

#properties.hpf-enhanced button,
#properties.hpf-enhanced select,
#properties.hpf-enhanced input {
	font: inherit;
}

#properties.hpf-enhanced .hpf-toggle,
#properties.hpf-enhanced .hpf-bedroom {
	min-height: 42px;
	border: 1px solid var(--hpf-line);
	border-radius: 8px;
	padding: 9px 13px;
	color: var(--hpf-navy);
	background: var(--hpf-card);
	cursor: pointer;
	font-size: 14px;
	line-height: 1.15;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

#properties.hpf-enhanced .hpf-toggle:hover,
#properties.hpf-enhanced .hpf-bedroom:hover {
	border-color: var(--hpf-raspberry);
	transform: translateY(-1px);
}

#properties.hpf-enhanced .hpf-toggle[aria-pressed="true"] {
	color: var(--hpf-navy);
	font-weight: 600;
}

#properties.hpf-enhanced .hpf-toggle--available[aria-pressed="true"] {
	border-color: #6aa67d;
	background: #f2faf4;
}

#properties.hpf-enhanced .hpf-toggle--coming[aria-pressed="true"] {
	border-color: #c79b51;
	background: #fff9ef;
}

#properties.hpf-enhanced .hpf-toggle--unavailable[aria-pressed="true"] {
	border-color: #9299a9;
	background: #f3f4f6;
}

#properties.hpf-enhanced .hpf-toggle {
	display: grid;
	width: 100%;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	gap: 8px;
	align-items: center;
	padding: 8px 9px 8px 11px;
	text-align: left;
}

#properties.hpf-enhanced .hpf-status-dot {
	display: block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #c5cad4;
}

#properties.hpf-enhanced .hpf-toggle--available[aria-pressed="true"] .hpf-status-dot {
	background: var(--hpf-available);
}

#properties.hpf-enhanced .hpf-toggle--coming[aria-pressed="true"] .hpf-status-dot {
	background: var(--hpf-coming);
}

#properties.hpf-enhanced .hpf-toggle--unavailable[aria-pressed="true"] .hpf-status-dot {
	background: #687087;
}

#properties.hpf-enhanced .hpf-toggle-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

#properties.hpf-enhanced .hpf-toggle-count {
	display: inline-flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
	background: #db365e;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

#properties.hpf-enhanced .hpf-toggle-check {
	display: inline-flex;
	width: 22px;
	height: 22px;
	align-items: center;
	justify-content: center;
	border: 1px solid #c8cdd7;
	border-radius: 6px;
	color: transparent;
	background: #fff;
}

#properties.hpf-enhanced .hpf-toggle-check svg {
	display: block;
	width: 14px;
	height: 14px;
}

#properties.hpf-enhanced .hpf-toggle[aria-pressed="true"] .hpf-toggle-check {
	border-color: var(--hpf-navy);
	color: #fff;
	background: var(--hpf-navy);
}

#properties.hpf-enhanced .hpf-bedroom-controls {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: max-content;
	margin: 0;
	border: 0;
	padding: 0;
}

#properties.hpf-enhanced .hpf-bedroom-controls legend {
	float: left;
	width: auto !important;
	max-width: none !important;
	margin: 0;
	border: 0 !important;
	border-bottom: 0 !important;
	padding: 0;
	color: var(--hpf-navy);
	font-size: 14px;
}

#properties.hpf-enhanced .hpf-bedroom-controls::before,
#properties.hpf-enhanced .hpf-bedroom-controls::after,
#properties.hpf-enhanced .hpf-bedroom-controls legend::before,
#properties.hpf-enhanced .hpf-bedroom-controls legend::after {
	display: none !important;
	content: none !important;
}

#properties.hpf-enhanced .hpf-bedroom-buttons {
	gap: 6px;
}

#properties.hpf-enhanced .hpf-bedroom {
	min-width: 42px;
	padding-inline: 11px;
}

#properties.hpf-enhanced .hpf-bedroom.is-active {
	border-color: var(--hpf-raspberry);
	color: #fff;
	background: var(--hpf-raspberry);
	font-weight: 600;
}

#properties.hpf-enhanced :where(button, select, input, a):focus-visible {
	outline: 3px solid var(--hpf-yellow);
	outline-offset: 3px;
}

#properties.hpf-enhanced .items {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	align-items: stretch;
	margin: 0 !important;
	padding: 0 !important;
}

#properties.hpf-enhanced .items[hidden],
#properties.hpf-enhanced .item[hidden],
#properties.hpf-enhanced .hpf-empty[hidden] {
	display: none !important;
}

#properties.hpf-enhanced .hpf-card {
	position: relative;
	display: flex !important;
	width: auto !important;
	grid-column: auto !important;
	grid-row: auto !important;
	order: 0 !important;
	align-self: stretch !important;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	margin: 0 !important;
	border: 1px solid var(--hpf-line);
	border-radius: 12px;
	background: var(--hpf-card);
	box-shadow: 0 8px 24px rgba(46, 64, 102, 0.09);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#properties.hpf-enhanced .hpf-card:hover {
	border-color: rgba(46, 64, 102, 0.42);
	box-shadow: 0 14px 32px rgba(46, 64, 102, 0.15);
	transform: translateY(-3px);
}

#properties.hpf-enhanced .hpf-card .image {
	position: relative;
	width: 100%;
	height: auto !important;
	flex: 0 0 auto !important;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 0;
	background: #dde2e8;
}

#properties.hpf-enhanced .hpf-card .image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 360ms ease;
}

#properties.hpf-enhanced .hpf-card:hover .image img {
	transform: scale(1.025);
}

#properties.hpf-enhanced .hpf-card .status-flag {
	top: 15px !important;
	right: 15px !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	padding: 6px 9px !important;
	transform: none !important;
	border-radius: 6px !important;
	background: var(--hpf-raspberry) !important;
	box-shadow: 0 2px 8px rgba(32, 30, 40, 0.18);
}

#properties.hpf-enhanced .hpf-card .status-flag span {
	position: static !important;
	display: block !important;
	transform: none !important;
	color: #fff !important;
	font-family: var(--hpf-sans) !important;
	font-size: 12px !important;
	font-weight: 600;
	line-height: 1.1;
	text-transform: none !important;
}

#properties.hpf-enhanced .hpf-card .info {
	position: static;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 22px 22px 17px;
}

#properties.hpf-enhanced .hpf-card .info > .status {
	position: absolute;
	z-index: 2;
	top: 15px;
	left: 15px;
	display: inline-flex;
	width: auto;
	min-height: 31px;
	align-items: center;
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: 6px;
	padding: 7px 10px 6px;
	color: #fff;
	background: var(--hpf-muted);
	box-shadow: 0 2px 8px rgba(32, 30, 40, 0.2);
	font-family: var(--hpf-sans);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

#properties.hpf-enhanced .hpf-card--available .info > .status {
	background: var(--hpf-available);
}

#properties.hpf-enhanced .hpf-card--comingsoon .info > .status {
	background: var(--hpf-coming);
}

#properties.hpf-enhanced .hpf-card h3 {
	margin: 0 0 5px;
	color: var(--hpf-navy);
	font-family: var(--hpf-serif);
	font-size: clamp(23px, 1.8vw, 28px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
}

#properties.hpf-enhanced .hpf-card .property-type {
	margin: 0 0 17px;
	color: var(--hpf-muted);
	font-family: var(--hpf-serif);
	font-size: 16px;
	font-style: italic;
	line-height: 1.3;
	text-align: left;
}

#properties.hpf-enhanced .hpf-card .details {
	display: grid;
	width: 100% !important;
	max-width: none !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	justify-content: stretch !important;
	margin: auto 0 0 !important;
	padding-top: 15px;
	border-top: 1px solid #e7e9ee;
}

#properties.hpf-enhanced .hpf-card .detail {
	width: auto !important;
	max-width: none !important;
	flex: none !important;
	min-width: 0;
	text-align: left;
}

#properties.hpf-enhanced .hpf-card .detail .label {
	margin-bottom: 4px;
	color: var(--hpf-muted);
	font-family: var(--hpf-sans);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

#properties.hpf-enhanced .hpf-card .detail .stat {
	overflow-wrap: anywhere;
	color: var(--hpf-navy);
	font-family: var(--hpf-sans);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
}

#properties.hpf-enhanced .hpf-card .lower {
	margin-top: 0;
	padding: 0 22px 22px;
}

#properties.hpf-enhanced .hpf-card .lower .btn {
	display: flex;
	width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--hpf-raspberry);
	border-radius: 8px;
	padding: 11px 15px;
	color: #fff;
	background: var(--hpf-raspberry);
	font-family: var(--hpf-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

#properties.hpf-enhanced .hpf-card .lower .btn:hover {
	border-color: var(--hpf-navy);
	background: var(--hpf-navy);
	transform: translateY(-1px);
}

#properties.hpf-enhanced .hpf-empty {
	max-width: 620px;
	margin: 0 auto;
	border: 1px solid var(--hpf-line);
	border-radius: 12px;
	padding: 38px 28px;
	background: var(--hpf-card);
	text-align: center;
}

#properties.hpf-enhanced .hpf-empty h3 {
	margin: 0 0 8px;
	color: var(--hpf-navy);
	font-family: var(--hpf-serif);
	font-size: 28px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}

#properties.hpf-enhanced .hpf-empty p {
	margin: 0 0 20px;
	color: var(--hpf-muted);
}

#properties.hpf-enhanced .hpf-clear {
	min-height: 44px;
	border: 2px solid var(--hpf-raspberry);
	border-radius: 8px;
	padding: 9px 20px;
	color: #fff;
	background: var(--hpf-raspberry);
	cursor: pointer;
	font-weight: 600;
}

.hpf-properties-active .hmh-popup-layer:not([hidden]) {
	display: none !important;
}

@media (max-width: 1280px) {
	#properties.hpf-enhanced .hpf-toolbar {
		grid-template-columns: 1fr;
	}

	#properties.hpf-enhanced .hpf-control-row {
		justify-content: flex-start;
		flex-wrap: wrap;
	}
}

@media (max-width: 1020px) {
	#properties.hpf-enhanced .items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	#properties.hpf-enhanced .upper {
		gap: 16px;
		margin-bottom: 20px;
	}

	#properties.hpf-enhanced .upper h2 {
		font-size: 34px;
	}

	#properties.hpf-enhanced .hpf-toolbar {
		gap: 17px;
		border-radius: 10px;
		padding: 16px;
	}

	#properties.hpf-enhanced .hpf-control-row,
	#properties.hpf-enhanced .hpf-status-controls {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
		gap: 10px;
	}

	#properties.hpf-enhanced .hpf-toggle,
	#properties.hpf-enhanced .hpf-bedroom-controls {
		width: 100%;
	}

	#properties.hpf-enhanced .hpf-bedroom-controls {
		justify-content: space-between;
	}

	#properties.hpf-enhanced .items {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	#properties.hpf-enhanced .hpf-card .info {
		padding: 20px 19px 16px;
	}

	#properties.hpf-enhanced .hpf-card .lower {
		padding: 0 19px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#properties.hpf-enhanced *,
	#properties.hpf-enhanced *::before,
	#properties.hpf-enhanced *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
