/*
 * v57.59.79 — Two isolated visual fixes only:
 * 1) Home Partnerët tanë: logo + name use the full usable card width.
 * 2) Single Listing related cards: promotion badges stay compact; WP emoji images
 *    can no longer inherit the full related-photo dimensions.
 */

/* Partnerët tanë — use the card width, keep logos contained, show full names. */
.njf-app-home .njf-partner-card:not(.is-empty){
  height:104px;
  padding:5px 4px 7px;
  gap:4px;
}
.njf-app-home .njf-partner-card:not(.is-empty) img{
  display:block;
  width:100%;
  max-width:none;
  height:65px;
  min-height:0;
  object-fit:contain;
  object-position:center;
  margin:0;
}
.njf-app-home .njf-partner-card:not(.is-empty) strong{
  display:-webkit-box;
  width:100%;
  max-width:100%;
  min-height:24px;
  margin:0;
  padding:0 1px;
  overflow:hidden;
  color:#123f48;
  font-size:11px;
  line-height:1.08;
  font-weight:850;
  text-align:center;
  white-space:normal;
  text-overflow:clip;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

/* Related listing promotion badge — compact pill over the image. */
body.single-at_biz_dir.njf-single-source-migrated .njf5845 .njf5845__related-badge{
  position:absolute!important;
  z-index:4!important;
  left:9px!important;
  top:9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  width:auto!important;
  max-width:calc(100% - 18px)!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:6px 9px!important;
  border-width:1px!important;
  border-style:solid!important;
  border-radius:999px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-shadow:0 4px 12px rgba(0,0,0,.18)!important;
  backdrop-filter:none!important;
}

/* Critical fix: WP turns 🔥/⭐/📌 into img.emoji. Never let that image inherit
   .njf575__related-media img { width:100%; height:... } from the listing photo. */
body.single-at_biz_dir.njf-single-source-migrated .njf5845 .njf5845__related-badge img.emoji,
body.single-at_biz_dir.njf-single-source-migrated .njf5845 .njf5845__related-badge img.wp-smiley{
  display:inline-block!important;
  width:1em!important;
  height:1em!important;
  min-width:1em!important;
  min-height:1em!important;
  max-width:1em!important;
  max-height:1em!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:contain!important;
  vertical-align:-.12em!important;
  box-shadow:none!important;
}

@media(min-width:768px){
  .njf-app-home .njf-partner-card:not(.is-empty){height:116px;padding:7px 6px 8px}
  .njf-app-home .njf-partner-card:not(.is-empty) img{height:74px}
  .njf-app-home .njf-partner-card:not(.is-empty) strong{font-size:12.5px;min-height:26px}
}
