(b) The conversion or demolition of existing residential dwelling units occupied by persons and families of low or moderate income, as defined in Section 50093 of the Health and Safety Code, shall not be authorized unless provision has been made for the replacement of those dwelling units with units for persons and families of low or moderate income. Replacement dwelling units shall be located within the same city or county as the dwelling units proposed to be converted or demolished. The replacement dwelling units shall be located on the site of the converted or demolished structure or elsewhere within the coastal zone if feasible, or, if location on the site or elsewhere within the coastal zone is not feasible, they shall be located within three miles of the coastal zone. The replacement dwelling units shall be provided and available for use within three years from the date upon which work commenced on the conversion or demolition of the residential dwelling unit. In the event that an existing residential dwelling unit is occupied by more than one person or family, the provisions of this subdivision shall apply if at least one such person or family, excluding any dependents thereof, is of low or moderate income. For purposes of this subdivision, a residential dwelling unit shall be deemed occupied by a person or family of low or moderate income if the person or family was evicted from that dwelling unit within one year prior to the filing of an application to convert or demolish the unit and if the eviction was for the purpose of avoiding the requirements of this subdivision. If a substantial number of persons or families of low or moderate income were evicted from a single residential development within one year prior to the filing of an application to convert or demolish that structure, the evictions shall be presumed to have been for the purpose of avoiding the requirements of this subdivision and the applicant for the conversion or demolition shall bear the burden of proving that the evictions were not for the purpose of avoiding the requirements of this subdivision.
The requirements of this subdivision for replacement dwelling units shall not apply to the following types of conversion or demolition unless the local government determines that replacement of all or any portion of the converted or demolished dwelling units is feasible, in which event replacement dwelling units shall be required:
(1) The conversion or demolition of a residential structure which contains less than three dwelling units, or, in the event that a proposed conversion or demolition involves more than one residential structure, the conversion or demolition of 10 or fewer dwelling units.(2) The conversion or demolition of a residential structure for purposes of a nonresidential use which is either "coastal dependent," as defined in Section 30101 of the Public Resources Code, or "coastal related," as defined in Section 30101.3 of the Public Resources Code. However, the coastal-dependent or coastal-related use shall be consistent with the provisions of the land use plan portion of the local government's local coastal program which has been certified as provided in Section 30512 of the Public Resources Code. Examples of coastal-dependent or coastal-related uses include, but are not limited to, visitor-serving commercial or recreational facilities, coastal-dependent industry, or boating or harbor facilities.(3) The conversion or demolition of a residential structure located within the jurisdiction of a local government which has within the area encompassing the coastal zone, and three miles inland therefrom, less than 50 acres, in aggregate, of land which is vacant, privately owned and available for residential use.(4) The conversion or demolition of a residential structure located within the jurisdiction of a local government which has established a procedure under which an applicant for conversion or demolition will pay an in-lieu fee into a program, the various provisions of which, in aggregate, will result in the replacement of the number of dwelling units which would otherwise have been required by this subdivision. As otherwise required by this subdivision, the replacement units shall, (i) be located within the coastal zone if feasible, or, if location within the coastal zone is not feasible, shall be located within three miles of the coastal zone, and (ii) shall be provided and available for use within three years from the date upon which work commenced on the conversion or demolition. The requirements of this subdivision for replacement dwelling units shall not apply to the demolition of any residential structure which has been declared to be a public nuisance under the provisions of Division 13 (commencing with Section 17000) of the Health and Safety Code, or any local ordinance enacted pursuant to those provisions.
For purposes of this subdivision, no building, which conforms to the standards which were applicable at the time the building was constructed and which does not constitute a substandard building, as provided in Section 17920.3 of the Health and Safety Code, shall be deemed to be a public nuisance solely because the building does not conform to one or more of the current provisions of the Uniform Building Code as adopted within the jurisdiction for new construction.