.ed-map-wrapper {
	position: relative;
	margin: 0 auto;
}
.ed-map-wrapper * { box-sizing: border-box; }

.ed-layout-right {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}
.ed-layout-right .ed-map-image-container { flex: 1; min-width: 0; }
.ed-layout-right .ed-map-info { width: 320px; flex-shrink: 0; }

.ed-layout-below { display: block; }
.ed-layout-below .ed-map-info { margin-top: 16px; }

/* Tylko mapa: bez panelu z listą / bez sidebara — klik w hotspot pokazuje tooltip z treścią */
.ed-layout-map_only .ed-map-info {
	display: none !important;
}

.ed-map-image-container {
	position: relative;
	line-height: 0;
}
.ed-map-image { width: 100%; height: auto; display: block; }
.ed-map-overlay {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
}

.ed-hotspot {
	cursor: pointer;
	transition: fill-opacity .25s ease, stroke-width .25s ease;
	outline: none;
}
.ed-hotspot:hover, .ed-hotspot:focus {
	fill-opacity: 0.5 !important;
	stroke-width: 3px !important;
}
.ed-hotspot:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
.ed-hotspot-active {
	fill-opacity: 0.6 !important;
	stroke-width: 3px !important;
}
.ed-hotspot-visible { fill-opacity: 0.3; }

.ed-map-info {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	transition: all .3s ease;
	max-height: 600px;
	overflow-y: auto;
}
.ed-map-info-default { color: #666; font-style: italic; padding: 4px; }

.ed-map-info-list { display: flex; flex-direction: column; gap: 0; }

.ed-info-item {
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
	margin-bottom: 8px;
}
.ed-info-item:last-child { margin-bottom: 0; }
.ed-info-item-active {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.ed-info-item-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	cursor: pointer;
	user-select: none;
	transition: background .15s ease;
}
.ed-info-item-header:hover { background: #f8f9fa; }
.ed-info-item-active .ed-info-item-header { background: #f0f6fc; }

.ed-info-item-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}
.ed-info-item-title {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: #1d2327;
}
.ed-info-item-arrow {
	font-size: 12px;
	color: #999;
	transition: transform .2s ease;
}
.ed-info-item-active .ed-info-item-arrow {
	transform: rotate(180deg);
}

.ed-info-item-body {
	padding: 0 14px 14px;
	border-top: 1px solid #eee;
}

.ed-hotspot-title {
	margin: 12px 0 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: #1d2327;
}
.ed-hotspot-body { font-size: 14px; line-height: 1.6; color: #50575e; }
.ed-hotspot-body p { margin: 0 0 8px; }
.ed-hotspot-body ul, .ed-hotspot-body ol { margin: 0 0 8px; padding-left: 20px; }

.ed-lightbox {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .3s ease;
}
.ed-lightbox-open { opacity: 1; }
.ed-lightbox-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,.7);
}
.ed-lightbox-content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 32px;
	max-width: 640px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	z-index: 1;
	transform: scale(.9);
	transition: transform .3s ease;
}
.ed-lightbox-open .ed-lightbox-content { transform: scale(1); }
.ed-lightbox-close {
	position: absolute;
	top: 12px; right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #666;
	width: 36px; height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background .2s;
}
.ed-lightbox-close:hover { background: #f0f0f0; }

.ed-tooltip {
	position: absolute;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 16px;
	max-width: 320px;
	box-shadow: 0 4px 20px rgba(0,0,0,.15);
	z-index: 100;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}
.ed-tooltip-visible { opacity: 1; pointer-events: auto; }

.ed-touch-instruction {
	position: absolute;
	bottom: 16px; left: 50%;
	transform: translateX(-50%);
	background: rgba(0,0,0,.7);
	color: #fff;
	padding: 8px 20px;
	border-radius: 20px;
	font-size: 13px;
	z-index: 10;
	animation: ed-pulse 2s infinite;
}

@keyframes ed-pulse {
	0%,100% { opacity: .8; }
	50% { opacity: 1; }
}
@keyframes ed-fade-in {
	from { opacity: 0; } to { opacity: 1; }
}
@keyframes ed-scale-in {
	from { transform: scale(.8); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.ed-pro-notice {
	text-align: center;
	padding: 16px;
	background: #fcf0f1;
	border: 1px solid #d63638;
	border-radius: 6px;
	color: #d63638;
	font-size: 14px;
}

@media (max-width: 768px) {
	.ed-layout-right { flex-direction: column; }
	.ed-layout-right .ed-map-info { width: 100%; }
	.ed-lightbox-content { width: 95%; padding: 20px; }
	.ed-tooltip { max-width: 260px; }
}
