/* EPA V167 — visual repairs for listing cards, category selector, salon map and sponsor labels. */
/* The brand art already includes a single gold edge. Clip only the outside square corners. */
header.topbar .brand img.epa-network-logo,
img[src*="epa-brand-symbol.png"],
img[src*="epa-logo.png"]{
  border-radius:20%!important;
  clip-path:inset(0 round 20%)!important;
  border:0!important;outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
/* Fallback initials and text are siblings, never overlay one another. */
#epaWorkspace .epa-property .epa-property-owner,
#epaWorkspace .epa-listings.epa-v51-cards .epa-property-owner{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  gap:7px!important;min-width:0!important;width:100%!important;max-width:100%!important;
  box-sizing:border-box!important;padding:7px 0 8px!important;overflow:hidden!important;
  text-align:left!important;
}
#epaWorkspace .epa-property-owner > .epa-v167-owner-initial,
#epaWorkspace .epa-property-owner > img[data-epa-owner],
#epaWorkspace .epa-property-owner > .epa-v55-portrait-avatar {
  display:inline-grid!important;place-items:center!important;
  position:relative!important;inset:auto!important;
  margin:0!important;padding:0!important;
  width:31px!important;height:31px!important;min-width:31px!important;max-width:31px!important;
  min-height:31px!important;max-height:31px!important;
  flex:0 0 31px!important;aspect-ratio:1 / 1!important;
  text-align:center!important;line-height:1!important;
  font-size:15px!important;font-weight:750!important;
  border-radius:50%!important;overflow:hidden!important;
  white-space:nowrap!important;letter-spacing:0!important;
  transform:none!important;
}
#epaWorkspace .epa-property-owner > .epa-v167-owner-initial img,
#epaWorkspace .epa-property-owner > .epa-v55-portrait-avatar img{
  width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;
}
#epaWorkspace .epa-property-owner > .epa-v167-owner-name{
  display:block!important;flex:1 1 0!important;width:auto!important;max-width:none!important;
  min-width:0!important;margin:0!important;padding:0!important;
  font-size:12px!important;line-height:1.3!important;
  overflow:hidden!important;word-break:normal!important;
  overflow-wrap:normal!important;
}
#epaWorkspace .epa-property-owner > .epa-v167-owner-name b{
  display:block!important;max-width:100%!important;font-size:12px!important;
  font-weight:750!important;line-height:1.35!important;
  overflow:hidden!important;white-space:normal!important;word-break:normal!important;
  overflow-wrap:normal!important;hyphens:none!important;
}
#epaWorkspace .epa-property-owner > .epa-v167-owner-name small{
  display:block!important;white-space:nowrap!important;overflow:hidden!important;
  text-overflow:ellipsis!important;font-size:9px!important;
}
/* Smaller, consistent card typography and spacing in both opportunity/search modes. */
#epaWorkspace .epa-listings.epa-v51-cards .epa-property{
  min-width:0!important;overflow:hidden!important;
  border:1px solid #dbe6ed!important;border-radius:13px!important;
  box-shadow:0 2px 9px rgba(14,47,75,.045)!important;
}
#epaWorkspace .epa-listings.epa-v51-cards .epa-property-body{padding:9px!important;min-width:0!important}
#epaWorkspace .epa-listings.epa-v51-cards .epa-property-price{font-size:18px!important;line-height:1.2!important;margin-bottom:6px!important;}
#epaWorkspace .epa-listings.epa-v51-cards .epa-property-title{font-size:12px!important;line-height:1.4!important;font-weight:750!important;margin-bottom:4px!important;}
#epaWorkspace .epa-listings.epa-v51-cards .epa-property-meta{font-size:10px!important;line-height:1.42!important;overflow-wrap:break-word!important;}
#epaWorkspace .epa-listings.epa-v51-cards .epa-property-actions{gap:5px!important;margin-top:5px!important;}
#epaWorkspace .epa-listings.epa-v51-cards .epa-property-actions .epa-btn{
  min-height:32px!important;padding:6px 4px!important;border-radius:8px!important;
  font-size:10px!important;line-height:1.25!important;}
/* Home page listing avatars must stay circular and initials centered. */
#epaHomeDashboard .epa-home-owner{display:flex!important;gap:7px!important;align-items:center!important;min-width:0!important;}
#epaHomeDashboard .epa-v167-home-avatar{
  display:inline-grid!important;place-items:center!important;
  width:30px!important;height:30px!important;min-width:30px!important;flex:0 0 30px!important;
  font-size:13px!important;line-height:1!important;letter-spacing:0!important;
  border-radius:50%!important;text-align:center!important;overflow:hidden!important;}
