
/* Theo Properties v1.0.0.8
   Marketplace Property Card Visual Cleanup & Overlay Hierarchy Lock
   NO card size, grid, aspect-ratio or image crop changes.
*/

body.theo-app #explore #available-properties .premium-property-card{
  overflow:hidden!important;
}

/* Category badge: same location, less visual weight. */
body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .photo-badge{
  top:14px!important;
  left:14px!important;
  min-height:34px!important;
  padding:7px 10px!important;
  gap:6px!important;
  border-radius:9px!important;
  font-size:11px!important;
  font-weight:760!important;
  box-shadow:0 4px 12px rgba(8,34,49,.10)!important;
}
body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .photo-badge svg{
  width:15px!important;
  height:15px!important;
}

/* Save: visually secondary and cleaner. */
body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .save-icon{
  top:14px!important;
  right:14px!important;
  width:40px!important;
  height:40px!important;
  border-radius:50%!important;
  box-shadow:0 4px 12px rgba(8,34,49,.10)!important;
}
body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .save-icon svg{
  width:18px!important;
  height:18px!important;
}

/* Featured badge: compact premium marker. */
body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .promotion-label{
  left:14px!important;
  bottom:14px!important;
  min-height:31px!important;
  padding:7px 10px!important;
  gap:5px!important;
  border-radius:9px!important;
  font-size:10.5px!important;
  font-weight:780!important;
  box-shadow:0 4px 12px rgba(122,77,16,.14)!important;
}
body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .promotion-label::before{
  font-size:11px!important;
}

/* Preview: ONE eye only. Keep explicit text for clarity. */
body.theo-app #explore #available-properties .premium-property-card .gallery-preview{
  right:14px!important;
  bottom:14px!important;
  left:auto!important;
  min-height:32px!important;
  padding:7px 10px!important;
  gap:6px!important;
  border-radius:9px!important;
  font-size:10.5px!important;
  font-weight:760!important;
  box-shadow:0 4px 12px rgba(8,34,49,.09)!important;
}
/* Defensive: if a stale service-worker copy ever added the global SVG, hide it here. */
body.theo-app #explore #available-properties .premium-property-card .gallery-preview > .theo-action-svg{
  display:none!important;
}
body.theo-app #explore #available-properties .premium-property-card .gallery-preview > .theo-action-label{
  display:inline!important;
}

/* Keep Featured and Preview from visually colliding. */
body.theo-app #explore #available-properties .premium-property-card:has(.promotion-label) .gallery-preview{
  max-width:44%!important;
}

/* Cleaner information rhythm without changing card dimensions. */
body.theo-app #explore #available-properties .premium-property-card .property-body{
  padding:17px 18px 18px!important;
}
body.theo-app #explore #available-properties .premium-property-card .property-subtype{
  margin-bottom:6px!important;
  font-size:10px!important;
  letter-spacing:.06em!important;
}
body.theo-app #explore #available-properties .premium-property-card .property-price{
  margin-bottom:6px!important;
}
body.theo-app #explore #available-properties .premium-property-card .property-body h3{
  margin-bottom:7px!important;
}
body.theo-app #explore #available-properties .premium-property-card .address{
  margin-bottom:10px!important;
}

/* Tablet/mobile: retain existing layout, only reduce overlay crowding. */
@media (max-width:820px){
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .photo-badge{
    top:12px!important;left:12px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .save-icon{
    top:12px!important;right:12px!important;width:38px!important;height:38px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .promotion-label{
    left:12px!important;bottom:12px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .gallery-preview{
    right:12px!important;bottom:12px!important;
  }
}


/* ===== Tablet consistency: 701px–1180px ===== */
@media (min-width:701px) and (max-width:1180px){
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .photo-badge{
    top:12px!important;left:12px!important;
    min-height:32px!important;padding:6px 9px!important;
    font-size:10.5px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .save-icon{
    top:12px!important;right:12px!important;
    width:38px!important;height:38px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .promotion-label{
    left:12px!important;bottom:12px!important;
    min-height:29px!important;padding:6px 9px!important;
    font-size:10px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .gallery-preview{
    right:12px!important;bottom:12px!important;
    min-height:30px!important;padding:6px 9px!important;
    font-size:10px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-body{
    padding:16px 16px 17px!important;
  }
}

/* ===== Mobile consistency: <=700px ===== */
@media (max-width:700px){
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .photo-badge{
    top:10px!important;left:10px!important;
    min-height:30px!important;padding:6px 8px!important;
    gap:5px!important;font-size:10px!important;
    max-width:calc(100% - 62px)!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .photo-badge svg{
    width:14px!important;height:14px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .save-icon{
    top:10px!important;right:10px!important;
    width:36px!important;height:36px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .save-icon svg{
    width:17px!important;height:17px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .promotion-label{
    left:10px!important;bottom:10px!important;
    min-height:28px!important;padding:6px 8px!important;
    font-size:9.5px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .gallery-preview{
    right:10px!important;bottom:10px!important;
    min-height:28px!important;padding:6px 8px!important;
    gap:5px!important;font-size:9.5px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-body{
    padding:15px 15px 16px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-subtype{
    font-size:9.5px!important;
    margin-bottom:5px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-price{
    margin-bottom:5px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-body h3{
    margin-bottom:6px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .address{
    margin-bottom:9px!important;
  }
}

/* Very small phones: keep controls separated without shrinking the card. */
@media (max-width:390px){
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay .photo-badge{
    max-width:calc(100% - 58px)!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .gallery-preview{
    padding-left:7px!important;padding-right:7px!important;
  }
}
