/* Al-Najah Global Reach: globe + country list.
   Light mode follows the site (navy #2a4269 on pale blue); html.evk-dark uses
   the EVK dark-mode tokens. Logical properties keep it correct in RTL. */

.ngr {
	--ngr-h: 540px;
	--ngr-ink: #2a4269;
	--ngr-ink-deep: #1b3d6e;
	--ngr-line: rgba(42, 66, 105, 0.22);
	--ngr-chip-bg: rgba(255, 255, 255, 0.72);
	--ngr-hq: #b61f5c;
	position: relative;
	width: 100%;
}

.ngr-stage {
	position: relative;
	width: 100%;
	height: var(--ngr-h);
}

@media (max-width: 767px) {
	.ngr-stage { height: min(var(--ngr-h), 96vw); }
}

.ngr-canvas {
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
	touch-action: pan-y; /* vertical swipes still scroll the page */
	-webkit-tap-highlight-color: transparent;
	opacity: 0;
	transition: opacity 0.6s ease;
}
.ngr.is-ready .ngr-canvas,
.ngr-admin .ngr-canvas { opacity: 1; }
.ngr.is-hovering .ngr-canvas { cursor: pointer; }
.ngr.is-dragging .ngr-canvas { cursor: grabbing; }

.ngr-tip {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 7px 13px;
	border-radius: 999px;
	background: var(--ngr-ink-deep);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: 0 8px 20px rgba(27, 61, 110, 0.22);
	opacity: 0;
	transition: opacity 0.18s ease;
}
.ngr-tip.is-on { opacity: 1; }
.ngr-tip small {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.78;
}

.ngr-msg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 20px;
	font-size: 14px;
	color: #595959;
	text-align: center;
}
.ngr-msg[hidden] { display: none; }

/* ---- Country list ------------------------------------------------------- */

.ngr-reach {
	--ngr-ink: #2a4269;
	--ngr-line: rgba(42, 66, 105, 0.22);
	--ngr-chip-bg: rgba(255, 255, 255, 0.72);
	--ngr-hq: #b61f5c;
	margin-block-start: 28px;
	width: 100%;
}

.ngr-reach .ngr-count {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 16px;
	color: var(--ngr-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}
.ngr-reach .ngr-count b {
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.ngr-reach .ngr-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ngr-reach .ngr-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ngr-reach .ngr-list li::before { content: none; }

/* Centred lists (align="center", or align="auto" under centred text). */
.ngr-reach.ngr-align-center .ngr-count,
.ngr-reach.ngr-align-center .ngr-list,
.ngr-reach.is-center .ngr-count,
.ngr-reach.is-center .ngr-list { justify-content: center; }

/* WoodMart styles every <button>; restate everything so the chip is ours. */
.ngr-reach .ngr-list .ngr-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 7px 14px;
	border: 1px solid var(--ngr-line);
	border-radius: 999px;
	background: var(--ngr-chip-bg);
	box-shadow: none;
	color: var(--ngr-ink);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.ngr-reach .ngr-list .ngr-chip:hover,
.ngr-reach .ngr-list .ngr-chip.is-active {
	background: var(--ngr-ink);
	border-color: var(--ngr-ink);
	color: #fff;
}
.ngr-reach .ngr-list .ngr-chip:focus-visible {
	outline: 2px solid var(--ngr-ink);
	outline-offset: 2px;
}
.ngr-reach .ngr-list .ngr-chip:active { transform: translateY(1px); }

.ngr-reach .ngr-dot {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.85;
}
.ngr-reach .ngr-chip.is-hq .ngr-dot {
	background: var(--ngr-hq);
	opacity: 1;
}
.ngr-reach .ngr-chip small {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
}

/* Elementor columns centre their children; let the hosts fill the column. */
.elementor-widget:has(> .elementor-widget-container > .ngr),
.elementor-widget:has(> .ngr),
.elementor-widget:has(> .elementor-widget-container > .ngr-reach),
.elementor-widget:has(> .ngr-reach) {
	align-self: stretch;
	width: 100%;
	max-width: 100%;
}

/* ---- Dark mode (EVK) --------------------------------------------------- */

html.evk-dark .ngr,
html.evk-dark .ngr-reach {
	--ngr-ink: #9db9e4;
	--ngr-ink-deep: #e4e7ec;
	--ngr-line: rgba(157, 185, 228, 0.3);
	--ngr-chip-bg: rgba(255, 255, 255, 0.04);
	--ngr-hq: #d93c78;
}
html.evk-dark .ngr-tip {
	color: #0e1623;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}
html.evk-dark .ngr-msg { color: #c7ccd4; }
html.evk-dark .ngr-reach .ngr-count,
html.evk-dark .ngr-reach .ngr-count b { color: #e4e7ec !important; }
html.evk-dark .ngr-reach .ngr-list .ngr-chip { color: #e4e7ec; }
html.evk-dark .ngr-reach .ngr-list .ngr-chip:hover,
html.evk-dark .ngr-reach .ngr-list .ngr-chip.is-active {
	background: #7fa2d6;
	border-color: #7fa2d6;
	color: #0e1623;
}

@media (prefers-reduced-motion: reduce) {
	.ngr-canvas,
	.ngr-tip,
	.ngr-reach .ngr-list .ngr-chip { transition: none; }
}
