.har-lm {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	overflow: hidden;
}

.har-lm--full {
	flex-direction: column;
	width: 100%;
}

.har-lm--full .har-lm__map {
	flex: none;
	width: 100%;
	min-height: 480px;
	height: 480px;
}

.har-lm__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 36px;
	width: 100%;
	padding: 22px 32px;
	background: #ffffff;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}

.har-lm__footer-item {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111111;
	font: inherit;
	cursor: pointer;
	text-align: left;
	opacity: 0.55;
	transition: opacity 0.2s ease;
}

.har-lm__footer-item:hover,
.har-lm__footer-item.is-active {
	opacity: 1;
}

.har-lm__footer-item--main .har-lm__footer-name {
	font-weight: 700;
}

.har-lm__footer-name {
	font-size: 15px;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.har-lm__footer-time {
	font-size: 14px;
	line-height: 1.35;
	color: rgba(17, 17, 17, 0.72);
	white-space: nowrap;
}

.har-lm__map {
	flex: 1 1 55%;
	min-width: 280px;
	min-height: 420px;
	height: 420px;
	position: relative;
	z-index: 1;
	background: #f3f3f3;
}

.har-lm__map.leaflet-container {
	width: 100%;
	height: 100%;
	min-height: 420px;
}

.har-lm__sidebar {
	flex: 1 1 45%;
	min-width: 280px;
	background: #ffffff;
	color: #111111;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	justify-content: start;
}

.har-lm__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.har-lm__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: inherit;
}

.har-lm__legend-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--har-lm-color, #111111);
	flex-shrink: 0;
}

.har-lm__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.har-lm__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #ffffff;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font: inherit;
	transition: opacity 0.2s ease, border-color 0.2s ease;
	box-sizing: border-box;
}

.har-lm__item:hover,
.har-lm__item.is-active {
	opacity: 1;
	border-color: rgba(0, 0, 0, 0.35);
}

.har-lm__item:not(.is-active) {
	opacity: 0.55;
}

.har-lm__item-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.har-lm__item-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--har-lm-color, #111111);
	flex-shrink: 0;
}

.har-lm__item-name {
	font-size: 14px;
	line-height: 1.4;
	color: inherit;
}

.har-lm__item-time {
	font-size: 13px;
	white-space: nowrap;
	flex-shrink: 0;
	color: inherit;
}

.har-lm-marker {
	background: transparent;
	border: 0;
}

.har-lm-marker--main {
	width: 64px !important;
	height: 64px !important;
	margin-left: -32px !important;
	margin-top: -32px !important;
}

.har-lm-marker__main-wrap {
	position: relative;
	width: 64px;
	height: 64px;
}

.har-lm-marker__main-ring {
	position: absolute;
	inset: -14px;
	border: 2px dashed var(--har-lm-color, #c9a84c);
	border-radius: 50%;
	opacity: 0.7;
}

.har-lm-marker__main-icon {
	position: relative;
	z-index: 2;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.har-lm-marker__main-icon img {
	width: 70%;
	height: 70%;
	object-fit: contain;
}

.har-lm-marker__main-letter {
	font-size: 28px;
	font-weight: 700;
	color: #111;
	font-family: Georgia, serif;
}

.har-lm-marker--pin {
	width: 28px !important;
	height: 40px !important;
	margin-left: -14px !important;
	margin-top: -40px !important;
}

.har-lm-marker__pin {
	width: 28px;
	height: 40px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.har-lm-popup .leaflet-popup-content-wrapper {
	border-radius: 4px;
	padding: 1px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.har-lm-popup .leaflet-popup-content {
	margin: 14px 16px;
	min-width: 140px;
}

.har-lm-popup__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #111;
}

.har-lm-popup__subtitle {
	margin: 0 0 10px;
	font-size: 13px;
	color: #555;
}

.har-lm-popup__link {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #2563eb;
	text-decoration: none;
}

.har-lm-popup__link:hover {
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.har-lm__sidebar {
		padding-top: 5px;
	}
}

@media (max-width: 767px) {
	.har-lm {
		flex-direction: column;
	}

	.har-lm--full .har-lm__map {
		min-height: 360px;
		height: 360px;
	}

	.har-lm__footer {
		justify-content: flex-start;
		gap: 14px 20px;
		padding: 18px 20px;
	}

	.har-lm__footer-name {
		font-size: 14px;
	}

	.har-lm__footer-time {
		font-size: 13px;
	}

	.har-lm__map {
		flex-basis: 100%;
		min-height: 320px;
	}

	.har-lm__sidebar {
		flex-basis: 100%;
		padding: 28px 20px;
	}
}
