The reason it exists is so bizarre too. It stems from the rivalry between the republics of Venice and Ragusea (modern day Dubrovnik). Venice was gradually asserting control over more and more of the Adriatic coastline and Ragusea didn't much fancy sharing a land border with its rival, so it just gave up one tiny stretch of land each to its north and south to the Ottoman Empire. Venice would therefore have to come by sea or risk angering the Ottomans. Eventually Austria manages to annex the Dalmatian territory of both Venice and Ragusea, but the Ottomans still held those two tiny strips of land. The Ottomans were not typically on the best of terms with Austria, and they held on to the two tiny bits of Adriatic coast up until the treaty of Berlin in 1879. By this point, Neum (the Bosnian one) had been part of Ottoman Bosnia for 179 years, so the borders were pretty damn entrenched, and they survived through the shifts to Austrian, Yugoslav, and eventually independent Bosnian-Herzegovinan political structures. So a petty but clever move of hiding behind a bigger empire in the 1600s created the tiny bit of Bosnian coastline today.
I half expected this comment to end with "in nineteen ninety eight when the undertaker threw mankind off hеll in a cell, and plummeted sixteen feet through an announcer's table"
Neum is actually in Herzegovina but whatever. It's inside a bay that Croatia controls from both sides, and in fact has a bridge over. If B&H got naughty again, they could turn it into a lake just by dumping enough clay from the bridge.
I once stayed in an AirBnB north of Dubrovnik. Driving through Bosnia for 20 minutes and doing 4 passport controls at a time was a real pain. Also had to be careful to switch off data roaming as the towers weren’t in the EU so the data charges went through the roof.
Well zero coastline is even shorter than these two for sure ;)
But even if we ignore the trivial cases and small islands, Wikipedia lists Gibraltar as having shorter coastline.
Pain in the arse if you're staying in Split and do a day trip to Dubrovnik. You pass thru customs and immigration twice in the space of 100 meters and 2 hours.