<?php 
	if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<div class="swiper-slide">
	<div class="grid-item  wow fadeInUp animated" data-wow-delay="<?php echo esc_attr( $animation_delay )?>s">
		<div class="item-inner">
			<?php 
				if(has_post_thumbnail($accomodation_id)) {
					$thumbnail_url = get_the_post_thumbnail_url( $accomodation_id, $thumbnail_size);
				} else {
					$thumbnail_url = ESHB_DIR_URL . 'public/assets/img/placeholder.png';
				}
			?>
			<img src="<?php echo esc_url( $thumbnail_url ); ?>" alt="Thumbnail" class="thumbnail">
			<div class="pricing-info">
				<?php 
				if(!empty($numeric_price)){
				?>
					<div class="label"><?php echo esc_html( $pricing_prefix ); ?></div>
					<h3 class="price"><?php echo wp_kses_post($price); ?><div class="label"> / <?php echo esc_html( eshb_get_translated_string($string_night) );?></div></h3>
				<?php 
					} 
				?>
				<a class="details-btn" href="<?php echo esc_url( $booking_url ); ?>"><?php echo esc_html( $btn_text ); ?></a>
			</div>

			<div class="hover-bg-one"></div>

			<div class="details-info">
				
				<div class="capacities eshb-text-center" style="background-size: cover; background-repeat: no-repeat;">
					<?php 
						$i = 0;
						if( ! empty( $accomodation_info_group ) && is_array($accomodation_info_group) && count($accomodation_info_group) > 0){
							foreach ($accomodation_info_group as $key => $group) { 
								$i++;
								if($i >= 3) break;
								?>
								<span class="capacity">
									<?php echo esc_html($group['info_title']); ?>
								</span>
							<?php }
						}
						do_action( 'eshb_after_capacities_info_html', $accomodation_id, $eshb_settings );
					?>
				</div>
			</div>
			<div class="hover-bg-two"></div>
		</div>
		<h4 class="title mt-3 eshb-text-center"><?php echo esc_html(get_the_title($accomodation_id)); ?></h4>
	</div>
</div>
		