/* RC1.0.15.56 — Approved Premium Property Card Visual Application
   Presentation-only. Applies the approved card composition to existing Theo cards.
   No data, search, image source, routing, Supabase or workspace logic changes. */

:root{
  --tp56-navy:#102f45;
  --tp56-gold:#d59127;
  --tp56-teal:#0d4b48;
  --tp56-muted:#677c8c;
  --tp56-line:#dde6eb;
  --tp56-shadow:0 14px 36px rgba(15,42,60,.10);
}

/* Canonical premium card shell */
body.theo-app #explore .premium-property-card{
  border:1px solid var(--tp56-line)!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:var(--tp56-shadow)!important;
  transform:none!important;
}

/* Hero media – visually dominant like the approved reference */
body.theo-app #explore .premium-property-card .property-photo.property-gallery{
  position:relative!important;
  width:100%!important;
  aspect-ratio:16/10!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
  background:#edf2f4!important;
}
body.theo-app #explore .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 center!important;
  background-repeat:no-repeat!important;
  transition:transform .28s ease!important;
}

/* Overlay plane lives over image only */
body.theo-app #explore .premium-property-card .property-photo-overlay{
  position:absolute!important;
  inset:0 0 auto 0!important;
  width:100%!important;
  aspect-ratio:16/10!important;
  height:auto!important;
  z-index:8!important;
  pointer-events:none!important;
}
body.theo-app #explore .premium-property-card .property-photo-overlay>*{pointer-events:auto!important}

/* Category chip – premium navy, larger like reference */
body.theo-app #explore .premium-property-card .photo-badge{
  position:absolute!important;
  top:16px!important;
  left:16px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:42px!important;
  max-width:calc(100% - 88px)!important;
  padding:9px 14px!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:12px!important;
  background:rgba(15,47,69,.94)!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(12,35,50,.18)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  font-size:12.5px!important;
  font-weight:850!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body.theo-app #explore .premium-property-card .photo-badge svg{
  width:18px!important;height:18px!important;flex:none!important;
}

/* Save */
body.theo-app #explore .premium-property-card .save-icon{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  width:46px!important;
  height:46px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid #d8e2e8!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.97)!important;
  color:var(--tp56-navy)!important;
  box-shadow:0 8px 22px rgba(12,35,50,.13)!important;
}
body.theo-app #explore .premium-property-card .save-icon svg{width:22px!important;height:22px!important}

/* Featured badge – one strong gold chip at lower-left */
body.theo-app #explore .premium-property-card .promotion-label{
  position:absolute!important;
  left:16px!important;
  bottom:16px!important;
  z-index:10!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:38px!important;
  padding:9px 14px!important;
  border:1px solid rgba(255,255,255,.32)!important;
  border-radius:11px!important;
  background:var(--tp56-gold)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(128,82,16,.22)!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1!important;
}
body.theo-app #explore .premium-property-card .promotion-label::before{
  content:'★';
  font-size:13px;
  line-height:1;
}

/* Preview – white secondary action on the image, lower-right */
body.theo-app #explore .marketplace-results .premium-property-card .gallery-preview{
  position:absolute!important;
  right:16px!important;
  bottom:16px!important;
  left:auto!important;
  z-index:10!important;
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:9px 14px!important;
  border:1px solid #d7e1e7!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.97)!important;
  color:var(--tp56-navy)!important;
  box-shadow:0 8px 20px rgba(12,35,50,.13)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1!important;
}
body.theo-app #explore .marketplace-results .premium-property-card .gallery-preview::before{
  content:'';
  width:16px;height:16px;flex:none;
  background-repeat:no-repeat;background-position:center;background-size:16px 16px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102f45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}
/* Featured rail clones intentionally omit Preview via existing JS. */
body.theo-app #explore .theo-featured-grid .gallery-preview{display:none!important}

/* Information panel – spacious, editorial hierarchy */
body.theo-app #explore .premium-property-card .property-body{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  padding:20px 20px 20px!important;
  background:#fff!important;
}
body.theo-app #explore .premium-property-card .property-subtype{
  margin:0 0 8px!important;
  color:#63798a!important;
  font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
  line-height:1.15!important;
}
body.theo-app #explore .premium-property-card .property-price{
  margin:0 0 8px!important;
  color:var(--tp56-gold)!important;
  font-size:1.58rem!important;
  font-weight:850!important;
  line-height:1!important;
  letter-spacing:-.035em!important;
}
body.theo-app #explore .premium-property-card .property-price small{
  color:#687d8b!important;
  font-size:.68rem!important;
  font-weight:750!important;
  letter-spacing:0!important;
}
body.theo-app #explore .premium-property-card .property-body h3{
  margin:0 0 9px!important;
  color:#102b41!important;
  font-size:1.04rem!important;
  font-weight:850!important;
  line-height:1.24!important;
  letter-spacing:-.025em!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
body.theo-app #explore .premium-property-card .address{
  display:flex!important;
  align-items:flex-start!important;
  gap:7px!important;
  margin:0 0 15px!important;
  color:var(--tp56-muted)!important;
  font-size:.8rem!important;
  font-weight:650!important;
  line-height:1.35!important;
}
body.theo-app #explore .premium-property-card .address svg{
  width:16px!important;height:16px!important;flex:none!important;margin-top:1px!important;color:#4e8f89!important;
}

