Not sure exactly, but I'll share a bit about an area I'm familiar with.
Up in Squamish, you normally have an outflow every morning, some days it's stronger than others, but it's always flowing out. In the winter it gets
affected by weather fronts, but in the summer the thermals do something weird. Around 11:00 AM every day it's sunny, the wind will stop for a couple
minutes, get really squirley for another 10, then start flowing straight inland, a complete 180 deg turn from the morning. As it heats up the wind
settles down to it's usual speed, almost always between 20-30mph. At some point in the evening, usually before sundown it'll stop and flip the other
way again.
I think the thermals on the hills start sucking the cool water inland up the valley and up the faces of the hills. In the evening when the hills start
cooling off, they cool off quicker than the ocean water. Now the air starts moving from the cool hills to the warm ocean. I could see different hills
and geography causing the wind to shift at different parts of the day. One hill gets hotter in the morning sun, one gets baked in the late afternoon
sort of thing.
Sysmic S1 Buggy.
0.7m / 1.4m / 2.0m PKD Buster I
4.4m PKD Buster
10m JoJo RM+
6m Flysurfer Outlaw
12m Ozone Access