/* MTM CRM public locations shared styles. */
body.public-locations-page .public-locations-section {
	padding: clamp(3rem, 6vw, 5rem) 0;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 248, 0.98)),
		linear-gradient(125deg, rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.08), rgba(68, 74, 70, 0.04));
}

body.public-locations-page .public-locations-search {
	width: 100%;
}

body.public-locations-page .public-locations-search .input-group {
	border-radius: 1rem;
	box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

body.public-locations-page .public-locations-search .form-control {
	min-height: 3.1rem;
	border-color: rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.18);
	border-radius: 1rem 0 0 1rem;
}

body.public-locations-page .public-locations-search .btn {
	border-radius: 0 1rem 1rem 0 !important;
	min-width: 3.35rem;
}

body.public-locations-page .public-locations-categories {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.45rem;
}

body.public-locations-page .public-locations-categories .btn {
	border-radius: 999px !important;
	font-weight: 800;
	line-height: 1.2;
	padding: 0.48rem 0.85rem;
}

body.public-locations-page .public-locations-layout {
	align-items: stretch;
}

body.public-locations-page .public-locations-map-card {
	position: relative;
	border: 1px solid rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.18);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
	overflow: hidden;
}

@media (min-width: 992px) {
	body.public-locations-page .public-locations-map-card {
		position: sticky;
		top: 96px;
	}
}

body.public-locations-page .public-locations-map {
	width: 100%;
	min-height: clamp(28rem, 48vw, 42rem);
	background: #edf2ed;
	overscroll-behavior: contain;
	touch-action: none;
}

body.public-locations-page .public-locations-map-hint {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	z-index: 550;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	max-width: calc(100% - 2rem);
	padding: 0.55rem 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(25, 25, 25, 0.78);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	transform: translateX(-50%);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
	pointer-events: none;
}

body.public-locations-page .public-locations-map-hint.is-hidden {
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 0.35rem);
}

body.public-locations-page .public-locations-map-empty {
	position: absolute;
	inset: 1rem;
	z-index: 500;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	border: 1px dashed rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.28);
	border-radius: 0.8rem;
	background: rgba(255, 255, 255, 0.9);
	color: #404c3f;
	text-align: center;
	pointer-events: none;
}

body.public-locations-page .public-locations-list-card {
	height: 100%;
	border: 1px solid rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.18);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
	padding: clamp(1rem, 2vw, 1.35rem);
}

body.public-locations-page .public-locations-eyebrow,
body.public-locations-page .public-location-category {
	display: block;
	color: var(--cnvs-themecolor, #404c3f);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.public-locations-page .public-locations-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	border-radius: 999px;
	background: var(--cnvs-themecolor, #404c3f);
	color: var(--mtm-public-header-action-contrast, #fff);
	font-weight: 900;
}

body.public-locations-page .public-locations-list {
	display: grid;
	gap: 1rem;
}

body.public-locations-page .public-location-card,
body.public-locations-page .public-location-empty {
	border: 1px solid rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.18);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

body.public-locations-page .public-location-card {
	padding: 1rem;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.public-locations-page .public-location-card:hover {
	border-color: rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.36);
	box-shadow: 0 18px 42px rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.16);
	transform: translateY(-2px);
}

body.public-locations-page .public-location-card.is-active {
	border-color: rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.52);
	box-shadow:
		0 18px 42px rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.18),
		0 0 0 3px rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.1);
}

body.public-locations-page .public-location-focus {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1f2933;
	font: inherit;
	text-align: left;
}

body.public-locations-page .public-location-focus strong {
	display: block;
	color: #1f2933;
	font-size: 1.04rem;
	line-height: 1.25;
}

body.public-locations-page .public-location-pin {
	--location-pin-color: #404c3f;
	display: inline-flex;
	width: 2.65rem;
	height: 2.65rem;
	flex: 0 0 2.65rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--location-pin-color);
	color: #fff;
	box-shadow:
		0 0 0 5px rgba(var(--cnvs-themecolor-rgb, 64, 76, 63), 0.1),
		0 12px 22px rgba(15, 23, 42, 0.18);
}

body.public-locations-page .public-location-card p {
	margin: 0.75rem 0 0;
	color: #57605b;
	line-height: 1.55;
}

body.public-locations-page .public-location-line {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-top: 0.62rem;
	color: #57605b;
	font-size: 0.92rem;
	line-height: 1.45;
}

