I was in Dubrovnik a couple of years ago, and there were no public loos!
I have IBS, and was getting a bit panicky. My gentleman friend, who is a seasoned traveller, led me to the nearest, very swanky hotel, and swanned in as though he owned the place. We used the very clean and upmarket facilities, and waltzed out again, nodding and smiling at the extremely chic receptionist. Not an eyelid was batted, tho' I felt rather guilty.
It was a different story on the return coach trip to our cruise ship. I went to use the coach toilet and was told 'NO USE - we just cleaned!' I sat with agonising stomach cramps for nearly two hours, then faced a long security queue to get on the ship and use the loo. I was so desperate, I was in tears, and the lovely crew shepherded me quickly on board to the medical facility - what a relief!
Unfortunately, I had to submit to a complete physical before they would let me out, in case I had some lurgy which would contaminate their beautifully sanitized ship. Very understandable, tho' - as anyone bringing a virus on board could cost them squillions of quid in compensation.
Anyway, that was quite enough of lavatorial adventures for me - and nowadays, I plot my course from one available loo to another!