.page-template-page-property-map {
	--property-map-shell-width: clamp(1060px, 70vw, 1680px);
	overflow: hidden;
}

.page-template-page-property-map .site-topbar,
.page-template-page-property-map .site-footer {
	display: none;
}

.page-template-page-property-map .site-header {
	position: relative;
	z-index: 1200;
	box-shadow: 0 1px 0 rgba(20, 31, 43, 0.12);
}

.page-template-page-property-map .site-main {
	min-height: 0;
	padding: 0;
}

.property-map-page {
	position: relative;
	height: calc(100vh - var(--site-header-height, 84px));
	height: calc(100dvh - var(--site-header-height, 84px));
	min-height: 520px;
	overflow: hidden;
	background: #dce6e2;
}

.admin-bar .property-map-page {
	height: calc(100vh - var(--site-header-height, 84px) - 32px);
	height: calc(100dvh - var(--site-header-height, 84px) - 32px);
}

.property-map-page .property-map-panel,
.property-map-page .property-map-workspace,
.property-map-page .property-map-stage,
.property-map-page .property-map-canvas {
	width: 100%;
	height: 100%;
	min-height: 0;
}

.property-map-page .property-map-panel {
	border: 0;
	overflow: hidden;
}

.property-map-page .property-map-workspace {
	position: relative;
	display: block;
	background: #dce6e2;
}

.property-map-page .property-map-stage {
	position: absolute;
	inset: 0;
}

.property-map-filter {
	position: absolute;
	top: 16px;
	right: 50%;
	z-index: 850;
	display: block;
	width: min(1340px, calc(100% - 112px));
	border: 1px solid rgba(20, 31, 43, 0.13);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.97);
	padding: 12px;
	box-shadow: 0 12px 34px rgba(20, 31, 43, 0.2);
	transform: translateX(50%);
	backdrop-filter: blur(12px);
}

.property-map-filter:has([data-filter-popover][open]),
html.has-filter-panel-open .property-map-filter {
	z-index: 1250;
}

@media (min-width: 1101px) {
	.page-template-page-property-map .header-inner,
	.property-map-filter {
		width: var(--property-map-shell-width);
	}
}

.property-map-filter .realestate-filter {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 9px;
}

.property-map-filter .filter-toolbar {
	grid-column: 1 / -1;
	min-height: 34px;
	padding-bottom: 7px;
}

.property-map-filter .filter-toolbar strong {
	font-size: 0.9rem;
}

.property-map-filter .property-map-filter__close {
	display: none;
}

.property-map-filter .realestate-filter .filter-field--search {
	grid-column: span 4;
}

.property-map-filter .realestate-filter > .filter-term-group--city,
.property-map-filter .realestate-filter > .filter-term-group--district,
.property-map-filter .realestate-filter > .filter-term-group--type,
.property-map-filter .realestate-filter > .filter-term-group--purpose {
	grid-column: span 2;
}

.property-map-filter .realestate-filter > .filter-budget-group {
	grid-column: span 4;
}

.property-map-filter .realestate-filter > .filter-advanced {
	grid-column: span 3;
}

.property-map-filter .realestate-filter > .filter-advanced[open] {
	grid-column: 1 / -1;
}

.property-map-filter .realestate-filter > .filter-field--sort {
	grid-column: span 2;
}

.property-map-filter .realestate-filter > .realestate-filter-actions {
	grid-column: span 3;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
}

.property-map-filter .realestate-filter-actions button,
.property-map-filter .realestate-filter-actions a {
	min-width: 0;
}

.property-map-filter .filter-term-panel {
	z-index: 1260;
}

.property-map-page__tools button,
.property-map-page__tools label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 44px;
	border: 1px solid #d8dee2;
	border-radius: 6px;
	padding: 0 13px;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 900;
	white-space: nowrap;
	cursor: pointer;
}

.property-map-page__tools .lucide-icon {
	width: 17px;
	height: 17px;
}

.property-map-page__mobile-bar {
	display: none;
}

.property-map-page .property-map-page__tools {
	position: absolute;
	top: 50% !important;
	right: 18px !important;
	z-index: 700;
	display: grid;
	gap: 8px;
	transform: translateY(-50%) !important;
}

.property-map-page__tools button,
.property-map-page__tools label {
	border-color: rgba(20, 31, 43, 0.16);
	background: #fff;
	color: #183047;
	box-shadow: 0 5px 16px rgba(20, 31, 43, 0.16);
}

.property-map-page__tools select {
	max-width: 110px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	outline: 0;
}

.property-map-page .leaflet-top.leaflet-right {
	top: auto !important;
	right: 8px !important;
	bottom: 14px !important;
}

.property-map-page .property-map-search-area {
	top: 224px;
}

