/* Ilan (ad detail) v2 — Figma property page */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

body.is-ilan {
	--iv2-ink: #191c1d;
	--iv2-ink-2: #090f1a;
	--iv2-muted: #76777c;
	--iv2-muted-2: #45464c;
	--iv2-gold: #ffc107;
	--iv2-dark: #1f2430;
	--iv2-border: #e5e7eb;
	--iv2-bg: #f5f6f8;
	--iv2-wa: #25d366;
	--iv2-radius: 12px;
	--iv2-radius-sm: 8px;
	font-family: Tajawal, Cairo, sans-serif !important;
	background: var(--iv2-bg) !important;
	color: var(--iv2-ink);
}

body.is-ilan .main-content {
	padding: 0 !important;
	background: var(--iv2-bg) !important;
	min-height: 70vh;
}

body.is-ilan #top-header,
body.is-ilan .site-header,
body.is-ilan .nav-bar,
body.is-ilan .site-footer,
body.is-ilan #banner {
	display: none !important;
}

/* الترويسة موحّدة من home-v2.css — لا تُعاد كتابتها هنا */

body.is-ilan .hv2-footer {
	background: #fff;
	border-top: 1px solid var(--iv2-border);
}

body.is-ilan .hv2-footer a,
body.is-ilan .hv2-footer h4,
body.is-ilan .hv2-footer__copy,
body.is-ilan .hv2-footer__brand p {
	color: var(--iv2-muted);
}

.iv2-page {
	padding: 20px 0 56px;
}

.iv2-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.iv2-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.iv2-bc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--iv2-muted);
}

.iv2-bc a {
	color: var(--iv2-muted-2);
	text-decoration: none;
}

.iv2-bc a:hover {
	color: var(--iv2-ink);
}

.iv2-bc__sep {
	opacity: 0.5;
}

.iv2-bc__current {
	color: var(--iv2-ink);
	font-weight: 700;
}

.iv2-top__actions {
	display: flex;
	gap: 8px;
}

.iv2-iconbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	border-radius: var(--iv2-radius-sm);
	border: 1px solid var(--iv2-border);
	background: #fff;
	color: var(--iv2-ink);
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.iv2-iconbtn:hover {
	border-color: #c6c6cc;
	color: var(--iv2-ink);
}

.iv2-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}

.iv2-gallery {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 12px;
	margin-bottom: 28px;
}

.iv2-gallery--single {
	grid-template-columns: minmax(0, 1fr);
}

.iv2-gallery__side {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.iv2-gallery__thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border: 0;
	padding: 0;
	border-radius: var(--iv2-radius);
	overflow: hidden;
	cursor: pointer;
	background: #e8e9ec;
}

.iv2-gallery__thumb img,
.iv2-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.iv2-gallery__thumb--empty {
	cursor: default;
	min-height: 120px;
}

.iv2-gallery__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 18, 28, 0.55);
	color: #fff;
	font-weight: 800;
	font-size: 16px;
}

.iv2-gallery__main {
	position: relative;
	border-radius: var(--iv2-radius);
	overflow: hidden;
	min-height: 360px;
	background: #e8e9ec;
	aspect-ratio: 16 / 10;
}

.iv2-gallery__pills {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	display: flex;
	gap: 8px;
	z-index: 2;
}

.iv2-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--iv2-ink-2);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	backdrop-filter: blur(6px);
}

.iv2-gallery__zoom {
	position: absolute;
	bottom: 14px;
	inset-inline-end: 14px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(31, 36, 48, 0.75);
	color: #fff;
	cursor: pointer;
	z-index: 2;
}

.iv2-headline {
	margin-bottom: 28px;
}

.iv2-price {
	color: var(--iv2-gold);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}

.iv2-title {
	margin: 0 0 12px;
	font-size: 26px;
	line-height: 1.35;
	font-weight: 800;
	color: var(--iv2-ink-2);
}

.iv2-verified {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: 10px;
	color: #2563eb;
	font-size: 14px;
	font-weight: 700;
	vertical-align: middle;
}

.iv2-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 18px;
	color: var(--iv2-muted);
	font-size: 13px;
}

.iv2-meta i {
	margin-inline-end: 4px;
}

.iv2-section {
	margin-bottom: 32px;
}

.iv2-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.iv2-section__title {
	position: relative;
	margin: 0 0 16px;
	padding-inline-start: 14px;
	font-size: 18px;
	font-weight: 800;
	color: var(--iv2-ink);
}

