{% extends "base.html" %} {% block title %}{{ listing.seo_title_en or (listing.year|string + ' ' + listing.make + ' ' + listing.model + ' ' + (listing.trim or ''))|trim }} | {{ settings.company_name }}{% endblock %} {% block og_type %}product{% endblock %} {% block og_title %}{{ listing.seo_title_en or (listing.year|string + ' ' + listing.make + ' ' + listing.model + ' ' + (listing.trim or ''))|trim }}{% endblock %} {% block meta %} {% if listing.meta_description_en %} {% endif %} {% if listing_images %} {% endif %} {% endblock %} {% block content %}
{# Breadcrumbs #} {# ===== 1. IMAGE GALLERY ===== #}
{# Hero Image Area #}
{% if listing_images %} {{ listing_images[0].alt }} {# Navigation Arrows #} {% if listing_images|length > 1 %} {% endif %} {% else %}

{{ t('no_images', lang) }}

{% endif %} {# Image Counter Overlay #} {% if listing_images %} {% endif %}
{# Thumbnail Strip #} {% if listing_images|length > 1 %}
{% for image in listing_images %} {% endfor %}
{% endif %} {# Zoom lightbox (Alpine) #}
{# ===== 2. TITLE + PRICE BAR ===== #}

{{ listing.year }} {{ listing.make }} {{ listing.model }} {{ listing.trim or '' }}

{% if listing.status == 'Sold' %} ● {{ t('sold', lang) }} {% elif listing.status == 'Reserved' or listing.status == 'Pending' %} ● {{ t('reserved', lang) }} {% endif %} {% if listing.certified %} {{ t('certified', lang) }} {% endif %}

CAD {{ format_price_for_language(listing.price) }}

{{ t('price_plus_tax', lang) }}

{% if settings.savings_banner_enabled and listing.savings is defined and listing.savings and listing.savings > 0 and listing.msrp is defined and listing.msrp and listing.msrp|float > (listing.price|string|replace(',', ''))|float %}

{{ t('save', lang) }} CAD {{ format_price_for_language(listing.savings) }} {{ t('vs_msrp', lang) }} CAD {{ format_price_for_language(listing.msrp) }}

{% endif %}
{# --- Pricing disclaimer --- #}

{{ t('pricing_disclaimer', lang) }}

{# ===== 3. QUICK STATS ROW ===== #}
{# Odometer #}
{{ '{:,.0f}'.format(listing.odometer) if listing.odometer else '---' }} km
{# Transmission #}
{{ listing.transmission or '---' }}
{# Fuel Type #}
{{ listing.fuel_type or '---' }}
{# Drive Line #}
{{ listing.drive_line or '---' }}
{# Exterior Color with dot #}
{{ listing.exterior_color or '---' }}
{# Doors #}
{{ listing.doors if listing.doors else '---' }} {{ t('doors', lang) }}
{# Body Style #}
{{ listing.body_style or '---' }}
{# ===== LISTING LAYOUT: promo (desktop) -> specs|contact (60/40) -> description -> safety -> similar ===== #} {# Promo banner: desktop only (mobile has no promo — unchanged from today) #} {% if promo_enabled and promo_placement in ('listing', 'both') %} {% endif %} {# Mobile enquiry card (mobile only — unchanged) #}

{{ t('interested_in_this_vehicle', lang) }}

{# Mobile Carfax (mobile only — unchanged) #} {% if settings.carfax_button_enabled and listing.vin and (listing.carfax_enabled is none or listing.carfax_enabled) %}

{{ t('carfax_vehicle_history', lang) }}

{{ t('carfax_description', lang) }}

{{ t('view_carfax_report', lang) }}
{% endif %} {# Mobile Inspection Report (mobile only — shown only when shop-approved) #} {% if settings.inspection_button_enabled and report and report.status == 'approved' %}

{{ t('view_inspection_report', lang) }}

Pre-sale mechanical inspection, shop-approved.

{{ t('view_inspection_report', lang) }}
{% endif %} {# 60/40 row: Specifications (left, always visible) + Contact card (right, desktop only) #}
{# Specifications card #}

{{ t('specifications', lang) }}

{% if listing.engine %} {% endif %} {% if listing.transmission %} {% endif %} {% if listing.fuel_type %} {% endif %} {% if listing.drive_line %} {% endif %} {% if listing.body_style %} {% endif %} {% if listing.doors %} {% endif %} {% if listing.exterior_color %} {% endif %} {% if listing.interior_color %} {% endif %} {% if listing.odometer is not none %} {% endif %} {% if listing.public_stock_number %} {% endif %}
{{ t('engine', lang) }} {{ listing.engine }}
{{ t('transmission', lang) }} {{ listing.transmission }}
{{ t('fuel_type', lang) }} {{ listing.fuel_type }}
{{ t('drivetrain', lang) }} {{ listing.drive_line }}
{{ t('body_style', lang) }} {{ listing.body_style }}
{{ t('doors', lang) }} {{ listing.doors }}
{{ t('exterior_color', lang) }} {{ listing.exterior_color }}
{{ t('interior_color', lang) }} {{ listing.interior_color }}
{{ t('odometer', lang) }} {{ '{:,.0f}'.format(listing.odometer) }} km
{{ t('stock_number', lang) }} {{ listing.public_stock_number }}
{# Contact card (desktop only — mobile uses #enquireMobile above) #}
{# Description (full width — unchanged) #} {% if listing.description_html_en %}

{{ t('description', lang) }}

{{ listing.description_html_en|safe }}
{% endif %} {# Safety certification (full width — unchanged) #} {% if listing.safety_certified == 1 %}

{{ t('safety_certified_title', lang) }}

{{ t('safety_certified_description', lang) }}

{{ t('certified', lang) }}
{% endif %} {# Similar vehicles carousel #} {% if similar_listings %}

{{ t('similar_vehicles', lang) }}

{% endif %}
{# ===== MOBILE STICKY BOTTOM BAR ===== #}

CAD {{ format_price_for_language(listing.price) }}

{{ t('enquire', lang) }}
{# ===== GALLERY JAVASCRIPT (Alpine.js) ===== #} {% endblock %}