With a lavish royal palace, a famous casino, a historic old quarter perched atop a rocky outcrop, and a harbor gleaming with luxury yachts.