In your specific case, there is no doubt that this is true, as well as in any tourist country, where real estate owners in tourist locations make more money by renting out their properties than by renting them out to the local population. Given that I live in a similar country, I know how things work and unfortunately you cannot force anyone to rent or sell their property to anyone, and that would actually be wrong in principle.
Everyone has their own preferences when it comes to the environment they live in, but I would personally look for a quieter location outside the big cities where the prices are the highest. Of course, this raises the issue of distance from the workplace if it is located in the city, but sometimes you cannot have cheap and ideal accommodation near the workplace.
When it comes to tourism and climate change, I have read predictions that summer temperatures will be higher and that this will affect everyone involved in tourism, especially in the Mediterranean, where this summer broke all temperature records with extremely strong storms. The question is whether you can wait for it and whether you should even hope for it, because tourism is very important for your country.
Certainly, I'm not fond of large cities, and I'd honestly prefer to live in a more suburban province that would be less touristy and crowded. The issue with that, however, is that I live on an island, a large one in particular, and all of it is practically touristy. Thus, I can't simply move to another area; even the nearby villages have little to no housing left because people found them to be an affordable solution already.
I'm guessing that you can probably relate too, since Croatia has seen a massive increase in tourism in the past few years, and locals, especially in touristy cities like Dubrovnik or Split, are possibly suffering from the same issues.
For country-level solutions, it's simple, build more! More housing than demand lowers the price making it more affordable.
Do nothing solution and wait, another thing that will work since the law of economics will start biting also, there is an influx of cash to the homeowners, there are people who spend more, thus prices in that region become higher, once the price becomes higher it becomes less attractive for most digital nomads who do this for cheap housing and start moving to the next city.
On a personal level, nothing that you can really do without compromises.
Earn more spend less or move away!
It sounds simple enough, even though that doesn't directly solve the housing crisis, as newly constructed blocks of flats are usually sold for personal occupation and are subject to extremely high prices. There's a block of flats being constructed here as we speak, and all the apartments have already been sold at extraordinary prices for the average citizen. So yes, the solution is pretty much to spend more or to move away.
If that were to happen to me, I'd probably stay in an average apartment for a while, hoping to get something better. The government will not remain silent seeing its citizens like this. But we also can't expect the government to immediately work on building housing for its citizens who need it. It may take 5-10 years before the government will make the housing but it also depends on your country's economy.
If the government only cares about tourism rather than its people, sooner or later, the government will get demonstrations from local residents asking for decent housing for them. And when that happens, the tourism sector will be hampered and things will take a turn for the worse. If the government is observant, they will try to open up new land for housing so that everyone can move to a new location and slowly, this housing problem can be overcome.
The situation in every country is different and I don't really understand what the rules are in your country. But I'm sure you can solve the problem well. You can rent a small house that is enough to accommodate your family. And later, if there is a better place and you have the funds to rent or even buy it, you can buy it.
The issue with my current house is that it's way too small to accommodate two people living in it, and larger ones are either way too old with issues or way too expensive; it's like there's no middle ground. The government has proven multiple times that it doesn't care about its citizens at all. I'd explain in more detail, but we'll derail from the discussion, and this matter would only require another thread by itself.