/* RC1.0.15.54 — Premium Property Card System Adoption
   Canonical marketplace card presentation only.
   No data, search, image-path, routing, Supabase or workspace logic changes. */

:root{
  --tp-card-navy:#102f45;
  --tp-card-navy-2:#173f51;
  --tp-card-gold:#cc8a2a;
  --tp-card-teal:#0f4b49;
  --tp-card-muted:#667d8d;
  --tp-card-line:#dce5ea;
  --tp-card-shadow:0 14px 34px rgba(17,45,63,.085);
}

/* One canonical card system for Featured + Available Now. */
#explore .marketplace-results .premium-property-card,
#explore .theo-featured-grid .premium-property-card{
  position:relative!important;
  overflow:hidden!important;
  border:1px solid var(--tp-card-line)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:var(--tp-card-shadow)!important;
  min-width:0!important;
}

/* Media hierarchy: large, stable 16:10 hero. */
#explore .marketplace-results .premium-property-card .property-photo.property-gallery,
#explore .theo-featured-grid .premium-property-card .property-photo.property-gallery{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:16/10!important;
  overflow:hidden!important;
  border-radius:0!important;
  background:#eef3f5!important;
}
#explore .marketplace-results .premium-property-card .gallery-image-layer,
#explore .theo-featured-grid .premium-property-card .gallery-image-layer{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
}

/* Overlay plane must match the image only. */
#explore .marketplace-results .premium-property-card .property-photo-overlay,
#explore .theo-featured-grid .premium-property-card .property-photo-overlay{
  position:absolute!important;
  inset:0 0 auto 0!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/10!important;
  z-index:5!important;
  pointer-events:none!important;
}
#explore .marketplace-results .premium-property-card .property-photo-overlay > *,
#explore .theo-featured-grid .premium-property-card .property-photo-overlay > *{
  pointer-events:auto!important;
}

/* Category chip. */
#explore .marketplace-results .premium-property-card .property-photo-overlay .photo-badge,
#explore .theo-featured-grid .premium-property-card .property-photo-overlay .photo-badge{
  position:absolute!important;
  top:14px!important;
  left:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:38px!important;
  max-width:calc(100% - 84px)!important;
  padding:8px 12px!important;
  border:1px solid rgba(255,255,255,.26)!important;
  border-radius:10px!important;
  background:rgba(12,42,61,.92)!important;
  color:#fff!important;
  box-shadow:0 7px 20px rgba(11,35,50,.16)!important;
  backdrop-filter:blur(9px)!important;
  -webkit-backdrop-filter:blur(9px)!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#explore .marketplace-results .premium-property-card .property-photo-overlay .photo-badge svg,
#explore .theo-featured-grid .premium-property-card .property-photo-overlay .photo-badge svg{
  width:17px!important;height:17px!important;flex:0 0 auto!important;
}

/* Save control. */
#explore .marketplace-results .premium-property-card .property-photo-overlay .save-icon,
#explore .theo-featured-grid .premium-property-card .property-photo-overlay .save-icon{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  width:44px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid rgba(211,224,231,.98)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.96)!important;
  color:var(--tp-card-navy)!important;
  box-shadow:0 8px 22px rgba(12,37,54,.12)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
}
#explore .marketplace-results .premium-property-card .property-photo-overlay .save-icon svg,
#explore .theo-featured-grid .premium-property-card .property-photo-overlay .save-icon svg{
  width:21px!important;height:21px!important;stroke-width:1.8!important;
}

/* Featured entitlement: one premium gold chip. */
#explore .marketplace-results .premium-property-card .property-photo-overlay .promotion-label,
#explore .theo-featured-grid .premium-property-card .property-photo-overlay .promotion-label{
  position:absolute!important;
  left:14px!important;
  bottom:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:36px!important;
  padding:8px 13px!important;
  border:1px solid rgba(255,255,255,.3)!important;
  border-radius:10px!important;
  background:var(--tp-card-gold)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(122,77,16,.2)!important;
  font-size:11.5px!important;
  font-weight:850!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* Preview remains secondary to View Property. */
#explore .marketplace-results .premium-property-card .gallery-preview{
  position:absolute!important;
  z-index:6!important;
  right:14px!important;
  bottom:14px!important;
  left:auto!important;
  min-height:36px!important;
  padding:8px 13px!important;
  border:1px solid rgba(210,222,229,.98)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.96)!important;
  color:var(--tp-card-navy)!important;
  box-shadow:0 8px 20px rgba(11,36,52,.12)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
}
#explore .theo-featured-grid .gallery-preview{display:none!important}

