This is a serious positional error: it weakens the Black KP. I played it for tactical reasons, thinking I could keep the White B locked in long enough to get some counter play somehwere else on the baord.
This advanced KP will prove to be a critical outpost for White's pieces: Black has lost control over his own Q3. This shows up the weakness of Black's advanced KBP: he would have needed the KBP to challenge the advanced White KP, but now he cannot.
18... Ra8c8 19. Bc1d2 O-O
A second bad mistake. The Black K belongs on KB2 to try to hold the weakened KP. He will waste a tempo getting there later.