{# VARIABLES #}
{% set swap_sidebar_form = swap_sidebar_form|default(false) %}

{# TEMPLATE #}
{% if title_suffix is not empty  or attributes['data-quickedit-entity-id'] %}
  <article{{ attributes }}> {{ title_suffix }}
{% endif %}

  {% if pre_content %}
    {{ pre_content }}
  {% endif %}

  {# GA #}
  {% if content and form %}

    <div class="row mb-3">
      <div class="col-md-8">
        {{ content['body'] }}
      </div>
      <div class="col-md-4">
        {{ form }}
      </div>
    </div>

    {{ content|without(['body']) }}

  {# WMR #}
  {% else %}
    {% include '@organisms/tm-am/tm-am.twig' %}

    {% if swap_sidebar_form %}
      <div id="bkf-mobile-target" data-alt-toggle="swapper" data-alt-target=".exp-frm-wrap" data-alt-break-down="md"></div>
    {% endif %}

    {{ content['body'] }}

    {% if route_cards %}
      {{ route_cards}}
    {% endif %}

    {% if content['field_dest_stf_under_route_cards'] %}
      {{ content['field_dest_stf_under_route_cards'] }}
    {% endif %}

    {% if route_cards_images %}
      {{ route_cards_images }}
    {% endif %}

    {% if node.field_dest_stf_extra_content.value %}
      <div class="mt-4 pb-5 row extra-content">
        <div class="col-xl-8">
          {{ content['field_dest_stf_extra_content'] }}
        </div>
      </div>
    {% endif %}

    {{ destinations_things_to_do }}

    {% if stations_cards %}
      <h2 class="h2 mb-3" data-alt-anchor-link="{{ text.station_information_anchor_link }}">{{ text.station_information_header }}</h2>
      {% include "@organisms/tm-scaffold/rows-cols/rows-cols.twig" with {
        'batch': 2,
        'items': stations_cards,
        'auto_height': true,
        'row_class': 'mb-0',
        'col_class': 'mb-4 col-md-6',
      } only %}
    {% endif %}

    {% if faqs %}
      <div class="col-md-8">
        <h2 data-alt-anchor-link="{{ text.faqs_anchor_link }}">{{ text.faqs_header }}</h2>
        {{ pattern('bs-accordion-items', faqs, 'aci_a') }}
      </div>
    {% endif %}

  {% endif %}

  {% if post_content %}
    {{ post_content }}
  {% endif %}


{% if title_suffix is not empty  or attributes['data-quickedit-entity-id'] %}
  </article>
{% endif %}
