.nffat-designed:has(.nffat-map:last-child) {
	padding-bottom: 0;
}

/* The last map runs under the footer's rounded corners, so no cream shows between them. */
.nffat-map:last-child {
	--nffat-map-tuck: var(--nffat-radius-panel);
	margin-bottom: calc(-1 * var(--nffat-map-tuck));
}

body:has(.nffat-map:last-child) .nffat-footer {
	position: relative;
	z-index: 3;
}

.nffat-map:last-child .nffat-map__card {
	bottom: calc(clamp(16px, 4vw, 48px) + var(--nffat-map-tuck));
}

@media (max-width: 699px) {
	.nffat-map:last-child {
		--nffat-map-tuck: 32px;
	}

	.nffat-map:last-child .nffat-map__card {
		bottom: calc(12px + var(--nffat-map-tuck));
	}
}

.nffat-map {
	position: relative;
	width: 100vw;
	max-width: none;
	height: clamp(420px, 64vh, 640px);
	overflow: hidden;
	background: var(--wp--preset--color--cream);
}

.nffat-designed__content > .nffat-map {
	margin-inline: calc(50% - 50vw);
}

.nffat-map__embed,
.nffat-map__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.nffat-map__note {
	position: absolute;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--magenta-700);
	font-family: var(--wp--preset--font-family--hand);
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	translate: -128px -124px;
}

.nffat-map__note svg {
	display: block;
	margin: 2px 0 0 70px;
}

.nffat-map__note:focus-visible {
	outline: 3px solid var(--wp--preset--color--magenta);
	outline-offset: 4px;
	border-radius: 8px;
}

.nffat-map__card {
	position: absolute;
	z-index: 2;
	left: clamp(16px, 4vw, 48px);
	bottom: clamp(16px, 4vw, 48px);
	width: 330px;
	padding: 10px 10px 20px;
	border-radius: 24px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 18px 40px rgb(4 41 39 / 0.18);
	rotate: -1.5deg;
}

.nffat-map__card::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 96px;
	height: 26px;
	translate: -50% 0;
	rotate: 3deg;
	border-radius: 3px;
	background: rgb(238 61 150 / 0.28);
}

.nffat-map__card .nffat-map__card-photo {
	display: block;
	width: 100%;
	height: 120px;
	object-fit: cover;
	object-position: 50% 25%;
	border-radius: 16px;
}

.nffat-map__card-body {
	padding: 16px 10px 0;
}

.nffat-map__card .nffat-map__card-note {
	margin: 0;
	color: var(--wp--preset--color--teal);
	font-family: var(--wp--preset--font-family--hand);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.nffat-map__card .nffat-map__card-title {
	margin: 4px 0 6px;
	font-size: 24px;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.nffat-map__card-address {
	color: var(--wp--preset--color--ink-muted);
	font-size: 15px;
	font-style: normal;
	line-height: 1.45;
}

.nffat-map__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.nffat-map__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--nffat-radius-pill);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 200ms var(--nffat-ease-out), transform 160ms var(--nffat-ease-out);
}

.nffat-map__btn:active {
	transform: scale(0.97);
}

.nffat-map__btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--magenta);
	outline-offset: 2px;
}

.nffat-map__btn svg {
	width: 18px;
	height: 18px;
}

.nffat-map__btn--go {
	background: var(--wp--preset--color--magenta);
	color: var(--wp--preset--color--white);
}

.nffat-map__btn--soft {
	background: var(--wp--preset--color--teal-50);
	color: var(--wp--preset--color--teal-700);
}

@media (hover: hover) and (pointer: fine) {
	.nffat-map__btn--go:hover {
		background: var(--wp--preset--color--magenta-600);
	}

	.nffat-map__btn--soft:hover {
		background: var(--wp--preset--color--teal-100);
	}
}

dialog.nffat-map-about {
	margin: auto;
	width: min(560px, calc(100vw - 32px));
}

.nffat-map-about[open] {
	animation: nffat-map-about-in 320ms var(--nffat-ease-out);
}

@keyframes nffat-map-about-in {
	from {
		opacity: 0;
		scale: 0.96;
		translate: 0 12px;
	}
}

.nffat-map-about__hero {
	position: relative;
	flex: none;
	height: 200px;
}

.nffat-map-about .nffat-map-about__hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nffat-map-about__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgb(4 41 39 / 0.85), transparent 60%);
}

.nffat-map-about .nffat-dialog__close {
	top: 16px;
	right: 16px;
	z-index: 2;
	background: var(--wp--preset--color--white);
}

.nffat-map-about__heading {
	position: absolute;
	right: 28px;
	bottom: 20px;
	left: 28px;
	z-index: 1;
	color: var(--wp--preset--color--white);
}

.nffat-map-about .nffat-map-about__note {
	margin: 0;
	color: var(--wp--preset--color--magenta-100);
	font-family: var(--wp--preset--font-family--hand);
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.nffat-map-about .nffat-map-about__title {
	margin: 4px 0 0;
	color: inherit;
	font-size: clamp(24px, 4vw, 30px);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.nffat-map-about__body {
	padding-top: 24px;
}

.nffat-map-about .nffat-map-about__lede {
	margin: 0 0 20px;
	font-size: 17px;
	line-height: 1.55;
}

.nffat-map-about__where {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: start;
	padding: 16px;
	border-radius: 18px;
	background: var(--wp--preset--color--cream);
}

.nffat-map-about__where svg {
	width: 22px;
	height: 22px;
	margin-top: 1px;
	color: var(--wp--preset--color--magenta);
}

.nffat-map-about__where address {
	font-style: normal;
	line-height: 1.45;
}

.nffat-map-about .nffat-map__actions {
	margin-top: 24px;
}

@media (max-width: 640px) {
	.nffat-map__card {
		right: 12px;
		bottom: 12px;
		left: 12px;
		display: grid;
		grid-template-columns: 88px 1fr;
		gap: 12px;
		align-items: center;
		width: auto;
		padding: 10px;
		rotate: 0deg;
	}

	.nffat-map__card .nffat-map__card-photo {
		height: 100%;
		min-height: 96px;
	}

	.nffat-map__card-body {
		padding: 4px 4px 4px 0;
	}

	.nffat-map__card .nffat-map__card-note,
	.nffat-map__card-address {
		display: none;
	}

	.nffat-map__card .nffat-map__card-title {
		font-size: 19px;
	}

	.nffat-map__card .nffat-map__actions {
		margin-top: 10px;
	}

	.nffat-map__card .nffat-map__btn {
		min-height: 40px;
		padding: 0 14px;
		font-size: 14px;
	}

	.nffat-map__note {
		font-size: 32px;
	}

	.nffat-map-about__hero {
		height: 160px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nffat-map-about[open] {
		animation: none;
	}
}
