<!-- Listing Item -->
<div class="carousel-item">
	<div class="listing-item">
		<?php
			$urlImovel = 'imovel/'.$data->codigo.'/'.preparaURL('', $data->titulo);
		?>
		<a href="<?=$urlImovel;?>" class="listing-img-container">
			<div class="listing-badges">
 				<span><?=$data->situacao;?></span>
			</div>
			<div class="listing-img-content">
				<span class="listing-price">R$ <?=currency($data->valor);?></span> 
			</div>

			<div class="listing-carousel">
				<?php
					if(!empty($imagens))
					{
						foreach($imagens as $imagem)
						{
							echo '<div><img src="'.$imagem.'" alt=""></div>';
						}
					}
				?>
			</div>
		</a>
			<div class="listing-content">
				<div class="listing-title">
					<h4><a href="<?=$urlImovel;?>"><?=$data->titulo;?></a></h4>
					<a href="<?=$urlImovel;?>" class="listing-address ">
						<i class="fa fa-map-marker"></i>
						<?=$data->bairro;?>
					</a>
				</div>

				<ul class="listing-features">
					<li><i class="fas fa-ruler-combined"></i> <span><?=$data->area_total;?> m<sup>2</sup></span></li>
					<li><i class="fa-solid fa-bed"></i> <span><?=$data->dormitorio;?></span></li>
					<li><i class="fa-solid fa-toilet-paper"></i> <span><?=$data->banheiro;?></span></li>
				</ul> 
			</div>
	</div>
</div>
<!-- Listing Item / End -->