/* Layout mapy i listy */
.gsea-investment-wrapper {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 30px;
	align-items: flex-start;
}

.gsea-investment-layout-row .gsea-investment-wrapper {
	flex-direction: row;
}

.gsea-investment-layout-row-reverse .gsea-investment-wrapper {
	flex-direction: row-reverse;
}

.gsea-investment-layout-column .gsea-investment-wrapper {
	flex-direction: column;
}

.gsea-investment-map-container {
	width: 100%;
	height: 500px; /* Default fallback */
	position: relative;
	z-index: 1; /* Keep leaflet controls below elementor popups if any */
}

/* Map Width in Row layouts */
.gsea-investment-layout-row .gsea-investment-map-container,
.gsea-investment-layout-row-reverse .gsea-investment-map-container {
	width: var(--map-width, 70%);
}

.gsea-investment-layout-row .gsea-investment-list,
.gsea-investment-layout-row-reverse .gsea-investment-list {
	width: calc(100% - var(--map-width, 70%) - var(--layout-gap, 30px));
}

.gsea-investment-layout-column .gsea-investment-map-container,
.gsea-investment-layout-column .gsea-investment-list {
	width: 100%;
}

/* Lista Inwestycji */
.gsea-investment-list {
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.gsea-investment-list-item + .gsea-investment-list-item {
	margin-top: var(--list-gap, 15px);
}

.gsea-investment-list-item {
	padding: 15px;
	background-color: #f9f9f9;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 1px solid transparent;
	display: flex;
	align-items: flex-start;
	gap: 15px; /* Domyślny odstęp, nadpisywany przez Elementora */
}

.gsea-investment-list-item-icon {
	flex-shrink: 0;
	width: 30px; /* Domyślny rozmiar, nadpisywany przez Elementora */
	display: flex;
	justify-content: center;
	align-items: center;
}

.gsea-investment-list-item-icon img {
	max-width: 100%;
	height: auto;
	display: block;
}

.gsea-investment-list-item-content {
	flex-grow: 1;
}

.gsea-investment-list-item:hover,
.gsea-investment-list-item.active {
	background-color: #f1f1f1;
	box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gsea-investment-list-item-title {
	margin: 0 0 5px 0;
	font-size: 1.1em;
	font-weight: bold;
}

.gsea-investment-list-item-desc {
	margin: 0;
	font-size: 0.9em;
	color: #666;
}

/* Tooltip (Dymek na mapie) */
.leaflet-tooltip.gsea-map-tooltip {
	background-color: #fff;
	border: 1px solid #fff;
	box-shadow: 0 3px 14px rgba(0,0,0,0.2);
	color: #333;
	font-weight: bold;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 14px;
	white-space: nowrap;
}

.leaflet-tooltip.gsea-map-tooltip::before,
.leaflet-tooltip.gsea-map-tooltip::after {
	display: none !important;
}

/* Custom Marker Hover effect */
.gsea-custom-marker {
	transition: transform 0.2s ease;
}
.gsea-custom-marker.active-marker {
	transform: scale(1.1) !important;
	z-index: 1000 !important;
}

/* Niestandardowa ikona graficzna w divIcon */
.gsea-custom-marker-wrapper {
	pointer-events: none;
}
.gsea-custom-marker-wrapper img {
	pointer-events: auto;
	transform: translate(-50%, -100%);
	transform-origin: bottom center;
	transition: transform 0.2s ease;
	display: block;
}

/* Full Height (100% sekcji) */
.gsea-investment-full-height-yes,
.gsea-investment-full-height-yes .elementor-widget-container {
	height: 100%;
}

.gsea-investment-full-height-yes .gsea-investment-wrapper {
	height: 100%;
	align-items: stretch;
}

.gsea-investment-full-height-yes .gsea-investment-map-container {
	height: 100% !important;
}

.gsea-investment-full-height-yes .gsea-investment-list {
	max-height: 100% !important;
	height: 100%;
}

/* Responsiveness */
@media (max-width: 767px) {
	.gsea-investment-layout-row .gsea-investment-wrapper,
	.gsea-investment-layout-row-reverse .gsea-investment-wrapper {
		flex-direction: column;
	}
	
	.gsea-investment-layout-row .gsea-investment-map-container,
	.gsea-investment-layout-row-reverse .gsea-investment-map-container,
	.gsea-investment-layout-row .gsea-investment-list,
	.gsea-investment-layout-row-reverse .gsea-investment-list {
		width: 100%;
	}
}
