/* F06 - product ribbon.*/
.product-ribbon {
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 82%;
  padding: 7px 14px;
  border-radius: 8px 8px 8px 0;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* A ribbon sits over a photo, so it needs its own separation from whatever is behind. */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.product-ribbon__icon {
  width: 13px;
  height: 13px;
  flex: none;
}

.product-ribbon__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the five styles */
.product-ribbon--urgent {
  background: linear-gradient(100deg, #d92b2b 0%, #f2542d 100%);
}

.product-ribbon--promo {
  background: linear-gradient(100deg, #e08600 0%, #f7b32b 100%);
  color: #3a2600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.product-ribbon--fresh {
  background: linear-gradient(100deg, #1f8a5b 0%, #3fb17a 100%);
}

.product-ribbon--info {
  background: linear-gradient(100deg, #1a365d 0%, #2c5282 100%);
}

.product-ribbon--neutral {
  background: linear-gradient(100deg, #2f3437 0%, #4a5155 100%);
}

@media (max-width: 767px) {
  .product-ribbon {
    top: 10px;
    max-width: 88%;
    padding: 6px 12px;
    font-size: 11px;
  }
  .product-ribbon__icon {
    width: 12px;
    height: 12px;
  }
}
/* The listing card already has a category badge at top left. Push it below the ribbon,
   and only on cards that actually carry one, so every other card is untouched. */
.popular-properties .single-property-alt:has(.product-ribbon) .property-image .unit-category,
.slide-properties .single-property-alt:has(.product-ribbon) .property-image .unit-category {
  top: 53px;
}

@media (max-width: 767px) {
  .popular-properties .single-property-alt:has(.product-ribbon) .property-image .unit-category,
  .slide-properties .single-property-alt:has(.product-ribbon) .property-image .unit-category {
    top: 44px;
  }
}
/* ---- cms picker ----
   The admin chooses a style by looking at it, so the swatches are the real thing rather
   than five coloured squares. */
.ribbon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ribbon-picker__opt {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.ribbon-picker__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ribbon-picker__swatch {
  display: block;
  padding: 8px 10px 10px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #f4f6f8;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ribbon-picker__opt input:checked + .ribbon-picker__swatch {
  border-color: #2c5282;
  background: #e8eef6;
}

.ribbon-picker__swatch .product-ribbon {
  position: static;
  max-width: none;
}

.ribbon-picker__note {
  display: block;
  margin-top: 6px;
  color: #6b7378;
  font-size: 11px;
  white-space: nowrap;
}

/*# sourceMappingURL=ribbon.css.map */
