/* Image Hotspots Frontend Styles */

.image-hotspots-container {
	margin: 20px 0;
}

.image-hotspots-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 100%;
}

.image-hotspots-image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.hotspots-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* Hotspot Icons */
.hotspot-icon {
	position: absolute;
	transform: translate(-50%, -50%);
	cursor: pointer;
	pointer-events: auto;
	z-index: 10;
	transition: transform 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hotspot-icon:hover {
	transform: translate(-50%, -50%) scale(1.15);
	z-index: 20;
}

.hotspot-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.hotspot-default-icon {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	display: block;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transition: box-shadow 0.2s ease;
}

.hotspot-icon:hover .hotspot-default-icon {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Popup Styles */
.hotspot-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.95);
	opacity: 0;
	visibility: hidden;
	z-index: 1000;
	pointer-events: none;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hotspot-popup.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}

.hotspot-popup::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: -1;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.hotspot-popup.active::before {
	opacity: 1;
	visibility: visible;
}

.hotspot-popup-content {
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	padding: 28px;
	max-width: 400px;
	position: relative;
	z-index: 1;
	animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hotspot-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
	z-index: 2;
}

.hotspot-popup-close:hover {
	background: #f0f0f0;
	color: #333;
}

.hotspot-popup-title {
	margin: 0 0 12px 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
}

.hotspot-popup-description {
	margin: 0 0 16px 0;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

.hotspot-popup-link {
	display: inline-block;
	padding: 10px 20px;
	background: #0073aa;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease;
	cursor: pointer;
}

.hotspot-popup-link:hover {
	background: #005a87;
	text-decoration: none;
	color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
	.hotspot-popup-content {
		max-width: 90vw;
		padding: 20px;
	}

	.hotspot-popup-title {
		font-size: 18px;
	}

	.hotspot-popup-description {
		font-size: 13px;
	}

	.hotspot-icon {
		z-index: 15;
	}

	.hotspot-icon:hover {
		z-index: 20;
	}
}

/* Small screens */
@media (max-width: 480px) {
	.hotspot-popup-content {
		padding: 16px;
	}

	.hotspot-popup-title {
		font-size: 16px;
		margin-bottom: 10px;
	}

	.hotspot-popup-close {
		width: 28px;
		height: 28px;
		font-size: 20px;
		top: 10px;
		right: 10px;
	}

	.hotspot-popup-link {
		width: 100%;
		text-align: center;
		padding: 12px 16px;
		font-size: 13px;
	}
}

/* Print Styles */
@media print {
	.hotspots-layer,
	.hotspot-popup {
		display: none;
	}
}
