Thomas Cook shares have plunged 23% after it blamed the summer heatwave for a drop in its annual profit forecast.

"Many customers" had put off booking holidays abroad, instead staying at home in June and July to enjoy the sunshine, the holiday firm said.

The company said this had led to "higher than usual levels of discounting" in August and September.

It now expects full-year earnings of £280m, below its earlier forecast of around £323m, which it made in July.

In a separate statement, Thomas Cook also said it would replace its chief financial officer.

Thomas Cook's shares plunged 23% after the warning to 60p. The share price has halved in value since the start of the year.

Thomas Cook usually makes all of its annual profits during the summer.

But it also warned that the impact of the heatwave "is continuing to be felt into winter trading".

"A downgrade of this size in 2018 is going to have some impact on 2019," chief executive Peter Fankhauser told investors.

Thomas Cook said a return in popularity of holidays to Turkey, Egypt, Tunisia and Greece meant that total group bookings for the summer period were 12% higher than the same period last year.

However, average selling prices were 5% lower than last year.

Mr Fankhauser admitted its trading performance was "disappointing", but said the firm had made "good strategic progress which positions us well to driver further performance improvement".

The firm warned in July that annual earnings would be at the lower end of market expectations due to more people staying at home rather than booking last-minute holidays.

Shore Capital analyst Greg Johnson said assuming a normal trading environment going forward he expected "some of this year's shortfall to be recovered, although the winter is likely to be tougher".

He downgraded his rating on the shares from "buy" to "hold" "until we get greater clarity over trading for Summer 2019".

Patricia Yates, the director of Visit Britain, told the BBC earlier this year that there was a growing trend towards more late bookings, with nearly 80% of all trips being booked within three months of the travel date.

The hot weather in the UK therefore acts as a "timely reminder" to people who are "making a late-call on where to go on holiday", she said.

In August, Thomas Cook's bigger rival Tui Group reiterated its full-year profit forecast, but said the heatwave meant it was unlikely to exceed its profit prediction.

Meanwhile, Thomas Cook's chief financial officer Bill Scott will leave the company at the end of November, and be replaced on an interim basis by Sten Daugaard, a board member of the company's German business.

A search for a permanent successor would start immediately, the company added.