.nmap-wrap {
	--nmap-navy-950: #060f22;
	--nmap-navy-900: #0b1830;
	--nmap-navy-800: #122549;
	--nmap-navy-700: #1a3564;
	--nmap-navy-600: #234480;
	--nmap-gold-500: #c9a227;
	--nmap-gold-400: #e0bf5c;
	--nmap-gold-300: #f0d68a;
	--nmap-cream: #f6efe0;
	--nmap-card: #fbf7ec;
	--nmap-ink: #1c1608;
	--nmap-radius: 16px;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	color: var(--nmap-cream);
	direction: rtl;
	box-sizing: border-box;
}
.nmap-wrap *, .nmap-wrap *::before, .nmap-wrap *::after { box-sizing: inherit; }

/* ---------- بکگراند: پرده سرمه‌ای مانند پشت جایگاه رسمی ---------- */
.nmap-stage {
	position: relative;
	background-color: var(--nmap-navy-900);
	background-image:
		repeating-linear-gradient(
			92deg,
			rgba(0,0,0,.28) 0px, rgba(0,0,0,.28) 5px,
			rgba(255,255,255,.035) 5px, rgba(255,255,255,.035) 42px,
			rgba(0,0,0,.14) 42px, rgba(0,0,0,.14) 48px,
			transparent 48px, transparent 84px
		),
		radial-gradient(ellipse 120% 60% at 50% 0%, rgba(255,255,255,.06) 0%, transparent 60%),
		radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0,0,0,.35) 0%, transparent 65%);
	border: 1px solid rgba(201,162,39,.35);
	border-top: 3px solid var(--nmap-gold-500);
	border-radius: 22px;
	padding: 26px 22px 32px;
	overflow: hidden;
	box-shadow: inset 0 0 80px rgba(0,0,0,.5), 0 18px 40px rgba(0,0,0,.45);
}
.nmap-stage::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--nmap-gold-500), transparent);
	opacity: .7;
}

.nmap-panel { display: none; animation: nmapFade .35s ease; }
.nmap-panel.is-active { display: block; }

@keyframes nmapFade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.nmap-panel-head { margin-bottom: 18px; text-align: center; }
.nmap-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: var(--nmap-gold-300); text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.nmap-sub { margin: 0; color: rgba(246,239,224,.65); font-size: 14px; }

.nmap-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,.06);
	color: var(--nmap-gold-300);
	border: 1px solid rgba(201,162,39,.4);
	padding: 8px 16px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	float: right;
	transition: background .2s, transform .2s;
}
.nmap-back:hover { background: rgba(201,162,39,.18); transform: translateX(3px); }
.nmap-back-arrow { display: inline-block; }

/* ---------- نقشه: صفحه‌ای مثل «نمایشگر» روی پرده، با حاشیه سرمه‌ای اطراف آن ---------- */
.nmap-map-holder {
	position: relative;
	max-width: 560px;
	margin: 0 auto;
	background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.05), transparent 70%);
	border: 1px solid rgba(201,162,39,.25);
	border-radius: 18px;
	padding: 18px;
}
.nmap-svg { width: 100%; height: auto; display: block; }

