<?php
/**
 * Grid Card footer Template
 * 
 * Displays property footer content in the grid card footer section.
 * 
 * HOW TO OVERRIDE THIS TEMPLATE:
 * 1. Copy this file from: wp-content/plugins/havenlytics/templates/archive/fields/footer.php
 * 2. Paste it to your theme at: wp-content/themes/your-theme/havenlytics/archive/fields/footer.php
 * 3. Modify the copied file to customize footer display
 * 
 * AVAILABLE VARIABLES:
 * $property_id - Current property ID
 * 
 * EXAMPLE OVERRIDE:
 * You can change footer layout, colors, icons, or implement carousel display.
 * 
 * @package     Havenlytics
 * @subpackage  Templates/archive/Fields
 * @since       2.0.0
 */

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

// Prefix all variables with hvnly_ to avoid global namespace conflicts
$hvnly_property_id = $property_id ?? get_the_ID();
$hvnly_property_data = $property_data ?? array();
?>

<div class="hvnly-property-field-footer hvnly-default-field">
    <div class="hvnly-property--grid-list--footer">
        <?php
        // Include view button
        $this->load_template('archive/fields/view-btn', [
            'property_id' => $hvnly_property_id,
            'property_data' => $hvnly_property_data
        ], true);
        ?>
        
        <div class="hvnly-property--grid-list--actions">
            <?php
            // Include property types button
            $this->load_template('archive/fields/types', [
                'property_id' => $hvnly_property_id,
                'property_data' => $hvnly_property_data
            ], true);
            ?>
            
        </div>
    </div>
</div>