/* ==========================================================================
   كروت المشاريع العقارية - التصميم الأمامي
   ========================================================================== */

.rec-cards-grid,
.rec-card,
.rec-card * {
	box-sizing: border-box;
}

.rec-cards-grid {
	--rec-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--rec-columns), 1fr);
	gap: 24px;
	direction: rtl;
	font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
}

@media (max-width: 992px) {
	.rec-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.rec-cards-grid { grid-template-columns: 1fr; }
}

.rec-card {
	direction: rtl;
	font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
	background: #ffffff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(20, 30, 50, 0.08);
	border: 1px solid #eef0f2;
	transition: transform .2s ease, box-shadow .2s ease;
	display: flex;
	flex-direction: column;
}

.rec-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(20, 30, 50, 0.14);
}

/* ----------------- منطقة الصورة ----------------- */
.rec-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9edf0;
}

.rec-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.rec-card:hover .rec-card__media img {
	transform: scale(1.05);
}

.rec-card__media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #dfe4e8, #eef1f3);
}

/* أيقونات أعلى يمين/يسار الصورة (قلب - مشاركة - مقارنة) */
.rec-card__top-actions {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: row-reverse;
	gap: 8px;
	z-index: 3;
}

.rec-icon-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(20, 24, 32, 0.55);
	backdrop-filter: blur(2px);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	cursor: pointer;
	padding: 0;
	transition: background .2s ease, transform .15s ease;
}
.rec-icon-btn:hover { background: rgba(20, 24, 32, 0.8); transform: scale(1.06); }
.rec-icon-btn svg { width: 17px; height: 17px; }

.rec-fav-btn.is-active { color: #ff5a5f; }
.rec-fav-btn.is-active svg path { fill: #ff5a5f; }

.rec-compare-wrap { position: relative; display: flex; }

.rec-compare-tip {
	position: absolute;
	top: 42px;
	right: 0;
	background: #12253f;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	padding: 6px 12px;
	border-radius: 8px 8px 8px 2px;
	box-shadow: 0 4px 10px rgba(0,0,0,.18);
	opacity: 0;
	transform: translateY(-4px);
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
}

.rec-compare-wrap:hover .rec-compare-tip,
.rec-compare-btn:focus + .rec-compare-tip {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* الشارات (Badges) أعلى يسار الصورة */
.rec-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	z-index: 3;
}

.rec-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	background: #12b76a;
	color: #fff;
	line-height: 1.4;
	box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* شارة سنة التسليم */
.rec-card__delivery {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 6px;
	padding: 26px 14px 12px;
	background: linear-gradient(to top, rgba(6,10,20,.72), rgba(6,10,20,0));
	color: #fff;
	z-index: 2;
}
.rec-card__delivery-label { font-size: 12px; opacity: .9; }
.rec-card__delivery-year { font-size: 18px; font-weight: 800; }

/* ----------------- محتوى الكارد ----------------- */
.rec-card__body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.rec-card__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12.5px;
	color: #8a94a3;
	margin-bottom: 6px;
}

.rec-card__developer {
	font-weight: 700;
	color: #6b46c1;
}

.rec-card__title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 800;
	color: #14202e;
	line-height: 1.4;
}

.rec-card__specs {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 18px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.rec-spec {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #4b5563;
	font-weight: 600;
}
.rec-spec svg { width: 18px; height: 18px; color: #8a94a3; flex-shrink: 0; }

.rec-divider {
	border: none;
	border-top: 1px dashed #e7e9ec;
	margin: 0 0 14px;
}

.rec-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.rec-card__contact {
	display: flex;
	gap: 8px;
}

.rec-contact-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	flex-shrink: 0;
	transition: filter .15s ease, transform .15s ease;
}
.rec-contact-btn:hover { filter: brightness(0.92); transform: translateY(-2px); }
.rec-contact-btn svg { width: 19px; height: 19px; }

.rec-contact-btn--whatsapp { background: #25d366; }
.rec-contact-btn--phone { background: #1565c0; }

.rec-card__price { text-align: left; }

.rec-card__price-sub {
	font-size: 12.5px;
	color: #8a94a3;
	font-weight: 600;
	margin-bottom: 2px;
	white-space: nowrap;
}

.rec-card__price-total {
	font-size: 18px;
	font-weight: 800;
	color: #14202e;
	white-space: nowrap;
}

.rec-empty {
	text-align: center;
	color: #8a94a3;
	padding: 30px;
}
