.houzez-sold-corner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  width: 96px;
  height: 96px;
  max-width: 60%;
  max-height: 100%;
  overflow: hidden;
  border-radius: .6rem 0 0 0;
  background: transparent;
  pointer-events: none;
}
.houzez-sold-corner > span {
  position: absolute;
  top: 24px;
  left: -31px;
  display: block;
  width: 134px;
  padding: 4px 0;
  transform: rotate(-45deg);
  border-bottom: 1px solid rgba(255,255,255,.85);
  background: #df0b22;
  box-shadow: 0 2px 5px rgba(48,0,9,.22);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .06em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.item-thumb .houzez-sold-corner ~ .label-featured,
.item-thumb .houzez-sold-corner + div .label-featured,
.figure-grid.item-thumb .houzez-sold-corner ~ .label-featured {
  top: 100px;
  left: 12px;
  right: auto;
}
.my-property .item-thumb,
.widget .item-thumb,
.figure-grid.item-thumb {
  position: relative;
}
.my-property .houzez-sold-corner,
.widget .houzez-sold-corner {
  width: 74px;
  height: 74px;
  max-width: 65%;
}
.my-property .houzez-sold-corner > span,
.widget .houzez-sold-corner > span {
  top: 18px;
  left: -25px;
  width: 104px;
  padding: 3px 0;
  font-size: 9px;
}
.widget .item-thumb .houzez-sold-corner + div .label-featured { top: 76px; }
.cabang-property-image > .houzez-sold-corner {
  top: 0;
  right: auto;
  left: 0;
  z-index: 6;
  width: 96px;
  height: 96px;
  max-width: 60%;
  max-height: 100%;
  padding: 0;
  border-radius: 13px 0 0 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}
.cabang-property-image > .houzez-sold-corner > span {
  top: 24px;
  right: auto;
  left: -31px;
  width: 134px;
  padding: 4px 0;
  border-radius: 0;
  background: #df0b22;
  color: #fff;
  font-size: 11px;
}
#detilprimer .houzez-sold-tag {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-right: 4px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #d90b25;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .09em;
  box-shadow: 0 2px 8px rgba(171,0,27,.19);
}
.my-property.draft-property {
  background: #fff3f4;
  border-left: 3px solid #e74b58;
}
.my-property .houzez-state-control { margin: 0 6px 5px 0; text-align: left; }
.my-property .houzez-state-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 142px;
  min-height: 40px;
  padding: 5px 9px 5px 6px;
  border: 0;
  border-radius: 10px;
  background: #334155;
  color: #fff;
  box-shadow: 0 5px 14px rgba(31,41,55,.18);
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.my-property .houzez-state-trigger.active { background: linear-gradient(135deg,#16856f,#0f6c5c); }
.my-property .houzez-state-trigger.inactive { background: linear-gradient(135deg,#64748b,#475569); }
.my-property .houzez-state-trigger.sold { background: linear-gradient(135deg,#db304a,#b91f39); }
.my-property .houzez-state-trigger.sold_inactive { background: linear-gradient(135deg,#9f2946,#731b35); }
.my-property .houzez-state-trigger:hover,
.my-property .houzez-state-trigger:focus,
.my-property .houzez-state-control.open .houzez-state-trigger {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31,41,55,.23);
  outline: 0;
}
.my-property .houzez-state-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,.18);
  font-size: 13px;
}
.my-property .houzez-state-trigger-label { flex: 1; white-space: nowrap; }
.my-property .houzez-state-chevron { margin-left: auto; transition: transform .18s ease; }
.my-property .houzez-state-control.open .houzez-state-chevron { transform: rotate(180deg); }
.my-property .houzez-state-menu {
  z-index: 30;
  min-width: 244px;
  margin-top: 8px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #e5e9ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(29,40,54,.16);
}
.my-property .houzez-state-menu li { border: 0; }
.my-property .houzez-state-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #273444;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.my-property .houzez-state-option-main { display: inline-flex; align-items: center; gap: 10px; }
.my-property .houzez-state-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e8f7f2;
  color: #137763;
}
.my-property .houzez-state-option-icon.inactive { background: #eef1f5; color: #5f6d7c; }
.my-property .houzez-state-option-icon.sold { background: #fdecef; color: #c8233f; }
.my-property .houzez-state-option-icon.sold_inactive { background: #f5eaf0; color: #81213c; }
.my-property .houzez-state-option:hover,
.my-property .houzez-state-option:focus { background: #f4f7fa; color: #17212d; transform: translateX(2px); outline: 0; }
.my-property .houzez-state-option:focus-visible { box-shadow: inset 0 0 0 2px #64748b; }
.my-property .houzez-state-option:disabled { background: #f1f4f7; color: #536171; cursor: default; opacity: 1; transform: none; }
.my-property .houzez-state-selected { margin-left: 12px; color: #16856f; font-size: 12px; }
.houzez-state-modal { border-radius: 18px; padding: 24px; box-shadow: 0 24px 70px rgba(16,25,42,.23); animation: houzez-state-enter .24s ease-out both; }
.houzez-state-modal .swal2-title { color: #23303b; font-size: clamp(20px, 3vw, 27px); }
.houzez-state-modal .swal2-html-container { color: #485564; line-height: 1.6; }
.houzez-state-modal .houzez-state-confirm { border-radius: 9px; background: #d90b25; font-weight: 700; }
.houzez-state-modal .houzez-state-cancel { border-radius: 9px; background: #e9edf1; color: #34404c; font-weight: 700; }
.houzez-state-modal .houzez-state-cancel:disabled { opacity: .45; cursor: wait; }
.houzez-state-modal .swal2-validation-message { border-radius: 8px; }
@keyframes houzez-state-enter { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 767px) {
  .my-property .my-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .my-property .houzez-state-control { margin: 0; }
  .my-property .houzez-state-menu { left: 50%; right: auto; transform: translateX(-50%); }
  #detilprimer .houzez-sold-tag { font-size: 11px; padding: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .houzez-state-modal { animation: none; }
  .my-property .houzez-state-trigger,
  .my-property .houzez-state-option { transition: none; }
  .my-property .houzez-state-trigger:hover { transform: none; }
}
