<?php
/**
 * Property Grid Preloader Template
 * Always uses GRID view to match your default card layout
 *
 * @package     Havenlytics
 * @subpackage  Templates/Preloaders
 * @since       2.2.0
 */

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

// Always use grid view to match your existing card layout
$hvnly_view_type = 'grid';
$hvnly_count = isset( $args['count'] ) ? absint( $args['count'] ) : 6;
?>

<!--  inline style="display: block" - let CSS handle the display -->
<div class="hvnly-property-grid-preloader hvnly-preloader-container hvnly-grid-view grid-view"
    id="hvnly-property-grid-preloader" data-component="property-grid" data-view="grid">

    <?php for ( $hvnly_i = 0; $hvnly_i < $hvnly_count; $hvnly_i++ ) : ?>
    <?php hvnly_get_template_part( 'preloaders/property-card' ); ?>
    <?php endfor; ?>

</div>