.cml-locator,
.cml-locator * {
	box-sizing: border-box;
}

.cml-locator {
	--cml-green-900: #143d34;
	--cml-green-800: #195443;
	--cml-green-700: #167c65;
	--cml-green-100: #dff1eb;
	--cml-green-050: #f3f8f6;
	--cml-stone-900: #18201e;
	--cml-stone-600: #63706c;
	--cml-stone-300: #d5dedb;
	--cml-stone-100: #f5f7f6;
	position: relative;
	width: 100%;
	margin: 1.5rem 0;
	color: var(--cml-stone-900);
	font-family: inherit;
}

.cml-locator__title {
	margin: 0 0 1rem;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.1;
}

.cml-toolbar {
	display: grid;
	grid-template-columns: minmax(240px, 440px) auto;
	align-items: end;
	gap: 8px 18px;
	margin-bottom: 14px;
}

.cml-search-label {
	grid-column: 1;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--cml-green-900);
}

.cml-search-wrap {
	position: relative;
	grid-column: 1;
}

.cml-search-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 19px;
	height: 19px;
	transform: translateY(-50%);
	fill: none;
	stroke: var(--cml-stone-600);
	stroke-linecap: round;
	stroke-width: 2;
	pointer-events: none;
}

.cml-search {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 14px 10px 43px;
	border: 1px solid var(--cml-stone-300);
	border-radius: 10px;
	background: #fff;
	color: var(--cml-stone-900);
	font: inherit;
	line-height: 1.3;
	box-shadow: 0 1px 2px rgba(20, 61, 52, 0.04);
}

.cml-search:focus {
	border-color: var(--cml-green-700);
	outline: 3px solid rgba(22, 124, 101, 0.2);
	outline-offset: 1px;
}

.cml-search:disabled {
	background: var(--cml-stone-100);
	cursor: not-allowed;
}

.cml-toolbar__meta {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	align-self: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	min-width: 0;
}

.cml-group-title {
	display: inline-flex;
	min-width: 0;
	max-width: 100%;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--cml-green-100);
	color: var(--cml-green-900);
	font-size: 0.86rem;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cml-result-count {
	margin: 0;
	color: var(--cml-stone-600);
	font-size: 0.9rem;
	white-space: nowrap;
}

.cml-layout {
	display: grid;
	grid-template-columns: minmax(280px, 34%) minmax(0, 66%);
	height: var(--cml-locator-height, 640px);
	min-height: 320px;
	overflow: hidden;
	border: 1px solid var(--cml-stone-300);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(20, 61, 52, 0.1);
}

.cml-panel {
	position: relative;
	z-index: 2;
	min-width: 0;
	overflow-y: auto;
	border-right: 1px solid var(--cml-stone-300);
	background: #fff;
	scrollbar-color: #b9c7c2 transparent;
	scrollbar-width: thin;
}

.cml-results {
	display: flex;
	flex-direction: column;
}

.cml-card {
	position: relative;
	border-bottom: 1px solid #e6ecea;
	background: #fff;
	transition: background-color 160ms ease, box-shadow 160ms ease;
}

.cml-card[hidden] {
	display: none;
}

.cml-card:hover,
.cml-card.is-selected {
	background: var(--cml-green-050);
}

.cml-card.is-selected {
	box-shadow: inset 4px 0 0 var(--cml-green-700);
}

