<?php
/**
 * Template: single-vehicle
 *
 * Single vehicle listing page (default PHP layout).
 *
 * The body lives in `parts/single-listing.php` so the Gutenberg
 * `trx-auto-dealer/single-listing` block and the Elementor
 * `trx_ad_single_listing` widget can render byte-identical output —
 * critical for the "auto-seeded starters match the PHP default" guarantee.
 *
 * @package ThemeREX\AutoDealer
 * @version 1.0.0
 */

declare(strict_types=1);

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use ThemeREX\AutoDealer\Frontend\TemplateLoader;

// Signal to FrontendForms::maybeAppendInquiryForm that the plugin's own
// single template is in scope — without this the auto-injection would
// double-render the inquiry form (sidebar copy + appended copy).
do_action( 'trx_ad_single_template_loaded' );

TemplateLoader::renderHeader();

TemplateLoader::renderSingleLayout();

TemplateLoader::renderFooter();
