{# LIBRARIES #}
{% extends "@molecules/tm-bs/card/card.twig" %}

{# VARIABLES #}
{% set link_scope = 'card' %}
{% set card_link = card_link %}
{% set card_class = 'property-card cbelianr' %}
{% set show_header = true %}
{% set show_footer = false %}

{# BLOCKS #}
{% block card_header %}
  {% include "@atoms/tm-links/icon-bookended/icon-bookended.twig" with {
    "text":title,
    "url": url,
    "icon_right": global_icon_right|default('fas fa-chevron-right'),
    "tag_name": "h2"
  } only %}
{% endblock %}

{% block card_body %}
  {{ attach_library('ui_patterns/property_card.property_card_lib') }}

  {% include "@atoms/html5/image/image.twig" with {
    'alt': img_alt,
    'url': img_url,
    'img_attributes': img_attributes|default(create_attribute()),
    'img_class': 'w-100 card-image',
    'type': 'fg'
  } only %}

  <div class="property-table">
    {% for row in rows %}
      <div class="row-body">
        <label>{{row.label}}:</label> {{row.text}}
      </div>
    {% endfor %}
  </div>

{% endblock %}
