.developments-archive-filters {
	padding-bottom: calc(var(--padding-y) / 2);
	padding-top: calc(var(--padding-y) / 2);
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
	overflow: visible !important;
}
.developments-archive-filters .container {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	justify-content: space-between;
	@media(width <= 662px) {
		gap: 15px 30px;
	}
}

.developments-filter-pills {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	@media(width <= 662px) {
		display: none;
	}
}

.developments-filter-label {
	color: var(--wp--preset--color--dark-grey);
	font-weight: 600;
	margin-right: 4px;
}

.developments-filter-pills .filter-pill {
	background-color: var(--wp--preset--color--light-grey);
	border-radius: 20px;
	color: var(--wp--preset--color--dark-grey);
	display: inline-block;
	font-weight: 600;
	padding: 8px 20px;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;

	&:hover {
		background-color: var(--wp--preset--color--mid-grey);
	}

	&.is-active {
		background-color: var(--wp--preset--color--green);
		color: var(--wp--preset--color--white);
	}
}

/* Mobile-only stand-in for .developments-filter-pills (assets/js/50-nice-select.js
   styles every <select> on the page automatically, so this picks up the
   same Nice Select look as .developments-sort below with no extra JS).
   Same "label: select" row format as .leasing-price-filter. */
.developments-filter-select {
	align-items: center;
	display: none;
	gap: 10px;
	width: 100%;
	@media(width <= 662px) {
		display: flex;
	}

	label {
		color: var(--wp--preset--color--dark-grey);
		font-weight: 600;
		white-space: nowrap;
		@media(width <= 662px) {
			flex-basis: 70px;
		}
	}
}

.developments-sort {
	align-items: center;
	display: flex;
	gap: 10px;
	@media(width <= 662px) {
		width: 100%;
	}

	label {
		color: var(--wp--preset--color--dark-grey);
		font-weight: 600;
		white-space: nowrap;
		@media(width <= 662px) {
			flex-basis: 70px;
		}
	}
}

.developments-archive-grid {
	display: grid;
	gap: 40px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-bottom: calc(var(--padding-y) / 1.5) !important;
	padding-top: calc(var(--padding-y) / 1.5);
	@media(width <= 1188px) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	@media(width <= 662px) {
		grid-template-columns: 1fr;
	}
}



/* .pagination itself only sets margin-top (see components/pagination.css) —
   this is the block's closing space at the bottom of the page. */
.developments-archive-grid ~ .pagination {
	margin-bottom: calc(var(--padding-y) / 1.5);
}
