/* OLM Life Groups Map — scoped to .olm-lgm so it won't touch the rest of the site */
.olm-lgm {
	--olm-yellow: #f7ce54;
	--olm-teal: #6fb8b5;
	--olm-teal-dark: #3f8f8b;
	--olm-plum: #50485b;
	--olm-ink: #2b2730;
	--olm-muted: #77717f;
	--olm-line: #e8e4ec;
	--olm-soft: #f7f5f2;
	--olm-card: #ffffff;
	--olm-radius: 14px;
	--olm-lgm-h: 760px;

	position: relative;
	display: grid;
	grid-template-columns: minmax(320px, 420px) 1fr;
	height: var(--olm-lgm-h);
	border: 1px solid var(--olm-line);
	border-radius: 18px;
	overflow: hidden;
	background: var(--olm-card);
	color: var(--olm-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
	box-sizing: border-box;
}
.olm-lgm *, .olm-lgm *::before, .olm-lgm *::after { box-sizing: border-box; }

/* ---------- Panel ---------- */
.olm-lgm__panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-right: 1px solid var(--olm-line);
	background: var(--olm-card);
}
.olm-lgm__head { padding: 22px 22px 12px; }
.olm-lgm__title {
	margin: 0 0 14px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--olm-plum);
	letter-spacing: -0.01em;
}
.olm-lgm__search {
	position: relative;
}
.olm-lgm__search svg {
	position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
	width: 16px; height: 16px; color: var(--olm-muted); pointer-events: none;
}
.olm-lgm__search input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 14px 0 40px;
	border: 1.5px solid var(--olm-line);
	border-radius: 999px;
	background: var(--olm-soft);
	font: inherit;
	color: var(--olm-ink);
	outline: none;
	box-shadow: none;
	transition: border-color .15s, background .15s;
}
.olm-lgm__search input:focus { border-color: var(--olm-teal); background: #fff; }

.olm-lgm__filters { padding: 4px 22px 10px; }
.olm-lgm__label {
	display: block;
	margin: 12px 0 7px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--olm-muted);
}
.olm-lgm__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.olm-lgm__chip {
	appearance: none;
	margin: 0;
	padding: 6px 12px;
	min-height: 32px;
	border: 1.5px solid var(--olm-line);
	border-radius: 999px;
	background: #fff;
	color: var(--olm-ink);
	font: inherit;
	font-size: 13px;
	line-height: 1.1;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}
