:root {
	--icm-marker-color: #D8A965;
	--icm-popup-bg: #17296d;
	--icm-popup-accent: #D8A965;
	--icm-button-text: #17296d;
	--icm-list-hover-bg: #D8A965;
	--icm-list-hover-text: #17296d;
	--icm-sea-color: #bcd9e8;
	--icm-province-color: #eceded;
}

.icm-map-wrap {
	direction: rtl;
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
}

/* Visual order: map on the left, lists on the right (independent of DOM order) */
.icm-map-col { order: 2; }
.icm-lists-col { order: 1; }

/* ---------------- Map column ---------------- */
.icm-map-col {
	flex: 1 1 50%;
	min-width: 280px;
}
.icm-map-inner {
	position: relative;
	width: 100%;
}
#icm-map-svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Base map styling (overrides the inline presentation attributes) */
#icm-map-svg #provinces path {
	fill: var(--icm-province-color);
	stroke: #ffffff;
	stroke-width: 1.2;
}
#icm-map-svg #islands polygon {
	fill: var(--icm-province-color);
	stroke: #ffffff;
	stroke-width: 0.6;
}
#icm-map-svg #seas path {
	fill: var(--icm-sea-color);
	stroke: var(--icm-sea-color);
}

/* Marker dot */
.icm-marker {
	position: absolute;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background: var(--icm-marker-color);
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.35);
	padding: 0;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
	z-index: 5;
}
.icm-marker:hover,
.icm-marker:focus,
.icm-marker.icm-highlight {
	transform: scale(1.6);
	z-index: 6;
	box-shadow: 0 0 0 5px rgba(216,169,101,0.35), 0 1px 3px rgba(0,0,0,0.35);
}

/* Popup card */
.icm-popup {
	position: absolute;
	z-index: 20;
	min-width: 220px;
	max-width: 280px;
	background: var(--icm-popup-bg);
	color: #f1f1f1;
	border: 1px solid var(--icm-popup-accent);
	border-radius: 8px;
	padding: 14px 14px 16px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.35);
	font-size: 13px;
	line-height: 1.7;
}
.icm-popup[hidden] { display: none; }

.icm-popup-close {
	position: absolute;
	top: 6px;
	left: 8px;
	background: none;
	border: none;
	color: #cfcfcf;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.icm-popup-close:hover { color: #fff; }

.icm-popup-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	padding-left: 18px;
}
.icm-popup-logo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	flex-shrink: 0;
}
.icm-popup-title {
	color: var(--icm-popup-accent);
	font-weight: 700;
	font-size: 14.5px;
}

.icm-popup-row { margin-bottom: 2px; }
.icm-popup-row.icm-empty { display: none; }
.icm-popup-label,
.icm-label { color: #b7b7b7; }
.icm-value { color: #f1f1f1; }

.icm-popup-btn {
	display: block;
	text-align: center;
	margin-top: 10px;
	background: var(--icm-popup-accent);
	color: var(--icm-button-text) !important;
	font-weight: 700;
	text-decoration: none;
	border-radius: 5px;
	padding: 7px 10px;
}
.icm-popup-btn:hover { opacity: 0.9; }
.icm-popup-btn[hidden] { display: none; }

/* ---------------- Lists column ---------------- */
.icm-lists-col {
	flex: 1 1 45%;
	min-width: 260px;
	display: flex;
	gap: 24px;
}
.icm-company-list {
	flex: 1 1 0;
}
.icm-company-list h3 {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
}
.icm-company-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.icm-company-list li {
	margin-bottom: 10px;
}
.icm-list-item {
	display: inline-block;
	position: relative;
	padding-right: 16px;
	color: #333333;
	text-decoration: none;
	font-size: 14px;
	border-radius: 4px;
	transition: background .15s ease, color .15s ease;
}
.icm-list-item::before {
	content: "";
	position: absolute;
	right: 0;
	top: 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--icm-marker-color);
}
.icm-list-item:hover,
.icm-list-item.icm-list-hover {
	background: var(--icm-list-hover-bg);
	color: var(--icm-list-hover-text);
	padding: 3px 8px 3px 8px;
	padding-right: 20px;
}
.icm-list-item.icm-no-link {
	cursor: default;
}

@media (max-width: 480px) {
	.icm-popup { max-width: 220px; font-size: 12px; }
}

@media (max-width: 780px) {
	.icm-map-wrap { flex-direction: column; }
	.icm-map-col, .icm-lists-col { flex-basis: 100%; width: 100%; }
}
