/* Zhav — آمار + مکان‌های استفاده (Elementor shortcode) */

.zhav-places {
	--zhav-purple: #5b3fd6;
	--zhav-purple-soft: #7b5cff;
	--zhav-dark: #16131f;
	--zhav-text: #1a1a1a;
	--zhav-muted: #6b6b6b;
	--zhav-card: #f3f3f5;
	--zhav-radius: 28px;
	direction: rtl;
	width: 100%;
	font-family: inherit;
	color: var(--zhav-text);
}

.zhav-places *,
.zhav-places *::before,
.zhav-places *::after {
	box-sizing: border-box;
}

/* ---- Stats bar ---- */
.zhav-places__stats {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px 18px;
	align-items: center;
	padding: 28px 36px;
	border-radius: var(--zhav-radius);
	background:
		radial-gradient(120% 180% at 100% 0%, rgba(123, 92, 255, 0.35) 0%, transparent 45%),
		linear-gradient(135deg, #1a1528 0%, #121018 55%, #1c1630 100%);
	color: #fff;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(22, 19, 31, 0.18);
}

.zhav-places__stat {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.zhav-places__stat-icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.zhav-places__stat-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.zhav-places__stat-icon i,
.zhav-places__card-badge i {
	font-size: 18px;
	line-height: 1;
	color: #fff;
}

.zhav-places__card-badge svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: currentColor;
}

.zhav-places__stat-icon--coffee { background: #6a4de0; color: #fff; }
.zhav-places__stat-icon--shield { background: #3b82f6; color: #fff; }
.zhav-places__stat-icon--spark  { background: #f59e0b; color: #fff; }
.zhav-places__stat-icon--leaf   { background: #22c55e; color: #fff; }
.zhav-places__stat-icon--smile  { background: #f97316; color: #fff; }

.zhav-places__stat-body {
	min-width: 0;
}

.zhav-places__stat-value {
	display: block;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.zhav-places__stat-label {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.5;
	opacity: 0.88;
	font-weight: 500;
}

/* ---- Heading ---- */
.zhav-places__heading {
	margin: 56px 0 36px;
	text-align: center;
	font-size: clamp(1.45rem, 2.6vw, 2.15rem);
	font-weight: 800;
	line-height: 1.55;
	color: var(--zhav-text);
}

.zhav-places__heading-accent {
	position: relative;
	display: inline-block;
	color: var(--zhav-purple);
	background: linear-gradient(90deg, #5b3fd6, #7c5cff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.zhav-places__heading-accent::after {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: -6px;
	height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' fill='none'%3E%3Cpath d='M2 8c18-8 38-8 58 0s40 8 58 0' stroke='%237c5cff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	pointer-events: none;
}

/* ---- Places grid ---- */
.zhav-places__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 22px;
}

.zhav-places__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
	min-width: 0;
	transition: transform 0.25s ease;
}

.zhav-places__card:hover {
	transform: translateY(-4px);
}

.zhav-places__card-media {
	position: relative;
	width: 100%;
}

.zhav-places__card-image {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 22px;
	background: #ddd;
	box-shadow: 0 10px 28px rgba(22, 19, 31, 0.12);
}

.zhav-places__card-badge {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--zhav-purple);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 20px rgba(91, 63, 214, 0.35);
	border: 4px solid #fff;
	z-index: 2;
}

.zhav-places__card-badge svg {
	width: 22px;
	height: 22px;
	display: block;
}

.zhav-places__card-title {
	margin: 38px 0 0;
	padding: 0 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--zhav-text);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
	.zhav-places__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding: 24px;
	}

	.zhav-places__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px 18px;
	}
}

@media (max-width: 720px) {
	.zhav-places__stats {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 22px 20px;
	}

	.zhav-places__stat {
		justify-content: flex-start;
	}

	.zhav-places__heading {
		margin: 40px 0 28px;
	}

	.zhav-places__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 14px;
	}

	.zhav-places__card-badge {
		width: 46px;
		height: 46px;
	}

	.zhav-places__card-title {
		font-size: 13px;
		margin-top: 34px;
	}
}