body.public-locations-page .public-location-line i {
	color: var(--cnvs-themecolor, #404c3f);
	line-height: 1.45;
}

body.public-locations-page .public-location-hours {
	display: block;
}

body.public-locations-page .public-location-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.9rem;
}

body.public-locations-page .public-location-actions .btn {
	border-radius: 0.72rem !important;
	font-weight: 800;
}

body.public-locations-page .public-location-empty {
	padding: 2rem 1.25rem;
	color: #404c3f;
}

body.public-locations-page .public-location-empty p {
	color: #69726d;
}

body.public-locations-page .public-locations-marker {
	width: 36px !important;
	height: 44px !important;
	background: transparent;
	border: 0;
}

body.public-locations-page .public-locations-map-pin {
	--location-pin-color: #404c3f;
	position: relative;
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	border-radius: 999px 999px 999px 0;
	background: var(--location-pin-color);
	color: #fff;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
	transform: rotate(-45deg);
}

body.public-locations-page .public-locations-map-pin i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	transform: rotate(45deg);
}

body.public-locations-page .public-locations-popup strong,
body.public-locations-page .public-locations-popup span {
	display: block;
}

body.public-locations-page .public-locations-popup strong {
	color: #1f2933;
	font-size: 0.98rem;
}

body.public-locations-page .public-locations-popup span {
	color: var(--cnvs-themecolor, #404c3f);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.public-locations-page .public-locations-popup p {
	margin: 0.45rem 0 0;
	color: #57605b;
}

body.public-locations-page .public-locations-popup a {
	display: inline-block;
	margin-top: 0.55rem;
	padding: 0.42rem 0.68rem;
	border-radius: 0.6rem;
	background: var(--cnvs-themecolor, #404c3f);
	color: var(--cnvs-themecolor, #404c3f);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

body.public-locations-page .public-locations-popup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.55rem;
}

body.public-locations-page .public-locations-popup-actions a {
	margin-top: 0;
}

body.public-locations-page .leaflet-container {
	font-family: inherit;
	background: #edf2ed;
	cursor: grab;
	overscroll-behavior: contain;
	touch-action: none;
}

body.public-locations-page .leaflet-container:active {
	cursor: grabbing;
}

body.public-locations-page .leaflet-control-zoom,
body.public-locations-page .public-locations-map-control {
	border: 0 !important;
	border-radius: 0.85rem !important;
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18) !important;
	overflow: hidden;
}

body.public-locations-page .leaflet-control-zoom a,
body.public-locations-page .public-locations-map-control {
	display: flex !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	background: rgba(255, 255, 255, 0.96) !important;
	color: var(--cnvs-themecolor, #404c3f) !important;
	font-weight: 900;
	line-height: 1 !important;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body.public-locations-page .leaflet-control-zoom a:hover,
body.public-locations-page .public-locations-map-control:hover,
body.public-locations-page .public-locations-map-control:focus {
	background: var(--cnvs-themecolor, #404c3f) !important;
	color: #fff !important;
}

body.public-locations-page .public-locations-map-control {
	margin-bottom: 0.5rem !important;
	border-radius: 999px !important;
	cursor: pointer;
}

body.public-locations-page .public-locations-map-control.is-loading {
	animation: public-location-control-pulse 0.8s ease-in-out infinite alternate;
}

body.public-locations-page .public-locations-map-control.is-error {
	background: #8f2f2f !important;
	color: #fff !important;
}

body.public-locations-page .public-locations-user-marker {
	filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.24));
}

@keyframes public-location-control-pulse {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(0.94);
	}
}

@media (max-width: 991.98px) {
	body.public-locations-page .public-locations-map {
		min-height: 28rem;
	}
}

@media (max-width: 767.98px) {
	body.public-locations-page .public-locations-section {
		padding: 2.5rem 0;
	}

	body.public-locations-page .public-locations-map {
		min-height: 22rem;
	}

	body.public-locations-page .public-locations-map-hint {
		width: calc(100% - 2rem);
		justify-content: center;
		border-radius: 0.8rem;
		font-size: 0.76rem;
	}

	body.public-locations-page .public-locations-categories .btn {
		flex: 1 1 calc(50% - 0.45rem);
	}

	body.public-locations-page .public-location-card {
		padding: 0.92rem;
	}
}
