.block--property-listings {
	padding: 140px 0;
}

@media screen and (max-width: 768px) {
	.block--property-listings {
		padding: 80px 0;
	}
}

@media screen and (max-width: 640px) {
	.block--property-listings {
		padding: 64px 0;
	}
}

@media screen and (max-width: 640px) {
	.block--property-listings--aside {
		position: fixed;
		background: white;
		inset: 0;
		z-index: 9999;
		padding: var(--page-gutter);
		overflow: auto;
	}
}

.block--property-listings--grid {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 24px;
}

@media screen and (max-width: 1024px) {
	.block--property-listings--grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

.block--property-listings--aside h3 {
	font-size: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.767), 1.5rem);
	color: var(--wp--preset--color--sw-blue);
}

/* .block--property-listings--main .block--property-card--content p {
    --max-lines: 3;
    --line-height: 1.4;
    min-height: calc(var(--max-lines) * 1em * var(--line-height));
    max-height: calc(var(--max-lines) * 1em * var(--line-height));
    line-height: var(--line-height);
    overflow: hidden;
} */

.block--property-listings--main--items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px 16px;
	margin-bottom: 24px;
}

.block--property-listings--main--items[data-post-type='house-and-land'] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 24px 16px;
	margin-bottom: 24px;
}

.block--property-listings--main--items[data-no-results='true']
	+ .block--property-listings--main--pagination {
	display: none;
}

@media screen and (max-width: 640px) {
	.block--property-listings--main--items[data-post-type='house-and-land'] {
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	}
}

.block--property-listings--main--item > * {
	height: 100%;
}

.block--property-listings--filters {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 24px;
}

.block--property-listings--filter-detail {
	border-radius: 4px;
	border: 0.5px solid #6ca6cc;
	padding: 12px;
}

.block--property-listings--filter-options {
	box-sizing: border-box;
	padding: 12px 0 0;
}

.block--property-listings--filter-detail label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	color: #01395c;
	font-size: 15px;
	font-style: normal;
	font-weight: 300;
	line-height: 150%; /* 22.5px */
}

.block--property-listings--filter-detail summary {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	/* padding: ; */
	color: #666;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 120%; /* 19.2px */
	letter-spacing: 0.48px;
	text-transform: capitalize;
}

.block--property-listings--filter-detail summary .chevron {
	margin-left: auto;
}

.block--property-listings--aside--cta {
	margin-top: 24px;
	border-radius: 10px;
	background: #6ca6cc;
	color: var(--wp--preset--color--sw-white);
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.block--property-listings--aside--cta p {
	margin-bottom: 32px;
	font-size: 14px;
}

.block--property-listings--main--pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
}

.block--property-listings--main--pagination .page-numbers.current {
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	text-transform: uppercase;
	color: #666;
}

.block--property-listings--main--pagination .prev,
.block--property-listings--main--pagination .next {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 32px;
	width: 32px;
	border-radius: 4px;
	border: 1px solid var(--wp--preset--color--sw-yellow);
}

.block--property-listings--main--pagination .prev:hover,
.block--property-listings--main--pagination .next:hover {
	/* display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    width: 32px;
    border-radius: 4px;
    border: 1px solid var(--wp--preset--color--sw-yellow); */
	background-color: var(--wp--preset--color--sw-yellow);
}

.block--property-listings--main--pagination .prev.disabled,
.block--property-listings--main--pagination .next.disabled {
	opacity: 0.3 !important;
	cursor: not-allowed;
}

.block--property-listings--filter-actions {
	display: flex;
	gap: 16px;
}

.block--property-listings--filter-actions .wp-block-button__link {
	flex-grow: 1;
}

.block--property-listings--filter-actions .wp-block-button {
	flex-grow: 1;
}

.block--property-listings--filter-actions input.wp-block-button__link {
	width: 100%;
}

.block--property-listings--main--header {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 20px;
	gap: 16px;
	align-items: baseline;
}

@media screen and (max-width: 768px) {
	.block--property-listings--main--header {
		justify-content: flex-start;
	}

	.block--property-listings--main--header > span {
		display: none;
	}

	.block--property-listings--main--header .sort-by-component .relative {
		width: 100%;
	}
}

.block--property-listings--main--header-mobile {
	display: none;
	margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
	.block--property-listings--main--header-mobile {
		display: flex;
		justify-content: space-between;
		align-items: flex-end;
	}
}

.sort-by-component {
	display: flex;
	gap: 8px;
	align-items: center;
}

@media screen and (max-width: 768px) {
	.sort-by-component {
		display: flex;
		flex-direction: column;

		align-items: flex-start;
		width: 100%;
	}
}

.sort-by-component label {
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	text-transform: uppercase;
}

select {
	padding: 12px;
	appearance: none;
	font-family: inherit;
	background-color: transparent;
	border-radius: 4px;
	border: 1px solid var(--wp--preset--color--sw-sky);
	min-width: 200px;
	color: #666;
}

@media screen and (max-width: 768px) {
	.sort-by-component select {
		width: 100%;
	}
}

.sort-by-component .relative svg {
	position: absolute;
	right: 16px;
	top: 18px;
}

.dialog--mobile-filters {
	width: 100%;
	position: fixed;
	height: 100%;
	margin: 0;
	padding: 0;
	inset: 0;
	bottom: 0;
	max-width: none;
	max-height: none;
	overflow: hidden;
	box-sizing: border-box;
	background: transparent;
	overflow: auto;
}

.dialog--mobile-filters::backdrop {
	background-color: #01395c;
	mix-blend-mode: multiply;
}

.dialog--mobile-filters--inner {
	margin: 24px;
	border-radius: 20px;
	background-color: white;
	padding: 24px 0;
}

.block--property-listings--filter-input {
	position: relative;
	position: relative;
	width: 100%;
	padding: 12px;
	border-radius: 4px;
	border: 1px solid var(--wp--preset--color--sw-sky);
	font-family: inherit;
	color: #666;
	background-color: transparent;
	height: 48px;
	font-size: 16px;
	font-weight: 300;
}

.block--property-listings--filter-input input[type='text'] {
	border: none;
	padding: 0;
	height: auto;
	outline: none;
	/* width: calc(100% - 40px); */
}

.block--property-listings--filter-input button[type='submit'] {
	cursor: pointer;
	position: absolute;
	right: 6px;
	top: 6px;
	height: 36px;
	width: 36px;
	background-repeat: no-repeat;
	background-color: #f7ce46;
	/* pointer-events: none; */
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

input[type='text'] {
	position: relative;
	width: 100%;
	padding: 12px;
	border-radius: 4px;
	border: 1px solid var(--wp--preset--color--sw-sky);
	font-family: inherit;
	color: #666;
	background-color: transparent;
	height: 48px;
	font-size: 16px;
	font-weight: 300;
}

.block--property-listings--filter-detail select {
	min-width: 100%;
}

.block--property-listings--main--items.loading {
	opacity: 0.5;
	position: relative;
}

.block--property-listings--main--items.loading::after {
	content: 'Loading...';
	position: absolute;
	top: 250px;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 10px;
	border-radius: 5px;
	z-index: 10;
}

.floorplan-toggle.active {
	padding: 8px;
}
