That said... it's not like California is the only place it's possible to grow almonds, or even to grow them profitably. It's just the most profitable place, especially if you're exporting to a US- or Western-centric market. And as with everything related to the environment, that's because the profits are centralized while negative externalities are socialized. We all pay the price of the reservoirs depleting and the aquifers running dry - maybe not monetarily, yet, but in the form of LA needing to ration water in homes, and in the form of possibly causing earthquakes [1] - but only a small handful of people collect the benefits. And because water is available in practically uncapped quantities for such an incredibly cheap price, they have no incentive not to do so.
How much should society value a change in the risk of The Big One happening in the next decade by, say, 1%? Or a similar increased risk of thousands dying of thirst in an increasingly hot summer? Or even just a extra few weeks of water rationing being in place every other year? Probably a lot more than what the almond farms are collectively paying for their water.
I do actually believe that markets can solve a lot of problems - but in order to do so, pricing needs to include the entirety of the transaction. Right now, water - especially bulk use of water - appears cheap, because our future selves or children are unknowingly kicking in part of what's being paid. Non-renewable resources like this need to be a lot more expensive in places where they're scarce, or else they're going to become extremely expensive at some point in the future.
[1] - https://science.nasa.gov/earth/climate-change/can-climate-af...