/**
 * Карточка объявления в Leaflet popup — самодостаточные стили (не зависят от specteh-catalog-pages).
 */
.listing-map-popup.leaflet-popup {
  margin-bottom: 28px !important;
}

.listing-map-popup .leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(91, 33, 182, 0.14) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 44px rgba(91, 33, 182, 0.16) !important;
}

.listing-map-popup .leaflet-popup-content {
  margin: 0 !important;
  width: 300px !important;
  line-height: 1.4 !important;
}

.listing-map-popup .leaflet-popup-tip {
  background: #fff !important;
  border: 1px solid rgba(91, 33, 182, 0.12) !important;
}

.listing-map-popup .leaflet-popup-close-button {
  width: 30px !important;
  height: 30px !important;
  line-height: 28px !important;
  border-radius: 999px !important;
  top: 10px !important;
  right: 10px !important;
  color: #5b21b6 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(91, 33, 182, 0.16) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(26, 15, 46, 0.12) !important;
}

.listing-map-popup-card {
  display: flex !important;
  flex-direction: column !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  color: #1a0f2e !important;
  overflow: hidden !important;
  background: #fff !important;
}

.listing-map-popup-card__media {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 168px !important;
  background: linear-gradient(135deg, #faf7ff 0%, #ebe4f8 100%) !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

.listing-map-popup-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border: 0 !important;
}

.listing-map-popup-card__body {
  padding: 14px 16px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.listing-map-popup-card__title {
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
}

.listing-map-popup-card__title a,
.grad-rent-lux .listing-map-popup-card__title a,
.listing-map-popup .listing-map-popup-card__title a {
  color: #1a0f2e !important;
  text-decoration: none !important;
}

.listing-map-popup-card__title a:hover {
  color: #5b21b6 !important;
}

.listing-map-popup-card__price {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 4px 6px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.listing-map-popup-card__price-prefix {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #7d6f96 !important;
}

.listing-map-popup-card__price-val {
  font-size: 1.2rem !important;
  color: #5b21b6 !important;
}

.listing-map-popup-card__price-suffix {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #4a3d63 !important;
}

.listing-map-popup-card__addr {
  display: flex !important;
  align-items: flex-start !important;
  gap: 7px !important;
  font-size: 0.8rem !important;
  color: #7d6f96 !important;
  line-height: 1.45 !important;
}

.listing-map-popup-card__addr-icon {
  flex: 0 0 auto !important;
  margin-top: 2px !important;
  color: #7c3aed !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

.listing-map-popup-card__footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 4px !important;
}

.listing-map-popup-card__phone-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  min-height: 28px !important;
  margin-top: 2px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(91, 33, 182, 0.1) !important;
}

.listing-map-popup-card__phone-out {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  font-size: 0.88rem !important;
}

.listing-map-popup-card__phone-out a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-weight: 700 !important;
  color: #15803d !important;
  text-decoration: none !important;
}

.listing-map-popup-card__phone-out--loading {
  color: #7d6f96 !important;
  font-size: 0.78rem !important;
}

.listing-map-popup-card__phone-login {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #5b21b6 !important;
  text-decoration: none !important;
}

.listing-map-popup-card__media--loading {
  background: linear-gradient(110deg, #faf7ff 8%, #ebe4f8 18%, #faf7ff 33%) !important;
  background-size: 200% 100% !important;
  animation: listing-map-shimmer 1.2s linear infinite !important;
}

@keyframes listing-map-shimmer {
  to { background-position: -200% 0; }
}

.listing-map-popup-card__img {
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}

.listing-map-popup-card__img.is-loaded {
  opacity: 1 !important;
}

.listing-map-popup-card__btn,
.listing-map-popup-card__btn:hover,
.listing-map-popup-card__btn:focus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  width: 100% !important;
}

.listing-map-popup-card__btn--ghost {
  background: #fff !important;
  border-color: rgba(91, 33, 182, 0.22) !important;
  color: #5b21b6 !important;
}

.listing-map-popup-card__btn--ghost:hover {
  background: rgba(91, 33, 182, 0.06) !important;
  color: #4c1d9a !important;
}

.listing-map-popup-card__btn--primary {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(91, 33, 182, 0.28) !important;
}

.listing-map-popup-card__btn--primary:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(91, 33, 182, 0.34) !important;
}

.listing-map-popup-card__btn--primary {
  width: 100% !important;
}

.listing-map-popup-card__btn-icon {
  font-size: 0.95rem !important;
  line-height: 1 !important;
}