.property-map-page .property-map-show-all {
	position: static !important;
	inset: auto !important;
	width: 100% !important;
	height: 44px !important;
	min-height: 44px;
	max-height: 44px;
	box-shadow: 0 5px 16px rgba(20, 31, 43, 0.16);
}

.property-map-page .property-map-sidebar {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	width: min(430px, 92vw);
	height: 100%;
	border: 0;
	border-left: 1px solid rgba(20, 31, 43, 0.13);
	background: #f6f8f7;
	box-shadow: -16px 0 40px rgba(20, 31, 43, 0.22);
	transform: translateX(105%);
	transition: transform 220ms ease;
}

.property-map-page.is-results-open .property-map-sidebar {
	transform: translateX(0);
}

.property-map-page .property-map-sidebar__header {
	min-height: 78px;
	padding: 16px 18px;
}

.property-map-page .property-map-sidebar__header h2 {
	margin: 0;
	font-size: 1rem;
}

.property-map-page .property-map-sidebar__header button {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid #d8dee2;
	border-radius: 6px;
	background: #fff;
	color: #253443;
	cursor: pointer;
}

.property-map-page .property-map-result__focus-label {
	display: none;
}

.property-map-page__backdrop {
	position: absolute;
	inset: 0;
	z-index: 900;
	border: 0;
	background: rgba(15, 26, 38, 0.32);
	padding: 0;
}

.property-map-page__backdrop[hidden] {
	display: none;
}

.archive-view-switch .archive-view-switch__map {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	border: 0;
	background: transparent;
	color: inherit;
	padding: 8px 14px;
	font: inherit;
	font-weight: 900;
	text-decoration: none;
}

