A 3-day road trip from Bangalore covering Rameshwaram and Madurai is ambitious but achievable with a self-drive vehicle. Since you prefer visiting Rameshwaram first, the total driving distance will be approximately 1,250 km.
The goal is to reach Rameshwaram by evening to witness the sunset over the Pamban Bridge.
Focus on the holy rituals and the ghost town of Dhanushkodi before heading to Madurai.
Cover the main temple site in the morning and drive back to Bangalore.