{# LIBRARIES #}
{{ attach_library('ui_patterns/station_address_card.station_address_card_lib') }}
{% set button_text = button_text|default('Learn more') %}

{# TEMPLATE #}
<div class="station-address-card">
  <h3 class="name">{{ title }}</h3>
  <div class="station-address">
    {% for line in address %}
      {% if line %}
        {{ line }}<br>
      {% endif %}
    {% endfor %}
  </div>
  <p><a href="{{ map_url }}">Map of {{ title }}</a></p>
  <a href="{{ url }}" class="btn btn-outline-dark btn-sm station-link">{{ button_text }}</a>
</div>
