/**
 * AT Elementor Elements — Creative Hotspots CSS
 *
 * @package AT_Elementor_Elements
 * @version 3.0.0
 */

.at-hotspots {
	--at-hotspot-accent: var(--at-color-primary, #2563eb);
	--at-hotspot-dot-size: 16px;
	--at-hotspot-pin-size: 38px;
	position: relative;
	overflow: hidden;
	background: #0f172a;
	border-radius: var(--at-radius, 24px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
}

.at-hotspots__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.at-hotspots__pin {
	position: absolute;
	transform: translate(-50%, -50%);
	width: var(--at-hotspot-pin-size, 38px);
	height: var(--at-hotspot-pin-size, 38px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
	z-index: 5;
	outline: none;
	display: grid;
	place-items: center;
}

.at-hotspots__pin:focus-visible {
	outline: 2px solid var(--at-hotspot-accent);
	outline-offset: 4px;
}

.at-hotspots__dot {
	display: block;
	width: var(--at-hotspot-dot-size, 16px);
	height: var(--at-hotspot-dot-size, 16px);
	border-radius: 50%;
	background: var(--at-hotspot-accent);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.at-hotspots__pin:hover .at-hotspots__dot,
.at-hotspots__pin.is-active .at-hotspots__dot {
	transform: scale(1.25);
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.5);
}

.at-hotspots__pulse {
	position: absolute;
	inset: 2px;
	border: 2px solid var(--at-hotspot-accent);
	border-radius: 50%;
	animation: at-hotspot-pulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
	pointer-events: none;
}

/* Popover Card */
.at-hotspots__popover {
	position: absolute;
	left: 28px;
	bottom: 28px;
	width: 260px;
	padding: 18px 20px;
	text-align: left;
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
	color: #ffffff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px) scale(0.95);
	transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
	pointer-events: none;
	z-index: 10;
}

/* Light Popover */
.at-hotspots--popover-light .at-hotspots__popover {
	background: rgba(255, 255, 255, 0.96);
	border-color: rgba(15, 23, 42, 0.1);
	box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.2);
	color: #0f172a;
}
.at-hotspots--popover-light .at-hotspots__popover strong {
	color: #0f172a;
}
.at-hotspots--popover-light .at-hotspots__popover span {
	color: #475569;
}

.at-hotspots__popover strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.at-hotspots__popover span {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
}

.at-hotspots__pin.is-active .at-hotspots__popover {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

@keyframes at-hotspot-pulse {
	0% {
		transform: scale(0.9);
		opacity: 0.85;
	}
	50% {
		transform: scale(1.6);
		opacity: 0;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

@media (max-width: 767px) {
	.at-hotspots__popover {
		left: 16px;
		bottom: 16px;
		width: 220px;
		padding: 14px 16px;
	}
	.at-hotspots__pin {
		--at-hotspot-pin-size: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.at-hotspots__pulse {
		animation: none;
	}
}
