/* Image Hotspots Frontend Styles - Modern Design */

:root {
	--primary-color: #2563eb;
	--primary-dark: #1e40af;
	--text-dark: #1f2937;
	--text-light: #6b7280;
	--border-color: #e5e7eb;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.image-hotspots-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.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 - Modern Style */
.hotspot-icon {
	position: absolute;
	transform: translate(-50%, -50%);
	cursor: pointer;
	pointer-events: auto;
	z-index: 10;
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hotspot-icon:hover {
	transform: translate(-50%, -50%) scale(1.2);
	z-index: 20;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.hotspot-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.hotspot-default-icon {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	display: block;
	box-shadow:
		0 0 0 3px rgba(255, 255, 255, 0.9),
		0 2px 8px rgba(0, 0, 0, 0.2);
	transition: var(--transition);
	position: relative;
}

.hotspot-icon:hover .hotspot-default-icon {
	box-shadow:
		0 0 0 3px rgba(255, 255, 255, 0.9),
		0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Tooltip Styles (Desktop Hover) */
.hotspot-tooltip {
	position: fixed;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	transform: translateY(-8px);
	pointer-events: none;
}

.hotspot-tooltip.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.hotspot-tooltip-content {
	background: var(--hotspot-popup-bg-color, white);
	border-radius: 8px;
	padding: 12px 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border: 1px solid var(--border-color);
	max-width: 280px;
	white-space: normal;
}

.hotspot-tooltip-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--hotspot-title-color, var(--text-dark));
	line-height: 1.3;
}

.hotspot-tooltip-description {
	margin: 6px 0 0 0;
	font-size: 13px;
	color: var(--hotspot-description-color, var(--text-light));
	line-height: 1.5;
}

.hotspot-tooltip-link {
	display: inline-block;
	margin-top: 10px;
	padding: 6px 12px;
	background: var(--hotspot-button-color, #2563eb);
	color: var(--hotspot-button-text-color, white);
	text-decoration: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	transition: var(--transition);
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.hotspot-tooltip-link:hover {
	background: var(--hotspot-button-hover-color, #1e40af);
	color: var(--hotspot-button-text-color, white);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.hotspot-tooltip-arrow {
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid var(--hotspot-popup-bg-color, white);
}

/* Popup Overlay */
.hotspot-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
}

.hotspot-popup.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.hotspot-popup::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(2px);
	z-index: -1;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
}

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

/* Popup Content */
.hotspot-popup-content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.92) translateY(10px);
	opacity: 0;
	visibility: hidden;
	z-index: 1001;
	pointer-events: auto;
	transition: var(--transition);
	max-width: 480px;
	width: 90vw;
	background: var(--hotspot-popup-bg-color, white);
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
	padding: 32px;
	border: 1px solid var(--border-color);
}

.hotspot-popup.active .hotspot-popup-content {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1) translateY(0);
}

/* Close Button */
.hotspot-popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: #f3f4f6;
	border: 1px solid var(--border-color);
	font-size: 20px;
	color: var(--text-light);
	cursor: pointer;
	padding: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: var(--transition);
	z-index: 2;
	font-weight: 300;
}

.hotspot-popup-close:hover {
	background: #e5e7eb;
	color: var(--text-dark);
	border-color: #d1d5db;
}

.hotspot-popup-close:active {
	transform: scale(0.95);
}

/* Popup Title */
.hotspot-popup-title {
	margin: 0 0 16px 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--hotspot-title-color, var(--text-dark));
	line-height: 1.4;
}

/* Popup Description */
.hotspot-popup-description {
	margin: 0 0 20px 0;
	font-size: 15px;
	color: var(--hotspot-description-color, var(--text-light));
	line-height: 1.7;
}

/* Popup Link Button */
.hotspot-popup-link {
	display: inline-block;
	padding: var(--hotspot-button-padding, 11px) calc(var(--hotspot-button-padding, 11px) * 2);
	background: var(--hotspot-button-color, #2563eb);
	color: var(--hotspot-button-text-color, white);
	text-decoration: none;
	border-radius: var(--hotspot-button-border-radius, 8px);
	font-size: var(--hotspot-button-font-size, 14px);
	font-weight: 600;
	letter-spacing: 0.3px;
	transition: var(--transition);
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.hotspot-popup-link:hover {
	background: var(--hotspot-button-hover-color, #1e40af);
	text-decoration: none;
	color: var(--hotspot-button-text-color, white);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.hotspot-popup-link:active {
	transform: translateY(0);
}

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

	.hotspot-popup-title {
		font-size: 20px;
		margin-bottom: 14px;
	}

	.hotspot-popup-description {
		font-size: 14px;
		margin-bottom: 18px;
	}

	.hotspot-popup-close {
		width: 34px;
		height: 34px;
		top: 14px;
		right: 14px;
		font-size: 18px;
	}

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

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

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

	.hotspot-popup-description {
		font-size: 13px;
		margin-bottom: 16px;
		line-height: 1.6;
	}

	.hotspot-popup-close {
		width: 32px;
		height: 32px;
		font-size: 18px;
		top: 12px;
		right: 12px;
	}

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

	.hotspot-icon:hover {
		transform: translate(-50%, -50%) scale(1.12);
	}
}

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