{# LIBRARIES #}
{{ attach_library('ui_patterns/com_fil_sidebar.com_fil_sidebar_lib') }}

{# TEMPLATE #}
{% if venue_link %}
  <h2 class="cf-venue-link">
    {% include "@atoms/tm-links/standard/standard.twig" with {
      "text": venue_link.text,
      "url": venue_link.url
    } only %}
  </h2>
{% endif %}

{% if address %}
  <div class="cf-venue-address blk">
    <p class="address-header"><strong>Address:</strong></p>
    <ul class="ulc">
      {% for address_line in address %}
        <li>{{ address_line }}</li>
      {% endfor %}
    </ul>
  </div>
{% endif %}

{% if features %}
  <div class="cf-features">
    {% for feature in features %}
      <span class="feature">{{ feature }}</span>
    {% endfor %}
  </div>
{% endif %}

{% if cta_text and cta_path and cta_link_text %}
  {% include '@molecules/tm-cta/cta.twig' with {
    'title': cta_text,
    'link_url': cta_path,
    'link_title': cta_link_text,
    'cta_class': 'cta-plain mb-4',
  } only %}
{% endif %}

{% if image_gallery %}
  {{ image_gallery }}
{% endif %}
