{# LIBRARIES #}
{{ attach_library('ui_patterns/offer_content.offer_content_lib') }}

{# VARIABLES #}
{% set floating_top = floating_top|default(false) %}
{% set badge_position = badge_position|default('image') %}
{% set back_link_url = back_link_url|default(false) %}

{# TEMPLATE #}
{% include "@organisms/tm-off/offer-content/partials/offer-back.twig" %}

{% include "@molecules/tm-bits/tm-bits-tags.twig" with {'tags': tags} only %}

{% include "@organisms/tm-off/offer-content/partials/offer-top.twig" %}

<div class="row">

  {% include "@organisms/tm-off/offer-content/partials/offer-intro.twig" %}

  <div class="col-md-6">
    {% include "@organisms/tm-off/offer-content/partials/offer-claim.twig" %}
  </div>

  <div class="col-md-6">
    {% include "@organisms/tm-off/offer-content/partials/offer-blk.twig" with {
      'header': 'Restrictions',
      'text': restrictions,
    } only %}

    {% include "@organisms/tm-off/offer-content/partials/offer-date.twig" %}

    {% include "@organisms/tm-off/offer-content/partials/offer-blk.twig" with {
      'header': 'Disabled info',
      'text': disabled_info,
    } only %}

    {% include "@organisms/tm-off/offer-content/partials/offer-buy-tickets.twig" %}

  </div>

  {% include "@organisms/tm-off/offer-content/partials/offer-map.twig" %}

  {% if opening_times %}
    <div class="col-md-6">
      {% include "@organisms/tm-off/offer-content/partials/offer-blk.twig" with {
        'header': 'Opening times',
        'text': opening_times,
      } only %}
    </div>
  {% endif %}

  {% if telephone or  voucher_type %}
    <div class="col-md-6">
      {% include "@organisms/tm-off/offer-content/partials/offer-blk.twig" with {
        'header': 'Telephone',
        'text': telephone,
      } only %}

      {% include "@organisms/tm-off/offer-content/partials/offer-blk.twig" with {
        'header': 'ATOC voucher type',
        'text': voucher_type,
      } only %}
    </div>
  {% endif %}

  {% if terms %}
    <div class="col-md-6">
      {% include "@organisms/tm-off/offer-content/partials/offer-blk.twig" with {
        'header': 'Terms and conditions',
        'text': terms,
      } only %}
    </div>
  {% endif %}

  {% if getting_there or nearest_station %}
    <div class="col-md-6">

      {% include "@organisms/tm-off/offer-content/partials/offer-blk.twig" with {
        'header': 'Getting there',
        'text': getting_there,
      } only %}

      {% include "@organisms/tm-off/offer-content/partials/offer-station.twig" %}

    </div>

  {% endif %}

</div>
