In the event that the office of mayor shall become vacant by reason of death, resignation or any other cause, the vacancy shall be filled by the mayor pro-tempore who shall serve as mayor with all powers of the mayor until a new mayor is selected as provided below: (a) If the term of the mayor will expire in less than one hundred eighty (180) days, the mayor pro-tempore shall serve as the mayor until the next general election when a new mayor will be elected. (b) If the term of the mayor will continue for more than one hundred eighty (180) days, a special election shall be held as provided in general law to elect a new mayor for the remainder of the vacant mayor's term.