RIO DE JANEIRO (AP) When Rio de Janeiro was awarded the 2016 Summer Olympic Games seven years ago, Wagner Bastos was a hotshot car salesman for Rio Citroen-Peugeot. Some months he earned 17,000 Brazilian reais - about $5,200 now and much more back then.
But Brazil's fortunes - and Bastos' - have taken a sickening tumble. His last monthly paycheck in June was for 1,400 reais ($425) - too little to cover his rent or school fees for two children. So Bastos, 54, quit and started driving a taxi.
''I needed cash urgently,'' he says.
In the past, hosting the Olympics often allowed newly prosperous countries to strut on the world stage and showcase their glitziest cities. Think Tokyo in 1964 or Seoul in 1988.
And in 2009, when Rio won the competition for this year's Summer Games, the picture looked similar. Brazil's emerging market economy was sizzling - one of the world's economic superstars, along with Russia, India, China and South Africa.
But the '16 Games come at a dire moment for Brazil, which is enduring myriad calamities: A deep recession. A political crisis. Widespread street protests. Reports of filthy waterways. And a health emergency caused by the Zika virus.
''There have been political and economic problems in other (Olympic) host cities,'' says Andrew Zimbalist, an economist at Smith College who has studied Olympic Games. ''But the combination here has probably been as foreboding as any I have seen.''
Brazil's economy shrank 3.8 percent last year and will likely contract an additional 3.3 percent this year, according to the International Monetary Fund. The economy was rocked by a plunge in prices for iron ore and other commodities it exports, partly a result of slowing demand as China's powerhouse economy decelerated.
In the booming mid-2000s, Brazilians celebrated their collective arrival in the middle class by borrowing heavily to buy cars, refrigerators and iPhones. Now, like Americans after the devastating 2008 financial crisis, they face diminished livelihoods.
A political crisis has compounded the economic troubles. President Dilma Rousseff was suspended in May for allegedly violating budget laws. She is awaiting a trial this month in Brazil's Senate that will determine whether she'll be permanently ousted.
Business investment has been paralyzed by an investigation into corruption at the state-owned energy giant Petrobras. Once worth more in the stock market than either Microsoft or Wal-Mart, Petrobras has been reduced to selling assets - from oil fields to corporate subsidiaries - to raise cash to offset lower oil prices.
The Olympics might be making things even worse. To prepare for the Games, the state of Rio spent heavily. When it ran into financial trouble, the federal government stepped in to help share the costs, thereby deepening the country's budget woes.
The Brazilian real has plunged 47 percent against the U.S. dollar since Rio was awarded the '16 Games in October 2009. The weak real makes imports costlier and helps escalate inflation, which was running at an annual 8.8 percent in June.
High inflation means Brazil's central bank can't slash interest rates to juice the economy for fear of sending inflation even higher. As a result, the central bank has kept its key rate at a punitive 14.25 percent.
Nationally, since the end of 2014, more than 5 million people have lost jobs. Unemployment has nearly doubled to 11.3 percent.
The anemic job market has depressed real estate. Gone are the bidding wars for choice apartments in Rio's seaside neighborhoods. Office rents plunged 6.1 percent in Rio from the fourth quarter of 2015 to the first quarter of 2016, making it the world's third-worst office market in that period, according to the real estate firm JLL.
Leo Ickowicz, who is Brazilian but has worked for two decades in South Florida real estate, has experienced the transformation. At the height of Brazil's boom in 2010, when the economy grew a blazing 7.5 percent, many Brazilian clients sought to capitalize on the currency's strength to buy Miami real estate as an investment or vacation property.
Now, his firm is busier than ever. Inquiries have quintupled. But his clients have a different goal this time: They want to leave Brazil for good. His company has had to add relocation services to meet the demand - everything from help in applying for visas and selecting schools to offering psychological aid to families victimized by Brazil's violent-crime epidemic.
Despite the litany of bad news, the Brazilian stock market has surged 30 percent this year. Investors have detected signs of hope. Commodity prices have stabilized, and investors have expressed confidence in the economic policy team assembled by interim President Michel Temer, which says it will get government spending under control.
The IMF has also slightly upgraded its outlook for Brazil, predicting that the economy will shrink 3.3 percent this year, compared with its earlier forecast of a 3.8 percent contraction, and will return to growth in 2017.
Investors appeared heartened when the economy shrank just 0.3 in the first three months of 2016 from the fourth quarter of 2015. It was the best quarterly performance since the end of 2014.
But the economy was still 5.4 percent smaller than it had been a year earlier. And May retail sales were down 9 percent from a year earlier.
''I don't see where growth is going to come from,'' says Monica de Bolle, a senior fellow at the Peterson Institute for International Economics. ''People are still being fired. We do not know when the labor market is going to stabilize... I do not see anything coming from consumption.''
De Bolle says that while she's impressed with Temer's economic team, she wonders whether it can get its plans for spending cuts through a dysfunctional National Congress.
''The overall situation is still extremely murky and very, very uncertain,'' she says.
Bastos, the former car salesman, is trying to adjust.
His wife's job at a construction company looks wobbly now that the massive buildout for the Olympics is drawing to an end. He has stopped shopping at the supermarket in his middle class neighborhood and now drives across the city only once a month to pick up necessities at a wholesale market.
Family vacations? A distant memory. He thinks he'll have to get used to a more modest lifestyle.
''This isn't something that we can fix in one or two years,'' Bastos says. ''It'll take Brazil at least 10 or 15 years to get back to where we were.''
Wiseman reported from Washington.
Follow Paul Wiseman on Twitter at https://twitter.com/PaulWisemanAP