Trapezoid $ABCD$ has $\overline{AB} \parallel \overline{CD}$, $BC = CD = 13$, and $\overline{AD} \perp \overline{BD}$. Let $O$ be the intersection of the diagonals $\overline{AC}$ and $\overline{BD}$, and let $P$ be the midpoint of $\overline{BD}$. Given that $OP = 3$, the length $AD$ can be written in the form $m\sqrt{n}$, where $n$ is squarefree. What is $m + n$?