/*
 * v57.59.80 — Two targeted repairs.
 * 1) Emoji must always behave like inline text, never like a listing/photo image.
 * 2) Home partner logos are full-bleed/full-width inside their cards, like listing photos.
 */

/* -------------------------------------------------------------------------
   1) EMOJI — universal fallback for cached/plugin-generated <img.emoji> markup.
   WordPress normally renders emoji as Unicode. If an image slips through, these
   rules stop card/gallery image selectors from stretching it to 100% / 132px etc.
   ------------------------------------------------------------------------- */
html body img.emoji,
html body img.wp-smiley,
body.single-at_biz_dir.njf-single-source-migrated .njf5845 img.emoji,
body.single-at_biz_dir.njf-single-source-migrated .njf5845 img.wp-smiley,
body .njf-app-home img.emoji,
body .njf-app-home img.wp-smiley{
  display:inline-block!important;
  width:1em!important;
  min-width:1em!important;
  max-width:1em!important;
  height:1em!important;
  min-height:1em!important;
  max-height:1em!important;
  aspect-ratio:1/1!important;
  margin:0 .08em!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  object-fit:contain!important;
  object-position:center!important;
  vertical-align:-.12em!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  flex:0 0 1em!important;
}

/* Stronger Single Listing guard for every emoji inside recommendation cards,
   including promotion/category/location text placed within the media card. */
body.single-at_biz_dir.njf-single-source-migrated .njf5845 .njf40__relatedcard img.emoji,
body.single-at_biz_dir.njf-single-source-migrated .njf5845 .njf40__relatedcard img.wp-smiley,
body.single-at_biz_dir.njf-single-source-migrated .njf5845 .njf575__related-media img.emoji,
body.single-at_biz_dir.njf-single-source-migrated .njf5845 .njf575__related-media img.wp-smiley{
  display:inline-block!important;
  width:1em!important;
  min-width:1em!important;
  max-width:1em!important;
  height:1em!important;
  min-height:1em!important;
  max-height:1em!important;
  aspect-ratio:1/1!important;
  margin:0 .08em!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  object-fit:contain!important;
  vertical-align:-.12em!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
}

/* -------------------------------------------------------------------------
   2) PARTNERËT TANË — full-bleed image area, same visual logic as listing cards.
   ------------------------------------------------------------------------- */
.njf-app-home .njf-partner-card{
  height:110px!important;
}
.njf-app-home .njf-partner-card:not(.is-empty){
  padding:0!important;
  gap:0!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
}
.njf-app-home .njf-partner-card:not(.is-empty) > img:not(.emoji):not(.wp-smiley){
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:100%!important;
  height:78px!important;
  min-height:78px!important;
  max-height:78px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:14px 14px 0 0!important;
  object-fit:cover!important;
  object-position:center!important;
  flex:0 0 78px!important;
}
.njf-app-home .njf-partner-card:not(.is-empty) > strong{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  margin:0!important;
  padding:3px 4px 4px!important;
  overflow:hidden!important;
  color:#123f48!important;
  font-size:11px!important;
  line-height:1.05!important;
  font-weight:850!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  -webkit-line-clamp:2!important;
}

@media(min-width:768px){
  .njf-app-home .njf-partner-card{height:126px!important}
  .njf-app-home .njf-partner-card:not(.is-empty) > img:not(.emoji):not(.wp-smiley){
    height:91px!important;
    min-height:91px!important;
    max-height:91px!important;
    flex-basis:91px!important;
  }
  .njf-app-home .njf-partner-card:not(.is-empty) > strong{
    height:35px!important;
    min-height:35px!important;
    max-height:35px!important;
    font-size:12.5px!important;
  }
}
