/* Integris facilities map (replaces Mapplic) */
.ilm {
	--ilm-text: #27272a;
	--ilm-muted: #71717a;
	--ilm-faint: #a1a1aa;
	--ilm-line: #e4e4e7;
	--ilm-line-soft: #f4f4f5;
	position: relative;
	display: flex;
	width: 100%;
	border-radius: 12px;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 26px;
	color: var(--ilm-text);
	text-align: left;
	-webkit-text-size-adjust: 100%;
}
.ilm *,
.ilm *::before,
.ilm *::after {
	box-sizing: border-box;
}
.ilm button {
	margin: 0;
	font: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	min-height: 0;
	min-width: 0;
	line-height: inherit;
}
.ilm h3,
.ilm h4 {
	margin: 0;
	padding: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ilm-text);
}

/* Layout */
.ilm-main {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}
.ilm-container {
	position: relative;
	height: 600px;
	overflow: hidden;
	border-radius: 12px;
	background: #fafafa;
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}
.ilm-container.is-dragging {
	cursor: grabbing;
}
.ilm-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 800px;
	height: 517px;
	transform-origin: 0 0;
	will-change: transform;
}
.ilm-layer svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.ilm .ilm-cc {
	fill: #e4e4e7;
	stroke: #a1a1aa;
	stroke-width: 0.5;
}
.ilm .ilm-cc.ilm-hl {
	fill: #bfd5ff;
	stroke: #025aff;
	stroke-width: 0.7;
}
.ilm-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.ilm-overlay > * {
	pointer-events: auto;
}

/* Pins */
.ilm .ilm-marker,
.ilm .ilm-cluster {
	position: absolute;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s;
	font-family: Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 20px;
	color: #fff;
}
.ilm .ilm-marker {
	transform: scale(var(--ilm-scale, 0.5));
}
.ilm .ilm-marker.is-highlight {
	transform: scale(calc(var(--ilm-scale, 0.5) + 0.1));
}
.ilm-pulse {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 60px;
	height: 60px;
	margin: -20px 0 0 -20px;
	border-radius: 45px;
	pointer-events: none;
	animation: ilm-pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes ilm-pulse-ring {
	0% {
		transform: scale(0.33);
	}
	50%,
	100% {
		opacity: 0;
	}
}
.ilm .ilm-cluster span {
	position: absolute;
	inset: 0;
	display: block;
	width: 20px;
	height: 20px;
	text-align: center;
}

/* Hover tooltip and popup */
.ilm-tip,
.ilm-popup {
	position: absolute;
	z-index: 5;
	display: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
	transform: translate(-50%, -100%);
}
.ilm-tip.is-visible,
.ilm-popup.is-visible {
	display: flex;
}
.ilm-tip::after,
.ilm-popup::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 0;
	height: 0;
	margin-left: -6px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #fff;
}
.ilm-tip {
	pointer-events: none;
	max-height: 240px;
}
.ilm-tip-content,
.ilm-popup-content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px;
	min-height: 0;
	border-radius: 12px;
	outline: none;
}
.ilm .ilm-tip h4 {
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	white-space: nowrap;
}
.ilm-popup {
	width: max-content;
	cursor: auto;
}
.ilm-popup-content {
	width: 100%;
}
.ilm .ilm-popup-title h4 {
	padding-right: 24px;
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	outline: none;
}
.ilm .ilm-popup-close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 4px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--ilm-muted);
	cursor: pointer;
	transition: opacity 0.2s;
}
.ilm .ilm-popup-close:hover {
	background: transparent;
	color: var(--ilm-text);
}
.ilm-popup-body {
	min-height: 0;
	overflow-y: auto;
	font-size: 13px;
	line-height: 18.2px;
	color: var(--ilm-muted);
	overscroll-behavior: contain;
}
.ilm-popup-body b,
.ilm-popup-body strong {
	font-weight: 700;
	color: inherit;
}
.ilm-popup-body p {
	margin: 0 0 13px;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}
