I've been reading about Hopf fibrations. In the Wikipedia page, they state that the Hopf construction generalises to higher-dimensional projective spaces. More specifically, they write that
The Hopf construction gives circle bundles $p:S^{2n+1}\to\mathbb{CP}^n$ over complex projective space [sic]. This is actually the restriction of the tautological line bundle over $\mathbb{CP}^n$ to the unit sphere in $\mathbb{C}^{n+1}$."
I understand the "standard" $n=1$ case as follows: define $p:S^3\to S^2$ as: $$p(x_1,y_1,x_2,y_2) = (2(x_1 x_2+y_1 y_2), 2(x_1 y_2-x_2 y_1),x_1^2+y_1^2-x_2^2-y_2^2),$$ so that $p(x_1,y_1,x_2,y_2)\in S^2$ whenever $(x_1,y_1,x_2,y_2)\in S^3$. We then use the standard diffeomorphism $S^2\simeq\mathbb{CP}^1$ to conclude that there is a projection $\tilde p:S^3\to\mathbb{CP}^1$ which, for all $(x_1,y_1,x_2,y_2)\in S^3$ and $\theta\in\mathbb R$, satisfies $$\tilde p(\cos\theta\, x_1,\sin\theta\, y_1,\cos\theta\, x_2,\sin\theta\, y_2) = \tilde p(x_1,y_1,x_2,y_2),$$ meaning that $\tilde p^{-1}(x)\simeq S^1$ for all $x\in\mathbb{CP}^1$.
While that is fine, it hinges on the Hopf map $S^3\to S^2$, which seems rather ad hoc. How does this mapping generalise to $\mathbb{CP}^n$?
You are right, the Hopf map $p : S^3 \to S^2$ is a very special construction. It is based on two ingredients:
$S^3$ can be regarded as the set $\{(z_0,z_1) \in \mathbb C^2 \mid \lvert z_0 \rvert^2 + \lvert z_1 \rvert^2 = 1\}$.
$S^2$ can be regarded as the set $\{(w,t) \in \mathbb C \times \mathbb R \mid \lvert w \rvert^2 + t^2 = 1\}$.
The Hopf map is then defined by using complex multiplication: $$p(z_0,z_1) = (2\bar z_0 z_1,\lvert z_0 \rvert^2 - \lvert z_1 \rvert^2 ). \tag{1}$$
However, $S^2$ can be identified naturally with $\mathbb{CP}^1$ and then the Hopf map corresponds to the quotient map $$q : S^3 \to \mathbb{CP}^1, q(z_0,z_1) = [z_0:z_1]. \tag{2}$$ For details see Prove that Hopf maps on $S^3, S^2$ and $\mathbb{C} \mathbb{P}^1$ are smooth submersions and Proving that the Hopf Fibration is a fiber bundle.
But $(2)$ shows that the quotient map $$q : S^{2n+1} \to \mathbb{CP}^n, q(z_0,\ldots,z_n) = [z_0:\ldots:z_n]. \tag{3}$$ is the desired generalization of the Hopf map.