Toggle search visibility on navigation.