/* Locations Map Widget — scoped to .lmw-locations-map */
.lmw-locations-map {
	--lmw-accent: #2d9d5c;
	--lmw-text: #1a1a1a;
	--lmw-muted: #6b7280;
	--lmw-label: #9ca3af;
	--lmw-bg: #f3f4f6;
	--lmw-card-bg: #ffffff;
	--lmw-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	font-family: inherit;
	color: var(--lmw-text);
	box-sizing: border-box;
}

.lmw-locations-map *,
.lmw-locations-map *::before,
.lmw-locations-map *::after {
	box-sizing: border-box;
}

.lmw-locations-map .lmw-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	background: var(--lmw-bg);
	border-radius: 12px;
	overflow: hidden;
	min-height: 320px;
}

.lmw-locations-map .lmw-col {
	display: flex;
	flex-direction: column;
}

.lmw-locations-map .lmw-col--list {
	flex: 0 0 40%;
	max-width: 40%;
	min-width: 260px;
	padding: 20px;
}

.lmw-locations-map .lmw-col--map {
	flex: 1 1 60%;
	min-width: 280px;
	background: #e5e7eb;
}

.lmw-locations-map .lmw-cards {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-height: 100%;
	overflow-y: auto;
	padding-right: 4px;
	-webkit-overflow-scrolling: touch;
}

.lmw-locations-map .lmw-empty {
	margin: 0;
	padding: 16px;
	font-size: 14px;
	color: var(--lmw-muted);
	background: var(--lmw-card-bg);
	border-radius: 12px;
	box-shadow: var(--lmw-shadow);
}

.lmw-locations-map .lmw-card {
	display: flex;
	gap: 14px;
	width: 100%;
	text-align: left;
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 16px 16px 14px;
	background: var(--lmw-card-bg);
	box-shadow: var(--lmw-shadow);
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	font: inherit;
	color: inherit;
	align-items: flex-start;
	outline: none;
}

.lmw-locations-map .lmw-card:hover {
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.lmw-locations-map .lmw-card.is-active {
	border-color: var(--lmw-accent);
	box-shadow: 0 10px 28px rgba(45, 157, 92, 0.18);
	background: linear-gradient(90deg, rgba(45, 157, 92, 0.08) 0%, #ffffff 42%);
}

.lmw-locations-map .lmw-card:focus-visible {
	outline: 2px solid var(--lmw-accent);
	outline-offset: 2px;
}

.lmw-locations-map .lmw-card__icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--lmw-accent);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.lmw-locations-map .lmw-pin-svg {
	display: block;
}

.lmw-locations-map .lmw-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

.lmw-locations-map .lmw-card__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lmw-label);
	line-height: 1.2;
}

.lmw-locations-map .lmw-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--lmw-text);
}

.lmw-locations-map .lmw-card__address {
	font-size: 13px;
	line-height: 1.45;
	color: var(--lmw-muted);
}

.lmw-locations-map .lmw-card__link {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--lmw-accent);
	text-decoration: none;
	align-self: flex-start;
	pointer-events: auto;
}

.lmw-locations-map .lmw-card__link:hover {
	text-decoration: underline;
}

.lmw-locations-map .lmw-map-shell {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 280px;
}

.lmw-locations-map .lmw-map-canvas {
	width: 100%;
	height: 100%;
	min-height: 280px;
}

.lmw-locations-map .lmw-map-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	font-size: 14px;
	color: var(--lmw-muted);
	background: #f9fafb;
	height: 100%;
	min-height: inherit;
}

@media (max-width: 767px) {
	.lmw-locations-map .lmw-col--list,
	.lmw-locations-map .lmw-col--map {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.lmw-locations-map .lmw-col--map {
		order: -1;
	}

	.lmw-locations-map .lmw-cards {
		max-height: none;
	}
}
