/* نقشه کارخانه‌ها و ماشین‌حساب سیمان */

.brz-order-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--brz-navy, #0d2b4e);
	font: inherit;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.brz-order-btn svg { color: var(--brz-orange, #e8791a); }
.brz-order-btn:hover { background: rgba(232, 121, 26, .1); color: var(--brz-orange, #e8791a); }

@media (max-width: 599px) { .brz-order-btn span { display: none; } }

/* ---------- پنجره ---------- */

.brz-map {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	direction: rtl;
}

.brz-map[hidden] { display: none; }

.brz-map__back {
	position: absolute;
	inset: 0;
	background: rgba(4, 8, 14, .78);
	backdrop-filter: blur(5px);
	animation: brz-map-fade .25s ease both;
}

@keyframes brz-map-fade { from { opacity: 0 } to { opacity: 1 } }

.brz-map__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1240px;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 20px;
	background: #0a0e1a;
	border: 1px solid #1e2d45;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	animation: brz-map-rise .3s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes brz-map-rise {
	from { opacity: 0; transform: translateY(20px) scale(.985) }
	to   { opacity: 1; transform: none }
}

/* ---------- سربرگ ---------- */

.brz-map__head {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 56px 14px 20px;
	background: #111827;
	border-bottom: 1px solid #1e2d45;
}

.brz-map__titles { flex: 1 1 auto; min-width: 0; }

.brz-map__titles h2 {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--brz-gold, #e8c96a);
	line-height: 1.6;
}

.brz-map__titles p { margin: 2px 0 0; font-size: .74rem; color: #64748b; line-height: 1.7; }

.brz-map__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.brz-map__filter { display: flex; align-items: center; gap: 8px; }
.brz-map__filter > span { font-size: .74rem; color: #94a3b8; white-space: nowrap; }

.brz-map__filter select {
	min-width: 150px;
	padding: 7px 12px;
	border: 1px solid #1e2d45;
	border-radius: 9px;
	background: #1a2233;
	color: #e2e8f0;
	font-family: inherit;
	font-size: .78rem;
	cursor: pointer;
}

.brz-map__filter select:focus { outline: none; border-color: var(--brz-gold, #c9a84c); }

.brz-map__count {
	padding: 3px 11px;
	border: 1px solid #1e2d45;
	border-radius: 999px;
	background: #1a2233;
	font-size: .7rem;
	color: #94a3b8;
	white-space: nowrap;
}

.brz-map__close {
	position: absolute;
	top: 12px;
	inset-inline-start: 14px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #1e2d45;
	border-radius: 50%;
	background: #1a2233;
	color: #94a3b8;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.brz-map__close:hover { background: var(--brz-orange, #e8791a); color: #10202f; }

/* ---------- بدنه ---------- */

.brz-map__body { display: flex; flex: 1 1 auto; min-height: 0; }

.brz-map__list {
	flex: 0 0 250px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 10px 0;
	background: #111827;
	border-inline-end: 1px solid #1e2d45;
}

.brz-map__canvas { position: relative; flex: 1 1 auto; min-width: 0; background: #06090f; }
.brz-map__canvas > div[data-brz-canvas] { position: absolute; inset: 0; }

.brz-map__calc {
	flex: 0 0 264px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px 14px;
	background: linear-gradient(160deg, #0d1f2f, #14263a);
	border-inline-start: 1px solid #1e3a5a;
}

/* ---------- فهرست کارخانه‌ها ---------- */

.brz-fac {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 14px;
	border: 0;
	border-inline-start: 3px solid transparent;
	background: none;
	color: inherit;
	font: inherit;
	text-align: start;
	cursor: pointer;
	transition: background .22s, border-color .22s;
}

.brz-fac:hover, .brz-fac.is-active { background: #1a2233; border-inline-start-color: var(--brz-orange, #e8791a); }
.brz-fac__ico { flex: 0 0 auto; color: var(--brz-gold, #c9a84c); }
.brz-fac__body { flex: 1 1 auto; min-width: 0; }

.brz-fac__name {
	display: block;
	font-size: .82rem;
	font-weight: 700;
	color: #e2e8f0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brz-fac__meta { display: block; font-size: .66rem; color: #64748b; }

.brz-map__empty { padding: 30px 18px; text-align: center; font-size: .8rem; color: #64748b; line-height: 2; }

/* ---------- نشانگر و برچسب استان ---------- */

.brz-marker { cursor: pointer; filter: drop-shadow(0 0 6px rgba(232, 121, 26, .45)); }

.brz-prov-label {
	background: none !important;
	border: 0 !important;
	font-family: inherit;
	font-size: 9px;
	font-weight: 600;
	color: rgba(226, 232, 240, .55);
	text-shadow: 0 1px 3px rgba(0, 0, 0, .95);
	white-space: nowrap;
	pointer-events: none;
	text-align: center;
}

.brz-map__hint {
	position: absolute;
	inset-inline-start: 14px;
	bottom: 16px;
	z-index: 500;
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 9px 14px;
	border: 1px solid #1e2d45;
	border-radius: 10px;
	background: rgba(17, 24, 39, .92);
	color: #64748b;
	font-size: .72rem;
	pointer-events: none;
}

/* ---------- کارت اطلاعات ---------- */

.brz-map__info {
	position: absolute;
	inset: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(6, 9, 15, .6);
}

.brz-map__info[hidden] { display: none; }

.brz-map__info-card {
	position: relative;
	width: 320px;
	max-width: 100%;
	max-height: 100%;
	overflow-y: auto;
	border: 1px solid #1e2d45;
	border-radius: 15px;
	background: #111827;
	box-shadow: 0 14px 46px rgba(0, 0, 0, .7);
}

.brz-fac-card__head {
	padding: 15px 16px 13px;
	background: linear-gradient(135deg, #0f2540, #1a3a5c);
	border-bottom: 2px solid var(--brz-gold, #c9a84c);
}

.brz-fac-card__tag {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 10px;
	border: 1px solid rgba(201, 168, 76, .3);
	border-radius: 999px;
	background: rgba(201, 168, 76, .14);
	font-size: .64rem;
	color: var(--brz-gold, #c9a84c);
}

.brz-fac-card__head h3 {
	margin: 0 0 5px;
	padding-inline-end: 26px;
	font-size: .98rem;
	font-weight: 800;
	color: var(--brz-gold, #e8c96a);
	line-height: 1.6;
}

.brz-fac-card__desc { margin: 0; font-size: .76rem; color: #94a3b8; line-height: 1.85; }

.brz-fac-card__x {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid #1e2d45;
	border-radius: 50%;
	background: rgba(17, 24, 39, .9);
	color: #94a3b8;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.brz-fac-card__x:hover { color: #fff; border-color: var(--brz-gold, #c9a84c); }

.brz-fac-card__body { display: flex; flex-direction: column; gap: 10px; padding: 13px 14px; }

.brz-fac-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.brz-fac-card__stat {
	padding: 8px 10px;
	border: 1px solid #1e2d45;
	border-radius: 9px;
	background: #1a2233;
}

.brz-fac-card__stat i { display: block; font-style: normal; font-size: .6rem; color: #64748b; }
.brz-fac-card__stat b { font-size: .82rem; font-weight: 700; color: #e2e8f0; }

.brz-fac-card__block {
	padding: 11px 12px;
	border: 1px solid #1e2d45;
	border-radius: 10px;
	background: #1a2233;
}

.brz-fac-card__block > span {
	display: block;
	margin-bottom: 7px;
	font-size: .64rem;
	font-weight: 700;
	color: var(--brz-orange, #e8791a);
}

.brz-fac-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }

.brz-fac-card__tags i {
	font-style: normal;
	padding: 2px 9px;
	border: 1px solid rgba(232, 121, 26, .25);
	border-radius: 999px;
	background: rgba(232, 121, 26, .1);
	font-size: .68rem;
	color: #f0a868;
}

.brz-fac-card__exp {
	padding: 8px 10px;
	margin-bottom: 6px;
	border: 1px solid #1e2d45;
	border-radius: 9px;
	background: #111827;
}

.brz-fac-card__exp:last-child { margin-bottom: 0; }
.brz-fac-card__exp b { display: block; font-size: .8rem; color: #e2e8f0; }
.brz-fac-card__exp i { display: block; font-style: normal; font-size: .64rem; color: #64748b; margin-bottom: 4px; }

.brz-fac-card__exp a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border: 1px solid rgba(201, 168, 76, .28);
	border-radius: 999px;
	background: rgba(201, 168, 76, .12);
	color: var(--brz-gold, #c9a84c);
	font-size: .72rem;
	text-decoration: none;
	direction: ltr;
}

.brz-fac-card__exp a:hover { background: rgba(201, 168, 76, .24); }

/* ---------- ماشین‌حساب ---------- */

.brz-calc__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 11px;
	margin-bottom: 12px;
	border-bottom: 1px solid rgba(201, 168, 76, .16);
}

.brz-calc__ico {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border: 1px solid rgba(201, 168, 76, .22);
	border-radius: 12px;
	background: linear-gradient(145deg, #1a3a5c, #0f2840);
	color: var(--brz-gold, #e8c96a);
}

.brz-calc__head h3 { margin: 0; font-size: .9rem; font-weight: 800; color: var(--brz-gold, #e8c96a); }
.brz-calc__head p { margin: 0; font-size: .62rem; color: #94a3b8; }

.brz-calc__row { display: block; margin-bottom: 11px; }
.brz-calc__row > span { display: block; margin-bottom: 5px; font-size: .68rem; font-weight: 600; color: #cbd5e1; }

.brz-calc__row input,
.brz-calc__row select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid rgba(201, 168, 76, .16);
	border-radius: 10px;
	background: rgba(26, 42, 58, .65);
	color: #e2e8f0;
	font-family: inherit;
	font-size: .78rem;
}

.brz-calc__row input:focus,
.brz-calc__row select:focus {
	outline: none;
	border-color: var(--brz-gold, #e8c96a);
	box-shadow: 0 0 0 3px rgba(201, 168, 76, .12);
}

.brz-calc__out {
	padding: 13px 15px;
	border: 1px solid rgba(201, 168, 76, .1);
	border-inline-start: 3px solid var(--brz-gold, #e8c96a);
	border-radius: 12px;
	background: rgba(26, 42, 58, .6);
}

.brz-calc__label { display: block; font-size: .62rem; color: #94a3b8; }

.brz-calc__out strong {
	display: block;
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--brz-gold, #f5d060);
	line-height: 1.3;
}

.brz-calc__out strong small { font-size: .5em; font-weight: 600; color: #94a3b8; }

.brz-calc__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 9px;
	padding-top: 9px;
	border-top: 1px solid rgba(201, 168, 76, .1);
}

.brz-calc__meta span {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(17, 24, 39, .55);
	font-size: .62rem;
	color: #94a3b8;
}

.brz-calc__meta b { color: #e2e8f0; }

.brz-calc__note {
	margin: 11px 0 0;
	padding: 8px 11px;
	border-radius: 9px;
	background: rgba(26, 42, 58, .45);
	font-size: .62rem;
	color: #94a3b8;
	line-height: 1.85;
	text-align: center;
}

/* ---------- ریسپانسیو ---------- */

@media (max-width: 1100px) {
	.brz-map__list { flex-basis: 200px; }
	.brz-map__calc { flex-basis: 224px; }
}

@media (max-width: 900px) {

	.brz-map { padding: 0; }
	.brz-map__box { max-width: 100%; max-height: 100vh; height: 100dvh; border-radius: 0; }

	.brz-map__body { flex-direction: column; overflow-y: auto; }

	.brz-map__list {
		flex: 0 0 auto;
		max-height: 168px;
		border-inline-end: 0;
		border-bottom: 1px solid #1e2d45;
	}

	.brz-map__canvas { flex: 0 0 auto; height: 340px; }

	.brz-map__calc {
		flex: 0 0 auto;
		border-inline-start: 0;
		border-top: 1px solid #1e3a5a;
	}

	.brz-map__head { padding: 12px 52px 12px 16px; }
	.brz-map__titles p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.brz-map__box, .brz-map__back { animation: none; }
}

/* ---------- راهنمای شناور استان ---------- */

.brz-map .brz-prov-tip.leaflet-tooltip {
	border: 1px solid #1e2d45;
	border-radius: 8px;
	background: rgba(17, 24, 39, .96);
	color: #e2e8f0;
	font-family: inherit;
	font-size: .74rem;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}

.brz-map .brz-prov-tip.leaflet-tooltip::before { display: none; }
