{% 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') }}
  {% endif %}

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

{% else %}

  {% if station_alerts %}
      {{ pattern('alert', station_alerts, 'warning') }}
  {% endif %}

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

  {% if header_use_extended %}

    {% if name or crs or address %}
      {% embed "@organisms/tm-stations/station-header/station-header.twig" %}
        {% set swap_sidebar_form = true %}
        {% 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') }}
  {% 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 %}
