/*
 * CSS rules for the main index page random or featured property listing
 */
.featured-properties {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	padding: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.property-card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	max-width: 350px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.property-image {
	width: 100%;
	overflow: hidden;
}

.property-image img {
	width: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.property-card:hover {
	transform: scale(1.05);
}

.property-card .property-content {
	padding: 16px;
}

.property-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #2d3748;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.property-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #2a9d8f;
	margin: 0 0 12px 0;
}

.property-agent {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid #e2e8f0;
}

.agent-logo {
	width: 64px;
	object-fit: cover;
	border: 2px solid #f8f9fa;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agent-name {
	font-size: 0.9rem;
	color: #64748b;
	font-weight: 800;
}

/* Responsive layout */
@media (min-width: 768px) {
	.featured-properties {
		justify-content: flex-start;
	}

	.property-card {
		width: calc(50% - 20px); /* 2 cards per row */
	}
}

@media (min-width: 1024px) {
	.property-card {
		width: calc(33.333% - 20px); /* 3 cards per row */
	}
}

@media (min-width: 1280px) {
	.property-card {
		width: calc(25% - 20px); /* 4 cards per row */
	}
}