A short apology for a small mishap
Oprostite is a practical choice when you accidentally get in someone’s way at a busy harbour or squeeze between tables in a restaurant. The ending -te fits a polite address to one person or an address to a group. Oprosti is the familiar singular alternative. Neither requires you to identify your own gender. A brief apology and a little space for the other person are often all that a minor incident needs.
When a delay deserves an explanation
If a host has been waiting to hand over the keys to your accommodation, Oprostite što kasnim acknowledges that you are late. For a more considered apology, use Ispričavam se. You can follow this with zbog and a reason, such as zbog kašnjenja (for the delay). Rather than offering a complicated excuse, give the information the other person needs, such as a realistic arrival time or a proposed solution.
Regret, sympathy and condolences
The phrase Žao mi je can express regret even when you were not responsible for the event. If a local friend tells you that an important plan has fallen through, it is an appropriate sympathetic reaction. For a bereavement, Moja sućut is a conventional condolence. The distinction is important: an apology addresses a mistake or inconvenience, whereas sympathy recognises someone else’s distress without implying that you caused it.