Court highlights planning challenges in Folkestone