/**
 * Noblessa World Map — frontend
 *
 * Overrides Hello Elementor reset.css pink (#c36) on our buttons via
 * higher-specificity scoped selectors. Do not edit theme/Elementor files.
 */

.noblessa-map {
	--noblessa-gold: #a38b5d;
	--noblessa-gold-dark: #8f784e;
	--noblessa-ink: #2b2622;
	--noblessa-cream: #f5f0e8;
	--noblessa-sand: #ddd5bf;
	position: relative;
	width: 100%;
	margin: 0 auto;
	line-height: 0;
	color: var(--noblessa-ink);
}

.noblessa-map *,
.noblessa-map *::before,
.noblessa-map *::after {
	box-sizing: border-box;
}

.noblessa-map-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
	line-height: 1.3;
}

/* ------------------------------------------------------------------ */
/* Primary / secondary buttons — beat Hello Elementor reset.css         */
/* `[type=button]:hover, button:hover { background-color:#c36 }`        */
/* ------------------------------------------------------------------ */

.noblessa-map button.noblessa-map-btn,
.noblessa-map-overlay button.noblessa-map-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 14px 28px;
	width: auto;
	min-height: 44px;
	color: #fff !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none !important;
	text-shadow: none !important;
	background: var(--noblessa-gold) !important;
	background-color: var(--noblessa-gold) !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 9999px;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.noblessa-map button.noblessa-map-btn:hover,
.noblessa-map button.noblessa-map-btn:focus,
.noblessa-map button.noblessa-map-btn:active,
.noblessa-map button.noblessa-map-btn:visited,
.noblessa-map-overlay button.noblessa-map-btn:hover,
.noblessa-map-overlay button.noblessa-map-btn:focus,
.noblessa-map-overlay button.noblessa-map-btn:active,
.noblessa-map-overlay button.noblessa-map-btn:visited {
	color: #fff !important;
	background: var(--noblessa-gold-dark) !important;
	background-color: var(--noblessa-gold-dark) !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 9999px;
	box-shadow: none !important;
	outline: none;
	text-decoration: none !important;
	text-shadow: none !important;
}

.noblessa-map button.noblessa-map-btn:hover,
.noblessa-map-overlay button.noblessa-map-btn:hover {
	transform: translateY(-1px);
}

.noblessa-map button.noblessa-map-btn:focus,
.noblessa-map-overlay button.noblessa-map-btn:focus {
	background: var(--noblessa-gold) !important;
	background-color: var(--noblessa-gold) !important;
	transform: none;
}

.noblessa-map button.noblessa-map-btn:focus-visible,
.noblessa-map-overlay button.noblessa-map-btn:focus-visible {
	color: #fff !important;
	background: var(--noblessa-gold) !important;
	background-color: var(--noblessa-gold) !important;
	outline: 2px solid var(--noblessa-gold);
	outline-offset: 3px;
	border-radius: 9999px;
}

.noblessa-map button.noblessa-map-btn--secondary,
.noblessa-map-overlay button.noblessa-map-btn--secondary {
	color: var(--noblessa-ink) !important;
	background: #fff !important;
	background-color: #fff !important;
	border: 1px solid rgba(163, 139, 93, 0.5) !important;
	padding: 10px 20px;
}

.noblessa-map button.noblessa-map-btn--secondary:hover,
.noblessa-map button.noblessa-map-btn--secondary:focus-visible,
.noblessa-map-overlay button.noblessa-map-btn--secondary:hover,
.noblessa-map-overlay button.noblessa-map-btn--secondary:focus-visible {
	color: #fff !important;
	background: var(--noblessa-gold) !important;
	background-color: var(--noblessa-gold) !important;
	border-color: var(--noblessa-gold) !important;
}

.noblessa-map button.noblessa-map-btn--secondary:focus,
.noblessa-map-overlay button.noblessa-map-btn--secondary:focus {
	color: var(--noblessa-ink) !important;
	background: #fff !important;
	background-color: #fff !important;
	border: 1px solid rgba(163, 139, 93, 0.5) !important;
	outline: none;
	transform: none;
}

.noblessa-map button.noblessa-map-btn--secondary:focus-visible,
.noblessa-map-overlay button.noblessa-map-btn--secondary:focus-visible {
	outline: 2px solid var(--noblessa-gold);
	outline-offset: 3px;
}

