<div class="listing-card clearfix">
<a href="{{ path('neighborhood_main_page', {'location_slug' : neighborhood.slug })}}" target="_blank">
{% if neighborhood.mainPhoto %}
<img class="lazyload" src="/images/placeholder.svg" data-src="{{ custom_vich_uploader_asset(neighborhood.mainPhoto.file, 'file') | thumbnail('search-thumb') }}" alt="{{ neighborhood.title|excludeNumbers }}" width="368">
{% else %}
<img src="{{ asset('https://placehold.it/368x250/FCFCFC/B6B6B6&text=No+Photo') }}" alt="{{ neighborhood.title }}" width="368">
{% endif %}
</a>
<p class="titleTag"><a href="{{ path('neighborhood_main_page', {'location_slug' : neighborhood.slug })}}" target="_blank">{{ neighborhood.title }}</a></p>
{% if neighborhood.compoundFilter and neighborhood.propertyTypes|length > 0 %}
<p>
{% for propertytype in neighborhood.propertyTypes %}
{{ propertytype.title }} {% if not loop.last %} - {% endif %}
{% endfor %}
</p>
{% endif %}
<div class="clearfix priceContainer">
<a href="{{ path('neighborhood_main_page', {'location_slug' : neighborhood.slug })}}" target="_blank" class="detailsButton">{{ 'layout.details_button'|trans }}</a>
{% if neighborhood.getSingleStatistics() and neighborhood.getSingleStatistics().avgPrice %}
<ul>
<li id="price"><span class="integer">{{ neighborhood.getSingleStatistics().avgPrice|number_format }} {{ get_setting('general', 'currency')|trans }}</span>
</li>
<li> {{ "neighborhoods.average"|trans }}</li>
</ul>
{% endif %}
</div>
</div><!-- end .neighborhood.clearfix -->