/**
 * #topnav in normal document flow (not fixed to viewport).
 *
 * @package _property64
 */

.admin-bar #topnav {
	margin-top: 0 !important;
}

#topnav {
	position: relative !important;
	inset: auto !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
}

/* Scroll script may still add .nav-sticky; keep bar in flow. */
#topnav.nav-sticky {
	position: relative !important;
	inset: auto !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
}

/* FREE badge on “Add property” — soft repeating flash (no transform: keeps -translate-x-1/2 intact). */
@keyframes property64-free-badge-flash {
	0%,
	100% {
		filter: brightness(1);
		box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 0 0 0 rgb(239 68 68 / 0.35);
	}

	45% {
		filter: brightness(1.32);
		box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 0 18px 6px rgb(239 68 68 / 0.65);
	}

	60% {
		filter: brightness(1);
		box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 0 0 0 rgb(239 68 68 / 0.2);
	}
}

#topnav .property64-header-free-badge {
	animation: property64-free-badge-flash 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	#topnav .property64-header-free-badge {
		animation: none;
	}
}
