/* FRONT-S2 · SHARED PROPERTY CARD COMPONENT */
.cfx-property-card--shared{
  min-width:0;overflow:hidden;border:1px solid #dfe3e9;border-radius:1rem;background:#fff;
  box-shadow:0 5px 18px rgba(26,34,49,.055);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease
}
.cfx-property-card--shared:hover{transform:translateY(-3px);border-color:#ccd2dc;box-shadow:0 18px 42px rgba(26,34,49,.10)}
.cfx-property-card--shared .cfx-property-card__media{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#e8edf1}
.cfx-property-card--shared .cfx-property-card__media img{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
.cfx-property-card--shared .cfx-property-card__fallback{position:absolute;inset:0;display:grid;place-content:center;gap:.2rem;text-align:center;background:linear-gradient(145deg,#edf0f3,#dde4e9);color:#1a2231}
.cfx-property-card--shared .cfx-property-card__fallback b{font-size:.95rem;letter-spacing:.14em}
.cfx-property-card--shared .cfx-property-card__fallback small{font-size:.58rem;color:#78828d}
.cfx-property-card--shared .cfx-property-card__media.is-image-loaded .cfx-property-card__fallback{opacity:0;visibility:hidden}
.cfx-property-card--shared .cfx-property-card__media.is-image-failed img{display:none}
.cfx-property-card--shared .cfx-property-card__operation,
.cfx-property-card--shared .cfx-property-card__status{
  position:absolute;z-index:3;top:.62rem;display:inline-flex;align-items:center;min-height:22px;padding:.28rem .44rem;border-radius:999px;font-size:.49rem;font-weight:820
}
.cfx-property-card--shared .cfx-property-card__operation{left:.62rem;background:rgba(24,35,55,.86);color:#fff}
.cfx-property-card--shared .cfx-property-card__status{right:.62rem;background:rgba(255,255,255,.9);color:#344054}
.cfx-property-card--shared .cfx-property-card__areas{position:absolute;z-index:3;left:.62rem;bottom:.62rem;display:flex;gap:.28rem;max-width:calc(100% - 1.24rem)}
.cfx-property-card--shared .cfx-property-card__areas>span{display:inline-flex;align-items:center;gap:.24rem;min-height:21px;padding:.22rem .4rem;border-radius:999px;background:#C81768;color:#fff;box-shadow:0 2px 7px rgba(20,25,34,.12)}
.cfx-property-card--shared .cfx-property-card__areas b{font-size:.59rem;line-height:1;font-weight:850}
.cfx-property-card--shared .cfx-property-card__areas small{font-size:.42rem;line-height:1;color:rgba(255,255,255,.88);white-space:nowrap}
.cfx-property-card--shared .cfx-property-card__body{display:flex;flex-direction:column;gap:.48rem;padding:1rem}
.cfx-property-card--shared .cfx-property-card__body h3{margin:0;font-size:1rem;line-height:1.2;letter-spacing:-.02em}
.cfx-property-card--shared .cfx-property-card__body h3 a{color:inherit;text-decoration:none}
.cfx-property-card--shared .cfx-property-card__location{margin:0;color:#75808d;font-size:.72rem;line-height:1.35}
.cfx-property-card--shared .cfx-property-card__price{margin-top:.12rem;font-size:1.08rem;line-height:1.1;color:#1a2231}
.cfx-property-card--shared .cfx-property-card__price--pending{font-size:.88rem;color:#747f8b;font-weight:720}
.cfx-property-card--shared .cfx-property-card__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;margin-top:.35rem;padding-top:.62rem;border-top:1px solid #edf0f3}
.cfx-property-card--shared .cfx-property-card__facts span{display:grid;gap:.1rem;min-width:0}
.cfx-property-card--shared .cfx-property-card__facts strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;color:#283442}
.cfx-property-card--shared .cfx-property-card__facts small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.49rem;color:#929aa4;text-transform:uppercase;letter-spacing:.03em}

/* Variant: Home featured */
.cfx-property-card--featured .cfx-property-card__media{aspect-ratio:4/3}
.cfx-property-card--featured .cfx-property-card__body{padding:1rem 1rem 1.08rem}
.cfx-property-card--featured .cfx-property-card__body h3{font-size:1.02rem}

/* Variant: Catalog */
.cfx-property-card--catalog .cfx-property-card__body{padding:.95rem 1rem 1rem}
.cfx-property-card--catalog .cfx-property-card__facts{grid-template-columns:repeat(5,minmax(0,1fr))}
.cfx-catalog-grid--list .cfx-property-card--catalog{display:grid;grid-template-columns:minmax(240px,33%) 1fr}
.cfx-catalog-grid--list .cfx-property-card--catalog .cfx-property-card__media{height:100%;aspect-ratio:auto;min-height:180px}
.cfx-catalog-grid--list .cfx-property-card--catalog .cfx-property-card__facts{grid-template-columns:repeat(5,minmax(0,1fr))}

html[data-cfx-theme="dark"] .cfx-property-card--shared{background:#1c2734;border-color:#33404f;color:#f5f7fb}
html[data-cfx-theme="dark"] .cfx-property-card--shared .cfx-property-card__price{color:#f5f7fb}
html[data-cfx-theme="dark"] .cfx-property-card--shared .cfx-property-card__facts{border-color:#33404f}
html[data-cfx-theme="dark"] .cfx-property-card--shared .cfx-property-card__facts strong{color:#e8ecf2}
html[data-cfx-theme="dark"] .cfx-property-card--shared .cfx-property-card__fallback{background:linear-gradient(145deg,#25313f,#1c2734);color:#f3f5f8}

@media(max-width:719px){
  .cfx-property-card--shared .cfx-property-card__media{aspect-ratio:16/11}
  .cfx-property-card--shared .cfx-property-card__areas{left:.5rem;bottom:.5rem;gap:.22rem}
  .cfx-property-card--shared .cfx-property-card__areas>span{min-height:19px;padding:.19rem .34rem}
  .cfx-property-card--shared .cfx-property-card__areas b{font-size:.54rem}
  .cfx-property-card--shared .cfx-property-card__areas small{font-size:.39rem}
  .cfx-property-card--catalog .cfx-property-card__facts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cfx-property-card--catalog .cfx-property-card__facts span:nth-child(n+4){display:none}
  .cfx-catalog-grid--list .cfx-property-card--catalog{display:block}
}


/* ==========================================================
   FRONT-S2.1 · SINGLE RELATED -> UNIVERSAL PROPERTY CARD
   Related uses the same card internals. Only its container footprint changes.
   ========================================================== */
.cfx-related-grid > .cfx-property-card--related{
  flex:0 0 clamp(270px,25vw,350px);
  scroll-snap-align:start;
}
.cfx-property-card--related .cfx-property-card__facts{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:620px){
  .cfx-related-grid > .cfx-property-card--related{
    flex-basis:min(82vw,330px);
  }
}