.noblessa-map-btn-icon {
	display: inline-flex;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.noblessa-map-btn-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ------------------------------------------------------------------ */
/* Map viewport / canvas                                                */
/* ------------------------------------------------------------------ */

.noblessa-map-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	touch-action: none;
	cursor: grab;
	background: transparent;
	line-height: 0;
	border-radius: 12px;
}

.noblessa-map-viewport:active {
	cursor: grabbing;
}

.noblessa-map-canvas {
	transform-origin: 0 0;
	will-change: transform;
	line-height: 0;
}

.nwm-svg {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: auto;
}

/* ------------------------------------------------------------------ */
/* Zoom controls                                                        */
/* ------------------------------------------------------------------ */

.noblessa-map-zoom {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px;
	background: #fff;
	border-radius: 9999px;
	box-shadow: 0 4px 18px rgba(43, 38, 34, 0.12);
	line-height: 1;
}

.noblessa-map-zoom-divider {
	width: 20px;
	height: 1px;
	margin: 2px 0;
	background: rgba(163, 139, 93, 0.35);
	border: 0;
}

.noblessa-map button.noblessa-map-zoom-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	color: var(--noblessa-gold) !important;
	background: #fff !important;
	background-color: #fff !important;
	background-image: none !important;
	border: 1px solid rgba(163, 139, 93, 0.35) !important;
	border-radius: 50%;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	text-shadow: none !important;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.noblessa-map button.noblessa-map-zoom-btn svg,
.noblessa-map-overlay button.noblessa-map-zoom-btn svg {
	display: block;
	width: 18px;
	height: 18px;
	pointer-events: none;
}

.noblessa-map button.noblessa-map-zoom-btn:hover,
.noblessa-map button.noblessa-map-zoom-btn:focus-visible,
.noblessa-map-overlay button.noblessa-map-zoom-btn:hover,
.noblessa-map-overlay button.noblessa-map-zoom-btn:focus-visible {
	color: #fff !important;
	background: var(--noblessa-gold) !important;
	background-color: var(--noblessa-gold) !important;
	border-color: var(--noblessa-gold) !important;
}

.noblessa-map button.noblessa-map-zoom-btn:focus,
.noblessa-map-overlay button.noblessa-map-zoom-btn:focus {
	color: var(--noblessa-gold) !important;
	background: #fff !important;
	background-color: #fff !important;
	outline: none;
}

.noblessa-map button.noblessa-map-zoom-btn:focus-visible,
.noblessa-map-overlay button.noblessa-map-zoom-btn:focus-visible {
	outline: 2px solid var(--noblessa-gold);
	outline-offset: 2px;
}

.noblessa-map button.noblessa-map-zoom-btn:disabled,
.noblessa-map button.noblessa-map-zoom-btn:disabled:hover,
.noblessa-map-overlay button.noblessa-map-zoom-btn:disabled,
.noblessa-map-overlay button.noblessa-map-zoom-btn:disabled:hover {
	opacity: 0.4;
	pointer-events: none;
	color: var(--noblessa-gold) !important;
	background: #fff !important;
	background-color: #fff !important;
	cursor: default;
	transform: none;
}

.noblessa-map-overlay .noblessa-map-zoom,
.noblessa-map-overlay button.noblessa-map-zoom-btn {
	/* overlay is outside .noblessa-map; redeclare tokens */
	--noblessa-gold: #a38b5d;
	--noblessa-gold-dark: #8f784e;
	--noblessa-ink: #2b2622;
	--noblessa-cream: #f5f0e8;
	--noblessa-sand: #ddd5bf;
}

.noblessa-map-overlay {
	--noblessa-gold: #a38b5d;
	--noblessa-gold-dark: #8f784e;
	--noblessa-ink: #2b2622;
	--noblessa-cream: #f5f0e8;
	--noblessa-sand: #ddd5bf;
}

.noblessa-map-overlay .noblessa-map-zoom {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px;
	background: #fff;
	border-radius: 9999px;
	box-shadow: 0 4px 18px rgba(43, 38, 34, 0.12);
}

.noblessa-map-overlay button.noblessa-map-zoom-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	color: var(--noblessa-gold) !important;
	background: #fff !important;
	background-color: #fff !important;
	background-image: none !important;
	border: 1px solid rgba(163, 139, 93, 0.35) !important;
	border-radius: 50%;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ------------------------------------------------------------------ */
/* Markers / tooltips                                                   */
/* ------------------------------------------------------------------ */

.nwm-marker {
	outline: none;
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 160ms ease-out;
}

