{% set titleColor = isDefinedAndNotEmpty(promotion.titleColor) ? promotion.titleColor : 'white' %}
{% set shortTextColor = isDefinedAndNotEmpty(promotion.shortTextColor) ? promotion.shortTextColor : 'black' %}
<section class="promo-header">
<div class="promo-header-fixed js-fixed-header">
<picture-component class="js-picture-component is-absolute" :image="{{ picture_data(promotion.image, null) }}"></picture-component>
<div class="container">
<div class="promo-header--big-col" style="color: {{ titleColor }}">
{% for hotel in promotion.hotels %}
<h2 class="promo-header--pretitle">{{ hotel.title }} / {{ hotel.city }}</h2>
{% endfor %}
<h1 class="promo-header--title" id="title-anchor">{{ promotion.title }}</h1>
{% if promotion.showMiraiBookingBar %}
{% include 'partials/global/booking_promo.html.twig' with {'promotion': promotion}%}
{% endif %}
</div>
<div class="promo-header--small-col" style="color: {{ shortTextColor }}">
<div class="promo-header--price">
{% if promotion.showFrom %}
{{ 'app.promotions.from' | trans }}
{% endif %}
<span>{{ promotion.priceTranslation }}</span>
{% if promotion.showTo %}
{{ 'app.promotions.to' | trans }}
{% endif %}
<span>{{ promotion.priceTo }}</span>
</div>
<div class="promo-header--pricetext">
{{ promotion.offer }}
{{ promotion.shortText }}
</div>
{% if not promotion.showMiraiBookingBar %}
{% if promotion.isActive == true %}
<a class="promo-header--link button green is-dark js-promos" href="{{ promotion.externalUrl }}"
target="_blank">
<span>{{ 'app.global.book' | trans }}</span>
</a>
{% else %}
<div class="promo-header--text">{{ 'app.global.not_available' | trans }}</div>
<a class="promo-header--button button green is-dark" href="{{ url('promotions') }}">
<span>{{ 'app.global.not_available_button' | trans }}</span>
</a>
{% endif %}
{% endif %}
{# TODO.end #}
</div>
</div>
<div class="promo-header--anchor-mobile">
<div class="promo-header--anchor-mobile--price">
{% if promotion.showFrom %}
{{ 'app.promotions.from' | trans }}
{% endif %}
<span> {{ promotion.priceTranslation }}</span>
</div>
<div class="promo-header--anchor-mobile--btn">
<a href="#title-anchor"> {{ 'app.promotions.reserve_mobile' | trans }}</a>
</div>
</div>
</div>
</section>