Looks like the author has just be ultra-strict about only showing countries with a Mediterranean coastline. Bosnia-Herzegovina does have a very small one, but Portugal doesn't
Although it would be quite funny to then include the UK on the basis of Gibraltar