Barcelona enjoys a subtropical-Mediterranean climate with long, hot summers and cool winters. Winters, between December and February, are mild and snow is rare. January is the coldest winter month, with temperatures averaging between 41°F (5°C) and 57°F (14°C) during the day and colder at night. The peak summer months are June to August, but Barcelona's summer really lasts a full six months, from May to October. August is the hottest summer month, with temperatures averaging between 70°F (21°C) and 84°F (29°C) during the day. April and November are transitional months, with more unpredictable weather. Barcelona doesn't get much rain, with only a handful of rainy days every month; the wettest months are September, October and May, with thunderstorms occurring between August and November. Although the city gets plenty of sun, it can get foggy and cloudy, with sea fog especially common in early spring.The ideal months to visit Barcelona, the Costa Brava, and the nearby resorts of Sitges and Vilanova are May, June, July and September, when visitors can expect good, hot weather. In August, despite the shade in the tree-lined boulevards, locals desert Barcelona for the coastal resorts to escape the heat.