/* New ads horizontal cards (homepage latest section) */
body.is-v2 .hv2-ads--rich,
body.is-home .hv2-ads--rich {
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
	grid-template-columns: none !important;
}

body.is-v2 .shl-new,
body.is-home .shl-new {
	--new-gold: #ffc107;
	--new-ink: #1f2430;
	--new-muted: #8b919a;
	position: relative;
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr) 200px;
	align-items: stretch;
	gap: 18px;
	min-height: 168px;
	padding: 16px;
	background: #fff;
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 8px 28px rgba(31, 36, 48, 0.06);
	box-sizing: border-box;
}

body.is-v2 .shl-new__media,
body.is-home .shl-new__media {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: #e8eaef;
	min-height: 136px;
	align-self: stretch;
}

body.is-v2 .shl-new__media img,
body.is-home .shl-new__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 136px;
}

body.is-v2 .shl-new__body,
body.is-home .shl-new__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	padding: 4px 0;
}

body.is-v2 .shl-new__meta,
body.is-home .shl-new__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

body.is-v2 .shl-new__cat,
body.is-home .shl-new__cat {
	color: var(--new-gold);
	font-size: 13px;
	font-weight: 800;
}

body.is-v2 .shl-new__time,
body.is-home .shl-new__time {
	color: var(--new-muted);
	font-size: 12px;
	font-weight: 600;
}

body.is-v2 .shl-new__title,
body.is-home .shl-new__title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--new-ink);
}

body.is-v2 .shl-new__title a,
body.is-home .shl-new__title a {
	color: inherit;
	text-decoration: none;
}

body.is-v2 .shl-new__title a:hover,
body.is-home .shl-new__title a:hover {
	color: var(--new-ink);
	opacity: 0.85;
}

body.is-v2 .shl-new__sub,
body.is-home .shl-new__sub {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--new-muted);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.is-v2 .shl-new__feats,
body.is-home .shl-new__feats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 2px;
}

body.is-v2 .shl-new__feats span,
body.is-home .shl-new__feats span {
	font-size: 12px;
	color: #6b7280;
	font-weight: 600;
}

body.is-v2 .shl-new__aside,
body.is-home .shl-new__aside {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 8px 4px 4px;
	text-align: center;
}

body.is-v2 .shl-new__badge,
body.is-home .shl-new__badge {
	position: absolute;
	top: -6px;
	inset-inline-start: -4px;
	width: 54px;
	height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #2170e4;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	clip-path: polygon(50% 0%, 63% 12%, 80% 8%, 82% 25%, 95% 35%, 88% 50%, 95% 65%, 82% 75%, 80% 92%, 63% 88%, 50% 100%, 37% 88%, 20% 92%, 18% 75%, 5% 65%, 12% 50%, 5% 35%, 18% 25%, 20% 8%, 37% 12%);
	transform: rotate(-12deg);
	z-index: 2;
	box-shadow: 0 4px 12px rgba(33, 112, 228, 0.35);
}

body.is-v2 .shl-new__price,
body.is-home .shl-new__price {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
}

body.is-v2 .shl-new__amount,
body.is-home .shl-new__amount {
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	color: var(--new-gold);
	font-family: Tajawal, Cairo, sans-serif;
}

body.is-v2 .shl-new__unit,
body.is-home .shl-new__unit {
	font-size: 12px;
	font-weight: 700;
	color: #d4a106;
	line-height: 1.2;
}

body.is-v2 .shl-new__actions,
body.is-home .shl-new__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

body.is-v2 .shl-new__btn,
body.is-home .shl-new__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	font-family: inherit;
	white-space: nowrap;
	box-sizing: border-box;
	transition: filter 0.15s ease, transform 0.15s ease;
}

body.is-v2 .shl-new__btn:hover,
body.is-home .shl-new__btn:hover {
	filter: brightness(1.05);
	text-decoration: none;
}

body.is-v2 .shl-new__btn--chat,
body.is-home .shl-new__btn--chat {
	background: var(--new-ink);
	color: #fff !important;
	border: 0;
}

body.is-v2 .shl-new__btn--call,
body.is-home .shl-new__btn--call {
	background: #fff;
	color: var(--new-ink) !important;
	border: 1.5px solid var(--new-ink);
	box-shadow: 0 4px 12px rgba(31, 36, 48, 0.08);
}

/* Hide legacy rich card if any remain */
body.is-v2 .hv2-ad--rich,
body.is-home .hv2-ad--rich {
	display: none !important;
}

@media (max-width: 900px) {
	body.is-v2 .shl-new,
	body.is-home .shl-new {
		grid-template-columns: 140px minmax(0, 1fr);
		grid-template-areas:
			"media body"
			"aside aside";
	}
	body.is-v2 .shl-new__media { grid-area: media; }
	body.is-v2 .shl-new__body { grid-area: body; }
	body.is-v2 .shl-new__aside {
		grid-area: aside;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding-top: 8px;
		border-top: 1px solid #f0f1f3;
	}
	body.is-v2 .shl-new__price {
		margin-top: 0;
		align-items: flex-start;
		text-align: start;
	}
	body.is-v2 .shl-new__badge {
		top: 8px;
		inset-inline-start: 8px;
		width: 46px;
		height: 46px;
		font-size: 10px;
	}
	body.is-v2 .shl-new__amount { font-size: 22px; }
}

@media (max-width: 560px) {
	body.is-v2 .shl-new,
	body.is-home .shl-new {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"body"
			"aside";
		padding: 12px;
	}
	body.is-v2 .shl-new__media {
		min-height: 180px;
		aspect-ratio: 16 / 10;
	}
	body.is-v2 .shl-new__media img { min-height: 180px; }
	body.is-v2 .shl-new__aside {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	body.is-v2 .shl-new__actions { width: 100%; }
	body.is-v2 .shl-new__btn { flex: 1; }
}
