If we were talking about a female-mayor, we would say "Est-ce la maire ?". There are a few professions which don't have a feminine equivalent, so we take the masculine form and put a feminine article. Another example : le juge / la juge = the judge (masc. / fem.).
When you refer to them, you can say : "Monsieur le maire" or "Madame la maire"