/**
 * Premium Vector Maps - Frontend Stylesheet
 */

.pvm-map-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
	border: 1px solid #e2e8f0;
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	margin: 20px 0;
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pvm-map-container {
	width: 100%;
	position: relative;
	display: block;
}

.pvm-map-container svg {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 940 / 530 !important;
	display: block !important;
	transition: transform 0.1s ease-out; /* Smooth transition for dragging/zooming */
	will-change: transform;
}

/* Countries */
.pvm-map-container svg [cc] {
	transition: fill 0.25s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
}

.pvm-map-container svg [cc].pvm-clickable {
	cursor: pointer;
}

.pvm-map-container svg [cc].pvm-interactive:hover {
	opacity: 0.9;
}

/* Markers styling */
.pvm-map-container svg .pvm-map-pin {
	cursor: pointer;
}

.pvm-map-container svg .pvm-map-pin path {
	transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.25s ease;
	transform-origin: 12px 9px;
	transform-box: fill-box;
	will-change: transform;
}

.pvm-map-container svg .pvm-map-pin:hover path {
	transform: scale(1.25);
}

.pvm-map-container svg .pvm-map-pin ellipse {
	transition: transform 0.25s ease, opacity 0.25s ease;
	transform-origin: 12px 22px;
	transform-box: fill-box;
	will-change: transform;
}

.pvm-map-container svg .pvm-map-pin:hover ellipse {
	transform: scale(0.8);
	opacity: 0.6;
}

/* Zoom Overlay Controls */
.pvm-zoom-controls {
	position: absolute;
	top: 15px;
	right: 15px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 100;
}

.pvm-zoom-btn {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid #cbd5e1;
	box-shadow: 0 2px 4px rgba(0,0,0,0.06);
	width: 34px;
	height: 34px;
	border-radius: 6px;
	font-weight: bold;
	font-size: 18px;
	color: #0f172a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	padding: 0;
	margin: 0;
	line-height: 1;
}

.pvm-zoom-btn:hover {
	background: #ffffff;
	border-color: #94a3b8;
	color: #0284c7;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.pvm-zoom-btn:active {
	transform: translateY(0);
	background: #f1f5f9;
}

/* Floating Rich HTML Tooltip */
/* Floating Rich HTML Tooltip (Frosted Glassmorphism Theme) */
.pvm-tooltip {
	position: absolute;
	background: rgba(15, 23, 42, 0.85); /* Slate 900 base with opacity */
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #f8fafc;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	pointer-events: none;
	z-index: 999999;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
	max-width: 280px;
	box-sizing: border-box;
	
	/* Smooth Transition effects */
	opacity: 0;
	transform: translate(-50%, -100%) scale(0.95);
	margin-top: -15px;
	transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.pvm-tooltip.active {
	opacity: 1;
	transform: translate(-50%, -100%) scale(1);
}

/* Tooltip Interior Styles (HTML Support) */
.pvm-tooltip h3,
.pvm-tooltip h4,
.pvm-tooltip p {
	color: inherit !important;
	font-family: 'Outfit', sans-serif !important;
}

.pvm-tooltip h3,
.pvm-tooltip h4 {
	margin: 0 0 8px 0;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
	padding-bottom: 6px;
	letter-spacing: 0.02em;
}

.pvm-tooltip p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	opacity: 0.9;
}

/* Tooltip Image Styling */
.pvm-tooltip-image-wrap {
	width: 100%;
	margin-bottom: 10px;
	border-radius: 4px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.pvm-tooltip-img {
	max-width: 100%;
	height: auto;
	max-height: 120px;
	object-fit: contain;
	display: block;
}

.pvm-error {
	background: #fef2f2;
	color: #ef4444;
	border: 1px solid #fee2e2;
	border-radius: 6px;
	padding: 12px;
	text-align: center;
	font-size: 13px;
	width: 100%;
}