.cml-card__select {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 18px 18px 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.cml-card__select:focus-visible,
.cml-directions:focus-visible {
	position: relative;
	z-index: 1;
	outline: 3px solid rgba(22, 124, 101, 0.45);
	outline-offset: -3px;
}

.cml-card__marker {
	display: grid;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid #9bc9bc;
	border-radius: 50%;
	background: #fff;
	color: var(--cml-green-700);
}

.cml-card__marker svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.cml-card__marker img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.cml-card__marker--custom {
	overflow: hidden;
	padding: 2px;
}

.cml-card.is-selected .cml-card__marker {
	border-color: var(--cml-green-700);
	background: var(--cml-green-700);
	color: #fff;
}

.cml-card__content {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	gap: 3px;
}

.cml-card__name {
	color: var(--cml-green-900);
	font-size: 1rem;
	line-height: 1.35;
}

.cml-card__dls {
	color: var(--cml-stone-600);
	font-size: 0.87rem;
	letter-spacing: 0.015em;
}

.cml-accuracy {
	display: inline-flex;
	align-self: flex-start;
	margin-top: 3px;
	padding: 3px 7px;
	border-radius: 999px;
	background: var(--cml-green-100);
	color: var(--cml-green-900);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
}

.cml-directions {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0 18px 15px 68px;
	color: var(--cml-green-700);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}

.cml-directions:hover {
	color: var(--cml-green-900);
	text-decoration: underline;
}

.cml-empty {
	margin: 0;
	padding: 36px 22px;
	color: var(--cml-stone-600);
	text-align: center;
}

.cml-map-wrap,
.cml-map {
	position: relative;
	min-width: 0;
	height: 100%;
}

.cml-map {
	z-index: 1;
	background: #e9efec;
}

.cml-map:focus-visible {
	outline: 4px solid rgba(22, 124, 101, 0.55);
	outline-offset: -4px;
}

.cml-map-fallback {
	display: grid;
	height: 100%;
	margin: 0;
	padding: 24px;
	place-items: center;
	color: var(--cml-stone-600);
	text-align: center;
}

.cml-map-notice {
	position: absolute;
	z-index: 500;
	right: 14px;
	bottom: 28px;
	left: 14px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(24, 32, 30, 0.9);
	color: #fff;
	font-size: 0.8rem;
	text-align: center;
}

.cml-marker-icon {
	border: 0;
	background: transparent;
}

.cml-map-pin {
	position: relative;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	background: var(--cml-green-700);
	color: #fff;
	filter: drop-shadow(0 4px 5px rgba(20, 61, 52, 0.3));
	transform: rotate(-45deg);
	transition: background-color 150ms ease, transform 150ms ease;
}

.cml-map-pin svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	transform: rotate(45deg);
}

.cml-map-pin img {
	width: 31px;
	height: 31px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 50%;
	object-fit: cover;
	transform: rotate(45deg);
}

.cml-map-pin--custom {
	background: #fff;
}

.cml-marker-icon.is-selected .cml-map-pin {
	background: #b5532e;
	transform: rotate(-45deg) scale(1.16);
}

.cml-popup {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 2px;
	font-family: inherit;
}

.cml-popup__name {
	color: var(--cml-green-900);
	font-size: 0.96rem;
}

.cml-popup__dls {
	color: var(--cml-stone-600);
	font-size: 0.8rem;
}

.cml-popup__directions {
	margin-top: 4px;
	color: var(--cml-green-700);
	font-weight: 700;
	text-decoration: none;
}

.cml-popup__directions:hover,
.cml-popup__directions:focus {
	text-decoration: underline;
}

.cml-locator .leaflet-control-attribution {
	font-size: 10px;
}

@media (max-width: 767px) {
	.cml-toolbar {
		grid-template-columns: 1fr;
	}

	.cml-toolbar__meta {
		grid-column: 1;
		grid-row: auto;
		justify-content: space-between;
	}

	.cml-layout {
		display: flex;
		height: auto;
		min-height: 0;
		flex-direction: column;
		overflow: visible;
	}

	.cml-map-wrap {
		order: 1;
		height: 360px;
		min-height: 360px;
	}

	.cml-panel {
		order: 2;
		max-height: none;
		overflow: visible;
		border-top: 1px solid var(--cml-stone-300);
		border-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cml-card,
	.cml-map-pin {
		transition: none;
	}

	.cml-locator *,
	.cml-locator *::before,
	.cml-locator *::after {
		scroll-behavior: auto !important;
	}
}
