.lp-site-footer {
	--lp-footer-wave-width: 100px;
	--lp-footer-wave-overlap: 30px;
	--lp-footer-wave-stride: calc(var(--lp-footer-wave-width) - var(--lp-footer-wave-overlap));
	--lp-footer-wave-height: calc(var(--lp-footer-wave-width) * 55 / 143);
	--lp-footer-wave-seam: 3px;
	position: relative;
	isolation: isolate;
	z-index: 2;
	margin-top: 0;
	color: var(--wp--preset--color--base, #fff1de);
	background: transparent;
}

.lp-site-footer.alignfull {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

footer.wp-block-template-part {
	padding-top: 100px;
}

.wp-site-blocks:has(.wp-block-post-content > .wp-block-paragraph:last-child) > footer.wp-block-template-part {
	padding-top: 180px;
}

.wp-site-blocks:has(.wp-block-post-content > .lp-contact-form:last-child) > footer.wp-block-template-part,
.wp-site-blocks:has(.wp-block-post-content > .wp-block-lanikais-paradise-contact-form:last-child) > footer.wp-block-template-part,
.lp-contact-form + footer.wp-block-template-part,
.wp-site-blocks > :has(.lp-contact-form:last-child) + footer.wp-block-template-part {
	padding-top: 0;
}

.lp-icon-text + footer.wp-block-template-part,
.wp-site-blocks > :has(.lp-icon-text:last-child) + footer.wp-block-template-part {
	padding-top: 0;
}

.lp-image-grid:has(+ .lp-site-footer),
.lp-image-grid:has(+ .wp-block-lanikais-paradise-site-footer),
.wp-site-blocks > :has(+ footer.wp-block-template-part) .lp-image-grid:last-child,
.lp-icon-text:has(+ .lp-site-footer),
.lp-icon-text:has(+ .wp-block-lanikais-paradise-site-footer),
.wp-site-blocks > :has(+ footer.wp-block-template-part) .lp-icon-text:last-child {
	border-bottom: none;
}

.lp-image-grid + .lp-site-footer,
.lp-image-grid + .wp-block-lanikais-paradise-site-footer,
.wp-site-blocks > :has(.lp-image-grid:last-child) + footer.wp-block-template-part,
.wp-site-blocks > :has(.lp-image-grid:last-child) + footer.wp-block-template-part .lp-site-footer,
.lp-icon-text.is-blue + .lp-site-footer,
.lp-icon-text.is-blue + .wp-block-lanikais-paradise-site-footer,
.wp-site-blocks > :has(.lp-icon-text.is-blue:last-child) + footer.wp-block-template-part,
.wp-site-blocks > :has(.lp-icon-text.is-blue:last-child) + footer.wp-block-template-part .lp-site-footer,
.lp-secondary-hero.is-blue + .lp-site-footer,
.lp-secondary-hero.is-blue + .wp-block-lanikais-paradise-site-footer,
.wp-site-blocks > :has(.lp-secondary-hero.is-blue:last-child) + footer.wp-block-template-part,
.wp-site-blocks > :has(.lp-secondary-hero.is-blue:last-child) + footer.wp-block-template-part .lp-site-footer {
	background-color: var(--wp--preset--color--accent-5, #dfefff);
}

.lp-site-footer__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask-image:
		url("../../assets/images/wave-tile.svg"),
		linear-gradient(#000, #000);
	-webkit-mask-size:
		var(--lp-footer-wave-stride) var(--lp-footer-wave-height),
		100% calc(100% - var(--lp-footer-wave-height) + var(--lp-footer-wave-seam));
	-webkit-mask-repeat: repeat-x, no-repeat;
	-webkit-mask-position: 0 top, bottom center;
	-webkit-mask-composite: source-over;
	mask-image:
		url("../../assets/images/wave-tile.svg"),
		linear-gradient(#000, #000);
	mask-size:
		var(--lp-footer-wave-stride) var(--lp-footer-wave-height),
		100% calc(100% - var(--lp-footer-wave-height) + var(--lp-footer-wave-seam));
	mask-repeat: repeat-x, no-repeat;
	mask-position: 0 top, bottom center;
	mask-composite: add;
}

.lp-site-footer__media-image {
	position: absolute;
	inset: -24px;
	z-index: 0;
	background-color: var(--wp--preset--color--accent-4, #001b64);
	background-image: var(--lp-footer-bg-image, none);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	filter: blur(10px);
}

.lp-site-footer__media-image.is-fallback {
	background-image:
		radial-gradient(120% 80% at 50% 20%, rgba(13, 72, 153, 0.55), transparent 55%),
		linear-gradient(180deg, #0d4899 0%, #001b64 100%);
}

.lp-site-footer__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(
		ellipse 140% 110% at 18% 0%,
		#2385db 0%,
		#1871ba 63%,
		#0d4899 100%
	);
	mix-blend-mode: multiply;
}

.lp-site-footer__hibiscus {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	width: 300px;
	height: auto;
	transform: translate(-50%, -42%);
	pointer-events: none;
}

.lp-site-footer__hibiscus.is-blue {
	display: none;
}

.lp-image-grid + .lp-site-footer .lp-site-footer__hibiscus.is-sand,
.lp-image-grid + .wp-block-lanikais-paradise-site-footer .lp-site-footer__hibiscus.is-sand,
.wp-site-blocks > :has(.lp-image-grid:last-child) + footer.wp-block-template-part .lp-site-footer__hibiscus.is-sand,
.lp-icon-text.is-blue + .lp-site-footer .lp-site-footer__hibiscus.is-sand,
.lp-icon-text.is-blue + .wp-block-lanikais-paradise-site-footer .lp-site-footer__hibiscus.is-sand,
.wp-site-blocks > :has(.lp-icon-text.is-blue:last-child) + footer.wp-block-template-part .lp-site-footer__hibiscus.is-sand,
.lp-secondary-hero.is-blue + .lp-site-footer .lp-site-footer__hibiscus.is-sand,
.lp-secondary-hero.is-blue + .wp-block-lanikais-paradise-site-footer .lp-site-footer__hibiscus.is-sand,
.wp-site-blocks > :has(.lp-secondary-hero.is-blue:last-child) + footer.wp-block-template-part .lp-site-footer__hibiscus.is-sand {
	display: none;
}

.lp-image-grid + .lp-site-footer .lp-site-footer__hibiscus.is-blue,
.lp-image-grid + .wp-block-lanikais-paradise-site-footer .lp-site-footer__hibiscus.is-blue,
.wp-site-blocks > :has(.lp-image-grid:last-child) + footer.wp-block-template-part .lp-site-footer__hibiscus.is-blue,
.lp-icon-text.is-blue + .lp-site-footer .lp-site-footer__hibiscus.is-blue,
.lp-icon-text.is-blue + .wp-block-lanikais-paradise-site-footer .lp-site-footer__hibiscus.is-blue,
.wp-site-blocks > :has(.lp-icon-text.is-blue:last-child) + footer.wp-block-template-part .lp-site-footer__hibiscus.is-blue,
.lp-secondary-hero.is-blue + .lp-site-footer .lp-site-footer__hibiscus.is-blue,
.lp-secondary-hero.is-blue + .wp-block-lanikais-paradise-site-footer .lp-site-footer__hibiscus.is-blue,
.wp-site-blocks > :has(.lp-secondary-hero.is-blue:last-child) + footer.wp-block-template-part .lp-site-footer__hibiscus.is-blue {
	display: block;
}

.lp-site-footer__inner {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: min(100%, calc(var(--lp-content-max, 1600px) + (var(--lp-gutter, 1.5rem) * 2)));
	margin-inline: auto;
	padding:
		calc(var(--lp-footer-wave-height) + clamp(5.5rem, 10vw, 8.5rem))
		var(--lp-gutter, 1.5rem)
		clamp(1.75rem, 3vw, 2.5rem);
}

.lp-site-footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: space-between;
	gap: clamp(2rem, 5vw, 4rem);
}

.lp-site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.75rem;
	min-width: 0;
	max-width: 46rem;
}

.lp-site-footer__title {
	max-width: 8ch;
	margin: 0;
	color: var(--wp--preset--color--base, #fff1de);
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: clamp(3.5rem, 9vw, 10.666rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 0.9;
}

.lp-site-footer__brand .lp-booking-widget {
	margin-top: 0;
	width: max-content;
	max-width: 100%;
}

.lp-site-footer .lp-booking-tooltip {
	top: auto;
	bottom: calc(100% + 0.85rem);
	z-index: 40;
	transform: translateY(0.4rem) scale(0.96);
	transform-origin: bottom center;
}

.lp-site-footer .lp-booking-tooltip.is-visible {
	transform: translateY(0) scale(1);
}

.lp-site-footer .lp-booking-tooltip::before {
	top: auto;
	bottom: -6px;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.lp-site-footer__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 2.25rem;
	margin-left: auto;
	padding-top: 0;
}

.lp-site-footer__nav,
.lp-site-footer__nav .wp-block-navigation,
.lp-site-footer__nav .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.85rem;
}

.lp-site-footer__nav ul {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lp-site-footer__nav a,
.lp-site-footer__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--base, #fff1de);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: clamp(1rem, 1.2vw, 1.125rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-decoration: none;
	text-transform: none;
}

.lp-site-footer__nav a:hover,
.lp-site-footer__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-6, #ffb47a);
}

.lp-site-footer__nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.lp-site-footer__nav .wp-block-navigation-item.current-menu-ancestor .wp-block-navigation-item__content,
.lp-site-footer__nav .wp-block-navigation-item.current-menu-parent .wp-block-navigation-item__content,
.lp-site-footer__nav .wp-block-navigation-item__content[aria-current="page"],
.lp-site-footer__nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 3px;
	text-underline-offset: 0.32em;
	text-decoration-skip-ink: none;
}

.lp-site-footer__scroll-top {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 3.15rem;
	height: 3.15rem;
	padding: 0;
	border: 3px solid var(--wp--preset--color--base, #fff1de);
	border-radius: 999px;
	background: var(--wp--preset--color--base, #fff1de);
	color: var(--wp--preset--color--accent-4, #001b64);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lp-site-footer__scroll-top svg {
	display: block;
	width: 34px;
	height: 34px;
	transform: rotate(-90deg);
}

.lp-site-footer__scroll-top:hover {
	background: transparent;
	color: var(--wp--preset--color--base, #fff1de);
}

.lp-site-footer__copyright {
	margin: 40px 0 0;
	color: var(--wp--preset--color--base, #fff1de);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.5;
	text-align: center;
}

@media (max-width: 781px) {
	.lp-site-footer__hibiscus {
		width: 160px;
	}

	.lp-site-footer__row {
		flex-direction: column;
		align-items: flex-start;
	}

	.lp-site-footer__brand {
		align-items: center;
		width: 100%;
		max-width: none;
	}

	.lp-site-footer__title {
		text-align: center;
	}

	.lp-site-footer__brand .lp-booking-widget {
		width: 100%;
		max-width: 100%;
	}

	.lp-site-footer__aside {
		align-items: center;
		justify-content: flex-start;
		width: 100%;
		margin-left: 0;
	}

	.lp-site-footer__nav,
	.lp-site-footer__nav .wp-block-navigation,
	.lp-site-footer__nav .wp-block-navigation__container,
	.lp-site-footer__nav ul {
		align-items: center;
	}
}
