.mnm {
	--mnm-fill-hover: .45;
	--mnm-fill-mobile: .3;
	--mnm-floor: #b08a62;
	--mnm-stroke: 0;
	position: relative;
}
.mnm-stage {
	position: relative;
	line-height: 0;
}
.mnm-stage .mnm-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}
.mnm-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.mnm-area polygon {
	fill: var(--c);
	fill-opacity: 0;
	stroke: var(--c);
	stroke-opacity: 0;
	stroke-width: var(--mnm-stroke);
	vector-effect: non-scaling-stroke;
	transition: fill-opacity .2s, stroke-opacity .2s;
	cursor: pointer;
}
.mnm-area:hover polygon,
.mnm-area:focus polygon,
.mnm-area.is-hl polygon {
	fill-opacity: var(--mnm-fill-hover);
	stroke-opacity: 1;
}
.mnm-area:focus { outline: none; }
g.mnm-area polygon { cursor: default; }

/* Labele (na mobilnom stalno vidljive) */
.mnm-label {
	position: absolute;
	z-index: 2;
	transform: translate(-50%, -50%);
	display: none;
	align-items: center;
	gap: 4px;
	padding: 3px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: #222;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.mnm-label:hover { color: inherit; text-decoration: none; }
.mnm-dot {
	flex: none;
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c);
}

/* Tooltip (desktop) */
.mnm-tip {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	min-width: 150px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fff;
	color: #222;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	transform: translate(-50%, calc(-100% - 14px));
	width: max-content;
	max-width: 280px;
}
.mnm-tip.is-below { transform: translate(-50%, 18px); }
.mnm-tip[hidden] { display: none; }
.mnm-tip strong { display: block; font-weight: 700; }
.mnm-tip .mnm-tip-sub {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: #555;
}
.mnm-tip .mnm-tip-st {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--c);
}

/* Lista stanova */
.mnm-list {
	display: none;
	grid-template-columns: 1fr;
	gap: 6px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.mnm-list li { margin: 0; padding: 0; }
.mnm-list a,
.mnm-list .mnm-list-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #f5f5f5;
	color: #222;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.3;
}
.mnm-list-sub {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	opacity: .75;
}
.mnm-list li.is-hl a { background: #ebebeb; }
.mnm-list-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--c);
	white-space: nowrap;
}

/* Legenda */
.mnm-legend {
	display: none;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	line-height: 1.3;
}
.mnm-legend li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
}
.mnm-legend .mnm-dot { width: 10px; height: 10px; }

/* Režimi */
.mnm[data-legend="uvijek"] .mnm-legend { display: flex; }
.mnm[data-labels="uvijek"] .mnm-label { display: inline-flex; }
.mnm[data-list="uvijek"] .mnm-list { display: grid; }

@media (min-width: 768px) {
	.mnm-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* Mobilni i uređaji na dodir */
@media (max-width: 767px), (hover: none) {
	.mnm[data-labels="mobilni"] .mnm-label { display: inline-flex; }
	.mnm[data-list="mobilni"] .mnm-list { display: grid; }
	.mnm[data-legend="mobilni"] .mnm-legend { display: flex; }
	.mnm .mnm-area polygon {
		fill-opacity: var(--mnm-fill-mobile);
		stroke-opacity: .9;
	}
	.mnm .mnm-tip { display: none !important; }
}
