Barcelona airport is at the south west end of the costa brava but Gerona is nearer to Lloret.
There are fewer airlines flying to Gerona though Ryanair do. Easyjet are amongst the list flying to Barcelona.
I estimate the distance to be around 30 Km and I see that Shuttle Direct quote around 46Euros one way