/* Centrus – Apkārtnes karte (dizains no iepriekšējās kartes) */
.cm-map-element {
	width: 100%;
}

.cm-map {
	position: relative;
	width: 100%;
}

.cm-map__canvas {
	width: 100%;
	height: 560px;
	background: #f3f1ed;
}

.cm-map__canvas--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
	color: #616161;
}

.cm-map__legend {
	position: absolute;
	right: 31px;
	bottom: 26px;
	z-index: 5;
	background: #242422;
	color: #fff;
	width: 386px;
	max-width: calc(100% - 32px);
	max-height: calc(100% - 52px);
	overflow-y: auto;
	padding: 20px 6px 8px 20px;
	line-height: 1.2;
	box-sizing: border-box;
}

.cm-map__legend strong {
	display: block;
	font-weight: 400;
	margin-bottom: 18px;
}

.cm-map__legend label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 20px 12px 0;
	white-space: nowrap;
	cursor: pointer;
	color: #fff;
	font-size: 16px;
}

.cm-map__legend input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cm-map__legend label::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	border: 3px solid #fff;
	border-radius: 2px;
	background: #242422;
	box-sizing: border-box;
	margin-right: 4px;
}

.cm-map__legend label:has(input:checked)::before {
	background: #fff;
	box-shadow: inset 0 0 0 2px #242422;
}

.cm-map__legend label:has(input:focus-visible) {
	outline: 1px dotted #fff;
	outline-offset: 2px;
}

/* Info logs — leģendas stilā (tumšs, taisni stūri), pārraksta Google un vietnes globālos stilus. */
.cm-map .gm-style .gm-style-iw-c {
	background: #242422;
	border-radius: 0;
	padding: 0 !important;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.cm-map .gm-style .gm-style-iw-tc::after {
	background: #242422;
}

.cm-map .gm-style .gm-style-iw-d {
	overflow: hidden auto !important;
	padding: 0 20px 18px;
}

.cm-map .gm-style .gm-style-iw-chr {
	align-items: flex-start;
}

.cm-map .gm-style .gm-style-iw-ch {
	padding: 18px 4px 6px 20px;
}

.cm-map .gm-style .gm-ui-hover-effect {
	width: 40px !important;
	height: 40px !important;
	margin: 4px 4px 0 0 !important;
	outline: none;
	opacity: 0.8;
}

.cm-map .gm-style .gm-ui-hover-effect:hover {
	opacity: 1;
}

.cm-map .gm-style .gm-ui-hover-effect:focus-visible {
	outline: 1px solid #fff;
	outline-offset: -6px;
}

.cm-map .gm-style .gm-ui-hover-effect > span {
	background-color: #fff !important;
	width: 18px !important;
	height: 18px !important;
	margin: 11px !important;
}

.cm-info__title,
.cm-info {
	font-family: "Hanken Grotesk", Arial, sans-serif;
	color: #fff;
}

.cm-info__title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.cm-info {
	font-size: 14px;
	line-height: 1.45;
	color: #c9c5bf;
}

.cm-info:empty {
	display: none;
}

@media (max-width: 767px) {
	.cm-map {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.cm-map__canvas {
		height: 323px;
	}

	.cm-map__legend {
		position: static;
		width: 100%;
		max-width: 100%;
		max-height: none;
	}

	.cm-map__legend label {
		margin: 0 16px 12px 0;
	}
}
