onFocusChanged method
Called when the search text field gains or loses keyboard focus.
Notifies listeners so the parent state can schedule a rebuild.
Implementation
void onFocusChanged(bool focused) {
if (_searchFocused == focused) return; // idempotent
_searchFocused = focused;
notifyListeners();
}