/**
 * Search results grid — fixed card images and pagination (search-results.php only).
 */

.cdspg-search-results > [class*="col-"] {
	display: flex;
	flex-direction: column;
}

.cdspg-search-results .property-item {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
	margin-bottom: 1.75rem;
	width: 100%;
}

.cdspg-search-results .property-item > a {
	color: inherit;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

.cdspg-search-results .property-details {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.cdspg-search-results .property-details-inner {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.cdspg-search-results .property-details-inner .property-address {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cdspg-search-results .property-details .property-info {
	align-items: flex-start;
	min-height: 72px;
}

.cdspg-search-results .property-details .property-btn {
	flex-shrink: 0;
	margin-top: auto;
}

.cdspg-search-results .cdspg-search-card-media {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: #e8edf2;
}

.cdspg-search-results .cdspg-search-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.cdspg-search-results .property-image .property-lable {
	z-index: 2;
}

.cdspg-search-results .cdspg-search-card-price-row {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	margin-top: 0.35rem;
}

.cdspg-search-results .cdspg-search-card-price {
	color: #4cafe2;
	flex: 1 1 auto;
	font-family: "Barlow Semi Condensed", sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	min-width: 0;
}

.cdspg-search-results .cdspg-search-card-edit {
	flex-shrink: 0;
	font-size: 0.78rem;
	margin-left: auto;
	padding: 0.35rem 0.65rem;
	white-space: nowrap;
}

.cdspg-search-pagination {
	margin-top: 1.5rem;
	padding-top: 0.5rem;
}

.cdspg-search-pagination-meta {
	margin: 0 0 0.75rem;
	text-align: center;
	font-family: "Barlow Semi Condensed", sans-serif;
	font-weight: 500;
	font-size: 1rem;
	color: #001935;
}

.cdspg-search-pagination .pagination {
	gap: 0.35rem;
}

.cdspg-search-pagination .page-item .page-link {
	min-width: 2.75rem;
	padding: 0.55rem 0.85rem;
	text-align: center;
	border-radius: 4px;
	font-weight: 500;
	line-height: 1.25;
}

.cdspg-search-pagination .page-item.active .page-link {
	background-color: #4cafe2;
	border-color: #4cafe2;
	color: #fff;
}

.cdspg-search-pagination .page-item.disabled .page-link {
	color: #b0b0b0;
	background-color: #f4f4f4;
	border-color: #eeeeee;
	cursor: not-allowed;
}

.cdspg-search-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
	color: #4cafe2;
	border-color: #4cafe2;
}

.cdspg-search-pagination .cdspg-page-ellipsis .page-link {
	border: none;
	background: transparent;
	min-width: auto;
	padding-left: 0.35rem;
	padding-right: 0.35rem;
	color: #969696;
	pointer-events: none;
}

@media (max-width: 575.98px) {
	.cdspg-search-results .cdspg-search-card-media {
		aspect-ratio: 4 / 3;
	}

	.cdspg-search-pagination .page-item .page-link {
		min-width: 2.35rem;
		padding: 0.45rem 0.55rem;
		font-size: 0.9rem;
	}
}

/* Filter sidebar (search-results.php) */
.cdspg-filter-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.cdspg-filter-field {
	margin: 0;
}

.cdspg-filter-label {
	color: #969696;
	display: block;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	margin-bottom: 0.35rem;
	text-transform: uppercase;
}

.cdspg-filter-field .form-control.basic-select,
.cdspg-filter-field select.form-control {
	background-color: #fff;
	border: 1px solid #e3e8ee;
	border-radius: 8px;
	color: #4cafe2;
	font-size: 0.95rem;
	height: auto;
	min-height: 42px;
	padding: 0.45rem 2rem 0.45rem 0.75rem;
	width: 100%;
}

.cdspg-filter-field .select2-container {
	width: 100% !important;
}

.cdspg-filter-field .select2-container--default .select2-selection--single,
.cdspg-filter-field .select2-container--default .select2-selection--multiple {
	border: 1px solid #e3e8ee !important;
	border-radius: 8px !important;
	height: auto !important;
	min-height: 42px;
	display: flex;
	align-items: center;
}

.cdspg-filter-field .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #4cafe2;
	line-height: 1.35;
	padding: 0.55rem 2rem 0.55rem 0.75rem !important;
	width: 100%;
}

.cdspg-filter-field .select2-container--default .select2-selection--single .select2-selection__arrow {
	align-items: center;
	display: flex;
	height: 100%;
	right: 8px;
	top: 0;
}

.cdspg-filter-field.property-price-slider {
	margin-top: 0.25rem;
}

.cdspg-filter-field.property-price-slider > .cdspg-filter-label {
	margin-bottom: 0.35rem;
}

.cdspg-filter-sidebar .cdspg-price-range {
	max-width: 100%;
	overflow: hidden;
}

.cdspg-filter-sidebar .cdspg-price-range-inputs {
	margin-bottom: 0.25rem;
	min-width: 0;
}

.cdspg-filter-sidebar .cdspg-price-range-inputs--inline-switch {
	gap: 6px;
}

.cdspg-filter-sidebar .cdspg-price-range-inputs--inline-switch .cdspg-price-input {
	flex: 0 0 auto;
	font-size: 0.72rem;
	letter-spacing: -0.02em;
	max-width: 88px;
	padding: 6px 4px;
	width: 88px;
}

.cdspg-filter-sidebar .cdspg-price-switch-center {
	gap: 5px;
}

.cdspg-filter-sidebar .cdspg-price-switch-text {
	font-size: 11px;
	line-height: 1;
}

.cdspg-filter-sidebar .cdspg-price-slider-wrap {
	margin-top: -2px;
	overflow: hidden;
	padding: 0 8px;
}

.cdspg-filter-sidebar .cdspg-price-slider-wrap .irs {
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
}

.cdspg-filter-submit {
	margin-top: 0.35rem;
	width: 100%;
}
