"""Hand-curated "notable weather/climate event" per city.

Unlike the auto-fetched Wikipedia summaries (cities_flavor.json), these are written
and fact-checked by hand — a keyword search can't reliably tell the *right* iconic
event from a wrong one, so this stays a small, verified, editable list. Cities not
listed here simply show their flavor blurb instead. Add entries as {slug: {text, url}};
`text` should be one or two accurate sentences, `url` the Wikipedia event article.
"""

EVENTS: dict[str, dict] = {
    # --- United States ---
    "new-orleans-louisiana-us": {
        "text": "In August 2005, Hurricane Katrina overwhelmed the city's levees and flooded roughly 80% of New Orleans, one of the deadliest and costliest disasters in U.S. history.",
        "url": "https://en.wikipedia.org/wiki/Effects_of_Hurricane_Katrina_in_New_Orleans"},
    "houston-texas-us": {
        "text": "In August 2017, Hurricane Harvey stalled over the region and dropped more than 50 inches of rain, a record for a U.S. tropical cyclone, causing catastrophic flooding across Houston.",
        "url": "https://en.wikipedia.org/wiki/Hurricane_Harvey"},
    "chicago-illinois-us": {
        "text": "A brutal heat wave in July 1995 pushed the heat index past 120°F and caused an estimated 700 heat-related deaths in Chicago, reshaping how the city prepares for extreme heat.",
        "url": "https://en.wikipedia.org/wiki/1995_Chicago_heat_wave"},
    "new-york-city-new-york-us": {
        "text": "In October 2012, Hurricane Sandy drove a record storm surge into New York City, flooding subway tunnels and much of Lower Manhattan and knocking out power to hundreds of thousands.",
        "url": "https://en.wikipedia.org/wiki/Hurricane_Sandy"},
    "miami-florida-us": {
        "text": "In August 1992, Category 5 Hurricane Andrew devastated the Miami metropolitan area just south of the city, destroying tens of thousands of homes around Homestead.",
        "url": "https://en.wikipedia.org/wiki/Hurricane_Andrew"},
    "boston-massachusetts-us": {
        "text": "The Blizzard of 1978 paralyzed Boston for a week, dropping about 27 inches of snow, stranding thousands of motorists, and flooding coastal neighborhoods.",
        "url": "https://en.wikipedia.org/wiki/Northeastern_United_States_blizzard_of_1978"},
    "seattle-washington-us": {
        "text": "During the June 2021 Western North America heat wave, Seattle hit an all-time record 108°F, a temperature the normally mild city had never before approached.",
        "url": "https://en.wikipedia.org/wiki/2021_Western_North_America_heat_wave"},
    "portland-oregon-us": {
        "text": "In the June 2021 heat dome, Portland reached an all-time record 116°F across three consecutive record-shattering days.",
        "url": "https://en.wikipedia.org/wiki/2021_Western_North_America_heat_wave"},
    "phoenix-arizona-us": {
        "text": "In July 2023, Phoenix endured a record 31 straight days at or above 110°F during one of the most extreme urban heat waves ever recorded in the U.S.",
        "url": "https://en.wikipedia.org/wiki/2023_North_American_heat_waves"},
    "oklahoma-city-oklahoma-us": {
        "text": "Deep in Tornado Alley, the Oklahoma City area was struck by the May 3, 1999 tornado, which produced the highest wind speed ever measured on Earth, around 302 mph.",
        "url": "https://en.wikipedia.org/wiki/1999_Bridge_Creek%E2%80%93Moore_tornado"},
    "los-angeles-california-us": {
        "text": "In January 2025, wind-driven wildfires, chiefly the Palisades and Eaton fires, swept through Los Angeles, destroying thousands of structures in one of the most destructive fire disasters in California's history.",
        "url": "https://en.wikipedia.org/wiki/January_2025_Southern_California_wildfires"},

    # --- Canada ---
    "toronto-ontario-ca": {
        "text": "In December 2013, a major ice storm coated Toronto in freezing rain, downing trees and power lines and leaving hundreds of thousands without electricity over the holidays.",
        "url": "https://en.wikipedia.org/wiki/December_2013_North_American_storm_complex"},
    "calgary-alberta-ca": {
        "text": "The June 2013 Alberta floods, among the costliest disasters in Canadian history, forced the evacuation of downtown Calgary as the Bow and Elbow rivers overflowed.",
        "url": "https://en.wikipedia.org/wiki/2013_Alberta_floods"},
    "montreal-quebec-ca": {
        "text": "The January 1998 ice storm encased Montreal in ice, collapsing power pylons and leaving parts of the region without electricity for weeks in midwinter.",
        "url": "https://en.wikipedia.org/wiki/January_1998_North_American_ice_storm"},

    # --- UK / Europe ---
    "london-england-gb": {
        "text": "The Great Smog of December 1952 blanketed London in toxic coal fog for days, killing thousands and prompting the UK's landmark Clean Air Act.",
        "url": "https://en.wikipedia.org/wiki/Great_Smog_of_London"},
    "paris-ile-de-france-fr": {
        "text": "The August 2003 European heat wave was catastrophic around Paris, contributing to roughly 15,000 heat-related deaths across France.",
        "url": "https://en.wikipedia.org/wiki/2003_European_heat_wave"},
    "moscow-ru": {
        "text": "In the summer of 2010, a record heat wave and surrounding peat and forest fires smothered Moscow in smog for weeks, with temperatures near 38°C and thousands of excess deaths.",
        "url": "https://en.wikipedia.org/wiki/2010_Russian_wildfires"},
    "madrid-es": {
        "text": "In January 2021, Storm Filomena buried Madrid under its heaviest snowfall in decades, around 50 cm, paralyzing the city for days.",
        "url": "https://en.wikipedia.org/wiki/Storm_Filomena"},
    "athens-attica-gr": {
        "text": "In July 2018, wind-driven wildfires swept through Attica near Athens during extreme heat, killing more than 100 people in Greece's deadliest fire disaster.",
        "url": "https://en.wikipedia.org/wiki/2018_Attica_wildfires"},

    # --- Australia ---
    "sydney-new-south-wales-au": {
        "text": "During the 2019–20 'Black Summer' bushfires, hazardous smoke repeatedly blanketed Sydney, pushing its air quality to some of the worst of any major city.",
        "url": "https://en.wikipedia.org/wiki/2019%E2%80%9320_Australian_bushfire_season"},
    "melbourne-victoria-au": {
        "text": "On 'Black Saturday' in February 2009, extreme heat and wind drove bushfires across Victoria, around Melbourne, that killed 173 people in Australia's deadliest bushfires.",
        "url": "https://en.wikipedia.org/wiki/Black_Saturday_bushfires"},
    "brisbane-queensland-au": {
        "text": "The 2010–11 Queensland floods peaked in January 2011 when the Brisbane River burst its banks, flooding thousands of homes and businesses across the city.",
        "url": "https://en.wikipedia.org/wiki/2010%E2%80%9311_Queensland_floods"},

    # --- Asia ---
    "mumbai-maharashtra-in": {
        "text": "On 26 July 2005, a record ~944 mm of rain fell on Mumbai in a single day, paralyzing the city and killing hundreds in the Maharashtra floods.",
        "url": "https://en.wikipedia.org/wiki/Maharashtra_floods_of_2005"},
    "chennai-tamil-nadu-in": {
        "text": "The December 2015 South Indian floods submerged much of Chennai after its heaviest rains in over a century, displacing hundreds of thousands.",
        "url": "https://en.wikipedia.org/wiki/2015_South_India_floods"},
    "kolkata-west-bengal-in": {
        "text": "In May 2020, Cyclone Amphan, the most powerful storm recorded in the Bay of Bengal, struck Kolkata directly, uprooting trees and cutting power across the city.",
        "url": "https://en.wikipedia.org/wiki/Cyclone_Amphan"},
    "karachi-sindh-pk": {
        "text": "A severe heat wave in June 2015 killed an estimated 1,200 people in Karachi as temperatures reached about 45°C during Ramadan.",
        "url": "https://en.wikipedia.org/wiki/2015_Pakistani_heat_wave"},
    "manila-national-capital-region-ph": {
        "text": "In September 2009, Tropical Storm Ketsana (Ondoy) dumped a month's worth of rain on Metro Manila in hours, causing some of the worst flooding the capital had ever seen.",
        "url": "https://en.wikipedia.org/wiki/Tropical_Storm_Ketsana"},
    "jakarta-id": {
        "text": "Low-lying, subsiding Jakarta floods most rainy seasons; the January 2020 floods were among the worst, inundating large areas of the capital and displacing tens of thousands.",
        "url": "https://en.wikipedia.org/wiki/2020_Jakarta_flood"},
    "bangkok-th": {
        "text": "The 2011 Thailand floods, the country's worst in decades, inundated areas around Bangkok for months and disrupted global electronics and auto supply chains.",
        "url": "https://en.wikipedia.org/wiki/2011_Thailand_floods"},
    "dhaka-dhaka-division-bd": {
        "text": "Low-lying Dhaka floods severely in heavy monsoons; the 1998 floods submerged about two-thirds of Bangladesh and much of the capital for weeks.",
        "url": "https://en.wikipedia.org/wiki/1998_Bangladesh_flood"},
    "beijing-cn": {
        "text": "On 21 July 2012, Beijing's heaviest rain in six decades triggered sudden flooding that killed at least 79 people and stranded thousands.",
        "url": "https://en.wikipedia.org/wiki/2012_Beijing_flood"},
    "hong-kong-hk": {
        "text": "Super Typhoon Mangkhut battered Hong Kong in September 2018 with fierce winds and a storm surge, flooding low-lying districts and swaying skyscrapers.",
        "url": "https://en.wikipedia.org/wiki/Typhoon_Mangkhut"},
    "tokyo-jp": {
        "text": "In October 2019, Typhoon Hagibis, one of the most powerful to strike Japan in decades, brought record rainfall and widespread flooding to the Tokyo region.",
        "url": "https://en.wikipedia.org/wiki/Typhoon_Hagibis"},
    "seoul-kr": {
        "text": "In August 2022, record-breaking rainfall flooded Seoul, submerging roads and low-lying semi-basement homes and killing several people across the capital region.",
        "url": "https://en.wikipedia.org/wiki/2022_South_Korea_floods"},

    # --- Middle East ---
    "dubai-ae": {
        "text": "In April 2024, Dubai was deluged by about two years' worth of rain in a single day, its heaviest on record, flooding highways and bringing its international airport to a standstill.",
        "url": "https://en.wikipedia.org/wiki/2024_United_Arab_Emirates_floods"},
    "jeddah-mecca-region-sa": {
        "text": "In November 2009, sudden flash floods swept through Jeddah after record rainfall, killing more than 100 people in one of the city's worst modern disasters.",
        "url": "https://en.wikipedia.org/wiki/2009_Jeddah_floods"},

    # --- Latin America ---
    "sao-paulo-br": {
        "text": "From 2014 to 2017, the worst drought in about 80 years drove São Paulo's main Cantareira reservoir system toward empty, forcing water rationing across the megacity.",
        "url": "https://en.wikipedia.org/wiki/2014%E2%80%932017_Brazilian_drought"},
    "rio-de-janeiro-br": {
        "text": "In January 2010, torrential rains triggered deadly floods and mudslides across the Rio de Janeiro area, among the region's worst weather disasters.",
        "url": "https://en.wikipedia.org/wiki/January_2010_Rio_de_Janeiro_floods_and_mudslides"},

    # --- Africa ---
    "cape-town-western-cape-za": {
        "text": "From 2015 to 2018 a severe drought pushed Cape Town toward 'Day Zero', the day municipal taps would be shut off, narrowly averted through drastic water conservation.",
        "url": "https://en.wikipedia.org/wiki/Cape_Town_water_crisis"},
    "durban-kwazulu-natal-za": {
        "text": "In April 2022, extreme rainfall triggered catastrophic floods and landslides around Durban, killing more than 400 people in one of South Africa's deadliest storms.",
        "url": "https://en.wikipedia.org/wiki/2022_KwaZulu-Natal_floods"},
}


def get(slug: str) -> dict | None:
    return EVENTS.get(slug)