/* Clean white information panel: no category-colour wash. */
#explore .marketplace-results .premium-property-card .property-body,
#explore .theo-featured-grid .premium-property-card .property-body{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  padding:18px 18px 18px!important;
  background:#fff!important;
}

#explore .marketplace-results .premium-property-card .property-subtype,
#explore .theo-featured-grid .premium-property-card .property-subtype{
  margin:0 0 7px!important;
  color:#607887!important;
  font-size:10.5px!important;
  font-weight:850!important;
  letter-spacing:.055em!important;
  line-height:1.2!important;
  text-transform:uppercase!important;
}

#explore .marketplace-results .premium-property-card .property-price,
#explore .theo-featured-grid .premium-property-card .property-price{
  margin:0 0 7px!important;
  color:var(--tp-card-gold)!important;
  font-size:1.42rem!important;
  font-weight:850!important;
  letter-spacing:-.035em!important;
  line-height:1.05!important;
}
#explore .marketplace-results .premium-property-card .property-price small,
#explore .theo-featured-grid .premium-property-card .property-price small{
  color:#667a89!important;
  font-size:.62rem!important;
  font-weight:750!important;
  letter-spacing:0!important;
}

#explore .marketplace-results .premium-property-card .property-body h3,
#explore .theo-featured-grid .premium-property-card .property-body h3{
  margin:0 0 8px!important;
  color:#132d42!important;
  font-size:1rem!important;
  font-weight:800!important;
  line-height:1.25!important;
  letter-spacing:-.025em!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

#explore .marketplace-results .premium-property-card .address,
#explore .theo-featured-grid .premium-property-card .address{
  display:flex!important;
  align-items:flex-start!important;
  gap:7px!important;
  margin:0 0 13px!important;
  color:#667d8d!important;
  font-size:.78rem!important;
  font-weight:650!important;
  line-height:1.35!important;
  min-width:0!important;
}
#explore .marketplace-results .premium-property-card .address svg,
#explore .theo-featured-grid .premium-property-card .address svg{
  width:15px!important;height:15px!important;flex:0 0 auto!important;margin-top:1px!important;color:#4f8f89!important;
}

/* Facts: cleaner horizontal utility row. */
#explore .marketplace-results .premium-property-card .property-meta.property-facts,
#explore .theo-featured-grid .premium-property-card .property-meta.property-facts{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:10px 16px!important;
  margin:0!important;
  padding:12px 0 0!important;
  border-top:1px solid #e5ebee!important;
  color:#526b7d!important;
  font-size:.73rem!important;
  font-weight:750!important;
  line-height:1.2!important;
}
#explore .marketplace-results .premium-property-card .property-meta.property-facts > *,
#explore .theo-featured-grid .premium-property-card .property-meta.property-facts > *{
  min-width:0!important;
}
#explore .marketplace-results .premium-property-card .property-meta.property-facts svg,
#explore .theo-featured-grid .premium-property-card .property-meta.property-facts svg{
  width:15px!important;height:15px!important;color:#3f6074!important;
}
#explore .marketplace-results .premium-property-card .property-feature-line,
#explore .theo-featured-grid .premium-property-card .property-feature-line{
  margin:9px 0 0!important;
  color:#738693!important;
  font-size:.72rem!important;
  line-height:1.35!important;
}

/* Primary action: strong, simple, canonical. */
#explore .marketplace-results .premium-property-card .premium-card-actions,
#explore .theo-featured-grid .premium-property-card .premium-card-actions{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin-top:16px!important;
  padding-top:0!important;
  border-top:0!important;
}
#explore .marketplace-results .premium-property-card .view-property,
#explore .theo-featured-grid .premium-property-card .view-property{
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:11px 14px!important;
  border:1px solid var(--tp-card-teal)!important;
  border-radius:10px!important;
  background:var(--tp-card-teal)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:.76rem!important;
  font-weight:850!important;
  line-height:1!important;
}
#explore .marketplace-results .premium-property-card .view-property svg,
#explore .theo-featured-grid .premium-property-card .view-property svg{
  width:17px!important;height:17px!important;flex:0 0 auto!important;
}
/* Comparison remains available elsewhere, but visually remove it from marketplace cards. */
#explore .marketplace-results .premium-property-card .premium-card-actions .icon-action,
#explore .theo-featured-grid .premium-property-card .premium-card-actions .icon-action{
  display:none!important;
}