.nwm-marker:hover,
.nwm-marker:focus-visible,
.nwm-marker.is-active {
	transform: scale(1.18);
}

.nwm-halo-outer {
	transform-box: fill-box;
	transform-origin: center;
	animation: noblessa-map-pulse 2.8s ease-in-out infinite;
}

@keyframes noblessa-map-pulse {
	0%,
	100% {
		opacity: 0.35;
	}
	50% {
		opacity: 0.55;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nwm-halo-outer {
		animation: none;
	}
}

a.nwm-marker-link,
a.nwm-marker-link .nwm-marker {
	cursor: pointer;
}

.nwm-tooltip,
.noblessa-map-tooltip {
	position: absolute;
	top: 0;
	left: 0;
	transform: translate(-50%, calc(-100% - 12px));
	background: var(--noblessa-cream, #f5f0e8);
	border-radius: 6px;
	border-left: 3px solid var(--noblessa-gold, #a38b5d);
	padding: 8px 12px;
	box-shadow: 0 6px 20px rgba(43, 38, 34, 0.12);
	font-size: 13px;
	line-height: 1.35;
	color: var(--noblessa-ink, #2b2622);
	pointer-events: none;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 140ms ease-out;
	z-index: 10;
}

.nwm-tooltip::after,
.noblessa-map-tooltip::after {
	display: none;
}

.nwm-tooltip.is-visible,
.noblessa-map-tooltip.is-visible {
	opacity: 1;
	visibility: visible;
}

.nwm-tooltip-country {
	font-weight: 600;
}

.nwm-tooltip-note {
	font-size: 12px;
	font-weight: 400;
	color: #7a7264;
	margin-top: 2px;
}

/* ------------------------------------------------------------------ */
/* Overlay / dialog                                                     */
/* ------------------------------------------------------------------ */

body.noblessa-map-no-scroll {
	overflow: hidden;
	position: fixed;
	width: 100%;
	left: 0;
	right: 0;
}

.noblessa-map-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	line-height: 1.3;
	opacity: 0;
	transition: opacity 220ms ease;
}

.noblessa-map-overlay.is-open {
	opacity: 1;
}

.noblessa-map-overlay-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 12, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.noblessa-map-overlay-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1200px, 94vw);
	height: min(86vh, 800px);
	max-width: 100%;
	background: var(--noblessa-cream);
	padding: 28px 32px;
	box-sizing: border-box;
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transform: scale(0.98);
	transition: transform 220ms ease;
}

.noblessa-map-overlay.is-open .noblessa-map-overlay-dialog {
	transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.noblessa-map-overlay,
	.noblessa-map-overlay-dialog {
		transition: none;
	}

	.noblessa-map-overlay-dialog {
		transform: none;
	}
}

.noblessa-map-overlay-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px;
	flex-shrink: 0;
	line-height: 1.3;
}

.noblessa-map-overlay-title {
	margin: 0;
	padding: 0 0 10px;
	color: var(--noblessa-ink);
	font-family: inherit;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.25;
	border-bottom: 2px solid var(--noblessa-gold);
	display: inline-block;
}

.noblessa-map-overlay-title:empty {
	display: none;
}

.noblessa-map-overlay-panel {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	border: 1px solid rgba(163, 139, 93, 0.25);
	padding: 16px;
	overflow: hidden;
}

.noblessa-map-overlay .noblessa-map-viewport {
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	border-radius: 8px;
	background: #fff;
}

.noblessa-map-overlay .noblessa-map-canvas {
	width: 100%;
	max-height: 100%;
}

.noblessa-map-overlay .nwm-svg {
	width: 100%;
	height: auto;
	max-height: 100%;
}

@media (max-width: 768px) {
	.noblessa-map-actions {
		justify-content: stretch;
	}

	.noblessa-map button.noblessa-map-btn {
		width: 100%;
	}

	.noblessa-map-overlay {
		padding: 0;
		align-items: stretch;
	}

	.noblessa-map-overlay-dialog {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
		padding: calc(16px + env(safe-area-inset-top, 0px))
			calc(16px + env(safe-area-inset-right, 0px))
			calc(16px + env(safe-area-inset-bottom, 0px))
			calc(16px + env(safe-area-inset-left, 0px));
		box-shadow: none;
	}

	.noblessa-map-overlay-header {
		margin-bottom: 14px;
	}

	.noblessa-map-overlay-panel {
		padding: 12px;
		border-radius: 12px;
	}
}