#epaHomeDashboard .epa-v167-home-owner-copy{display:block!important;flex:1 1 0!important;min-width:0!important;overflow:hidden!important;}
#epaHomeDashboard .epa-v167-home-owner-copy b{display:block!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;}
/* A discreet, folded category selector replaces a tall permanent 12-tile panel. */
#epaWorkspace .epa-v167-category-card{margin:10px 0!important;padding:0!important;border:1px solid #d9e5ed!important;border-radius:14px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 2px 10px #0c35520a!important;}
#epaWorkspace .epa-v167-category-toggle{
  display:flex!important;align-items:center!important;gap:11px!important;
  padding:12px 14px!important;list-style:none!important;cursor:pointer!important;
  color:#123b5a!important;user-select:none!important;
}
#epaWorkspace .epa-v167-category-toggle::-webkit-details-marker{display:none!important;}
#epaWorkspace .epa-v167-kind-symbol{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#eaf4f7;color:#116274;font-size:23px;font-weight:800;}
#epaWorkspace .epa-v167-kind-copy{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;gap:2px}
#epaWorkspace .epa-v167-kind-copy strong{font-size:13px;line-height:1.25}
#epaWorkspace .epa-v167-kind-copy small{font-size:10px;line-height:1.3;color:#6d8393}
#epaWorkspace .epa-v167-kind-chevron{font-size:21px;color:#607b90;transform:rotate(0deg);transition:transform .16s}
#epaWorkspace .epa-v167-category-card[open] .epa-v167-kind-chevron{transform:rotate(180deg)}
#epaWorkspace .epa-v167-category-card .epa-category-grid{
  margin:0!important;padding:0 12px 12px!important;display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;
}
#epaWorkspace .epa-v167-category-card .epa-category{
  min-width:0!important;min-height:74px!important;
  border:1px solid #dfebf2!important;background:#f8fbfe!important;
  border-radius:10px!important;padding:9px 4px!important;gap:5px!important;
  box-shadow:none!important;
}
#epaWorkspace .epa-v167-category-card .epa-category.selected,
#epaWorkspace .epa-v167-category-card .epa-category:hover{border-color:#caa044!important;background:#fff8eb!important;}
#epaWorkspace .epa-v167-category-card .epa-category span{font-size:21px!important;line-height:1.1!important}
#epaWorkspace .epa-v167-category-card .epa-category b{font-size:11px!important;font-weight:700!important;line-height:1.2!important;white-space:normal!important}
/* Small sponsor labels in all the existing, approved advertising placements. */
#epaWorkspace .epa-v68-sponsored,
#epaWorkspace .epa-v72-ad-tag,
#epaWorkspace .epa-v73-quick-sponsored-label,
#epaHomeDashboard .epa-v72-ad-tag,
#epaQuickSearchResults .epa-v73-quick-sponsored-label {
  padding:2px 5px!important;font-size:8px!important;font-weight:750!important;
  line-height:1.1!important;border-radius:4px!important;letter-spacing:.02em!important;
  width:auto!important;height:auto!important;max-width:max-content!important;
}
#epaWorkspace .epa-opportunity-hero .epa-v68-sponsored{top:7px!important;left:8px!important;right:auto!important}
/* Salon: no white popup is opened automatically. Keep legally required map attribution discreet. */
.epa-v52-location-dialog .epa-v52-location-map .leaflet-popup{display:none!important;}
.epa-v52-location-dialog .epa-v52-location-map .leaflet-control-attribution{
  max-width:100%!important;font-size:8px!important;line-height:1.2!important;
  padding:1px 3px!important;background:rgba(255,255,255,.76)!important;
  white-space:normal!important;overflow-wrap:normal!important;
}
.epa-v52-location-dialog .epa-v52-location-bottom{
  align-items:center!important;gap:9px!important;
  padding:6px 1px 2px!important;
}
.epa-v52-location-dialog .epa-v52-location-feedback{line-height:1.45!important;font-size:11px!important;}
.epa-v52-location-dialog a.epa-v167-directions-link{
  display:inline-flex!important;justify-content:center!important;align-items:center!important;
  background:#dfba61!important;border:0!important;border-radius:10px!important;
  color:#183852!important;text-decoration:none!important;
  padding:10px 14px!important;min-height:38px!important;
  font-size:12px!important;font-weight:800!important;flex:0 0 auto!important;
}
.epa-v52-location-dialog a.epa-v167-directions-link:focus-visible{outline:2px solid #096ba2;outline-offset:3px}
@media(max-width:375px){
 #epaWorkspace .epa-listings.epa-v51-cards .epa-property-owner{gap:5px!important;}
 #epaWorkspace .epa-property-owner > .epa-v167-owner-initial{width:28px!important;height:28px!important;min-width:28px!important;flex-basis:28px!important;}
 #epaWorkspace .epa-property-owner > .epa-v167-owner-name b{font-size:11px!important;}
 .epa-v52-location-dialog .epa-v52-location-bottom{flex-direction:column!important;align-items:stretch!important;}
 .epa-v52-location-dialog a.epa-v167-directions-link{width:100%!important;}
}

/* V169: preserve complete Turkish adviser names in two-column cards. */
#epaWorkspace .epa-listings.epa-v51-cards .epa-property-owner > span.epa-v167-owner-name,
#epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-owner > span.epa-v167-owner-name{
  flex:1 1 0!important;min-width:0!important;overflow:hidden!important;
  overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;
}
#epaWorkspace .epa-listings.epa-v51-cards .epa-property-owner > span.epa-v167-owner-name b,
#epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-owner > span.epa-v167-owner-name b{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  overflow:hidden!important;white-space:normal!important;overflow-wrap:normal!important;
  word-break:normal!important;hyphens:none!important;line-height:1.3!important;
}
#epaWorkspace .epa-listings.epa-v51-cards .epa-property-owner > .epa-v167-owner-initial{
  display:grid!important;place-items:center!important;text-align:center!important;
  padding:0!important;transform:none!important;line-height:1!important;
}
