{% if version == 'destination_tab' %}

  {% if ldb %}
      {{ pattern('bs-accordion-items', ldb, 'aci_a_b') }}
  {% endif %}

  {% if info_accordion %}
      {{ pattern('bs-accordion-items', info_accordion, 'aci_a_c') }}
  {% endif %}

  {% if map %}
      <div class="map">{{ map }}</div>
  {% endif %}

{% else %}

  {% if station_information %}
    {{ station_information }}
  {% endif %}

  {% if station_alerts %}
    {% include '@molecules/tm-message/alert/alert.twig' with {
      'status': 'warning',
      'header': station_alerts.header,
      'content': station_alerts.content,
      'header_tag': 'h2',
      'header_class': ' ',
      'icon': '<i class="far fa-exclamation-triangle"></i>'
    } only %}
  {% endif %}

  {% if header_use_extended %}

    {% if name or crs or address %}
      {% embed "@organisms/tm-stations/station-header/station-header.twig" %}
        {% set station = name ~ ' at a glance' %}
      {% endembed %}
    {% endif %}

  {% else %}

    {% if name or crs or address %}
      {% embed "@organisms/tm-stations/station-title/station-title.twig" %}
        {% set station = name ~ ' (' ~ crs ~ ')' %}
      {% endembed %}
    {% endif %}

    {% if map %}
      <div class="map mb-3">{{ map }}</div>
    {% endif %}

  {% endif %}

  {% if station_info_header %}
    <h2 class="h-pri">{{ station_info_header }}</h2>
  {% endif %}

  {% if ldb and not ldb_use_exposed %}
    {{ pattern('bs-accordion-items', ldb, 'aci_a_b') }}
  {% endif %}

  {% if info_accordion %}
    {{ pattern('bs-accordion-items', info_accordion, 'aci_a_c') }}
  {% endif %}

  {% if ldb_exposed_content and ldb_use_exposed%}
    <div id="ldb-exposed" class="mb-3">
      <h2 class="h-pri">{{ ldb_exposed_title }}</h2>
      {{ ldb_exposed_content }}
    </div>
  {% endif %}

  {% if offers_page_path %}
    {% set offers_url = offers_page_path ~ '?combine_1=' ~ name %}
    {% include "@atoms/tm-links/standard/standard.twig" with {
      "url": offers_url,
      "text": "Find offers nearby",
      "class": "btn btn-sm btn-outline-default"
    } %}
  {% endif %}

{% endif %}
