.mercury-property-map .ymaps-b-balloon.ymaps-b-balloon {
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(29, 35, 43, .18);
}
.mercury-property-map .ymaps-b-balloon.ymaps-b-balloon::after { display: none; }
.mercury-property-map .ymaps-b-balloon .ymaps-b-balloon__content {
  width: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px;
  overflow: hidden !important;
  background: #fff;
}
.mercury-property-map .ymaps-b-balloon__tr,
.mercury-property-map .ymaps-b-balloon__tl,
.mercury-property-map .ymaps-b-balloon__bl,
.mercury-property-map .ymaps-b-balloon__br { display: none !important; }
.mercury-property-map .ymaps-b-balloon-shadow { display: none !important; }
body .mercury-property-map .ymaps-b-balloon__content > ymaps {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.mercury-property-map .ymaps-b-balloon .ymaps-b-balloon__close {
  top: 9px;
  right: 9px;
  width: 24px;
  height: 24px;
  background: transparent;
  border-radius: 50%;
  color: #898989;
}
.mercury-property-map .ymaps-b-balloon__close::after {
  content: '\00d7';
  display: block;
  font: 24px/24px Arial, sans-serif;
  text-align: center;
}
.mercury-property-map .ymaps-b-balloon__close:hover { background: #f4f2ef; color: #292929; }
.mercury-property-map .mercury-map-popup {
  box-sizing: border-box;
  max-width: 100%;
  color: #292929;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  background: #fff;
}
.mercury-property-map .mercury-map-popup__heading {
  margin: 0 18px;
  padding: 17px 25px 14px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #292929;
  overflow-wrap: anywhere;
}
.mercury-property-map .mercury-map-popup__list {
  max-height: var(--mercury-popup-height, 280px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c3a571 #f4f2ef;
  padding: 3px 8px 5px;
}
.mercury-property-map .mercury-map-popup__single { padding: 17px 24px 16px 16px; }
.mercury-property-map a.mercury-map-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  gap: 14px;
  padding: 12px 10px;
  text-decoration: none;
  color: #292929;
  border-radius: 8px;
  transition: background-color .15s ease;
}
.mercury-property-map .mercury-map-popup__single .mercury-map-card { padding: 0; }
.mercury-property-map .mercury-map-popup__list .mercury-map-card + .mercury-map-card { border-top: 1px solid #f0eeeb; }
.mercury-property-map a.mercury-map-card:hover { background: #faf8f4; color: var(--theme-base-color, #c3a571); }
.mercury-property-map a.mercury-map-card:focus-visible { outline: 2px solid #c3a571; outline-offset: -2px; }
body .mercury-property-map .bx-yandex-map img.mercury-map-card__photo {
  position: static !important;
  display: block;
  width: 104px !important;
  height: 84px !important;
  max-width: 104px !important;
  flex: 0 0 104px;
  object-fit: cover;
  border-radius: 7px;
  background: #f2f1ee;
  margin: 0 !important;
}
.mercury-property-map .mercury-map-card__text { display: block; min-width: 0; }
.mercury-property-map .mercury-map-card__name { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.mercury-property-map .mercury-map-card__location { display: block; margin-top: 5px; font-size: 13px; line-height: 1.45; color: #898989; overflow-wrap: anywhere; }
.mercury-property-map .mercury-map-cluster {
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: var(--theme-base-color, #c3a571);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
@media(max-width: 480px) {
  body .mercury-property-map .bx-yandex-map img.mercury-map-card__photo { width: 80px !important; max-width: 80px !important; height: 72px !important; flex-basis: 80px; }
  .mercury-property-map a.mercury-map-card { gap: 10px; }
  .mercury-property-map .mercury-map-popup__heading { font-size: 16px; }
  .mercury-property-map .mercury-map-card__name { font-size: 14px; }
}
