The purchase of a property in Spain – especially for remote-work, vacation or retirement – depends on who you will be with.
Most foreigners in Spain are on Mediterranean coasts, including islands. Many are looking for sun all year round, many feel comfortable around foreigners of their own nationality and language. The infrastructure and services that help you get settled and maintain a safe and “homey” lifestyle are well-developed in these spots. And that’s definitely of help.
However, do not ignore all the “undiscovered” territory! There are beautiful properties in the inland and partly on the Atlantic coast. And you may be able to afford a property you would never dream of!
Check idealista.es, the source of the graphic in the post, for opportunities. You will be surprised.
PS: See also the post about tax incentives in Spanish ghost towns.