.property-taxonomy {
	direction: rtl;
	padding: 24px 16px;
	background: #f7f7f7;
	min-height: 100vh;
}

.property-taxonomy__container {
	width: min(100%, 1200px);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 20px;
	align-items: start;
}

.property-taxonomy__header {
	grid-column: 1 / -1;
	margin-block-end: 8px;
}

.property-taxonomy__title {
	margin: 0;
	font-size: clamp(18px, 2.5vw, 24px);
	line-height: 1.5;
	font-weight: 700;
	color: #222;
}

.property-taxonomy__description {
	color: #666;
	font-size: 13px;
	line-height: 2;
	margin-top: 8px;
}

/* =========================================================
   Filter Sidebar (Right)
   ========================================================= */
.property-taxonomy__filters {
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

.filter-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.filter-row label {
	font-size: 0.78rem;
	font-weight: 600;
	color: #6b7280;
}

.filter-row select,
.filter-row input[type="number"] {
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fafafa;
	color: #334155;
	font-size: 0.85rem;
	font-family: inherit;
	transition: all 0.2s ease;
}

.filter-row select:focus,
.filter-row input[type="number"]:focus {
	outline: none;
	border-color: #8f6b3d;
	background: #ffffff;
	box-shadow: 0 0 0 2px rgba(143, 107, 61, 0.08);
}

.filter-submit {
	width: 100%;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, #7e5f35 0%, #b79463 48%, #8a6839 100%);
	color: #ffffff;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
	margin-top: 4px;
}

.filter-submit:hover {
	filter: brightness(1.05);
}

.filter-reset {
	display: block;
	text-align: center;
	color: #6b7280;
	text-decoration: none;
	font-size: 0.8rem;
	padding: 6px;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.filter-reset:hover {
	color: #8f6b3d;
	background: rgba(143, 107, 61, 0.05);
}

/* =========================================================
   Property List (Left)
   ========================================================= */
.property-taxonomy__list {
	display: grid;
	gap: 12px;
}

.property-card {
	margin: 0;
}

.property-card__link {
	display: flex;
	flex-direction: row-reverse;
	align-items: stretch;
	gap: 16px;
	padding: 12px;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.property-card__link:hover {
	border-color: #bbb;
	box-shadow: 0 4px 16px rgb(0 0 0 / 7%);
}

.property-card__media {
	flex: 0 0 140px;
	width: 140px;
	height: 140px;
	overflow: hidden;
	border-radius: 8px;
	background: #eee;
}

.property-card__image,
.property-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.property-card__placeholder {
	background: #eaeaea;
}

.property-card__body {
	display: flex;
	flex: 1;
	min-width: 0;
	flex-direction: column;
	justify-content: space-between;
	padding: 4px 0;
}

.property-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #222;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.8;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.property-card__price {
	color: #777;
	font-size: 13px;
}

.property-card__price-value {
	color: #222;
	font-size: 14px;
}

.property-card__price-unit {
	margin-inline-start: 4px;
}

.property-taxonomy__pagination {
	margin-block-start: 24px;
}

.property-taxonomy__empty {
	padding: 48px;
	text-align: center;
	color: #666;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 980px) {
	.property-taxonomy__container {
		grid-template-columns: 240px 1fr;
		gap: 14px;
	}

	.property-taxonomy__filters {
		padding: 14px;
	}

	.property-card__media {
		flex-basis: 110px;
		width: 110px;
		height: 110px;
	}
}

/* =========================================================
   Mobile - Filters become horizontal scroll on top
   ========================================================= */
@media (max-width: 768px) {
	.property-taxonomy {
		padding: 16px 10px;
	}

	.property-taxonomy__container {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.property-taxonomy__filters {
		position: static;
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 10px;
		padding: 12px;
		margin-block-end: 16px;
		max-height: none;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

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

	.filter-row {
		flex: 0 0 auto;
		min-width: 120px;
	}

	.filter-row label {
		font-size: 0.7rem;
	}

	.filter-row select,
	.filter-row input[type="number"] {
		min-height: 38px;
		padding: 6px 10px;
		font-size: 0.8rem;
	}

	.filter-submit {
		flex: 0 0 auto;
		min-width: 80px;
		min-height: 38px;
		padding: 6px 14px;
		font-size: 0.8rem;
		margin-top: 18px;
	}

	.filter-reset {
		flex: 0 0 auto;
		align-self: center;
		font-size: 0.75rem;
		margin-top: 18px;
	}

	.property-card__link {
		gap: 10px;
		padding: 10px;
	}

	.property-card__media {
		flex-basis: 88px;
		width: 88px;
		height: 88px;
	}

	.property-card__title {
		font-size: 13px;
		line-height: 1.7;
	}

	.property-card__price-value {
		font-size: 13px;
	}
}