/* =============================================
   Elemance Widget — Hotspot Image
   ============================================= */

.elemance-hotspot__wrap {
	position: relative;
	display: inline-block;
	width: 100%;
	overflow: visible;
	border-radius: 16px;
}

.elemance-hotspot__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: inherit;
}

/* Pin container */
.elemance-hotspot__pin {
	position: absolute;
	transform: translate(-50%, -50%);
	cursor: pointer;
	z-index: 10;
}

/* Pulsing dot */
.elemance-hotspot__dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #6c63ff;
	position: relative;
	z-index: 2;
	transition: transform 0.2s ease;
}

.elemance-hotspot__dot::before {
	content: '';
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	background: inherit;
	opacity: 0.3;
	animation: elmc-hotspot-pulse 2s infinite;
}

@keyframes elmc-hotspot-pulse {
	0%, 100% { transform: scale(1);   opacity: 0.3; }
	50%       { transform: scale(1.5); opacity: 0; }
}

.elemance-hotspot__pin:hover .elemance-hotspot__dot {
	transform: scale(1.2);
}

.elemance-hotspot__dot--no-pulse::before {
	display: none;
}

/* Tooltip */
.elemance-hotspot__tooltip {
	position: absolute;
	background: #1a1a2e;
	color: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	min-width: 160px;
	max-width: min(240px, 80vw);
	font-size: 13px;
	line-height: 1.5;
	white-space: normal;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 20;
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.elemance-hotspot__tooltip strong {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
}

.elemance-hotspot__tooltip p {
	margin: 0;
	opacity: 0.8;
}

/* Arrow on tooltip */
.elemance-hotspot__tooltip::after {
	content: '';
	position: absolute;
	border: 6px solid transparent;
}

/* Tooltip directions */
.elemance-hotspot__pin--top .elemance-hotspot__tooltip {
	bottom: calc(100% + 16px);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
}
.elemance-hotspot__pin--top .elemance-hotspot__tooltip::after {
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-top-color: #1a1a2e;
}

.elemance-hotspot__pin--bottom .elemance-hotspot__tooltip {
	top: calc(100% + 16px);
	left: 50%;
	transform: translateX(-50%) translateY(-6px);
}
.elemance-hotspot__pin--bottom .elemance-hotspot__tooltip::after {
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-bottom-color: #1a1a2e;
}

.elemance-hotspot__pin--left .elemance-hotspot__tooltip {
	right: calc(100% + 16px);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
}
.elemance-hotspot__pin--left .elemance-hotspot__tooltip::after {
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	border-left-color: #1a1a2e;
}

.elemance-hotspot__pin--right .elemance-hotspot__tooltip {
	left: calc(100% + 16px);
	top: 50%;
	transform: translateY(-50%) translateX(-6px);
}
.elemance-hotspot__pin--right .elemance-hotspot__tooltip::after {
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	border-right-color: #1a1a2e;
}

/* Active/hover state */
.elemance-hotspot__pin:hover .elemance-hotspot__tooltip,
.elemance-hotspot__pin.elmc-active .elemance-hotspot__tooltip {
	opacity: 1;
}

/* ── Pin Styles ───────────────────────────────── */

/* Number Badge */
.elemance-hotspot__dot--number {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.elemance-hotspot__dot--number::before { display: none; }

/* Plus Sign */
.elemance-hotspot__dot--plus {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.elemance-hotspot__dot--plus::before { display: none; }

.elemance-hotspot__pin--top:hover .elemance-hotspot__tooltip,
.elemance-hotspot__pin--top.elmc-active .elemance-hotspot__tooltip {
	transform: translateX(-50%) translateY(0);
}

.elemance-hotspot__pin--bottom:hover .elemance-hotspot__tooltip,
.elemance-hotspot__pin--bottom.elmc-active .elemance-hotspot__tooltip {
	transform: translateX(-50%) translateY(0);
}

.elemance-hotspot__pin--left:hover .elemance-hotspot__tooltip,
.elemance-hotspot__pin--left.elmc-active .elemance-hotspot__tooltip {
	transform: translateY(-50%) translateX(0);
}

.elemance-hotspot__pin--right:hover .elemance-hotspot__tooltip,
.elemance-hotspot__pin--right.elmc-active .elemance-hotspot__tooltip {
	transform: translateY(-50%) translateX(0);
}
