/* BPP AGENCY DETAIL PROPERTY GRID — DESKTOP + MOBILE V1 */
html body#page-agency-profile .rpg-storefront__featured-grid,
html body#page-agency-profile .rpg-storefront__property-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  align-items:start!important;
}
html body#page-agency-profile .rpg-storefront__featured-grid>*,
html body#page-agency-profile .rpg-storefront__property-grid>*{
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;align-self:start!important;
}
html body#page-agency-profile article.bpp-search-owner-card-v466[data-bpp-search-owner-card-v466="1"]{
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;border-radius:14px!important;overflow:hidden!important;
  background:#fff!important;box-shadow:0 5px 18px rgba(16,48,35,.08)!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__media{
  position:relative!important;display:block!important;width:100%!important;
  aspect-ratio:16/10!important;height:auto!important;min-height:0!important;max-height:none!important;
  overflow:hidden!important;background:#eef5f1!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__media>img{
  display:block!important;width:100%!important;height:100%!important;min-height:100%!important;
  max-height:none!important;object-fit:cover!important;
}
html body#page-agency-profile .bpp-universal-card-media-badges-v1,
html body#page-agency-profile .bpp-search-grid-media-badges-v20{
  top:10px!important;left:10px!important;gap:6px!important;max-width:calc(100% - 66px)!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__body{
  display:block!important;height:auto!important;min-height:0!important;max-height:none!important;
  padding:10px 11px 11px!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__description,
html body#page-agency-profile .bpp-search-owner-card-v466__taxonomy,
html body#page-agency-profile .bpp-search-owner-card-v466__view{
  display:none!important;visibility:hidden!important;width:0!important;height:0!important;
  min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;
  border:0!important;overflow:hidden!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__title{
  display:block!important;width:100%!important;height:20px!important;min-height:20px!important;
  max-height:20px!important;margin:0 0 6px!important;padding:0!important;overflow:hidden!important;
  white-space:nowrap!important;text-overflow:ellipsis!important;font-size:14px!important;
  line-height:20px!important;font-weight:800!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__location{
  margin:0 0 6px!important;min-height:18px!important;font-size:11.5px!important;line-height:18px!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__price{
  margin:0 0 6px!important;min-height:22px!important;font-size:17px!important;
  line-height:22px!important;font-weight:900!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__meta{
  min-height:0!important;height:auto!important;margin:0 0 7px!important;gap:6px!important;
  font-size:11px!important;line-height:16px!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__meta.bpp-universal-card-empty-meta-v1{
  display:none!important;height:0!important;min-height:0!important;max-height:0!important;
  margin:0!important;padding:0!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__identity{
  display:flex!important;align-items:center!important;width:100%!important;min-height:0!important;
  margin:0!important;padding:8px 0!important;gap:10px!important;border-top:1px solid #e7efea!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__avatar,
html body#page-agency-profile .bpp-search-owner-card-v466__avatar img{
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  flex:0 0 36px!important;margin:0!important;object-fit:cover!important;border-radius:50%!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__identity-copy{
  min-width:0!important;flex:1 1 auto!important;
}
html body#page-agency-profile .bpp-search-owner-card-v466__role{font-size:10px!important;line-height:14px!important;}
html body#page-agency-profile .bpp-search-owner-card-v466__name{font-size:12px!important;line-height:17px!important;}
html body#page-agency-profile article.bpp-search-owner-card-v466
.property-contact-actions.property-contact-actions--card{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-flow:column!important;gap:6px!important;width:100%!important;margin:0!important;
  padding:7px 0 0!important;border-top:1px solid #e7efea!important;background:transparent!important;
}
html body#page-agency-profile article.bpp-search-owner-card-v466
.property-contact-actions--card .property-contact-action{
  width:100%!important;min-width:0!important;max-width:none!important;min-height:34px!important;
  margin:0!important;padding:5px!important;border-radius:8px!important;font-size:10.5px!important;
  line-height:16px!important;
}
@media (min-width:768px) and (max-width:1100px){
  html body#page-agency-profile .rpg-storefront__featured-grid,
  html body#page-agency-profile .rpg-storefront__property-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;
  }
}
@media (max-width:767px){
  html body#page-agency-profile .rpg-storefront__featured-grid,
  html body#page-agency-profile .rpg-storefront__property-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;
  }
  html body#page-agency-profile .rpg-storefront__featured-grid>*,
  html body#page-agency-profile .rpg-storefront__property-grid>*{
    grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
  html body#page-agency-profile article.bpp-search-owner-card-v466[data-bpp-search-owner-card-v466="1"]{
    width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;border-radius:14px!important;
  }
  html body#page-agency-profile .bpp-search-owner-card-v466__media{
    width:100%!important;aspect-ratio:auto!important;height:185px!important;
    min-height:185px!important;max-height:185px!important;
  }
  html body#page-agency-profile .bpp-search-owner-card-v466__body{padding:5px 10px 10px!important;}
  html body#page-agency-profile .bpp-search-owner-card-v466__title{
    height:20px!important;min-height:20px!important;max-height:20px!important;
    margin:0 0 5px!important;font-size:15px!important;line-height:20px!important;
  }
  html body#page-agency-profile .bpp-search-owner-card-v466__location,
  html body#page-agency-profile .bpp-search-owner-card-v466__price,
  html body#page-agency-profile .bpp-search-owner-card-v466__meta{
    margin-top:0!important;margin-bottom:5px!important;
  }
  html body#page-agency-profile .bpp-search-owner-card-v466__price{
    font-size:20px!important;line-height:24px!important;
  }
  html body#page-agency-profile .bpp-search-owner-card-v466__meta{
    gap:7px!important;font-size:12px!important;
  }
  html body#page-agency-profile .bpp-search-owner-card-v466__identity{
    margin:0!important;padding:5px 0!important;gap:10px!important;
  }
  html body#page-agency-profile .bpp-search-owner-card-v466__avatar,
  html body#page-agency-profile .bpp-search-owner-card-v466__avatar img{
    width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;flex-basis:42px!important;
  }
  html body#page-agency-profile article.bpp-search-owner-card-v466
  .property-contact-actions.property-contact-actions--card{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:5px 0 0!important;
  }
  html body#page-agency-profile article.bpp-search-owner-card-v466
  .property-contact-actions--card .property-contact-action{
    min-height:42px!important;height:42px!important;padding:0 4px!important;
    font-size:0!important;line-height:0!important;gap:0!important;
  }
  html body#page-agency-profile article.bpp-search-owner-card-v466
  .property-contact-actions--card .property-contact-action span{display:none!important;}
  html body#page-agency-profile article.bpp-search-owner-card-v466
  .property-contact-actions--card .property-contact-action svg{
    width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important;
  }
  html body#page-agency-profile .bpp-universal-card-media-badges-v1,
  html body#page-agency-profile .bpp-search-grid-media-badges-v20{
    top:9px!important;left:9px!important;gap:5px!important;
  }
}

/* BPP_AGENCY_CANONICAL_CARD_FLOW_V1_START
 * Canonical agency cards must size to their own content.
 * Prevent historical equal-height/stretch rules from producing large
 * vertical blanks below the property specification row.
 */
html body#page-agency-profile .rpg-storefront__property-grid,
html body#page-agency-profile .rpg-storefront__featured-grid {
    grid-auto-rows: auto !important;
    align-items: start !important;
}

html body#page-agency-profile .rpg-storefront__property-grid > article.bpp-search-owner-card-v466,
html body#page-agency-profile .rpg-storefront__featured-grid > article.bpp-search-owner-card-v466 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: start !important;
}

html body#page-agency-profile article.bpp-search-owner-card-v466 .bpp-search-owner-card-v466__body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

html body#page-agency-profile article.bpp-search-owner-card-v466 .bpp-search-owner-card-v466__meta {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}
/* BPP_AGENCY_CANONICAL_CARD_FLOW_V1_END */
