/* Property Deal Status – diagonal ribbons
   Работи за:
   - .rhea-ultra-property-card-two (ULTRA card)
   - .rh_prop_card_elementor (classic/modern Elementor card)
   - Single property основно изображение
*/

/* Контейнери на снимки – важни за позиционирането и клипването */
.rhea-ultra-property-card-two .rhea-ultra-property-card-two-thumb,
.rh_prop_card_elementor .rhea_figure_property_one,
.rh_prop_card_elementor .rh_prop_card__thumbnail,
.single-property .rh_property__main_image,
.single-property .rh_figure_element,
.rhea-ultra-property-card .rhea-ultra-card-thumb-wrapper,
.rhea-ultra-property-card-outer .rhea-ultra-card-thumb-wrapper {
  position: relative;
  overflow: hidden;
}

/* Общ вид на лентата – пускаме ::after върху контейнера на снимката,
   но активираме чрез клас върху картата (ancestor). */
.property-status-sold    .rhea-ultra-property-card-two-thumb::after,
.property-status-reserved .rhea-ultra-property-card-two-thumb::after,
.property-status-deposited .rhea-ultra-property-card-two-thumb::after,
.property-status-rented  .rhea-ultra-property-card-two-thumb::after,

.property-status-sold    .rhea_figure_property_one::after,
.property-status-reserved .rhea_figure_property_one::after,
.property-status-deposited .rhea_figure_property_one::after,
.property-status-rented  .rhea_figure_property_one::after,

.property-status-sold    .rh_prop_card__thumbnail::after,
.property-status-reserved .rh_prop_card__thumbnail::after,
.property-status-deposited .rh_prop_card__thumbnail::after,
.property-status-rented  .rh_prop_card__thumbnail::after,

.property-status-sold    .rh_property__main_image::after,
.property-status-reserved .rh_property__main_image::after,
.property-status-deposited .rh_property__main_image::after,
.property-status-rented  .rh_property__main_image::after,

.property-status-sold    .rhea-ultra-card-thumb-wrapper::after,
.property-status-reserved .rhea-ultra-card-thumb-wrapper::after,
.property-status-deposited .rhea-ultra-card-thumb-wrapper::after,
.property-status-rented  .rhea-ultra-card-thumb-wrapper::after,

.property-status-sold    .rh_figure_element::after,
.property-status-reserved .rh_figure_element::after,
.property-status-deposited .rh_figure_element::after,
.property-status-rented  .rh_figure_element::after {
  position: absolute;
  top: 45%;
  left: -30%;
  width: 160%;
  text-align: center;
  transform: translateY(-50%) rotate(-18deg);
  font-family: "MullerMedium","DM Sans","Lato",sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  line-height: 44px;
  color: #fff;
  z-index: 2;
  text-transform: uppercase;
  font-weight: 700;
  pointer-events: none;
  content: "";
  animation: pdsDiagFade .6s ease-out forwards;
}

/* Текст + цветове (BG) */
.property-status-sold    .rhea-ultra-property-card-two-thumb::after,
.property-status-sold    .rhea_figure_property_one::after,
.property-status-sold    .rh_prop_card__thumbnail::after,
.property-status-sold    .rh_property__main_image::after,
.property-status-sold    .rhea-ultra-card-thumb-wrapper::after,
.property-status-sold    .rh_figure_element::after {
  content: "ПРОДАДЕН";
  background: #e10a0a;
}

.property-status-reserved .rhea-ultra-property-card-two-thumb::after,
.property-status-reserved .rhea_figure_property_one::after,
.property-status-reserved .rh_prop_card__thumbnail::after,
.property-status-reserved .rh_property__main_image::after,
.property-status-reserved .rhea-ultra-card-thumb-wrapper::after,
.property-status-reserved .rh_figure_element::after {
  content: "РЕЗЕРВИРАН";
  background: #16a34a;
}

.property-status-deposited .rhea-ultra-property-card-two-thumb::after,
.property-status-deposited .rhea_figure_property_one::after,
.property-status-deposited .rh_prop_card__thumbnail::after,
.property-status-deposited .rh_property__main_image::after,
.property-status-deposited .rhea-ultra-card-thumb-wrapper::after,
.property-status-deposited .rh_figure_element::after {
  content: "КАПАРИРАН";
  background: #d97706;
}

.property-status-rented  .rhea-ultra-property-card-two-thumb::after,
.property-status-rented  .rhea_figure_property_one::after,
.property-status-rented  .rh_prop_card__thumbnail::after,
.property-status-rented  .rh_property__main_image::after,
.property-status-rented  .rhea-ultra-card-thumb-wrapper::after,
.property-status-rented  .rh_figure_element::after {
  content: "ОТДАДЕН";
  background: #2563eb;
}

@keyframes pdsDiagFade{
  0%   { opacity:0; transform:translateY(-50%) rotate(-18deg) scaleX(0); }
  100% { opacity:1; transform:translateY(-50%) rotate(-18deg) scaleX(1); }
}

/* Mobile tweak */
@media (max-width:420px){
  .property-status-sold .rhea-ultra-property-card-two-thumb::after,
  .property-status-reserved .rhea-ultra-property-card-two-thumb::after,
  .property-status-deposited .rhea-ultra-property-card-two-thumb::after,
  .property-status-rented .rhea-ultra-property-card-two-thumb::after,
  .property-status-sold .rhea_figure_property_one::after,
  .property-status-reserved .rhea_figure_property_one::after,
  .property-status-deposited .rhea_figure_property_one::after,
  .property-status-rented .rhea_figure_property_one::after,
  .property-status-sold .rh_prop_card__thumbnail::after,
  .property-status-reserved .rh_prop_card__thumbnail::after,
  .property-status-deposited .rh_prop_card__thumbnail::after,
  .property-status-rented .rh_prop_card__thumbnail::after{
    left:-40%; width:180%; font-size:16px; line-height:36px;
  }
}