.nmap-province {
	fill: var(--nmap-gold-500);
	fill-opacity: .85;
	stroke: var(--nmap-navy-950);
	stroke-width: 1.2;
	cursor: pointer;
	transition: fill .18s ease, filter .18s ease, fill-opacity .18s ease;
}
.nmap-province:hover,
.nmap-province.is-hover {
	fill: var(--nmap-gold-300);
	fill-opacity: 1;
	filter: drop-shadow(0 3px 10px rgba(224,191,92,.55));
}
.nmap-province.is-selected { fill: #7a1f2b; fill-opacity: 1; }

.nmap-tooltip {
	position: absolute;
	pointer-events: none;
	background: var(--nmap-navy-950);
	color: var(--nmap-gold-300);
	font-size: 13px;
	font-weight: 600;
	padding: 5px 12px;
	border: 1px solid rgba(201,162,39,.4);
	border-radius: 8px;
	opacity: 0;
	transform: translate(-50%, -130%);
	transition: opacity .12s ease;
	white-space: nowrap;
	z-index: 5;
}
.nmap-tooltip.is-visible { opacity: 1; }

/* ---------- نقشه شهرستان‌های داخل استان ---------- */
.nmap-city-map-holder { min-height: 220px; position: relative; }
.nmap-city-path {
	stroke: var(--nmap-navy-950);
	stroke-width: .6;
	cursor: pointer;
	transition: fill .18s ease, filter .18s ease;
}
.nmap-city-path.has-reps {
	fill: var(--nmap-gold-400);
}
.nmap-city-path.has-reps:hover {
	fill: var(--nmap-gold-300);
	filter: drop-shadow(0 3px 10px rgba(224,191,92,.6));
}
.nmap-city-path.no-reps {
	fill: var(--nmap-navy-600);
	fill-opacity: .6;
}
.nmap-city-path.no-reps:hover {
	fill: var(--nmap-navy-700);
	fill-opacity: .9;
}

.nmap-empty {
	text-align: center;
	color: rgba(246,239,224,.6);
	padding: 30px 10px;
	font-size: 14px;
}

/* ---------- نمایندگان ---------- */
.nmap-reps-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
}
.nmap-rep-card {
	background: var(--nmap-card);
	color: var(--nmap-ink);
	border-radius: var(--nmap-radius);
	width: 270px;
	padding: 22px 18px 16px;
	text-align: center;
	border: 1px solid var(--nmap-gold-500);
	box-shadow: 0 10px 26px rgba(0,0,0,.35);
	transition: transform .2s, box-shadow .2s;
}
.nmap-rep-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 34px rgba(0,0,0,.4);
}
.nmap-rep-photo {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 12px;
	border: 3px solid var(--nmap-gold-400);
	display: block;
}
.nmap-rep-photo.is-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--nmap-navy-700), var(--nmap-navy-900));
	color: var(--nmap-gold-300);
	font-size: 26px;
	font-weight: 700;
}
.nmap-rep-name { font-size: 16px; font-weight: 700; margin: 0 0 3px; color: var(--nmap-navy-900); }
.nmap-rep-position {
	display: inline-block;
	background: rgba(122,31,43,.1);
	color: #7a1f2b;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 14px;
}

/* --- تب‌های سوابق --- */
.nmap-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	border-top: 1px solid rgba(201,162,39,.35);
	padding-top: 10px;
	margin-top: 4px;
}
.nmap-tab-btn {
	background: transparent;
	border: 1px solid rgba(122,31,43,.25);
	color: var(--nmap-navy-800);
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.nmap-tab-btn:hover { background: rgba(122,31,43,.08); }
.nmap-tab-btn.is-active {
	background: #7a1f2b;
	border-color: #7a1f2b;
	color: var(--nmap-gold-300);
}
.nmap-tab-panel { display: none; text-align: right; padding-top: 12px; }
.nmap-tab-panel.is-active { display: block; animation: nmapFade .25s ease; }
.nmap-tab-text {
	font-size: 12.5px;
	line-height: 1.9;
	color: #3a2f14;
}
.nmap-tab-empty {
	font-size: 12.5px;
	color: #8a7d5c;
	text-align: center;
}
.nmap-rep-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13px;
	color: var(--nmap-navy-800);
	margin-bottom: 6px;
	direction: ltr;
}
.nmap-rep-line span.nmap-rep-label { direction: rtl; }
.nmap-rep-address {
	font-size: 12.5px;
	color: #6b5f42;
	margin-top: 8px;
	line-height: 1.7;
	text-align: center;
}

/* --- بارگذاری --- */
.nmap-loading { text-align: center; padding: 40px 10px; color: var(--nmap-gold-300); font-weight: 600; }
.nmap-loading::after {
	content: '';
	display: inline-block;
	width: 16px; height: 16px;
	margin-inline-start: 8px;
	border: 3px solid rgba(201,162,39,.25);
	border-top-color: var(--nmap-gold-400);
	border-radius: 50%;
	vertical-align: middle;
	animation: nmapSpin .7s linear infinite;
}
@keyframes nmapSpin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
	.nmap-rep-card { width: 100%; }
	.nmap-stage { padding: 18px 14px; }
	.nmap-title { font-size: 18px; }
	.nmap-map-holder { padding: 10px; }
}
