Scottish sunseekers enjoy summer heatwave – but thunder and flood warnings loom