Marco Carvajal, 38, has big plans for a long life. The personal trainer turned real estate agent doesn’t drink and hits the gym for early-morning workouts six days a week. His longevity-minded lifestyle is something he has in common with his clients — except they happen to have a couple of million coming in to help.

Like him, the under-40 buyers dominating the city’s luxury real estate market are focused on the future, even when that means paying millions over asking. After all, what’s a few million more for a forever home if you’re planning on a very long forever?

“The way they’re looking at it is, ‘It might not be what I want today, but it’s something I can grow into over time,’” the Vanguard agent said. “‘Everybody’s gonna look at this and say I’m overpaying. Everybody’s gonna think I’m crazy. But 15 years from now, they’re gonna say I got a great deal.’”

Across the Bay Area, a new class of young, ultra-wealthy buyers is redefining what a luxury home should be. Wine cellars are a waste of space; meditation rooms are all the rage. In-home red-light therapy devices are a plus — if you can get one of the backordered gadgets at all. With time-maxxing top of mind, proximity to the office and a charming commercial strip are musts, with a major premium for newly remodeled homes that have all these bells and whistles built in.