.iv2-section__title::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0.2em;
	bottom: 0.2em;
	width: 3px;
	border-radius: 2px;
	background: var(--iv2-dark);
}

.iv2-section__head .iv2-section__title {
	margin-bottom: 0;
}

.iv2-linkbtn {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border-radius: var(--iv2-radius-sm);
	border: 1px solid var(--iv2-border);
	background: #fff;
	color: var(--iv2-ink);
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
}

.iv2-specs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.iv2-spec {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 16px 10px;
	background: #fff;
	border: 1px solid var(--iv2-border);
	border-radius: var(--iv2-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.iv2-spec i {
	font-size: 20px;
	color: #9ca3af;
	margin-bottom: 2px;
}

.iv2-spec__label {
	font-size: 12px;
	color: var(--iv2-muted);
}

.iv2-spec__value {
	font-size: 15px;
	font-weight: 800;
	color: var(--iv2-ink);
}

.iv2-desc {
	font-size: 15px;
	line-height: 1.85;
	color: var(--iv2-muted-2);
}

.iv2-desc p {
	margin: 0 0 0.75em;
}

.iv2-owner-views {
	margin-top: 12px;
	font-size: 13px;
	color: var(--iv2-muted);
}

.iv2-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.iv2-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--iv2-border);
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: var(--iv2-ink);
}

.iv2-chip i {
	color: #16a34a;
	font-size: 12px;
}

.iv2-map {
	border-radius: var(--iv2-radius);
	overflow: hidden;
	border: 1px solid var(--iv2-border);
	background: #1f2430;
	min-height: 280px;
}

.iv2-map #map {
	width: 100%;
	height: 280px;
	min-height: 280px;
}

.iv2-side {
	position: sticky;
	top: 88px;
}

.iv2-seller {
	background: #fff;
	border: 1px solid var(--iv2-border);
	border-radius: var(--iv2-radius);
	padding: 20px;
	box-shadow: 0 4px 20px rgba(31, 36, 48, 0.05);
}

.iv2-seller__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.iv2-seller__avatar {
	position: relative;
	width: 64px;
	height: 64px;
	flex-shrink: 0;
}

.iv2-seller__avatar img {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--iv2-border);
}

.iv2-seller__online {
	position: absolute;
	bottom: 2px;
	inset-inline-end: 2px;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: #10b981;
	border: 2px solid #fff;
}

.iv2-seller__name {
	display: block;
	font-size: 16px;
	font-weight: 800;
	color: var(--iv2-ink);
	text-decoration: none;
}

.iv2-seller__role {
	font-size: 13px;
	color: var(--iv2-muted);
	margin-top: 2px;
}

.iv2-seller__store {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #2563eb;
	text-decoration: none;
}

.iv2-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	border-radius: var(--iv2-radius-sm);
	border: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	margin-bottom: 10px;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.iv2-btn:hover {
	filter: brightness(1.05);
	color: inherit;
	text-decoration: none;
}

.iv2-btn--dark {
	background: var(--iv2-dark);
	color: #fff;
}

.iv2-btn--phone {
	background: var(--iv2-dark);
	color: #fff;
}

.iv2-btn--wa {
	background: var(--iv2-wa);
	color: #fff;
}

.iv2-btn--ghost {
	background: #fff;
	color: var(--iv2-muted-2);
	border: 1px solid var(--iv2-border);
}

.iv2-btn--gold {
	background: var(--iv2-gold);
	color: var(--iv2-dark);
}

.iv2-btn.is-hidden {
	display: none;
}

.iv2-seller__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 16px 0;
	padding: 12px 0;
	border-top: 1px solid var(--iv2-border);
	border-bottom: 1px solid var(--iv2-border);
}

.iv2-seller__stats span {
	display: block;
	font-size: 12px;
	color: var(--iv2-muted);
	margin-bottom: 4px;
}

.iv2-seller__stats strong {
	font-size: 14px;
	color: var(--iv2-ink);
}

.iv2-seller__links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.iv2-seller__links a {
	font-size: 13px;
	color: var(--iv2-muted-2);
	text-decoration: none;
}

.iv2-seller__links a:hover {
	color: var(--iv2-ink);
}

.iv2-seller__links i {
	width: 18px;
	margin-inline-end: 4px;
	color: var(--iv2-muted);
}

