<?php
/** Expects $c (property_categories row) in scope. */
$propCount = count_properties_in_category((int)$c['id']);
?>
<a href="/category/<?= e($c['slug']) ?>" class="category-card-sm reveal">
  <span class="icon-wrap"><?= category_icon($c['icon']) ?></span>
  <h3 style="font-size:var(--fs-base);margin:0;"><?= e($c['name']) ?></h3>
  <span class="text-muted text-xs"><?= (int)$propCount ?> Listings</span>
</a>
