<header class="header_fixed">
{% if info.counterShow and info.counterDate is not null and IS_HOME_PAGE %}
{# para cambiar de posicion la barra a abajo, agregar clase: 'bottom' a b27 #}
<div class="b27 {{ info.counterFooter ? 'bottom' }}" id="b27-counter-main">
{# para ocultar el dia agregar clase: 'ocultar-dias' a b27-wrap #}
{# para ocultar el texto agregar clase: 'hide-text-on-mobile' a b27-wrap #}
<div class="b27-wrap {{ info.counterShowDays ? '' : 'ocultar-dias' }} {{ info.counterShowTextInResponsive ? '' : 'hide-text-on-mobile' }} {{ info.counterBannerOpacity ? '' : 'no-shadow' }}">
<a {% if info.counterLink %}href="{{ info.counterLink }}"{% endif %} {% if info.counterLinkBlank %}target="_blank"{% endif %} class="b27-left" style="background-color: {{ info.counterBackgroundcolor ?: '#0D5EA5' }}">
<div class="b27-bg" style="background-image: url({{ asset(info.counterBannerImageResponsive)|sd_azure }});" ></div>
{% if info.counterText %}
<div class="b27-campana" style="color: {{ info.counterColorText ?: '#FFFFFF' }}">{{ info.counterText }}</div>
{% endif %}
<div class="b27-listado countDown">
<div class="b27-item dias star">
<div class="b27-numer days" style="color: {{ info.counterBackgroundcolor ?: '#0D5EA5' }}">00</div>
<span class="timeRefDays" style="color: {{ info.counterColorText ?: '#FFFFFF' }}">dias</span>
</div>
<div class="b27-item-separador dias">
<em>:</em>
</div>
<div class="b27-item ">
<div class="b27-numer hours" style="color: {{ info.counterBackgroundcolor ?: '#0D5EA5' }}">00</div>
<span class="timeRefHours" style="color: {{ info.counterColorText ?: '#FFFFFF' }}">horas</span>
</div>
<div class="b27-item-separador">
<em>:</em>
</div>
<div class="b27-item">
<div class="b27-numer minutes" style="color: {{ info.counterBackgroundcolor ?: '#0D5EA5' }}">00</div>
<span class="timeRefMinutes" style="color: {{ info.counterColorText ?: '#FFFFFF' }}">minutos</span>
</div>
<div class="b27-item-separador">
<em>:</em>
</div>
<div class="b27-item end">
<div class="b27-numer seconds" style="color: {{ info.counterBackgroundcolor ?: '#0D5EA5' }}">00</div>
<span class="timeRefSeconds" style="color: {{ info.counterColorText ?: '#FFFFFF' }}">segundos</span>
</div>
</div>
</a>
<a {% if info.counterLink %}href="{{ info.counterLink }}"{% endif %} {% if info.counterLinkBlank %}target="_blank"{% endif %} class="b27-right" style="background-image: url({{ asset(info.counterBannerImage)|sd_azure }});">
{% if info.counterBannerTexto %}
<h3 class="b27-title" style="color: {{ info.counterBannerColor ?: '#FFFFFF' }}">
{{ info.counterBannerTexto }}
</h3>
{% endif %}
</a>
<div class="b27-close">
<i class="icon-close1"></i>
</div>
</div>
</div>
{% endif %}
<div class="header_container">
<div class="header_open openMenu" >
<div class="header_menu_open">
<div class="menu-toggle">
<div class="one"></div>
<div class="two"></div>
<div class="three"></div>
<em class="h-text-menu">Menú</em>
</div>
</div>
</div>
<div class="header_content">
{% if info.activeMenuLinks %}
{# NUEVOS ELEMENTOS - TEXTO ADMINISTRABLE - PROGRAMAR #}
<div class="headernew_links">
<ul>
{% for row in info.activeMenuLinks|arr_item_active('show') %}
{% set url = '' %} {% set show = row.show %} {% set blank = '_self' %}
{% if row.page in sd_external_paths %}
{% set url = attribute(info, row.page~'Url') %}
{% set show = attribute(info, row.page~'Show') %}
{% set blank = '_blank' %}
{% else %}
{% set url = path(row.page) %}
{% endif %}
{% if show and row.page != 'map' %}
<li>
<a href="{{ url }}" target="{{ blank }}">{{ row.text }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{# NUEVOS ELEMENTOS - TEXTO ADMINISTRABLE - PROGRAMAR #}
{% endif %}
<div class="header_box">
{% if info.headerLogo %}
<a class="header_logo" href="{{ path('home') }}">
<img src="{{ asset(info.headerLogo)|sd_azure }}" width="188" height="56" alt="{{ info.headerLogo|img_alt }}" />
</a>
{% endif %}
<div class="header_group">
<div class="header_search">
<form class="header_form" id="formFilter">
<ul>
{% set value_location = app.request.query.get("sd_location")|default('') %}
{% set option_pages = ['asia', 'chilca', 'chiclayo', 'ica', 'lambayeque', 'piura'] %}
<li class="header_select h-select-inmueble">
<input type="text" id="headerInputJS" name="sd_type" value="{{ app.request.query.get("sd_type")|default('') }}"/>
<label class="header_select_box headerSelectOpen" for="headerInputJS">
{{ info.headerFilterTypeText|default('Nuestros productos') }}
</label>
<div class="header_select_list headerSelectContent">
{% for item in filter_types %}
<div class="header_option headerOption headerOptionType" data-url="{{ path('map', {'sd_type': item.id}) }}" data-value="{{ item.id }}">
<div class="header_option_text headerText">
<p>{{ item.texto }}</p>
</div>
</div>
{% endfor %}
</div>
</li>
</ul>
{# {% if info.headerFilterBtnShow %}#}
{# <div class="header_search_btn {% if value_location in option_pages %}{{ 'hide' }}{% endif %}">#}
{# <button class="g1-btn" type="submit" id="searchBtn">{{ info.headerFilterBtnText|default('IR') }}</button>#}
{# </div>#}
{# {% endif %}#}
</form>
{% if info.headerMapBtnShow and info.headerMapBtnText %}
{# NUEVO ELEMENTO - TEXTO ADMINISTRABLE - PROGRAMAR #}
{#<div class="headernew_map">#}
{# <a href="{{ path('map') }}">{{ info.headerMapBtnText }} <span class="icon-point"></span></a>#}
{#</div>#}
{# NUEVO ELEMENTO - TEXTO ADMINISTRABLE - PROGRAMAR #}
{% endif %}
</div>
<div class="header_list">
<div class="h-wrap-phones">
{% if info.headerPhone1Show and info.headerPhone1Number %}
<!-- para ocultar est bloque, poner un if que envuelva solos los numeros -->
<a href="tel:{{ info.headerPhone1Number|solonumeros }}" class="h-phone"><i class="icon-phone1"></i>
<span>{{ info.headerPhone1Number }}</span>
</a>
{% endif %}
{% if info.headerPhone2Show and info.headerPhone2Number %}
<a href="tel:{{ info.headerPhone2Number|solonumeros }}" class="h-phone"><i class="icon-phone1"></i>
<span>{{ info.headerPhone2Number }}</span>
</a>
{% endif %}
</div>
<ul class="h-botonera">
{# {% if info.regionInfoShow and info.regionButtonShow %}#}
{# <li>#}
{# <a class="g1-btn yellow-2 w130" href="{{ path('map_clear') }}">{{ info.regionButtonText|default('Otros Proyectos') }}</a>#}
{# </li>#}
{# {% endif %}#}
{% if info.headerPayBtnShow %}
<li>
<a class="g1-btn blue w130" {% if info.headerPayBtnUrl %}href="{{ info.headerPayBtnUrl }}" target="_blank"{% else %}href="{{ path('pay_here') }}"{% endif %}>
{{ info.headerPayBtnText|default('Paga Aquí') }}
</a>
</li>
{% endif %}
{% if info.headerContactBtnShow %}
<li class="header_list_cotizar">
<a class="g1-btn yellow w130" href="{{ path('contact') }}">{{ info.headerContactBtnText|default('Contáctanos') }}</a>
</li>
{% endif %}
<li class="h-new-search-wrap">
<a href="#" class="h-new-search">
<img src="{{ STATIC_URL }}img/icon-search-change.svg" width="24" alt="buscar">
</a>
</li>
</ul>
<div class="header_icon_search">
<div class="header_search_open_res openSearch"><span class="icon-filter"></span></div>
<div class="header_search_close_res closeSearch"><span class="icon-close"></span></div>
</div>
<a href="#" class="h-new-search mobil">
<img src="{{ STATIC_URL }}img/icon-search.svg" width="21" alt="buscar">
</a>
</div>
</div>
</div>
</div>
</div>
</header>
{% if IS_PROPERTY_DETAIL %}
{% include 'front/property/_header.html.twig' %}
{% endif %}
<div class="b50-overlay"></div>
<section class="b50" style="opacity: 0;">
<div class="b50head">
<span class="b50close icon-close1"></span>
<div class="b50head_content wancho">
{% if info.menuLogo %}
<figure class="b50logo">
<img data-src="{{ asset(info.menuLogo)|sd_azure }}" width="227" height="67" alt="{{ info.menuLogo|img_alt }}" class="lazy">
</figure>
{% endif %}
<div class="b50buttons">
{% if info.headerPayBtnShow %}
<a {% if info.headerPayBtnUrl %}href="{{ info.headerPayBtnUrl }}" target="_blank"{% else %}href="{{ path('pay_here') }}"{% endif %} class="b50btn_morado">
{{ info.headerPayBtnText|default('Paga Aquí') }}
</a>
{% endif %}
{% if info.headerContactBtnShow %}
<a href="{{ path('contact') }}" class="b50btn_yellow">{{ info.headerContactBtnText|default('Contáctanos') }}</a>
{% endif %}
</div>
</div>
</div>
{% if info.activeMenuLinks %}
<div class="b50body">
<div class="b50body_content wancho">
<nav class="b50nav">
<ul class="b50list">
{% for row in info.activeMenuLinks|arr_item_active('show') %}
{% set url = '' %} {% set show = row.show %} {% set blank = '_self' %}
{% if row.page in sd_external_paths %}
{% set url = attribute(info, row.page~'Url') %}
{% set show = attribute(info, row.page~'Show') %}
{% set blank = '_blank' %}
{% else %}
{% set url = path(row.page) %}
{% endif %}
{% if show %}
<li class="b50menu_item {{ row.page == 'map' ? ' hide_in_mobile' : '' }}">
<a href="{{ url }}" target="{{ blank }}" class="b50menu_link">
{% if row.icon %}
<figure class="b50menu_icon">
<img data-src="{{ asset(row.icon)|sd_azure }}" width="42" height="40" alt="{{ row.icon|img_alt }}" class="lazy">
</figure>
{% endif %}
<span class="b50menu_text">{{ row.text }}</span>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</nav>
</div>
</div>
{% endif %}
<div class="b50foot">
<div class="b50foot_content wancho">
{% if info.headerPhone1Show and info.headerPhone1Number %}
<div class="b50phone b50phone1">
<a href="tel:{{ info.headerPhone1Number|solonumeros }}" class="b50phone_link">
<span class="b50phone_icon icon-phone1"></span>
<span class="b50phone_text">{{ info.headerPhone1Number }}</span>
</a>
</div>
{% endif %}
{% if info.headerPhone2Show and info.headerPhone2Number %}
<div class="b50phone b50phone2">
<a href="tel:{{ info.headerPhone2Number|solonumeros }}" class="b50phone_link">
<span class="b50phone_icon icon-phone1"></span>
<span class="b50phone_text">{{ info.headerPhone2Number }}</span>
</a>
</div>
{% endif %}
{% if info.footerContactAddressShow and info.footerContactAddressText %}
<div class="b50address">
<p>{{ info.footerContactAddressText }}</p>
</div>
{% endif %}
</div>
</div>
</section>
<!-- BLOQUE 50 -->
<section class="b30">
<span class="b30-close icon-close1"></span>
<div class="wancho">
<div class="b30-inner">
<div class="b30-box-search">
<div class="b30-search">
<span class="icon-search1"></span>
<input class="b30-input-search" type="text" placeholder="Buscar">
</div>
</div>
<div class="b30-list">
<div class="b30-list-initial">
{% for item in list_autocomplete %}
<a href="{{ path('property',{'slug':item.url}) }}" class="b30-item">
<div class="b30-categoria">{{ item.categoria }}</div>
<div class="b30-nombre"> {{ item.label }}</div>
<div class="b30-direccion">
<img data-src="{{ STATIC_URL }}img/ubicacion2.svg" width="18" alt="ubicación" class="lazy">
<p>
{{ item.ubicacion|replace({'-':'<br/>'})|raw }}
</p>
</div>
</a>
{% endfor %}
</div>
<div class="b30-new-list" ></div>
<div class="b30-not-list">
<h3 class="b30-title">
No se encontraron resultados
</h3>
<div class="b30-figure-result">
<img data-src="{{ STATIC_URL }}img/no-result.svg" width="58" alt="sin resultados" class="lazy">
</div>
</div>
</div>
</div>
</div>
</section>