I’d break this down into a few points first.
The search input shouldn’t, in my opinion, even be in a list item. It’s not a navigational object really. I’d much prefer to remove it, make it’s own thing and position it separately.
That would solve Problem #1 immediately.
I also notice the same ID being used more than once…that’s a “no-no”.