Climate change is wrecking the delicate balance between groundwater and ocean water, according to new research.