XML 50 R43.htm IDEA: XBRL DOCUMENT
v3.24.2

Debt - Additional Information (Detail) - USD ($) | 1 Months Ended | 6 Months Ended |
--- | --- | --- | ---
Oct. 31, 2023 | Jan. 31, 2023 | Feb. 28, 2022 | Oct. 31, 2021 | Jun. 30, 2024 | Jun. 21, 2018
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Notional Amount | $ 75,000,000 |  |  |  |  |
Fifth Amended and Restated Prudential Agreement [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Amount of rate increase in case of default |  |  |  |  | 2.00% |
Second Amended and Restated AIG Agreement [Member] | Series L Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 55,000,000 |  |  |
Interest Rate |  |  | 3.45% |  |  |
Maturity Date |  |  | Feb. 22, 2032 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Feb. 22, 2032 |  |  |
Interest rate on agreement |  |  | 3.45% |  |  |
First Amended and Restated AIG Agreement [Member] | Series G Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 50,000,000 |  |  |
Interest Rate |  |  | 3.52% |  |  |
Maturity Date |  |  | Sep. 12, 2029 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Sep. 12, 2029 |  |  |
Interest rate on agreement |  |  | 3.52% |  |  |
First Amended and Restated AIG Agreement [Member] | Series J Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 50,000,000 |  |  |
Interest Rate |  |  | 3.43% |  |  |
Maturity Date |  |  | Nov. 25, 2030 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Nov. 25, 2030 |  |  |
Interest rate on agreement |  |  | 3.43% |  |  |
First Amended and Restated MassMutual Agreement [Member] | Series H Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 25,000,000 |  |  |
Interest Rate |  |  | 3.52% |  |  |
Maturity Date |  |  | Sep. 12, 2029 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Sep. 12, 2029 |  |  |
Interest rate on agreement |  |  | 3.52% |  |  |
First Amended and Restated MassMutual Agreement [Member] | Series K Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 25,000,000 |  |  |
Interest Rate |  |  | 3.43% |  |  |
Maturity Date |  |  | Nov. 25, 2030 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Nov. 25, 2030 |  |  |
Interest rate on agreement |  |  | 3.43% |  |  |
First Amended and Restated MassMutual Agreement [Member] | Series M Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 20,000,000 |  |  |
Interest Rate |  |  | 3.45% |  |  |
Maturity Date |  |  | Feb. 22, 2032 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Feb. 22, 2032 |  |  |
Interest rate on agreement |  |  | 3.45% |  |  |
First Amended and Restated MassMutual Agreement [Member] | Series O Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  | $ 20,000,000 |  |  |  |
Interest Rate |  | 3.65% |  |  |  |
Maturity Date |  | Jan. 20, 2033 |  |  |  |
Senior unsecured note purchase agreement, maturity date |  | Jan. 20, 2033 |  |  |  |
Interest rate on agreement |  | 3.65% |  |  |  |
Sixth Amended And Restated Prudential Agreement [Member] | Series B Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 75,000,000 |  |  |
Interest Rate |  |  | 5.35% |  |  |
Maturity Date |  |  | Jun. 02, 2023 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Jun. 02, 2023 |  |  |
Interest rate on agreement |  |  | 5.35% |  |  |
Sixth Amended And Restated Prudential Agreement [Member] | Series C Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 50,000,000 |  |  |
Interest Rate |  |  | 4.75% |  |  |
Maturity Date |  |  | Feb. 25, 2025 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Feb. 25, 2025 |  |  |
Interest rate on agreement |  |  | 4.75% |  |  |
Sixth Amended And Restated Prudential Agreement [Member] | Series D Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 50,000,000 |  |  |
Interest Rate |  |  | 5.47% |  |  |
Maturity Date |  |  | Jun. 21, 2028 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Jun. 21, 2028 |  |  |
Interest rate on agreement |  |  | 5.47% |  |  |
Sixth Amended And Restated Prudential Agreement [Member] | Series F Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 50,000,000 |  |  |
Interest Rate |  |  | 3.52% |  |  |
Maturity Date |  |  | Sep. 12, 2029 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Sep. 12, 2029 |  |  |
Interest rate on agreement |  |  | 3.52% |  |  |
Sixth Amended And Restated Prudential Agreement [Member] | Series I Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 100,000,000 |  |  |
Interest Rate |  |  | 3.43% |  |  |
Maturity Date |  |  | Nov. 25, 2030 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Nov. 25, 2030 |  |  |
Interest rate on agreement |  |  | 3.43% |  |  |
Sixth Amended And Restated Prudential Agreement [Member] | Series Q Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 80,000,000 |  |  |
Interest Rate |  |  | 3.65% |  |  |
Maturity Date |  |  | Jan. 20, 2033 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Jan. 20, 2033 |  |  |
Interest rate on agreement |  |  | 3.65% |  |  |
New York Life Agreement [Member] | Series N Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  | $ 25,000,000 |  |  |
Interest Rate |  |  | 3.45% |  |  |
Maturity Date |  |  | Feb. 22, 2032 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Feb. 22, 2032 |  |  |
Interest rate on agreement |  |  | 3.45% |  |  |
New York Life Agreement [Member] | Series P Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  | $ 25,000,000 |  |  |  |
Interest Rate |  | 3.65% |  |  |  |
Maturity Date |  | Jan. 20, 2033 |  |  |  |
Senior unsecured note purchase agreement, maturity date |  | Jan. 20, 2033 |  |  |  |
Interest rate on agreement |  | 3.65% |  |  |  |
Met Life Agreement [Member] | Series E Notes [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  |  |  |  | $ 50,000,000
Interest Rate |  |  |  |  |  | 5.47%
Maturity Date |  |  | Jun. 21, 2028 |  |  |
Senior unsecured note purchase agreement, maturity date |  |  | Jun. 21, 2028 |  |  |
Interest rate on agreement |  |  |  |  |  | 5.47%
Revolving Credit Facility [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  |  | $ 300,000,000 |  |
Line of credit facility, maturity date |  |  |  | Oct. 27, 2025 |  |
Line of credit facility, extension term |  |  |  |  | two six-month extensions (for a total of 12 months) |
Interest Rate |  |  |  |  | 6.70% |
Maturity Date |  |  |  |  | Oct. 27, 2025 |
Senior unsecured note purchase agreement, maturity date |  |  |  |  | Oct. 27, 2025 |
Interest rate on agreement |  |  |  |  | 6.70% |
Revolving Credit Facility [Member] | SOFR [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Credit agreement margin on borrowing base rate |  |  |  |  | 0.10% |
Revolving Credit Facility [Member] | Maximum [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount |  |  |  | $ 300,000,000 |  |
Annual commitment fee on undrawn funds |  |  |  |  | 0.25% |
Revolving Credit Facility [Member] | Maximum [Member] | Base Rate [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Credit agreement margin on borrowing base rate |  |  |  |  | 1.90% |
Revolving Credit Facility [Member] | Maximum [Member] | LIBOR [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Credit agreement margin on borrowing base rate |  |  |  |  | 0.90% |
Revolving Credit Facility [Member] | Minimum [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Annual commitment fee on undrawn funds |  |  |  |  | 0.15% |
Revolving Credit Facility [Member] | Minimum [Member] | Base Rate [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Credit agreement margin on borrowing base rate |  |  |  |  | 1.30% |
Revolving Credit Facility [Member] | Minimum [Member] | LIBOR [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Credit agreement margin on borrowing base rate |  |  |  |  | 0.30% |
Term Loan [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Interest Rate |  |  |  |  | 6.13% |
Maturity Date |  |  |  |  | Oct. 17, 2025 |
Senior unsecured note purchase agreement, maturity date |  |  |  |  | Oct. 17, 2025 |
Interest rate on agreement |  |  |  |  | 6.13% |
Term Loan [Member] | Line of Credit [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Aggregate principal amount | 150,000,000 |  |  |  |  |
Debt instrument initial principal amount | $ 75,000,000 |  |  |  |  |
Line of credit facility, maturity date | Oct. 17, 2025 |  |  |  |  |
Line of credit facility, extension term | one twelve-month |  |  |  |  |
Debt instrument additional principal amount | $ 75,000,000 |  |  |  |  |
Term Loan [Member] | Line of Credit [Member] | SOFR [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Weighted average interest rate | 4.73% |  |  |  |  |
Effective fixed interest rate |  |  |  |  | 6.13% |
Notional Amount | $ 150,000,000 |  |  |  |  |
Term Loan [Member] | Line of Credit [Member] | SOFR Adjustment [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Credit agreement margin on borrowing base rate | 0.10% |  |  |  |  |
Term Loan [Member] | Line of Credit [Member] | Maximum [Member] | SOFR Adjustment [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Credit agreement margin on borrowing base rate | 1.90% |  |  |  |  |
Term Loan [Member] | Line of Credit [Member] | Maximum [Member] | Base Rate [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Credit agreement margin on borrowing base rate | 0.90% |  |  |  |  |
Term Loan [Member] | Line of Credit [Member] | Minimum [Member] | SOFR Adjustment [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Credit agreement margin on borrowing base rate | 1.30% |  |  |  |  |
Term Loan [Member] | Line of Credit [Member] | Minimum [Member] | Base Rate [Member] |  |  |  |  |  |
Credit and Loan Agreement [Line Items] |  |  |  |  |  |
Credit agreement margin on borrowing base rate | 0.30% |  |  |  |  |

X
- Definition Credit and loan agreement. + References No definition available. + Details
Name: | gty_CreditAndLoanAgreementLineItems
Namespace Prefix: | gty_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt instrument additional principal amount. + References No definition available. + Details
Name: | gty_DebtInstrumentAdditionalPrincipalAmount
Namespace Prefix: | gty_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Debt Instrument Initial Principal Amount + References No definition available. + Details
Name: | gty_DebtInstrumentInitialPrincipalAmount
Namespace Prefix: | gty_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The increase in basis points to the base interest rate in the event of a default on the credit agreement. + References No definition available. + Details
Name: | gty_DebtInstrumentRateIncreaseCreditAgreementDefault
Namespace Prefix: | gty_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line of credit facility, extension term. + References No definition available. + Details
Name: | gty_LineOfCreditFacilityExtensionTerm
Namespace Prefix: | gty_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line of credit facility maturity date. + References No definition available. + Details
Name: | gty_LineOfCreditFacilityMaturityDate
Namespace Prefix: | gty_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face (par) amount of debt instrument at time of issuance. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 55 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482949/835-30-55-8 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481139/470-20-50-1B Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69B -Publisher FASB -URI https://asc.fasb.org/1943274/2147481568/470-20-55-69B Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69C -Publisher FASB -URI https://asc.fasb.org/1943274/2147481568/470-20-55-69C Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482900/835-30-50-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482925/835-30-45-2 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Effective interest rate for the funds borrowed under the debt agreement considering interest compounding and original issue discount or premium. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 55 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482949/835-30-55-8 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)(a)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482900/835-30-50-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482925/835-30-45-2 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481139/470-20-50-6 + Details
Name: | us-gaap_DebtInstrumentInterestRateEffectivePercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)(a)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481139/470-20-50-1B + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)(a)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481139/470-20-50-1B + Details
Name: | us-gaap_DebtInstrumentMaturityDate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Weighted average interest rate of debt outstanding. + References No definition available. + Details
Name: | us-gaap_DebtWeightedAverageInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Nominal or face amount used to calculate payment on derivative. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-1B Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1A -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-1A + Details
Name: | us-gaap_DerivativeNotionalAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_MortgageLoansOnRealEstateOriginalLoanAmountAxis=gty_FifthAmendedAndRestatedPrudentialAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MortgageLoansOnRealEstateOriginalLoanAmountAxis=gty_SecondAmendedAndRestatedAIGAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesLNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MortgageLoansOnRealEstateOriginalLoanAmountAxis=gty_FirstAmendedAndRestatedAIGAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesGNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesJNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MortgageLoansOnRealEstateOriginalLoanAmountAxis=gty_FirstAmendedAndRestatedMassMutualAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesHNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesKNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesMNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesONotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MortgageLoansOnRealEstateOriginalLoanAmountAxis=gty_SixthAmendedAndRestatedPrudentialAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesBNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesCNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesDNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesFNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesINoteMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesQNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MortgageLoansOnRealEstateOriginalLoanAmountAxis=gty_NewYorkLifeAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesNNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesPNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MortgageLoansOnRealEstateOriginalLoanAmountAxis=gty_MetLifeAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gty_SeriesENotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=gty_LondonInterbankOfferedRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=gty_TermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=gty_SecuredOvernightFinancingRateSofrAdjustmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |