/* RC1.0.15.53 — Featured Card UI Cleanup & Overlay Positioning Polish
   Presentation-only. No marketplace logic, data, image paths or card structure changed. */

/* Keep the image as the visual hero while making overlays feel intentional. */
#explore .theo-featured-grid .property-photo.property-gallery,
#explore .marketplace-results .premium-property-card:has(.promotion-label) .property-photo.property-gallery{
  position:relative!important;
}

#explore .theo-featured-grid .property-photo.property-gallery::after,
#explore .marketplace-results .premium-property-card:has(.promotion-label) .property-photo.property-gallery::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:30%;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(8,28,43,0),rgba(8,28,43,.12));
  z-index:2;
}

/* Category: compact, consistent top-left label. */
#explore .theo-featured-grid .property-photo-overlay .photo-badge,
#explore .marketplace-results .premium-property-card:has(.promotion-label) .property-photo-overlay .photo-badge{
  top:14px!important;
  left:14px!important;
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 11px!important;
  border:1px solid rgba(255,255,255,.24)!important;
  border-radius:8px!important;
  background:rgba(12,38,57,.88)!important;
  color:#fff!important;
  box-shadow:0 6px 18px rgba(8,29,44,.14)!important;
  backdrop-filter:blur(9px)!important;
  -webkit-backdrop-filter:blur(9px)!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  line-height:1!important;
}

/* Save action: smaller, calmer and visually aligned with the category label. */
#explore .theo-featured-grid .property-photo-overlay .save-icon,
#explore .marketplace-results .premium-property-card:has(.promotion-label) .property-photo-overlay .save-icon{
  top:14px!important;
  right:14px!important;
  width:40px!important;
  height:40px!important;
  border:1px solid rgba(216,227,233,.96)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.94)!important;
  color:#173b4a!important;
  box-shadow:0 7px 20px rgba(14,39,56,.12)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
}
#explore .theo-featured-grid .property-photo-overlay .save-icon svg,
#explore .marketplace-results .premium-property-card:has(.promotion-label) .property-photo-overlay .save-icon svg{
  width:18px!important;
  height:18px!important;
  stroke-width:1.8!important;
}

/* Featured: one restrained gold chip, anchored cleanly to the lower-left. */
#explore .theo-featured-grid .property-photo-overlay .promotion-label,
#explore .marketplace-results .premium-property-card:has(.promotion-label) .property-photo-overlay .promotion-label{
  left:14px!important;
  bottom:14px!important;
  min-height:32px!important;
  display:inline-flex!important;
  align-items:center!important;
  padding:7px 12px!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:9px!important;
  background:#c8892d!important;
  color:#fff!important;
  box-shadow:0 7px 18px rgba(124,78,18,.18)!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:0!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* Preview: secondary to Featured, aligned on the same baseline at lower-right. */
#explore .marketplace-results .premium-property-card:has(.promotion-label) .gallery-preview{
  left:auto!important;
  right:14px!important;
  bottom:14px!important;
  min-height:32px!important;
  padding:7px 11px!important;
  border:1px solid rgba(219,228,233,.98)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.94)!important;
  color:#17384e!important;
  box-shadow:0 7px 18px rgba(12,35,51,.10)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  font-size:10.5px!important;
  font-weight:800!important;
  line-height:1!important;
}
@media (hover:hover) and (pointer:fine){
  #explore .marketplace-results .premium-property-card:has(.promotion-label) .gallery-preview:hover{
    background:#fff!important;
    border-color:#c9d7de!important;
    color:#9b6828!important;
  }
}

/* The dedicated Featured rail already has no Preview button; keep the lower image edge uncluttered. */
#explore .theo-featured-grid .gallery-preview{display:none!important}

/* Tablet / small-device positioning: preserve tap size while preventing overlay collision. */
@media (max-width:820px){
  #explore .theo-featured-grid .property-photo-overlay .photo-badge,
  #explore .marketplace-results .premium-property-card:has(.promotion-label) .property-photo-overlay .photo-badge{
    top:12px!important;left:12px!important;max-width:calc(100% - 72px)!important;
  }
  #explore .theo-featured-grid .property-photo-overlay .save-icon,
  #explore .marketplace-results .premium-property-card:has(.promotion-label) .property-photo-overlay .save-icon{
    top:12px!important;right:12px!important;width:38px!important;height:38px!important;
  }
  #explore .theo-featured-grid .property-photo-overlay .promotion-label,
  #explore .marketplace-results .premium-property-card:has(.promotion-label) .property-photo-overlay .promotion-label{
    left:12px!important;bottom:12px!important;
  }
  #explore .marketplace-results .premium-property-card:has(.promotion-label) .gallery-preview{
    right:12px!important;bottom:12px!important;
  }
}

@media (max-width:380px){
  #explore .marketplace-results .premium-property-card:has(.promotion-label) .gallery-preview{
    padding-inline:9px!important;
    font-size:10px!important;
  }
  #explore .marketplace-results .premium-property-card:has(.promotion-label) .property-photo-overlay .promotion-label{
    padding-inline:10px!important;
    font-size:10.5px!important;
  }
}
