/* ==========================================================================
   Map
   ========================================================================== */

.agk-church-map {
	position: relative;
	width: 100%;
	min-height: 370px;
	overflow: hidden;
	border: 1px solid #dedbd4;
	border-radius: 12px;
	background: #e7ecef;
}

.agk-church-map__canvas {
	position: absolute;
	z-index: 1;
	inset: 0;
	min-height: 370px;
}

/* ==========================================================================
   Address card
   ========================================================================== */

.agk-church-map .contact-map__card {
	position: absolute;
	z-index: 500;
	top: 28px;
	left: 28px;
	box-sizing: border-box;
	width: 245px;
	max-width: calc(100% - 30px);
	padding: 25px;
	border-radius: 9px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 10px 25px rgba(16, 43, 67, .15);
}

.agk-church-map .contact-map__card h2 {
	margin: 0 0 8px;
}

.agk-church-map .contact-map__card address {
	margin-top: 16px;
	font-style: normal;
	line-height: 1.55;
}

.agk-church-map .contact-map__card a {
	display: inline-block;
	margin-top: 14px;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* ==========================================================================
   Marker
   ========================================================================== */

.agk-church-map__marker {
	border: 0;
	background: transparent;
}

.agk-church-map__marker span {
	position: relative;
	display: block;
	width: 42px;
	height: 42px;
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 8px;
	background: #102b43;
	box-shadow: 0 6px 18px rgba(16, 43, 67, .28);
	transform: rotate(-45deg);
}

.agk-church-map__marker span::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 3px solid #fff;
	border-radius: 50%;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 601px) {
	.agk-church-map .contact-map__card {
		top: auto !important;
		right: 18px !important;
		bottom: 18px !important;
		left: auto !important;
		width: 205px;
		padding: 17px 18px;
	}

	.agk-church-map .contact-map__card h2 {
		margin-bottom: 5px;
		font-size: 1.55rem;
	}

	.agk-church-map .contact-map__card p,
	.agk-church-map .contact-map__card address {
		font-size: .86rem;
		line-height: 1.45;
	}

	.agk-church-map .contact-map__card p {
		margin: .4rem 0;
	}

	.agk-church-map .contact-map__card address {
		margin-top: 10px;
	}

	.agk-church-map .contact-map__card a {
		margin-top: 9px;
	}
}

@media (max-width: 600px) {
	.agk-church-map,
	.agk-church-map__canvas {
		min-height: 300px;
	}

	.agk-church-map .contact-map__card {
		display: none;
	}
}

/* Click-to-load consent */
.agk-church-map__consent {
	position: absolute;
	z-index: 600;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	padding: 30px;
	background: #eef2f4;
	color: #102b43;
	text-align: center;
}

.agk-church-map__consent[hidden],
.agk-church-map__canvas[hidden] {
	display: none !important;
}

.agk-church-map__consent h2 {
	margin: 0 0 10px;
	font-size: clamp(1.45rem, 3vw, 2rem);
}

.agk-church-map__consent p {
	max-width: 560px;
	margin: 4px 0;
	line-height: 1.55;
}

.agk-church-map__consent a {
	color: #174f87;
}

.agk-church-map__consent button {
	margin-top: 18px;
	padding: 12px 20px;
	border: 1px solid #174f87;
	border-radius: 4px;
	background: #174f87;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.agk-church-map__consent button:hover,
.agk-church-map__consent button:focus-visible {
	background: #0d3a67;
}

.agk-church-map:not(.is-loaded) .contact-map__card {
	display: none;
}