@media (hover:hover) and (pointer:fine){
  #explore .marketplace-results .premium-property-card:hover,
  #explore .theo-featured-grid .premium-property-card:hover{
    transform:translateY(-3px)!important;
    box-shadow:0 18px 40px rgba(17,45,63,.11)!important;
  }
  #explore .marketplace-results .premium-property-card .view-property:hover,
  #explore .theo-featured-grid .premium-property-card .view-property:hover{
    background:#0b403e!important;
    border-color:#0b403e!important;
  }
}

/* Tablet: premium two-column cards without overlay collisions. */
@media (min-width:701px) and (max-width:1180px){
  #explore .marketplace-results .premium-property-card .property-body,
  #explore .theo-featured-grid .premium-property-card .property-body{padding:17px!important}
  #explore .marketplace-results .premium-property-card .property-photo-overlay .photo-badge,
  #explore .theo-featured-grid .premium-property-card .property-photo-overlay .photo-badge{top:12px!important;left:12px!important}
  #explore .marketplace-results .premium-property-card .property-photo-overlay .save-icon,
  #explore .theo-featured-grid .premium-property-card .property-photo-overlay .save-icon{top:12px!important;right:12px!important;width:42px!important;height:42px!important}
  #explore .marketplace-results .premium-property-card .property-photo-overlay .promotion-label,
  #explore .theo-featured-grid .premium-property-card .property-photo-overlay .promotion-label{left:12px!important;bottom:12px!important}
  #explore .marketplace-results .premium-property-card .gallery-preview{right:12px!important;bottom:12px!important}
}

/* Small devices: one stable card, zero clipping / page overflow. */
@media (max-width:700px){
  #explore .marketplace-results .premium-property-card,
  #explore .theo-featured-grid .premium-property-card{
    border-radius:14px!important;
    max-width:100%!important;
  }
  #explore .marketplace-results .premium-property-card .property-photo.property-gallery,
  #explore .marketplace-results .premium-property-card .property-photo-overlay,
  #explore .theo-featured-grid .premium-property-card .property-photo.property-gallery,
  #explore .theo-featured-grid .premium-property-card .property-photo-overlay{
    aspect-ratio:16/10!important;
  }
  #explore .marketplace-results .premium-property-card .property-photo-overlay .photo-badge,
  #explore .theo-featured-grid .premium-property-card .property-photo-overlay .photo-badge{
    top:10px!important;left:10px!important;min-height:34px!important;padding:7px 10px!important;font-size:11px!important;max-width:calc(100% - 68px)!important;
  }
  #explore .marketplace-results .premium-property-card .property-photo-overlay .save-icon,
  #explore .theo-featured-grid .premium-property-card .property-photo-overlay .save-icon{
    top:10px!important;right:10px!important;width:38px!important;height:38px!important;border-radius:10px!important;
  }
  #explore .marketplace-results .premium-property-card .property-photo-overlay .promotion-label,
  #explore .theo-featured-grid .premium-property-card .property-photo-overlay .promotion-label{
    left:10px!important;bottom:10px!important;min-height:32px!important;padding:7px 10px!important;font-size:10.5px!important;
  }
  #explore .marketplace-results .premium-property-card .gallery-preview{
    right:10px!important;bottom:10px!important;min-height:32px!important;padding:7px 10px!important;font-size:10.5px!important;
  }
  #explore .marketplace-results .premium-property-card .property-body,
  #explore .theo-featured-grid .premium-property-card .property-body{padding:16px!important}
  #explore .marketplace-results .premium-property-card .property-price,
  #explore .theo-featured-grid .premium-property-card .property-price{font-size:1.34rem!important}
  #explore .marketplace-results .premium-property-card .property-body h3,
  #explore .theo-featured-grid .premium-property-card .property-body h3{font-size:.98rem!important}
  #explore .marketplace-results .premium-property-card .property-meta.property-facts,
  #explore .theo-featured-grid .premium-property-card .property-meta.property-facts{gap:9px 13px!important}
  #explore .marketplace-results .premium-property-card .view-property,
  #explore .theo-featured-grid .premium-property-card .view-property{width:100%!important;min-height:46px!important}
}

@media (max-width:360px){
  #explore .marketplace-results .premium-property-card .gallery-preview{padding-inline:8px!important}
  #explore .marketplace-results .premium-property-card .property-photo-overlay .promotion-label,
  #explore .theo-featured-grid .premium-property-card .property-photo-overlay .promotion-label{padding-inline:9px!important}
  #explore .marketplace-results .premium-property-card .property-body,
  #explore .theo-featured-grid .premium-property-card .property-body{padding:14px!important}
}
