Minecarts and Rails can now go underwater and are affected by bubbles in the new snapshot of 1.17. Just found out about this with a Minecraft youtuber i watch. : r/Minecraft
How to build an underwater railway in Minecraft
Is It Normal To Find Minecart With a Chest Underwater? : r/Minecraft
Minecraft: Underwater Transportation and Fort : 5 Steps - Instructables