/* Borgo Punta Villa 3.9.6 — surgical corrections to the original 3.9.4.
   The original Manrope / DM Sans typography and all template copy are preserved. */

/* 1 — Fill apartment card previews edge-to-edge. The card's former display:grid
   allowed intrinsic image sizing to create an unused strip inside the grey frame.
   Absolutely position the image in an aspect-ratio box instead of letting the
   image participate in grid row sizing. Applies to both Home and room archive. */
.cards .card-photo {
  position:relative;
  display:block;
  width:100%;
  overflow:hidden;
  isolation:isolate;
  line-height:0;
}
.cards .card-photo > img,
.cards .card-photo > picture,
.cards .card-photo > picture > img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  min-width:100%;
  min-height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center center;
  margin:0;
  padding:0;
}
.cards .card-photo > picture {width:100%;height:100%;}
/* Fallback if an apartment has no uploaded photography. */
.cards .card-photo > span {position:absolute;inset:0;display:grid;place-items:center;line-height:1.4;padding:18px;text-align:center}

/* 2 — Remove only the large, redundant brand sign-off that preceded the footer.
   The markup is also removed from footer.php; the ordinary blue site footer,
   including its small logo, remains unchanged. */
.brand-signoff {display:none!important}

/* V3.9.8: The V3.9.6 hero/intro gradients and oversized hero
   padding have been intentionally removed. */
@media (prefers-reduced-motion:reduce) {
  .cards .card-photo > img {transition:none!important;animation:none!important}
}
