Whenever you're ready, walk me through how you'd approach this.
How would you design an apartment booking application that integrates with a third-party API?
Explain the end-to-end architecture, including search, availability, pricing, booking confirmation, retries, idempotency, authentication, data consistency, and failure handling. If machine learning is appropriate, describe where retrieval, ranking, re-ranking, batch processing, and online inference fit without compromising booking correctness.