.sp-properties-filter,
.sp-properties-results {
	margin: 0 0 28px;
}

.sp-properties-filter__form {
	border: 1px solid #d8dee4;
	border-radius: 8px;
	padding: 18px;
	background: #fff;
}

.sp-properties-filter__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: end;
}

.sp-properties-filter__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.sp-properties-filter__field--wide {
	grid-column: span 2;
}

.sp-properties-filter__field--amenities {
	grid-column: span 2;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.sp-properties-filter__label {
	font-size: 13px;
	font-weight: 700;
	color: #1f2933;
}

.sp-properties-filter select {
	width: 100%;
	min-height: 42px;
	border: 1px solid #cfd7df;
	border-radius: 6px;
	padding: 0 12px;
	background: #fff;
	color: #1f2933;
}

.sp-properties-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sp-properties-filter__chip,
.sp-properties-filter__submit,
.sp-properties-filter__reset,
.sp-properties-card__link {
	border: 1px solid #cfd7df;
	border-radius: 6px;
	min-height: 40px;
	padding: 8px 14px;
	background: #fff;
	color: #1f2933;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sp-properties-filter__chip.is-active,
.sp-properties-filter__submit,
.sp-properties-card__link {
	border-color: #0f766e;
	background: #0f766e;
	color: #fff;
}

.sp-properties-filter__reset {
	background: #f7f9fb;
}

.sp-properties-filter__price-values {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-weight: 700;
	color: #31404f;
}

.sp-properties-filter__range {
	position: relative;
	min-height: 36px;
}

.sp-properties-filter__range input[type="range"] {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	margin: 0;
	pointer-events: none;
	background: transparent;
}

.sp-properties-filter__range input[type="range"]::-webkit-slider-thumb {
	pointer-events: auto;
}

.sp-properties-filter__range input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
}

.sp-properties-filter__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #31404f;
}

.sp-properties-filter__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.sp-properties-results.is-loading {
	opacity: 0.55;
}

.sp-properties-results__summary {
	margin-bottom: 14px;
	font-weight: 700;
	color: #1f2933;
}

.sp-properties-results__empty {
	border: 1px solid #d8dee4;
	border-radius: 8px;
	padding: 18px;
	background: #fff;
	color: #52616f;
}

.sp-properties-results__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.sp-properties-card {
	overflow: hidden;
	border: 1px solid #d8dee4;
	border-radius: 8px;
	background: #fff;
}

.sp-properties-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #eef2f5;
	color: #52616f;
}

.sp-properties-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sp-properties-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-weight: 700;
}

.sp-properties-card__body {
	padding: 16px;
}

.sp-properties-card__title {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.3;
}

.sp-properties-card__title a {
	color: #1f2933;
}

.sp-properties-card__price {
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 800;
	color: #0f766e;
}

.sp-properties-card__meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
	margin: 0 0 16px;
}

.sp-properties-card__meta div {
	min-width: 0;
}

.sp-properties-card__meta dt {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	color: #6b7785;
}

.sp-properties-card__meta dd {
	margin: 2px 0 0;
	color: #1f2933;
	overflow-wrap: anywhere;
}

.sp-properties-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

@media (max-width: 1024px) {
	.sp-properties-filter__grid,
	.sp-properties-results__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sp-properties-filter__form {
		padding: 14px;
	}

	.sp-properties-filter__grid,
	.sp-properties-results__grid {
		grid-template-columns: 1fr;
	}

	.sp-properties-filter__field--wide,
	.sp-properties-filter__field--amenities {
		grid-column: span 1;
	}

	.sp-properties-card__meta {
		grid-template-columns: 1fr;
	}
}
