/*
 * promo_badge.css — shared, prominent "X% OFF" / "PROMO" badge used
 * everywhere a property's promo status is shown (public site, realtor,
 * developer and superadmin dashboards). Added as its own small file
 * rather than edited into the compiled main.css / landing.css bundles,
 * which are minified/generated and not safe to hand-edit.
 *
 * Rendered via {% property_promo_badge property %} — see
 * estateapp/templatetags/property_extras.py and
 * templates/properties/_promo_badge.html.
 */

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(190, 18, 60, 0.45);
  white-space: nowrap;
  line-height: 1;
  border: none;
}

.promo-badge i {
  font-size: 0.85em;
}

/* Ribbon variant — absolutely positioned over a card/image corner. The
   including template supplies the corner (top-3 right-3, etc.) via its
   own utility classes alongside promo-badge-ribbon. */
.promo-badge-ribbon {
  position: absolute;
  z-index: 10;
}

/* Inline variant — sits in normal text flow (table cells, page headers,
   next to a title) instead of floating over an image. */
.promo-badge-inline {
  position: static;
}

/* Sizes */
.promo-badge-sm {
  font-size: 10px;
  padding: 4px 9px;
}
.promo-badge-md {
  font-size: 12px;
  padding: 6px 12px;
}
.promo-badge-lg {
  font-size: 14px;
  padding: 8px 16px;
}

@media (max-width: 640px) {
  .promo-badge-lg {
    font-size: 12px;
    padding: 6px 13px;
  }
  .promo-badge-md {
    font-size: 11px;
    padding: 5px 10px;
  }
}
