Sea levels are expected to rise about a foot in the next 30 years, which will impair some coastal property but not all (much worse on the east coast than the west).
It's much worse on a 60-100 year timeframe. If a discount were being applied, you'd expect most of the reduction in value to be 50 years out. The present values of enjoyment over the next 50 years could far exceed those residual values, and so it could be hard to observe any discount that is present. E.g. even if future sea level rise lops 10% off the value, other factors could add more in the short term.
Banks aren't the ones setting prices on properties. And no one should base anything on the actions of banks because financial institutions generally know to basically sell off the risk as soon as possible (although that can come back to bite them as it did with the subprime thing, where they sold it off, but then many of them made bets on those risks). Their window of exposure is generally extremely small, and they'll keep dancing as long as the music keeps playing.
Further markets are irrational, and always have been. Even if you are absolutely certain that Miami is going to be devastated by climate change, for instance, you might still buy an overpriced oceanfront mansion because you know that you'll be able to find either a sucker or someone with the same assessment when the time comes.
Also, people aren't rational or well-informed all the time.