/**
 * Office location block in the site footer.
 */

.footer-location {
	display: grid;
	gap: 22px;
	border-block: 1px solid rgba(255, 255, 255, 0.14);
	padding-block: 28px;
}

.footer-location__content {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-content: center;
	align-items: start;
	gap: 12px;
	min-width: 0;
}

.footer-location__icon {
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(214, 173, 103, 0.42);
	border-radius: var(--radius);
	background: rgba(214, 173, 103, 0.1);
	color: #d6ad67;
}

.footer-location__icon .lucide-icon {
	width: 21px;
	height: 21px;
}

.footer-location__heading {
	min-width: 0;
}

.footer-location__kicker {
	display: block;
	margin-bottom: 2px;
	color: #d6ad67;
	font-size: 0.72rem;
	font-weight: 900;
	line-height: 1.4;
}

.footer-location__heading h2 {
	margin: 0;
	color: #fff;
	font-size: 1.05rem;
	line-height: 1.5;
}

.footer-location__heading p {
	margin: 5px 0 0;
	color: #b5c4d8;
	font-size: 0.84rem;
	line-height: 1.75;
}

.footer-location__directions {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	min-height: 40px;
	border: 1px solid rgba(196, 155, 79, 0.55);
	border-radius: var(--radius);
	background: rgba(196, 155, 79, 0.1);
	padding: 7px 13px;
	color: #fff;
	font-size: 0.86rem;
	font-weight: 800;
	transition: border-color 160ms ease, background-color 160ms ease;
}

.footer-location__directions:hover,
.footer-location__directions:focus-visible {
	border-color: var(--accent);
	background: var(--accent);
	color: #1b3157;
}

.footer-location__directions .lucide-icon {
	width: 18px;
	height: 18px;
	color: var(--accent);
}

.footer-location__directions:hover .lucide-icon,
.footer-location__directions:focus-visible .lucide-icon {
	color: #1b3157;
}

.footer-location__map {
	overflow: hidden;
	width: 100%;
	height: 170px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius);
	background: #223a5f;
}

.footer-location__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (min-width: 760px) {
	.footer-location {
		grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.15fr);
		align-items: stretch;
		gap: 28px;
	}

	.footer-location__content {
		align-content: center;
		padding-inline-end: 6px;
	}

	.footer-location__map {
		height: 180px;
	}

	.footer-registration-details {
		grid-column: 1 / -1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		padding-top: 20px;
	}
}

@media (min-width: 1080px) {
	.footer-location {
		grid-template-columns: minmax(250px, 0.8fr) minmax(340px, 1.15fr) minmax(250px, 0.85fr);
		gap: 34px;
	}

	.footer-location__map {
		height: 178px;
	}

	.footer-registration-details {
		grid-column: auto;
		grid-template-columns: minmax(0, 1fr);
		align-content: center;
		border-top: 0;
		border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
		padding-block: 6px;
		padding-inline-start: 28px;
	}
}
