Hundreds of mosques thrust their thin, ornate minarets into the sky, above the hubbub of the metropolis.