Barcelona and other Spanish cities are facing an affordability crunch, especially for young people.Francesco Riccardo Iacomino/Getty ImagesSpain plans to end "golden visas" for non-EU citizens investing €500,000 in real estate.The reform addresses unaffordable housing for young Spaniards confronting high home prices.Other EU countries including Portugal, Greece, and Ireland have changed or shut down similar programs.Spain will no longer hand out "golden visas" to foreigners willing to pay big bucks for them.The Spanish government said on Monday that it plans to scrap a type of visa that allows non-European Union citizens to obtain residency permits after investing at least 500,000 euros, or $542,805, in real estate.