/* Properties Listing Page Styles */
.properties-page {
	padding: 2rem 0 4rem;
	min-height: 80vh;
}

.page-header {
	text-align: center;
	margin-bottom: 2rem;
}

.page-header h1 {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.page-header p {
	font-size: 1.1rem;
	color: var(--text-secondary);
}

/* Search and Filter Section */
.search-filter-section {
	background: var(--card-bg);
	border-radius: 8px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: var(--shadow);
}

.search-filter-form {
	width: 100%;
}

.search-row {
	display: grid;
	grid-template-columns: 2fr 1.5fr 1fr 1fr auto;
	gap: 1rem;
	align-items: end;
}

.search-field {
	display: flex;
	flex-direction: column;
}

.search-field label {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
	font-size: 0.9rem;
}

.search-field input,
.search-field select {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-size: 1rem;
}

.search-button-field {
	display: flex;
	align-items: flex-end;
}

.btn-search {
	padding: 0.75rem 2rem;
	white-space: nowrap;
}

.search-advanced-toggle {
	margin-top: 1rem;
	text-align: center;
}

.search-advanced-toggle a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.search-advanced {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-color);
}

/* Results Section */
.results-section {
	margin-top: 2rem;
}

.results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.results-count {
	font-size: 1.1rem;
	color: var(--text-primary);
	font-weight: 600;
}

.results-sort {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.results-sort label {
	font-weight: 600;
	color: var(--text-primary);
}

.results-sort select {
	padding: 0.5rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
}

/* Properties Grid */
.properties-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.property-card {
	background: var(--card-bg);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	display: block;
}

.property-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.property-card-image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	background: var(--bg-secondary);
}

.property-card-image-placeholder {
	width: 100%;
	height: 220px;
	background: var(--bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	font-size: 3rem;
}

.property-card-content {
	padding: 1.5rem;
}

.property-card-price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.property-card-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.property-card-location {
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.property-card-specs {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.property-card-specs span {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.loading-spinner {
	text-align: center;
	padding: 4rem;
	color: var(--text-secondary);
	font-size: 1.2rem;
}

.loading-spinner i {
	font-size: 2rem;
	margin-right: 1rem;
}

.no-results {
	text-align: center;
	padding: 4rem;
	color: var(--text-secondary);
}

.no-results i {
	font-size: 4rem;
	margin-bottom: 1rem;
	color: var(--text-secondary);
}

.no-results h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.pagination button,
.pagination a {
	padding: 0.5rem 1rem;
	border: 1px solid var(--border-color);
	background: var(--card-bg);
	color: var(--text-primary);
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s;
}

.pagination button:hover,
.pagination a:hover {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

.pagination button.active,
.pagination a.active {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

.pagination button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
	.search-row {
		grid-template-columns: 1fr 1fr;
	}

	.search-button-field {
		grid-column: 1 / -1;
	}

	.btn-search {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.properties-page {
		padding: 1rem 0 2rem;
	}

	.page-header h1 {
		font-size: 2rem;
	}

	.search-filter-section {
		padding: 1.5rem;
	}

	.search-row {
		grid-template-columns: 1fr;
	}

	.results-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.properties-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