.olm-lgm__chip:hover { border-color: var(--olm-plum); background: #fff; color: var(--olm-ink); }
.olm-lgm__chip[aria-pressed="true"] {
	background: var(--olm-plum);
	border-color: var(--olm-plum);
	color: #fff;
}
.olm-lgm__chip:disabled { opacity: .35; cursor: default; }
.olm-lgm__chip:focus-visible, .olm-lgm__card:focus-visible, .olm-lgm__more:focus-visible, .olm-lgm__toggle button:focus-visible {
	outline: 2px solid var(--olm-teal); outline-offset: 2px;
}
.olm-lgm__days .olm-lgm__chip { min-width: 46px; text-align: center; }

.olm-lgm__row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.olm-lgm__select {
	flex: 1;
	height: 38px;
	margin: 0;
	padding: 0 12px;
	border: 1.5px solid var(--olm-line);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	color: var(--olm-ink);
}
.olm-lgm__inview {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 13px; color: var(--olm-muted); cursor: pointer; white-space: nowrap; margin: 0;
}
.olm-lgm__inview input { accent-color: var(--olm-plum); width: 16px; height: 16px; margin: 0; }

.olm-lgm__meta {
	display: flex; justify-content: space-between; align-items: center;
	padding: 10px 22px;
	border-top: 1px solid var(--olm-line);
	border-bottom: 1px solid var(--olm-line);
	background: var(--olm-soft);
	font-size: 13px;
}
.olm-lgm__count { font-weight: 700; color: var(--olm-plum); }
.olm-lgm__clear {
	appearance: none; border: 0; background: none; padding: 0; margin: 0;
	font: inherit; font-size: 13px; color: var(--olm-teal-dark); text-decoration: underline; cursor: pointer;
	box-shadow: none; min-height: 0;
}
.olm-lgm__clear:hover { background: none; color: var(--olm-plum); }
.olm-lgm__clear[hidden] { display: none; }

/* ---------- List + cards ---------- */
.olm-lgm__list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 12px 14px 8px;
	overscroll-behavior: contain;
}
.olm-lgm__card {
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: 14px;
	align-items: start;
	padding: 12px;
	margin-bottom: 8px;
	border: 1.5px solid transparent;
	border-radius: var(--olm-radius);
	background: var(--olm-card);
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.olm-lgm__card:hover { background: var(--olm-soft); }
.olm-lgm__card.is-active { border-color: var(--olm-teal); background: #f1f8f8; }
.olm-lgm__thumb {
	width: 76px; height: 76px;
	border-radius: 12px;
	object-fit: cover;
	background: var(--olm-soft);
	display: block;
}
.olm-lgm__thumb--empty {
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 22px; color: var(--olm-plum); background: #f3eed9;
}
.olm-lgm__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.olm-lgm__tag {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	background: #fbf0cc;
	color: #6b5513;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}
.olm-lgm__name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--olm-ink);
}
.olm-lgm__facts {
	display: flex; flex-wrap: wrap; gap: 3px 12px;
	font-size: 13px; color: var(--olm-muted);
}
.olm-lgm__fact { display: inline-flex; align-items: center; gap: 5px; }
.olm-lgm__fact svg { width: 13px; height: 13px; flex: none; color: var(--olm-teal-dark); }
.olm-lgm__more {
	display: inline-flex; align-items: center; gap: 4px;
	margin-top: 8px;
	font-size: 13px; font-weight: 700;
	color: var(--olm-plum);
	text-decoration: none;
	border-bottom: 2px solid var(--olm-yellow);
	line-height: 1.3;
}
.olm-lgm__more:hover { color: var(--olm-plum); border-bottom-color: var(--olm-teal); }
.olm-lgm__nopin {
	display: inline-block; margin-left: 8px; font-size: 11px; color: var(--olm-muted); font-style: italic;
}
.olm-lgm__empty { padding: 36px 16px; text-align: center; color: var(--olm-muted); }
.olm-lgm__empty strong { display: block; color: var(--olm-plum); margin-bottom: 4px; font-size: 15px; }
.olm-lgm__note { margin: 0; padding: 8px 22px 12px; font-size: 11px; color: var(--olm-muted); }

/* ---------- Map ---------- */
.olm-lgm__mapwrap { position: relative; min-height: 0; background: #e9eef0; }
.olm-lgm__map { position: absolute; inset: 0; z-index: 0; }
.olm-lgm .leaflet-container { font-family: inherit; background: #e9eef0; }
/* Soften the OpenStreetMap colors so the pins stand out (like the Rock map) */
.olm-lgm .leaflet-tile-pane { filter: saturate(.45) brightness(1.04) contrast(.95); }

.olm-lgm__pin {
	display: block;
	width: 26px; height: 26px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--olm-plum);
	border: 3px solid #fff;
	box-shadow: 0 3px 8px rgba(0,0,0,.28);
	transition: background .15s, transform .15s;
}
.olm-lgm__pin.is-active { background: var(--olm-teal-dark); transform: rotate(-45deg) scale(1.25); }
.olm-lgm__pinwrap { background: none; border: 0; }

.olm-lgm .leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.olm-lgm .leaflet-popup-content { margin: 0; width: 240px !important; }
.olm-lgm__pop img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 14px 14px 0 0; }
.olm-lgm__popbody { padding: 12px 14px 14px; }
.olm-lgm__popbody .olm-lgm__name { font-size: 15px; }
.olm-lgm__btn {
	display: block; margin-top: 10px; padding: 9px 12px;
	border-radius: 999px; background: var(--olm-yellow);
	color: var(--olm-plum) !important; font-weight: 700; font-size: 13px; text-align: center; text-decoration: none;
}
.olm-lgm__btn:hover { background: #f3c232; }
.olm-lgm .leaflet-popup-close-button { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.6); top: 4px !important; right: 4px !important; }

/* ---------- Mobile ---------- */
.olm-lgm__toggle { display: none; }
@media (max-width: 860px) {
	.olm-lgm {
		display: flex; flex-direction: column;
		height: auto;
		border-radius: 14px;
	}
	.olm-lgm__panel { border-right: 0; }
	.olm-lgm__head { padding: 18px 16px 10px; }
	.olm-lgm__filters, .olm-lgm__meta, .olm-lgm__note { padding-left: 16px; padding-right: 16px; }
	.olm-lgm__list { max-height: none; overflow: visible; padding: 10px 8px; }
	.olm-lgm__mapwrap { display: none; height: 70vh; min-height: 420px; }
	.olm-lgm.is-map .olm-lgm__mapwrap { display: block; }
	.olm-lgm.is-map .olm-lgm__list, .olm-lgm.is-map .olm-lgm__note { display: none; }
	.olm-lgm__toggle {
		display: flex; gap: 4px; margin: 12px 16px 0; padding: 4px;
		border-radius: 999px; background: var(--olm-soft); border: 1px solid var(--olm-line);
	}
	.olm-lgm__toggle button {
		appearance: none; flex: 1; margin: 0; padding: 8px; min-height: 36px;
		border: 0; border-radius: 999px; background: transparent;
		font: inherit; font-size: 14px; font-weight: 700; color: var(--olm-muted); cursor: pointer; box-shadow: none;
	}
	.olm-lgm__toggle button[aria-pressed="true"] { background: #fff; color: var(--olm-plum); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
	.olm-lgm__row { flex-wrap: wrap; }
}
