Breakdown of Me dio asco que el apartamento hubiera estado tan sucio.
estar
to be (location/state)
sucio
dirty
que
that (relative pronoun, conjunction)
me
to me / myself (reflexive) / me (direct object)
Questions & Answers about Me dio asco que el apartamento hubiera estado tan sucio.
Why is the Past Perfect Subjunctive (hubiera estado) used here instead of the Imperfect Subjunctive (estuviera)?
The main verb (dio) is in the past tense, which requires a past subjunctive in the subordinate clause. We use the Past Perfect Subjunctive (hubiera estado) specifically because the apartment being dirty happened before the feeling of disgust. If they happened at the same time, you would use estuviera.
Can I use the other imperfect subjunctive ending for haber here?
Yes, you can say hubiese estado. The auxiliary verb in the Past Perfect Subjunctive is conjugated in the imperfect subjunctive, which has two interchangeable endings: -ra and -se. The -ra ending is generally more common, but both are perfectly correct.
Why doesn't the sentence use the verb disgustar for 'disgusted'?
In Spanish, disgustar is a false friend; it means to upset, annoy, or displease. To say something physically repulses or grosses you out, you use the phrase dar asco (literally 'to give disgust'). Since it expresses an emotion or reaction, it triggers the subjunctive in the clause that follows.
Why does the sentence use estado instead of sido for 'been'?