A house has been struck by lightning and several others flooded after torrential downpours in parts of Scotland.

One woman was rescued after being swept into the water at Rumbling Bridge in Dunkeld, Perthshire. Police, fire crews and paramedics attended and she was taken to safety.

Firefighters were called to a property on Beveridge Avenue in Mayfield, Midlothian, on Tuesday afternoon after it was hit by lightning. No one was injured but the Scottish Fire and Rescue Service said five appliances were sent to the scene to deal with roof damage.

In Penicuik, also Midlothian, flash flooding led to firefighters being called to homes to pump water out. Schools and a leisure centre were also affected. Flash flooding was also reported at Bridge of Earn.

A statement from Midlothian Council said: "If any resident is having any difficulties because of the flash flooding and we can help, give us a call on 0131 561 5284.

"The phones are currently down at Mauricewood Primary. If you are a parent or you need to get in touch with the school you can call 0131 271 6674.

"The pool and hydrotherapy suite at the Penicuik Centre will be closed for the rest of the day because of the flooding.

"All other areas in the building are open. Many thanks for your patience and co-operation as we deal with the aftermath of the rain. Please take care on the roads."

Trains between Inverness and Edinburgh were also disrupted as a result of the weather and police in Dumfries and Galloway also issued a statement warning drivers to take care.

A statement from Police Scotland's Dumfries and Galloway division said: "Met Office warning for heavy rain this afternoon across Dumfries and Galloway from 2pm through to 9pm.

"Potential for heavy and thundery showers though this period which will make for difficult driving conditions. Take care on the roads, and take off those shades later."

The Met Office issued a yellow "be aware" weather warning for much of Scotland on Tuesday, advising of the potential for "torrential downpours" with hail and thunderstorms.

Forecasters warned of travel disruption and flooding as up to 1.5in rain was predicted to fall in a few hours.

A spokesman for the Met Office warned: "Heavy, thundery showers will break out on Tuesday afternoon over parts of northern England and Scotland.

"These will be slow moving, and whilst many places will miss the worst, they will bring some localised torrential downpours. The public should be aware of the possibility of surface water flooding and travel disruption."

The chief forecaster added: "Warm, moist air will turn unstable as the ground heats up, releasing heavy, thundery showers.

"Many of these will be over high ground, but will drift into lower-lying areas too. There could be more than 20 mm in the hour locally, with more than 50 mm in a few hours possible."