Doyle, Presiding Judge. Morgan County Hospital Authority (“MCHA”) filed a declaratory judgment action against the City of Madison (“the City”) regarding certain property MCHA owned and operated as an acute care hospital (“1077 Main Street”). MCHA intended to sell the property to a buyer to operate an acute drug and alcohol treatment facility (“treatment facility”), which the City refused to allow without the buyer obtaining a conditional use permit (“CUP”). Following the trial court’s entry of judgment in favor of the City, MCHA appeals,[1] arguing that the trial court erred (1) by applying a City zoning ordinance to MCHA, which is immune from zoning as a government entity; (2) by finding that MCHA had abandoned use of 1077 Main Street such that the property could not be sold, leased, or operated as a treatment facility by a buyer without obtaining a CUP; and (3) by finding that MCHA could not itself reopen 1077 Main Street as a treatment facility without obtaining a CUP. For the reasons that follow, we affirm in part and reverse in part. The record shows that MCHA was established by the Morgan County Board of Commissioners in 1957 and operated an acute care hospital at 1077 Main Street in the City beginning in approximately 1960. During operation at 1077 Main Street, in addition to all other hospital services that came and went over the years, MCHA treated the acute needs of individuals experiencing drug and alcohol addiction. During its history, MCHA contracted with at least one private company to provide those services at 1077 Main Street. The facilities at 1077 Main Street became obsolete for many medical purposes, and around 2015, MCHA began construction of a new facility at a different location, relocating most of the hospital operations to that new facility by December 2018. MCHA obtained authorization from the State of Georgia to transfer its certificate of need (“CON”) and all of its various licenses and permits to the new location. Nevertheless, MCHA still used the 1077 Main Street location for some services, including hospital equipment storage, xrays, rental of one building to an orthopedic clinic, hospital billing, physician credentialing, vaccine administration, preparation as a potential treatment overflow location during the COVID-19 pandemic, and emergency and law enforcement training (outlaying approximately $120,000 per year to maintain the facilities to be ready for service within only a few days of request to be back online). In mid-2018 prior to moving most hospital operations, MCHA engaged a broker to sell 1077 Main Street and conducted a market study, which indicated the highest and best use of the site would be as a treatment facility consisting of an acute detoxification center for individuals with substance use disorder, including doctors and nurses caring for those patients during their time at the facility. In order to facilitate the sale, MCHA reached out to the City for assurance that the treatment facility could use the property without violating any zoning provisions. Previously, in July 2018, the City had provided a letter to MCHA stating that “[p]er the Zoning Ordinance, [1077 Main Street] is in the Professional/Office/Institutional District (P1) and Corridor Design Overlay District (CDO). . . . Per the Zoning Ordinance, the current use of the property as a hospital is a permitted use.”[2] In March 2019, however, the City amended its zoning ordinances to provide that if any such [nonconforming] use is abandoned, regardless of intent to resume use by the one having the right to use the property, no non[]conforming use may be resumed. It shall be prima facie evidence of abandonment for the owner and/or one having the right to use the property to (a) discontinue the non[]conforming use for more than twelve (12) months; (b) fail to obtain a new or renew an existing business license and remit the business occupation tax required by the Code of Ordinances for the non[]conforming use; or (c) fail to declare and remit the sales tax required by state law for the non[]conforming use.[3] The City also changed hospitals from permitted uses to conditional uses in P-1 zones, which necessitated buyers to obtain a CUP.[4] The process for issuing a CUP included an application, public hearings, and an ultimate decision made by the City council based on a list of ten subjective criteria.[5] Thereafter, in April 2019, the City sent a new letter to MCHA stating (i) The Project is zoned P1 under the laws or ordinances of the City of Madison, Georgia, which zoning is proper for the Project and related amenities comprising the Project. Based on a recent amendment to our zoning ordinance, any change in the use of the Project will now require a [CUP]; (ii) You have requested an interpretation of the zoning ordinance in the event that the Project is sold to an entity which utilizes the Project for a drug and alcohol rehabilitation facility. Based on the City of Madison’s usual method of interpreting its Zoning Ordinance, the City of Madison takes the position that a drug and alcohol rehabilitation facility is a use which is included under the term ‘Hospital’ as the same is used and defined in its Zoning Ordinance.[6] While that use is included under the term ‘Hospital,’ it is a conditional use. For that reason, it will be necessary to apply for and receive a [CUP] before utilizing the Project as a drug and alcohol rehabilitation facility. MCHA received at least two contracts and several letters of intent, none of which were finalized because they could not get a zoning authorization letter from the City in order to facilitate closing. MCHA did not apply for a CUP because it did not believe that it was legally required to do so, and it would be fruitless in any event. Because of the impasse reached with the City, MCHA filed this declaratory judgment action, seeking a ruling: (1) that the City’s definition of hospital includes use of the premises on 1077 Main Street for a treatment facility; (2) that MCHA has not abandoned the right to use 1077 Main Street for hospital purposes, including as a treatment facility, without securing a CUP; (3) that MCHA is exempt from the City’s zoning laws and therefore can lease 1077 Main Street for any healthcare use, including a treatment facility; (4) that a purchaser of 1077 Main Street that utilizes the hospital property for any acute care behavioral health hospital would be authorized as a vested nonconforming use. After an initial hearing, the trial court issued an order acknowledging that because MCHA is a governmental entity, it is immune from local zoning regulations.[7] The trial court also held that: (1) the former hospital was operating as a valid nonconforming use; and (2) any prospective purchaser would be entitled to the same nonconforming use as MCHA — to operate “a hospital,” but not a treatment facility. The trial court then reserved for ruling after a bench trial the question of whether MCHA intentionally abandoned its nonconforming use, preventing transfer of the nonconforming use to any purchaser of 1077 Main Street. After the bench trial, the trial court entered a final order, finding that [b]ased on the evidence presented, . . . [MCHA] ha[d] abandoned its nonconforming use as a hospital for a period of more than [12] months. [MCHA] contend[ed] that it never has intended to abandon the use of the property as a hospital, but its actions and clear intention to sell the property indicate[d] otherwise. While [MCHA] previously ran the fullfledged Morgan Memorial Hospital on the property, the property ha[d] not been used as a hospital since the new Morgan Medical Center opened . . . in 2019. . . . Although the old hospital campus ha[d] not laid vacant, there ha[d] been no functional hospital at the property for more than [12] months. Instead, the site ha[d] been maintained and used for storage, xray facilities, rental by Athens Orthopedic Clinic, Covid vaccine administration, a potential Covid overflow location, and EMT and law enforcement training. These auxiliary services may benefit the new hospital, but they do not constitute a “hospital” in and of themselves. [Because MCHA] only uses the property for these supplemental services, a purchaser or lessor would only be entitled to use the property for similar purposes without having to obtain a conditional use permit. This appeal followed. 1. As an initial matter, we must determine whether the trial court appropriately issued an order based on MCHA’s petition. Under Georgia law, declaratory judgment actions are governed by the Declaratory Judgment Act, which provides: In cases of actual controversy, the respective superior courts of this state shall have power, upon petition or other appropriate pleading, to declare rights and other legal relations of any interested party petitioning for such declaration, whether or not further relief is or could be prayed; and the declaration shall have the force and effect of a final judgment or decree and be reviewable as such. To secure a declaratory judgment, the plaintiff must show facts or circumstances whereby it is in a position of uncertainty or insecurity because of a dispute and of having to take some future action which is properly incident to its alleged right, and which future action without direction from the court might reasonably jeopardize its interest. A declaratory judgment may not be granted in the absence of a justiciable controversy. The object of the declaratory judgment is to permit determination of a controversy before obligations are repudiated or rights are violated.[8] “A declaratory judgment may not be granted in the absence of a justiciable controversy. . . . [B]ecause the issue is a jurisdictional one, we address the issue irrespective of whether it was raised by the parties.”[9] In this case, MCHA has marketed 1077 Main Street to prospective purchasers for a number of years, reaching at least two asking-price offers, and it has been prevented from closing by the City’s insistence that the purchaser obtain a CUP. The City’s ordinance change has created a sufficient controversy such that the trial court correctly ruled on MCHA’s petition and has not issued an improper advisory opinion.[10] While we note that no potential lease appears in the record,[11] the City conceded at the abandonment hearing that MCHA could sell or lease without respect to zoning ordinances. 2. Next, the trial court correctly found that MCHA is immune from the City’s zoning ordinances.[12] Thus, in the event that MCHA retained ownership of the property and operated a treatment facility at 1077 Main Street, it would be immune from any requirement to obtain a CUP under the City’s 2019 zoning ordinances.[13] The City conceded this at the first hearing on the matter. To the extent that the trial court’s orders hold this, we affirm those portions of the orders, but we reverse any portions that could be read to hold otherwise. 3. Finally, MCHA argues that the trial court erred by finding that a third party purchaser that intended to operate a treatment facility at 1077 Main Street could not do so without obtaining a CUP because (1) a treatment facility is not substantially similar to a hospital and would therefore constitute a new use, and (2) MCHA abandoned its hospital use at 1077 Main Street. We review the construction of a zoning ordinance under a de novo standard. The scope of review of the superior court is limited to all errors of law and determination as to whether the judgment or ruling below was sustained by substantial evidence. The substantialevidence standard is effectively the same as the anyevidence standard.[14] “In construing such an ordinance, we consider the general rule that the owner of land in fee has the right to use the property for any lawful purpose.”[15] Moreover, “[n]onconforming uses run with the land and benefit a subsequent purchaser.”[16] And “[i]n order to establish a grandfathered, nonconforming use, it is necessary to show that the land was used for the nonconforming purpose prior to the enactment of the zoning ordinance.”[17] (a) Nature of the use. It is undisputed that there were no zoning regulations applicable to the property when MCHA first established the hospital at 1077 Main Street. Eventually that changed. Prior to moving in December 2018, the City zoning ordinances applicable to 1077 Main Street included the P-1 zone in which healthcare services, including “dental, medical, optometry, psychiatric, [and] chiropractic,” were permitted conforming uses.[18] Permitted conforming uses within healthcare services included “clinics (day services only), hospitals and laboratories, nursing homes/facility, [and] private offices.” “Sanitariums and mental institutions,” were prohibited in P-1. Although it is not clear when, at some point the City added “personal care homes” and “personal care establishments”[19] to healthcare services, with the former being conditional use and the latter being permitted uses; these classifications were also in the 2019 ordinances. All of the terms were undefined in the ordinances, except personal care establishment, and the code stated that dictionary definitions should apply for undefined terms. MCHA presented the following definitions for hospital: “‘[h]ospital’ is customarily defined as ‘an institution where the ill or injured may receive medical, surgical, or psychiatric treatment, nursing care, food and lodging, etc. ‘Hospital’ is a place to receive medical attention. ‘Hospital’ is a facility that provides emergency, inpatient and outpatient medical care for sick or injured people.”[20] Alternatively, it provided that “[h]ospital’ is ‘an institution providing medical, surgical, or psychiatric testing and treatment for people who are ill, injured, pregnant, etc. on an inpatient, outpatient, or emergency care basis: often involved with public health programs, research, medical education, etc.’”[21] Finally, MCHA provided a third definition: “‘[h]ospital’ is ‘an institution for the medical, surgical, obstetric, or psychiatric care and treatment of patients.’”[22] The trial court did not apply any dictionary definition of hospital to determine whether, based on the evidence presented by the parties about the nature of the services that would be provided at a treatment facility, those services constituted services like those that had been provided by MCHA and/or whether those services constituted services of a hospital. Instead, as we noted, the City and the trial court simply relied on state statutes, regulations, and license definitions to find that the treatment facility would not be a continuation of the use. This was erroneous based on the City’s own rules for defining terms in its ordinance.[23] Moreover, the City has failed to present any evidence that the proposed treatment facility would provide substantially different services than the historic uses at 1077 Main Street under MCHA and instead continues to rely on state regulatory schemes for its arguments before this court.[24] The record established that MCHA conducted a wide array of services at 1077 Main Street, which included treatment of individuals with drug and alcohol addiction, patients admitted for care for a vast number of conditions, clinics with physicians, different tests and laboratories, and various administrative tasks. Based on the definitions of hospital provided by MCHA, the treatment facility appears to constitute a hospital in that it will provide medical and psychological care to patients. Zoning ordinances “must be strictly construed in favor of the property owner and never extended beyond their plain and explicit terms. Any restrictions must be clearly established, and ambiguities in the language of zoning ordinances should be resolved in favor of the free use of property.”[25] The record before us establishes that a treatment facility constitutes a hospital use for purposes of the City ordinances[26] and would be a continuation of the type of legal non-conforming use historically occurring at 1077 Main Street. To the extent that the trial court found otherwise, we reverse those rulings. (b) Abandonment. Until December 2018, it is undisputed that MCHA operated a full acute care hospital at 1077 Main Street, and the City concedes that the use conformed with City ordinances for that district.[27] In presenting evidence of abandonment of the use by MCHA, the City improperly relied on its own zoning definition, noting that MCHA transferred its state CON and did not obtain a business license solely for 1077 Main Street. Of course, the City’s definition of abandonment does not apply to MCHA, as the City has conceded. Therefore, if anything, the trial court should have applied the common law definition of abandonment, which historically “was construed to mean the intentional relinquishment of a known right to devote the property to a permitted nonconforming use, evidenced by an overt act or failure to act, sufficient to support the implication of such an intent.”[28] MCHA established that it operated an acute care hospital at 1077 Main Street for almost 60 years, providing a range of healthcare services, both emergency and non-emergency, over that time period. Prior to moving, MCHA began marketing 1077 Main Street to other healthcare providers. Despite its move and inability to close on a sale, MCHA continues to house some of its hospital operations at 1077 Main Street, even though the full variety of hospital services do not currently occur at that location. Despite this, MCHA has spent over $100,000 a year maintaining the facilities and could restart full operations at the facility in a matter of days if necessary.[29] Pretermitting whether the common law notion of abandonment can even be applied to the vested right of a government actor like MCHA, in this case, the record before us does not establish any intent to abandon the use at 1077 Main Street by MCHA under the common law understanding of abandonment.[30] Therefore, to the extent that the trial court found otherwise, we reverse those rulings. Judgment affirmed in part and reversed in part. Gobeil, J., and Senior Judge C. Andrew Fuller concur.