.iv2-tip {
	background: var(--iv2-dark);
	color: #fff;
	border-radius: var(--iv2-radius-sm);
	padding: 14px 16px;
}

.iv2-tip__title {
	color: var(--iv2-gold);
	font-weight: 800;
	font-size: 14px;
	margin-bottom: 6px;
}

.iv2-tip p {
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.iv2-related {
	margin-top: 40px;
}

.iv2-related__title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 800;
	color: var(--iv2-ink);
}

body.is-ilan .cv2-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

body.is-ilan .cv2-card {
	display: block;
	background: #fff;
	border: 1px solid var(--iv2-border);
	border-radius: var(--iv2-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 20px rgba(31, 36, 48, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.is-ilan .cv2-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(31, 36, 48, 0.08);
	color: inherit;
	text-decoration: none;
}

body.is-ilan .cv2-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #e8e9ec;
}

body.is-ilan .cv2-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.is-ilan .cv2-card__fav {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
}

body.is-ilan .cv2-card__badges {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	display: flex;
	gap: 6px;
}

body.is-ilan .cv2-badge {
	display: inline-flex;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	align-items: center;
	font-size: 11px;
	font-weight: 800;
	color: #fff;
}

body.is-ilan .cv2-badge--urgent {
	background: #ef4444;
}

body.is-ilan .cv2-badge--verified {
	background: #3b82f6;
}

body.is-ilan .cv2-card__body {
	padding: 12px 14px 16px;
}

body.is-ilan .cv2-card__title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--iv2-ink);
}

body.is-ilan .cv2-card__loc {
	font-size: 12px;
	color: var(--iv2-muted);
	margin-bottom: 8px;
}

body.is-ilan .cv2-card__price {
	color: var(--iv2-gold);
	font-weight: 800;
	font-size: 15px;
}

.iv2-buy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--iv2-border);
	border-radius: var(--iv2-radius);
}

.iv2-buy .iv2-btn {
	width: auto;
	margin: 0;
	padding: 0 22px;
}

@media (max-width: 1024px) {
	.iv2-layout {
		grid-template-columns: 1fr;
	}

	.iv2-side {
		position: static;
		order: -1;
	}

	.iv2-specs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.is-ilan .cv2-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.iv2-gallery {
		grid-template-columns: 1fr;
	}

	.iv2-gallery__side {
		flex-direction: row;
	}

	.iv2-gallery__thumb {
		flex: 1;
		aspect-ratio: 4 / 3;
	}

	.iv2-gallery__main {
		min-height: 240px;
		aspect-ratio: 4 / 3;
	}

	.iv2-title {
		font-size: 20px;
	}

	.iv2-price {
		font-size: 22px;
	}

	.iv2-iconbtn span {
		display: none;
	}

	body.is-ilan .cv2-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Ilan v2 — تحديثات مطابقة لتصميم Figma
   ========================================================================== */

/* بطاقة البائع: الاسم يميناً والصورة يساراً (RTL) */
.iv2-seller__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.iv2-seller__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	text-align: start;
}

.iv2-seller__badge {
	color: var(--iv2-blue, #3b82f6);
	font-size: 13px;
	margin-inline-start: 4px;
}

/* تقييم النجوم */
.iv2-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}

.iv2-rating__stars {
	display: inline-flex;
	gap: 2px;
	color: #ffc107;
	font-size: 13px;
}

.iv2-rating__count {
	font-size: 12px;
	color: #6b7280;
}

/* أزرار المعرض العائمة */
.iv2-gallery__pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.iv2-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 9999px;
	background: rgba(9, 15, 26, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}

.iv2-pill:hover {
	background: rgba(9, 15, 26, 0.9);
	color: #fff;
}

/* زر واتساب بلون العلامة */
.iv2-btn--wa {
	background: #25d366;
	border-color: #25d366;
	color: #fff;
}

.iv2-btn--wa:hover {
	background: #1eb855;
	border-color: #1eb855;
	color: #fff;
}

/* شارات بطاقات الإعلانات المشابهة */
.cv2-card__badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.cv2-badge--featured {
	background: #ffc107;
	color: #1f2430;
}

.cv2-badge--verified {
	background: #10b981;
	color: #fff;
}

@media (max-width: 768px) {
	.iv2-seller__head {
		align-items: center;
	}
	.iv2-rating__count {
		font-size: 11px;
	}
}
