/* Loaded exclusively by ?pbhost_vcard_iframe=1 (Multi App iframe). */
html,
body.pbhost-vcard-app {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #f6f7fb;
}

.pbhost-vcard-directory--compact {
  max-width: none;
  margin: 0 auto;
  padding: 10px;
}

.pbhost-vcard-directory--compact .pbhost-vcard-directory__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Keep the catalogue visually separate from the search controls. */
  margin-top: 28px;
  gap: 14px;
}

/* Every app card follows the compact reference layout: logo on the left,
   title and subtitle beside it, category directly below the logo and city
   directly below the description.  Absolute positioning here is intentional:
   it keeps the two bottom labels independently aligned even when a title or
   description wraps to a second line. */
.pbhost-vcard-directory--compact .pbhost-vcard-directory__card {
  display: block;
  position: relative;
  /* Leave room for the category below the logo; it used to overflow the card. */
  min-height: 104px;
  padding: 10px 10px 10px 82px;
  border: 2px solid #252525;
  border-radius: 8px;
  box-shadow: none;
}

.pbhost-vcard-directory--compact .pbhost-vcard-directory__card img {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 60px;
  height: 60px;
}

.pbhost-vcard-directory--compact .pbhost-vcard-directory__card span {
  display: block;
  min-width: 0;
}

.pbhost-vcard-directory--compact .pbhost-vcard-directory__card strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pbhost-vcard-directory--compact .pbhost-vcard-directory__card > span > small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pbhost-vcard-directory--compact .pbhost-vcard-directory__meta {
  display: block;
  min-width: 0;
  margin-top: 8px;
}

.pbhost-vcard-directory--compact .pbhost-vcard-directory__meta em,
.pbhost-vcard-directory--compact .pbhost-vcard-directory__meta small {
  min-width: 0;
  overflow: hidden;
  color: #60656f;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pbhost-vcard-directory--compact .pbhost-vcard-directory__meta em {
  position: absolute;
  top: 76px;
  left: 10px;
  width: 60px;
  text-align: center;
}

.pbhost-vcard-directory--compact .pbhost-vcard-directory__meta small {
  display: block;
}

@media (max-width: 600px) {
  .pbhost-vcard-directory--compact {
    margin: 0 auto;
    padding: 10px 8px;
  }

  .pbhost-vcard-directory--compact .pbhost-vcard-directory__grid {
    margin-top: 22px;
    gap: 10px;
  }

  .pbhost-vcard-directory--compact .pbhost-vcard-directory__card {
    min-height: 78px;
    padding: 8px 8px 8px 64px;
  }

  .pbhost-vcard-directory--compact .pbhost-vcard-directory__card img {
    top: 8px;
    left: 8px;
    width: 48px;
    height: 48px;
  }

  .pbhost-vcard-directory--compact .pbhost-vcard-directory__card strong {
    font-size: 13px;
  }

  .pbhost-vcard-directory--compact .pbhost-vcard-directory__card small {
    font-size: 10px;
  }

  .pbhost-vcard-directory--compact .pbhost-vcard-directory__meta {
    margin-top: 6px;
  }

  .pbhost-vcard-directory--compact .pbhost-vcard-directory__meta em,
  .pbhost-vcard-directory--compact .pbhost-vcard-directory__meta small {
    font-size: 9px;
  }

  .pbhost-vcard-directory--compact .pbhost-vcard-directory__meta em {
    top: 60px;
    left: 8px;
    width: 48px;
  }
}
