.lcsm-map-wrap {
	position: relative;
	width: 100%;
	border-radius: var(--lcsm-radius, 8px);
	overflow: hidden;
}

.lcsm-map-canvas {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
}

.lcsm-map-empty {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	font-size: 15px;
	color: #555;
	background: #f6f6f4;
}

.lcsm-legend {
	position: absolute;
	bottom: 16px;
	left: 16px;
	z-index: 999;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.6;
	box-shadow: 0 2px 6px rgba(0,0,0,0.12);
	overflow: hidden;
}

.lcsm-map-wrap button.lcsm-legend-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff !important;
	border: none !important;
	padding: 10px 14px !important;
	margin: 0 !important;
	cursor: pointer;
	font-family: inherit !important;
	font-weight: 700;
	font-size: 14px;
	color: #1b1b1b !important;
	box-shadow: none !important;
	width: 100%;
}

.lcsm-legend-arrow {
	font-size: 11px;
	transition: transform 0.15s ease;
}

.lcsm-legend.open .lcsm-legend-arrow {
	transform: rotate(180deg);
}

.lcsm-legend-content {
	padding: 0 14px 12px 14px;
}

.lcsm-legend-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0;
}

.lcsm-legend-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.lcsm-filter-bar {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	max-width: calc(100% - 32px);
}

.lcsm-map-wrap button.lcsm-filter-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	background: var(--lcsm-filter-inactive-bg, #ffffff) !important;
	background-image: none !important;
	border: 1px solid #ddd !important;
	border-radius: 8px !important;
	padding: 8px 14px !important;
	margin: 0 !important;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
	font-family: inherit !important;
	text-transform: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}

.lcsm-map-wrap button.lcsm-filter-btn:hover {
	background: var(--lcsm-filter-inactive-bg, #ffffff) !important;
	filter: brightness(0.96);
}

.lcsm-map-wrap button.lcsm-filter-btn.active {
	background: var(--lcsm-filter-active-bg, #1b1b2e) !important;
	border-color: var(--lcsm-filter-active-bg, #1b1b2e) !important;
}

.lcsm-map-wrap button.lcsm-filter-btn .lcsm-filter-label,
.lcsm-map-wrap button.lcsm-filter-btn .lcsm-filter-count {
	color: var(--lcsm-filter-inactive-text, #1b1b2e) !important;
}

.lcsm-map-wrap button.lcsm-filter-btn.active .lcsm-filter-label,
.lcsm-map-wrap button.lcsm-filter-btn.active .lcsm-filter-count {
	color: var(--lcsm-filter-active-text, #ffffff) !important;
}

.lcsm-filter-label {
	font-size: 12px;
	white-space: nowrap;
}

.lcsm-filter-count {
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.lcsm-marker-icon {
	background: transparent;
	border: none;
}

.lcsm-marker-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.lcsm-cluster-icon {
	background: transparent;
	border: none;
}

.lcsm-cluster-bubble {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--lcsm-cluster-color, #40916c);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.35);
	border: 2px solid #fff;
}

.leaflet-popup-content-wrapper {
	background: var(--lcsm-popup-bg, #fff);
	color: var(--lcsm-popup-text, #1b1b1b);
	border-radius: 8px;
}

.leaflet-popup-tip {
	background: var(--lcsm-popup-bg, #fff);
}

.lcsm-map-wrap button.lcsm-edge-indicator {
	position: absolute;
	z-index: 998;
	display: none;
	align-items: center;
	gap: 4px;
	background: var(--lcsm-edge-color, #1b1b2e) !important;
	color: #fff !important;
	border: 2px solid #fff !important;
	border-radius: 999px !important;
	padding: 5px 10px !important;
	margin: 0 !important;
	cursor: pointer;
	font-family: inherit !important;
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
	line-height: 1;
}

.lcsm-edge-arrow {
	font-size: 13px;
}

.lcsm-edge-N { top: 10px; left: 50%; transform: translateX(-50%); }
.lcsm-edge-NE { top: 10px; right: 10px; }
.lcsm-edge-E { top: 50%; right: 10px; transform: translateY(-50%); }
.lcsm-edge-SE { bottom: 70px; right: 10px; }
.lcsm-edge-S { bottom: 90px; left: 50%; transform: translateX(-50%); }
.lcsm-edge-SW { bottom: 70px; left: 10px; }
.lcsm-edge-W { top: 50%; left: 10px; transform: translateY(-50%); }
.lcsm-edge-NW { top: 10px; left: 10px; }

.lcsm-popup {
	font-size: 14px;
	line-height: 1.5;
}

.lcsm-popup-name {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 10px;
}

.lcsm-popup-badge {
	font-weight: 600;
	font-size: 12px;
	padding-bottom: 5px;
}

.lcsm-popup-city {
	font-size: 13px;
	padding-bottom: 5px;
}

.lcsm-popup-since {
	color: #666;
	font-size: 13px;
}
