/* Mobile sticky "Broneeri" bar (all public pages, see inc/seo.php nupsu_mobile_cta). */
.nupsu-mobile-cta {
	display: none;
}

/* The page uses viewport-fit=cover: keep content out of the notch area, as before. */
body.has-nupsu-mobile-cta {
	padding-left: env(safe-area-inset-left);
	padding-right: env(safe-area-inset-right);
}

/* Phones: portrait up to 767px, and landscape (low screen height, touch). */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
	.nupsu-mobile-cta {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		padding: 0.5rem max(0.75rem, env(safe-area-inset-right)) calc(0.5rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
		background: rgba(255, 255, 255, 0.97);
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
		transition: transform 0.2s ease, visibility 0.2s;
	}

	/* hidden while the booking calendar is in view (script in inc/seo.php) */
	.nupsu-mobile-cta.is-hidden {
		transform: translateY(100%);
		visibility: hidden;
	}

	.nupsu-mobile-cta a {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		border-radius: 999px;
		font-family: 'Comic Neue', sans-serif;
		font-weight: 700;
		text-decoration: none;
		text-transform: uppercase;
		letter-spacing: 0.02em;
	}

	.nupsu-mobile-cta .nupsu-mobile-cta-book {
		background: #A2D4DF;
		color: #fff;
	}

	/* keep footer content reachable above the bar */
	body.has-nupsu-mobile-cta {
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}
}
