The Villages is interesting as an example because they mostly drive golf carts everywhere. There are gas stations / charging stations specially made for the carts, tunnels and bridges to allow the carts to pass under/over highways, and small parking spaces everywhere for them. Carts are honestly a lot more practical, in my opinion, for a modern city design. You can still easily run errands and carry kids with them, you can drive on slower roads comfortably, they remove a lot of traffic off the roads, and they're cheaper to build special lanes / paths for.
Golf carts are sort of a scourge. I've spent time in Avalon where residents use a lot of golf carts. The gas ones are insanely loud and leave the street smelling like a lawn mower well after they've gone. Gas or electric, due to the nature of their transmission they are jerky at crawling speed and somewhat dangerous around pedestrians compared to a car or moped that can more smoothly crawl at low speed. They also seem to foster a culture of DUIs since they feel like a toy rather than a serious vehicle capable of harming other people, and there isn't enough enforcement to catch them all even though the police are constantly pulling people over in golf carts. They banned golf carts from some streets and made them pedestrian only, and it was far more pleasant.