.ilm .ilm-popup-body ul,
.ilm .ilm-popup-body ol {
	margin: 0 0 8px;
	padding: 0 0 0 18px;
}
.ilm .ilm-popup-body ul {
	list-style: disc;
}
.ilm .ilm-popup-body li {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	list-style: inherit;
}
.ilm .ilm-popup-body li::before,
.ilm .ilm-popup-body li::after {
	content: none;
	display: none;
}

/* Zoom controls */
.ilm-controls {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-height: 40%;
}
.ilm-btn-group {
	display: flex;
	flex-direction: column;
}
.ilm .ilm-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 7px;
	border: 1px solid var(--ilm-line);
	border-radius: 6px;
	background: #fff;
	color: #18181b;
	cursor: pointer;
	transition: box-shadow 0.2s;
}
.ilm .ilm-btn:hover {
	background: #fff;
	color: #18181b;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.ilm .ilm-btn:disabled {
	cursor: default;
	box-shadow: none;
}
.ilm .ilm-btn:disabled svg {
	opacity: 0.3;
}
.ilm .ilm-zoom-in {
	border-radius: 6px 6px 0 0;
}
.ilm .ilm-zoom-out {
	margin-top: -1px;
	border-radius: 0 0 6px 6px;
}
.ilm .ilm-btn svg {
	display: block;
	width: 16px;
	height: 16px;
}

/* Sidebar */
.ilm-sidebar {
	display: flex;
	flex: 0 0 400px;
	width: 400px;
	height: 600px;
	padding: 0 0 0 8px;
}
.ilm-dir {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	margin: 8px 0;
	padding: 0 4px;
	overflow-y: auto;
}
.ilm-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ilm-group-title {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 8px;
	background: #fff;
	font-weight: 600;
	color: #d4d4d8;
}
.ilm-chip {
	display: flex;
	align-items: center;
	margin: -4px 0;
	padding: 3px 4px;
	border: 1px solid var(--ilm-line);
	border-radius: 16px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 12px;
	color: var(--ilm-chip, #025aff);
}
.ilm-chip span {
	display: block;
	padding: 0 4px;
	line-height: 20px;
}
.ilm-group-info {
	margin-left: auto;
}
/* The previous map's count sat past the list's visible edge, so it never showed.
   It stays invisible but keeps its space, which sets the heading row height. */
.ilm-group-count {
	display: block;
	visibility: hidden;
	font-size: 11px;
	font-weight: 400;
	color: var(--ilm-faint);
}
.ilm .ilm-items {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ilm .ilm-items li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ilm .ilm-items li::before {
	content: none;
}
.ilm .ilm-dir-item {
	display: flex;
	gap: 8px;
	width: 100%;
	padding: 6px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.ilm .ilm-dir-item:focus {
	outline: none;
	background: transparent;
	color: inherit;
}
.ilm .ilm-dir-item.is-active {
	border-color: var(--ilm-line);
	background: transparent;
}
.ilm .ilm-dir-item:hover,
.ilm .ilm-dir-item:focus-visible,
.ilm .ilm-dir-item.is-highlight {
	border-color: var(--ilm-line-soft);
	background: #fff;
	color: inherit;
	box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.02);
	outline: none;
}
.ilm-item-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 4px 8px;
	overflow: hidden;
}
.ilm .ilm-item-body h3 {
	font-size: 16px;
	font-weight: 600;
	line-height: 26px;
}
.ilm-divider {
	margin: 0 8px;
	border-bottom: 1px solid var(--ilm-line-soft);
}

/* Narrow: sidebar below the map */
.ilm.ilm-stacked {
	flex-direction: column;
}
.ilm.ilm-stacked .ilm-sidebar {
	flex: 0 0 auto;
	width: 100%;
	height: auto;
	padding: 8px 0 0;
}
.ilm.ilm-stacked .ilm-dir {
	overflow: visible;
}
.ilm.ilm-stacked .ilm-items {
	gap: 0;
}
.ilm.ilm-stacked .ilm-item-body {
	padding: 0;
}
