@import url("global.css");

.property-section {
	margin-top: 56px;
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid cyan;
}

.section-header h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
}

.section-header a {
	font-size: 15px;
	font-weight: 600;
	color: #2563eb;
}

.property-slider {
	position: relative;
}

.property-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 280px;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 2px 0 16px;
	scrollbar-width: none;
}

.property-row::-webkit-scrollbar {
	display: none;
}

.property-card {
	scroll-snap-align: start;
	background: #ffffff;
	border: 1px solid #e5eaf3;
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.property-card img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
}

.property-info {
	padding: 16px;
}

.property-info h3 {
	display: -webkit-box;
	min-height: 44px;
	margin: 0 0 10px;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.35;
	font-weight: unset;
	text-overflow: ellipsis;
	text-align: -webkit-center;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.property-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	font-size: 15px;
	font-weight: 600;
	color: #334155;
}

.property-info p {
	margin: 10px 0 0;
	font-size: 13px;
	color: #64748b;
	text-align: center;
}

.slider-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid #e5eaf3;
	border-radius: 50%;
	background: #ffffff;
	color: #334155;
	font-size: 34px;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
	transform: translateY(-50%);
}

.slider-arrow.left {
	left: -24px;
}

.slider-arrow.right {
	right: -24px;
}

@media (max-width: 900px) {
	.property-section {
		margin-top: 38px;
	}

	.section-header h2 {
		font-size: 18px;
		font-weight: 700;
	}

	.section-header a {
		font-size: 14px;
		font-weight: 600;
	}

	.property-row {
		grid-auto-columns: 185px;
		gap: 14px;
	}

	.property-card img {
		height: 104px;
	}

	.property-info {
		padding: 11px;
	}

	.property-info h3 {
		min-height: 38px;
		font-size: 13px;
		font-weight: unset;
	}

	.property-meta {
		font-size: 13px;
		font-weight: unset;
	}

	.property-info p {
		font-size: 12px;
	}

	.slider-arrow {
		display: none;
	}
}
