Points for Review and Clarification:
Typing in the search field opens a results pop-up placed at the end of the DOM, causing screen readers to move users unexpectedly.
Users must navigate through many elements to return to main content.
After pressing Escape, duplicate search fields remain exposed to screen readers and results no longer update correctly.
Potential Improvement Considerations:
Present the search results pop-up as a modal dialog using role="dialog" and aria-modal="true".
Move focus to the search input inside the dialog when it opens, and return focus to the original input when it closes.
Ensure the dialog closes reliably via Escape and is removed from the DOM to prevent duplicate fields.