@media (max-width: 1100px) {
	.property-map-filter {
		width: calc(100% - 32px);
	}

	.property-map-filter .realestate-filter {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.property-map-filter .realestate-filter .filter-field--search,
	.property-map-filter .realestate-filter > .filter-term-group--city,
	.property-map-filter .realestate-filter > .filter-term-group--district,
	.property-map-filter .realestate-filter > .filter-term-group--type,
	.property-map-filter .realestate-filter > .filter-term-group--purpose,
	.property-map-filter .realestate-filter > .filter-budget-group {
		grid-column: span 2;
	}

	.property-map-filter .realestate-filter > .filter-advanced {
		grid-column: 1 / -1;
	}

	.property-map-filter .realestate-filter > .filter-field--sort {
		grid-column: span 2;
	}

	.property-map-filter .realestate-filter > .realestate-filter-actions {
		grid-column: span 4;
	}

	.property-map-page .property-map-search-area {
		top: 292px;
	}
}

@media (max-width: 782px) {
	.admin-bar .property-map-page {
		height: calc(100vh - var(--site-header-height, 84px) - 46px);
		height: calc(100dvh - var(--site-header-height, 84px) - 46px);
	}

}

@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
	.page-template-page-property-map .site-header {
		min-height: 84px;
	}

	.property-map-page {
		min-height: 460px;
	}

	.property-map-page__mobile-bar {
		position: absolute;
		top: 12px;
		right: 12px;
		left: 12px;
		z-index: 800;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		min-height: 56px;
		border: 1px solid rgba(20, 31, 43, 0.13);
		border-radius: 10px;
		background: #fff;
		padding: 7px 8px;
		box-shadow: 0 8px 24px rgba(20, 31, 43, 0.18);
	}

	.property-map-page__mobile-bar > strong {
		min-width: 0;
		color: #172434;
		font-size: 0.9rem;
		line-height: 1.3;
		white-space: nowrap;
	}

	.property-map-page__mobile-bar > div {
		display: inline-flex;
		align-items: center;
		gap: 6px;
	}

	.property-map-page__mobile-bar button {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		height: 40px;
		min-height: 40px;
		border: 1px solid #d8dee2;
		border-radius: 8px;
		background: #f5f7f7;
		color: #172434;
		padding: 0 9px;
		font: inherit;
		font-size: 0.75rem;
		font-weight: 900;
		line-height: 1;
		white-space: nowrap;
		cursor: pointer;
	}

	.property-map-page__mobile-bar button[aria-expanded="true"] {
		border-color: var(--primary);
		background: var(--primary);
		color: #fff;
	}

	.property-map-page__mobile-bar .lucide-icon {
		width: 17px;
		height: 17px;
		flex: 0 0 auto;
	}

	.property-map-filter {
		position: absolute;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1100;
		display: block;
		width: 100%;
		max-height: min(88vh, 720px);
		max-height: min(88dvh, 720px);
		overflow-y: auto;
		border: 0;
		border-radius: 12px 12px 0 0;
		background: #fff;
		padding: 16px;
		box-shadow: 0 -16px 42px rgba(20, 31, 43, 0.25);
		transform: translateY(105%);
		transition: transform 220ms ease;
		backdrop-filter: none;
	}

	.property-map-page.is-filter-open .property-map-filter {
		transform: none;
	}

	.property-map-filter .realestate-filter {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.property-map-filter .filter-toolbar {
		grid-column: 1 / -1;
		min-height: 40px;
		padding-bottom: 10px;
	}

	.property-map-filter .property-map-filter__close {
		display: grid;
		place-items: center;
		flex: 0 0 36px;
		width: 36px;
		height: 36px;
		min-height: 36px;
		border: 1px solid #d8dee2;
		border-radius: 8px;
		background: #fff;
		color: #253443;
		padding: 0;
		font-size: 1.3rem;
		line-height: 1;
	}

	.property-map-filter .realestate-filter .filter-field--search,
	.property-map-filter .realestate-filter > .filter-budget-group,
	.property-map-filter .realestate-filter > .filter-advanced,
	.property-map-filter .realestate-filter > .filter-field--sort,
	.property-map-filter .realestate-filter > .realestate-filter-actions {
		grid-column: 1 / -1;
	}

	.property-map-filter .realestate-filter > .filter-term-group--city,
	.property-map-filter .realestate-filter > .filter-term-group--district,
	.property-map-filter .realestate-filter > .filter-term-group--type,
	.property-map-filter .realestate-filter > .filter-term-group--purpose {
		grid-column: span 1;
	}

	.property-map-filter .realestate-filter > .realestate-filter-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.property-map-page .property-map-page__tools {
		top: 50%;
		right: 12px;
	}

	.property-map-page__tools label {
		position: relative;
		width: 44px;
		padding: 0;
	}

	.property-map-page .property-map-show-all {
		width: 44px !important;
		padding: 0;
	}

	.property-map-page .property-map-show-all span {
		display: none;
	}

	.property-map-page__tools label select {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		opacity: 0;
		cursor: pointer;
	}

	.property-map-page .property-map-search-area {
		top: 76px;
		max-width: calc(100% - 140px);
	}

	.property-map-page .property-map-sidebar {
		top: auto;
		right: 0;
		left: 0;
		width: auto;
		height: clamp(300px, 54vh, 440px);
		height: clamp(300px, 54dvh, 440px);
		border: 0;
		border-top: 1px solid rgba(20, 31, 43, 0.13);
		border-radius: 16px 16px 0 0;
		transform: translateY(105%);
	}

	.property-map-page.is-results-open .property-map-sidebar {
		transform: translateY(0);
	}

	.property-map-page .property-map-list {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: 156px;
		align-content: start;
		align-items: start;
		gap: 10px;
		overflow-x: hidden;
		overflow-y: auto;
		padding: 10px;
		scroll-padding-block: 10px;
		scroll-snap-type: none;
	}

	.property-map-page .property-map-result {
		width: 100%;
		height: 156px;
		min-height: 156px;
		grid-template-columns: 126px minmax(0, 1fr);
		border-radius: 10px;
		scroll-snap-align: none;
	}

	.property-map-page .property-map-result__media {
		height: 156px;
		min-height: 0;
	}

	.property-map-page .property-map-result__body {
		align-content: start;
		gap: 4px;
		padding: 10px 10px 43px;
	}

	.property-map-page .property-map-result__meta,
	.property-map-page .property-map-result__specs {
		font-size: 0.68rem;
		line-height: 1.35;
	}

	.property-map-page .property-map-result__meta {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
	}

	.property-map-page .property-map-result h4 {
		font-size: 0.86rem;
		line-height: 1.4;
	}

	.property-map-page .property-map-result__price {
		font-size: 0.9rem;
	}

	.property-map-page .property-map-result__focus {
		inset-inline-end: 9px;
		inset-block-end: 9px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 5px;
		width: auto;
		height: 31px;
		min-height: 31px;
		border-radius: 7px;
		padding: 0 9px;
		font: inherit;
		font-size: 0.68rem;
		font-weight: 900;
	}

	.property-map-page .property-map-result__focus-label {
		display: inline;
	}
}

@media (max-height: 500px) and (pointer: coarse) {
	.property-map-page {
		min-height: 0;
	}
}

@media (max-width: 430px) {
	.property-map-filter {
		grid-template-columns: 1fr;
	}

	.property-map-filter__heading,
	.property-map-filter__search {
		grid-column: auto;
	}

	.property-map-page__mobile-bar {
		right: 8px;
		left: 8px;
	}

	.property-map-page__mobile-bar > strong {
		font-size: 0.82rem;
	}

	.property-map-page__mobile-bar button {
		padding-inline: 7px;
		font-size: 0.7rem;
	}

	.property-map-page .property-map-result {
		grid-template-columns: 118px minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.property-map-page .property-map-sidebar,
	.property-map-filter {
		transition: none;
	}
}
