.cld-directory {
	--cld-blue: #193458;
	--cld-gold: #a87625;
	--cld-border: #d8dce2;
	--cld-muted: #5d6673;
	--cld-surface: #fff;
	--cld-background: #f5f6f8;
	--cld-focus: #0b6cb8;
	box-sizing: border-box;
	color: #1d2327;
	font-family: inherit;
	margin: 1.5rem auto;
	max-width: 1440px;
}

.cld-directory *,
.cld-directory *::before,
.cld-directory *::after {
	box-sizing: inherit;
}

.cld-directory [hidden] {
	display: none !important;
}

.cld-controls {
	align-items: end;
	background: var(--cld-blue);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px;
}

.cld-search-field {
	flex: 1 1 300px;
}

.cld-controls input[type="search"],
.cld-controls select,
.cld-button {
	border: 1px solid transparent;
	border-radius: 5px;
	font: inherit;
	line-height: 1.3;
	min-height: 42px;
}

.cld-controls input[type="search"] {
	background: #fff;
	border-color: #c8cdd4;
	padding: 9px 12px;
	width: 100%;
}

.cld-filter {
	color: #fff;
	flex: 0 1 180px;
	font-size: 12px;
}

.cld-filter > span {
	display: block;
	font-weight: 700;
	margin: 0 0 3px;
}

.cld-filter select {
	background: #fff;
	color: #1d2327;
	max-width: 220px;
	padding: 7px 28px 7px 9px;
	width: 100%;
}

.cld-check-filter {
	align-items: center;
	color: #fff;
	display: flex;
	font-size: 14px;
	font-weight: 700;
	gap: 7px;
	min-height: 42px;
}

.cld-check-filter input {
	height: 18px;
	margin: 0;
	width: 18px;
}

.cld-button {
	background: var(--cld-gold);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	padding: 8px 14px;
}

.cld-button:hover {
	filter: brightness(1.08);
}

.cld-controls input:focus,
.cld-controls select:focus,
.cld-button:focus-visible,
.cld-card-focus:focus-visible,
.cld-card-link:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cld-focus);
	outline: none;
}

.cld-message,
.cld-map-message {
	background: #fff8e5;
	border: 1px solid #e5c36b;
	padding: 12px 14px;
}

.cld-directory-layout {
	display: grid;
	grid-template-columns: minmax(300px, 40%) minmax(0, 60%);
	min-height: var(--cld-map-height);
}

.cld-results-panel {
	background: var(--cld-background);
	max-height: var(--cld-map-height);
	overflow-y: auto;
}

.cld-results-count {
	background: #fff;
	border-bottom: 1px solid var(--cld-border);
	font-weight: 700;
	padding: 10px 14px;
	position: sticky;
	top: 0;
	z-index: 2;
}

.cld-results {
	padding: 4px;
}

.cld-card {
	background: var(--cld-surface);
	border: 1px solid var(--cld-border);
	border-radius: 7px;
	margin: 8px;
	padding: 14px;
}

.cld-card-header {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.cld-card-title {
	font-size: 17px;
	line-height: 1.25;
	margin: 0;
}

.cld-card-focus {
	background: transparent;
	border: 0;
	color: var(--cld-blue);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 0;
	text-align: left;
}

.cld-badges {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: flex-end;
}

.cld-badge {
	background: var(--cld-blue);
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	padding: 4px 8px;
}

.cld-badge[data-type="mission"] { background: #8f6723; }
.cld-badge[data-type="newman-center"] { background: #087ea4; }
.cld-badge[data-type="catholic-school"] { background: #287a4b; }
.cld-badge[data-type="retreat-center"] { background: #765338; }
.cld-badge[data-type="diverse-community"] { background: #6d3fc0; }
.cld-badge-adoration { background: #7b4f12; }

.cld-card-address,
.cld-card-detail {
	color: var(--cld-muted);
	font-size: 13px;
	line-height: 1.4;
	margin: 7px 0 0;
}

.cld-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
}

.cld-card-link {
	border: 1px solid var(--cld-blue);
	border-radius: 4px;
	color: var(--cld-blue);
	font-size: 13px;
	font-weight: 700;
	padding: 5px 9px;
	text-decoration: none;
}

.cld-card-link:hover {
	background: var(--cld-blue);
	color: #fff;
}

.cld-empty {
	padding: 18px;
}

.cld-map-panel {
	min-height: var(--cld-map-height);
	position: relative;
}

.cld-map {
	height: 100%;
	min-height: var(--cld-map-height);
	width: 100%;
}

.cld-map-message {
	left: 16px;
	position: absolute;
	right: 16px;
	top: 16px;
	z-index: 3;
}

.cld-info-window {
	font-family: system-ui, sans-serif;
	max-width: 280px;
}

.cld-info-window strong,
.cld-info-window span,
.cld-info-window a {
	display: block;
	margin-bottom: 5px;
}

.cld-archive {
	margin: 0 auto;
	max-width: 1500px;
	padding: 24px;
}

.cld-archive-header {
	margin-bottom: 12px;
}

@media (max-width: 900px) {
	.cld-controls {
		align-items: stretch;
		flex-direction: column;
	}

	.cld-filter,
	.cld-search-field {
		flex-basis: auto;
	}

	.cld-filter select {
		max-width: none;
	}

	.cld-directory-layout {
		grid-template-columns: 1fr;
	}

	.cld-results-panel {
		max-height: none;
		order: 2;
	}

	.cld-map-panel,
	.cld-map {
		min-height: min(62vh, 520px);
	}
}

@media (max-width: 480px) {
	.cld-card-header {
		flex-direction: column;
	}

	.cld-badges {
		justify-content: flex-start;
	}
}