/* Facts row – clean, divided utility strip */
body.theo-app #explore .premium-property-card .property-meta.property-facts{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
  align-items:center!important;
  margin:0!important;
  padding:14px 0 0!important;
  border-top:1px solid #e4eaee!important;
  color:#3f586b!important;
}
body.theo-app #explore .premium-property-card .property-fact{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:0 10px!important;
  border-right:1px solid #e4eaee!important;
  font-size:.74rem!important;
  font-weight:800!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.theo-app #explore .premium-property-card .property-fact:first-child{padding-left:0!important}
body.theo-app #explore .premium-property-card .property-fact:nth-child(3),
body.theo-app #explore .premium-property-card .property-fact:last-child{border-right:0!important}
body.theo-app #explore .premium-property-card .property-fact:nth-child(n+4){display:none!important}
body.theo-app #explore .premium-property-card .property-fact-icon{display:inline-flex!important;flex:none!important}
body.theo-app #explore .premium-property-card .property-fact svg{width:17px!important;height:17px!important;color:#456277!important}
body.theo-app #explore .premium-property-card .property-feature-line{margin:10px 0 0!important;color:#748796!important;font-size:.72rem!important}

/* CTA – right-weighted premium action, comparison hidden */
body.theo-app #explore .premium-property-card .premium-card-actions{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:10px!important;
  margin-top:17px!important;
  padding:0!important;
  border:0!important;
}
body.theo-app #explore .premium-property-card .view-property{
  width:auto!important;
  min-width:190px!important;
  max-width:100%!important;
  min-height:46px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:12px 15px!important;
  border:1px solid var(--tp56-teal)!important;
  border-radius:10px!important;
  background:var(--tp56-teal)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:.78rem!important;
  font-weight:850!important;
  line-height:1!important;
}
body.theo-app #explore .premium-property-card .view-property svg{width:18px!important;height:18px!important;flex:none!important}
body.theo-app #explore .premium-property-card .premium-card-actions .icon-action{display:none!important}

/* Desktop four-column cards need proportional scaling while retaining reference hierarchy. */
@media (min-width:1181px){
  body.theo-app #explore .premium-property-card .property-body{padding:18px!important}
  body.theo-app #explore .premium-property-card .property-price{font-size:1.48rem!important}
  body.theo-app #explore .premium-property-card .property-body h3{font-size:.98rem!important}
  body.theo-app #explore .premium-property-card .view-property{min-width:0!important;width:100%!important}
}

/* Tablet: preserve premium design without clipping */
@media (min-width:701px) and (max-width:1180px){
  body.theo-app #explore .premium-property-card .photo-badge{top:13px!important;left:13px!important;min-height:38px!important;padding:8px 12px!important}
  body.theo-app #explore .premium-property-card .save-icon{top:13px!important;right:13px!important;width:42px!important;height:42px!important}
  body.theo-app #explore .premium-property-card .promotion-label{left:13px!important;bottom:13px!important;min-height:34px!important;padding:8px 12px!important}
  body.theo-app #explore .marketplace-results .premium-property-card .gallery-preview{right:13px!important;bottom:13px!important;min-height:34px!important;padding:8px 12px!important}
  body.theo-app #explore .premium-property-card .property-body{padding:18px!important}
  body.theo-app #explore .premium-property-card .property-meta.property-facts{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.theo-app #explore .premium-property-card .view-property{width:100%!important;min-width:0!important}
}

/* Phones: same design, compact. Works with RC1.0.15.55 swipe rails. */
@media (max-width:700px){
  body.theo-app #explore .premium-property-card{border-radius:16px!important}
  body.theo-app #explore .premium-property-card .property-photo.property-gallery,
  body.theo-app #explore .premium-property-card .property-photo-overlay{aspect-ratio:16/10!important}
  body.theo-app #explore .premium-property-card .photo-badge{top:11px!important;left:11px!important;min-height:35px!important;padding:7px 10px!important;font-size:11px!important;max-width:calc(100% - 68px)!important}
  body.theo-app #explore .premium-property-card .save-icon{top:11px!important;right:11px!important;width:39px!important;height:39px!important;border-radius:10px!important}
  body.theo-app #explore .premium-property-card .promotion-label{left:11px!important;bottom:11px!important;min-height:32px!important;padding:7px 10px!important;font-size:10.5px!important}
  body.theo-app #explore .marketplace-results .premium-property-card .gallery-preview{right:11px!important;bottom:11px!important;min-height:32px!important;padding:7px 10px!important;font-size:10.5px!important}
  body.theo-app #explore .premium-property-card .property-body{padding:16px!important}
  body.theo-app #explore .premium-property-card .property-price{font-size:1.38rem!important}
  body.theo-app #explore .premium-property-card .property-body h3{font-size:.98rem!important}
  body.theo-app #explore .premium-property-card .property-meta.property-facts{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding-top:12px!important}
  body.theo-app #explore .premium-property-card .property-fact{padding-inline:7px!important;font-size:.7rem!important;gap:5px!important}
  body.theo-app #explore .premium-property-card .property-fact svg{width:15px!important;height:15px!important}
  body.theo-app #explore .premium-property-card .view-property{width:100%!important;min-width:0!important;min-height:46px!important}
}

@media (hover:hover) and (pointer:fine){
  body.theo-app #explore .premium-property-card:hover{box-shadow:0 18px 42px rgba(15,42,60,.13)!important}
  body.theo-app #explore .premium-property-card:hover .gallery-image-layer{transform:scale(1.015)!important}
  body.theo-app #explore .premium-property-card .view-property:hover{background:#093f3d!important;border-color:#093f3d!important}
}
