/*
 * GCN Church Map: notice, status chip, side-card rows, map legend and the pilot page.
 * Reads the child theme's tokens (gcn-tokens.css) and sits next to gcn-listing.css / gcn-org.css,
 * so a church page and the pilot page look like every other GCN listing page.
 */

/* Notice at the top of the main column */
.gcn-church-notice {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	column-gap: var(--gcn-space-4, 16px);
	padding: var(--gcn-space-5, 20px) var(--gcn-space-6, 24px);
	margin: 0 0 var(--gcn-space-6, 24px);
	background: var(--gcn-surface-sunken, #f5f7f9);
	border: 1px solid var(--gcn-rule, #e3e8ee);
	border-radius: var(--gcn-radius-lg, 18px);
}
.gcn-church-notice--claimed {
	background: var(--gcn-notice-soft, #fdf3e7);
	border-color: var(--gcn-accent-border, #efddbd);
}
.gcn-church-notice__icon {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--gcn-surface, #fff);
	border: 1px solid var(--gcn-rule-strong, #cdd5df);
}
.gcn-church-notice__icon::before {
	content: "";
	position: absolute;
	inset: 9px;
	background-color: var(--gcn-text-muted, #6a7481);
	-webkit-mask: var(--gcn-icon-info) center / contain no-repeat;
	mask: var(--gcn-icon-info) center / contain no-repeat;
}
.gcn-church-notice--claimed .gcn-church-notice__icon::before {
	background-color: var(--gcn-accent, #c88219);
	-webkit-mask-image: var(--gcn-icon-clock);
	mask-image: var(--gcn-icon-clock);
}
.gcn-church-notice__body p { margin: 0; }
.gcn-church-notice__title {
	font-size: var(--gcn-text-md, 16px);
	font-weight: var(--gcn-weight-semibold, 600);
	color: var(--gcn-text, #1b2028);
}
.gcn-church-notice__text {
	margin-top: 4px !important;
	font-size: var(--gcn-text-base, 15px);
	line-height: var(--gcn-leading-normal, 1.55);
	color: var(--gcn-text-soft, #49535f);
}
.gcn-church-notice__ask {
	margin-top: var(--gcn-space-3, 12px) !important;
	font-size: var(--gcn-text-base, 15px);
	line-height: var(--gcn-leading-normal, 1.55);
	color: var(--gcn-text, #1b2028);
}
.gcn-church-notice__actions { margin-top: var(--gcn-space-4, 16px); }
.gcn-church-notice__actions .btn,
.gcn-church-notice__actions .geodir-claim-post-button,
.gcn-church-notice__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px var(--gcn-space-6, 24px);
	font-size: var(--gcn-text-base, 15px);
	font-weight: var(--gcn-weight-semibold, 600);
	line-height: 1.2;
	color: var(--gcn-brand-contrast, #fff) !important;
	background: var(--gcn-brand, #0e8b72) !important;
	border: 1px solid var(--gcn-brand, #0e8b72) !important;
	border-radius: var(--gcn-radius-pill, 999px) !important;
	text-decoration: none;
	box-shadow: none;
}
.gcn-church-notice__actions .btn:hover,
.gcn-church-notice__actions .geodir-claim-post-button:hover,
.gcn-church-notice__btn:hover {
	background: var(--gcn-brand-strong, #0a715c) !important;
	border-color: var(--gcn-brand-strong, #0a715c) !important;
	color: #fff !important;
}
@media (max-width: 640px) {
	.gcn-church-notice { grid-template-columns: minmax(0, 1fr); }
	.gcn-church-notice__icon { display: none; }
}

/* An indicated church has no logo of its own; the theme's placeholder box adds nothing, so hide it */
.gcn-church-indicated .gcn-org__logo,
.gcn-church-claimed .gcn-org__logo { display: none; }

/* Status chip in the dark masthead */
.gcn-church-badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gcn-space-2, 8px);
}
.gcn-church-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	font-size: var(--gcn-text-sm, 13px);
	font-weight: var(--gcn-weight-semibold, 600);
	line-height: 1.5;
	border-radius: var(--gcn-radius-pill, 999px);
	color: var(--gcn-text-inverse, #fff);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(6px);
}
.gcn-church-chip::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #3b7dd8;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.gcn-church-chip--claimed::before { background: var(--gcn-accent, #c88219); }

/* Chips on the pilot hero: the theme collapses shortcode wrappers inside .gcn-chips, so re-box the ones that are chips themselves */
.gcn-chips > .brxe-shortcode.gcn-chip { display: inline-block; width: auto; flex: 0 0 auto; }

/* Map legend and map frame */
.gcn-church-legend {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gcn-space-3, 12px) var(--gcn-space-8, 32px);
	margin: 0 0 var(--gcn-space-2, 8px);
	font-size: var(--gcn-text-sm, 13px);
	color: var(--gcn-text-soft, #49535f);
}
.gcn-church-legend__item { display: inline-flex; align-items: center; gap: 10px; }
.gcn-church-legend__item strong { color: var(--gcn-text, #1b2028); font-weight: var(--gcn-weight-semibold, 600); }
.gcn-church-legend__pin { width: 18px; height: 24px; flex: 0 0 auto; }
.gcn-church-legend__pin--verified {
	display: inline-block;
	width: 20px;
	height: 24px;
	background-color: var(--gcn-brand, #0e8b72);
	-webkit-mask: var(--gcn-icon-pin) center / contain no-repeat;
	mask: var(--gcn-icon-pin) center / contain no-repeat;
}
.gcn-church-map .geodir-map-wrap,
.gcn-church-map .geodir_map_container {
	overflow: hidden;
	border: 1px solid var(--gcn-rule, #e3e8ee);
	border-radius: var(--gcn-radius-lg, 18px);
	box-shadow: var(--gcn-shadow-md, 0 8px 20px rgba(23, 43, 77, 0.06));
}
.gcn-church-map .loading_div { background: rgba(16, 22, 28, 0.55) !important; }

/* Pilot page: hero lead and the three steps */
.gcn-church-hero__lead {
	margin: var(--gcn-space-4, 16px) 0 0;
	max-width: 640px;
	font-size: var(--gcn-text-md, 16px);
	line-height: var(--gcn-leading-normal, 1.55);
	color: rgba(255, 255, 255, 0.82);
}
.gcn-church-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gcn-space-6, 24px);
}
.gcn-church-step {
	padding: var(--gcn-space-6, 24px);
	background: var(--gcn-surface, #fff);
	border: 1px solid var(--gcn-rule, #e3e8ee);
	border-radius: var(--gcn-radius-lg, 18px);
	box-shadow: var(--gcn-shadow-md, 0 8px 20px rgba(23, 43, 77, 0.06));
}
.gcn-church-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-bottom: var(--gcn-space-4, 16px);
	font-size: var(--gcn-text-sm, 13px);
	font-weight: var(--gcn-weight-bold, 700);
	color: var(--gcn-brand-strong, #0a715c);
	background: var(--gcn-brand-soft, #e9f7f4);
	border: 1px solid var(--gcn-brand-border, #bfe3dc);
	border-radius: 50%;
}
.gcn-church-step__title {
	margin: 0 0 var(--gcn-space-2, 8px);
	font-size: var(--gcn-text-lg, 19px);
	font-weight: var(--gcn-weight-semibold, 600);
	line-height: var(--gcn-leading-snug, 1.35);
	color: var(--gcn-text, #1b2028);
}
.gcn-church-step__text {
	margin: 0;
	font-size: var(--gcn-text-base, 15px);
	line-height: var(--gcn-leading-normal, 1.55);
	color: var(--gcn-text-soft, #49535f);
}
@media (max-width: 900px) {
	.gcn-church-steps { grid-template-columns: minmax(0, 1fr); }
}
