/* Infrastructure Map Markers CSS */
/* Цветовая схема сайта */

/* Базовый маркер */
.infra-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: #00DDBB;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Категории маркеров */
.infra-marker--realty {
  background-color: #00DDBB;
}

.infra-marker--education {
  background-color: #8b5cf6;
}

.infra-marker--commerce {
  background-color: #f97316;
}

.infra-marker--service {
  background-color: #ec4899;
}

/* Hover эффект */
.infra-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.6);
  z-index: 2;
}

/* Пульсирующая анимация для активного слоя */
.infra-marker__pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* Анимация пульсирующего кольца */
.infra-marker__pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulse-ring 2s ease-out infinite;
  opacity: 0;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* Контейнер для SVG иконки */
.infra-marker__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.infra-marker__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Стили для попапа */
.infra-popup {
  background-color: #0a0a0a;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  max-width: 280px;
}

.infra-popup .leaflet-popup-content-wrapper {
  background-color: #0a0a0a;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 0;
}

.infra-popup .leaflet-popup-content {
  margin: 12px 16px;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.infra-popup .leaflet-popup-tip {
  background-color: #0a0a0a;
  border: 1px solid #fbbf24;
  border-top: none;
  border-right: none;
}

/* Заголовок попапа */
.infra-popup__title {
  font-size: 14px;
  font-weight: 600;
  color: #fbbf24;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

/* Категория в попапе */
.infra-popup__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.infra-popup__category--realty {
  background-color: rgba(0, 221, 187, 0.15);
  color: #00DDBB;
}

.infra-popup__category--education {
  background-color: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.infra-popup__category--commerce {
  background-color: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.infra-popup__category--service {
  background-color: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

/* Описание в попапе */
.infra-popup__description {
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

/* Расстояние в попапе */
.infra-popup__distance {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.infra-popup__distance::before {
  content: '📍';
  font-size: 12px;
}

/* Закрыть попап */
.infra-popup .leaflet-popup-close-button {
  color: #fbbf24;
  font-size: 20px;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.infra-popup .leaflet-popup-close-button:hover {
  color: #fbbf24;
  opacity: 1;
}

/* Кластер маркеров */
.infra-marker-cluster {
  background-color: rgba(10, 10, 10, 0.8);
  border: 2px solid #fbbf24;
  border-radius: 50%;
  color: #fbbf24;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.infra-marker-cluster:hover {
  transform: scale(1.1);
  background-color: rgba(251, 191, 36, 0.2);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .infra-marker {
    width: 24px;
    height: 24px;
  }

  .infra-marker__icon {
    width: 14px;
    height: 14px;
  }

  .infra-popup {
    max-width: 240px;
  }

  .infra-popup__title {
    font-size: 13px;
  }

  .infra-popup__description {
    font-size: 12px;
  }
}

/* ==============================================
   ENHANCED LEAFLET POPUP STYLES
   ============================================== */

/* Base Leaflet Popup Overrides */
.leaflet-popup-content-wrapper {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.leaflet-popup-content-wrapper:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 15px 50px rgba(251, 191, 36, 0.2), 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.leaflet-popup-content {
    margin: 0;
    color: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.leaflet-popup-tip {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: none;
}

/* Enhanced Close Button Styling */
.leaflet-popup-close-button {
    color: #9ca3af !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    padding: 8px 12px !important;
    width: auto !important;
    height: auto !important;
    background: transparent;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    line-height: 1;
    top: 8px !important;
    right: 8px !important;
}

.leaflet-popup-close-button:hover {
    color: #fbbf24 !important;
    opacity: 1;
    transform: rotate(90deg);
    background: rgba(251, 191, 36, 0.15);
    border-radius: 50%;
}

.leaflet-popup-close-button:active {
    transform: rotate(90deg) scale(0.9);
    background: rgba(251, 191, 36, 0.25);
}

.leaflet-popup-close-button:focus {
    outline: 2px solid rgba(251, 191, 36, 0.5);
    outline-offset: 2px;
}

/* Popup Animation */
.leaflet-popup {
    animation: popupFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Main Popup Container - Enhanced */
.infra-popup {
    padding: 16px 20px;
    min-width: 160px;
    max-width: 300px;
}

/* Rating Section */
.infra-popup__rating {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.leaflet-popup-content-wrapper:hover .infra-popup__rating {
    color: #fcd34d;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
    transform: scale(1.05);
}

.infra-popup__reviews {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.leaflet-popup-content-wrapper:hover .infra-popup__reviews {
    color: #d1d5db;
}

/* Name Section - Enhanced */
.infra-popup__name {
    font-size: 15px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.leaflet-popup-content-wrapper:hover .infra-popup__name {
    color: #ffffff;
}

/* Meta Information */
.infra-popup__meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    padding-top: 10px;
    border-top: 1px solid rgba(251, 191, 36, 0.15);
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.leaflet-popup-content-wrapper:hover .infra-popup__meta {
    color: #9ca3af;
    border-top-color: rgba(251, 191, 36, 0.3);
}

.infra-popup__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.infra-popup__meta-icon {
    font-size: 12px;
    opacity: 0.7;
}

/* Distance Indicator - Enhanced */
.infra-popup__distance {
    font-weight: 600;
    color: #fbbf24;
    font-size: 12px;
}

/* Status Badge */
.infra-popup__status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.infra-popup__status--open {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.infra-popup__status--closed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.leaflet-popup-content-wrapper:hover .infra-popup__status--open {
    background: rgba(34, 197, 94, 0.3);
}

.leaflet-popup-content-wrapper:hover .infra-popup__status--closed {
    background: rgba(239, 68, 68, 0.3);
}

/* Category Icons */
.infra-popup__category-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.15);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.leaflet-popup-content-wrapper:hover .infra-popup__category-icon {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.4);
    transform: scale(1.1) rotate(5deg);
}

/* Link Styling in Popup */
.infra-popup a {
    color: #fbbf24;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.infra-popup a:hover {
    color: #fcd34d;
    border-bottom-color: rgba(251, 191, 36, 0.5);
}

/* Divider */
.infra-popup__divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(251, 191, 36, 0.3), transparent);
    margin: 12px 0;
}

/* Contact Info */
.infra-popup__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #d1d5db;
    margin-top: 8px;
    padding: 8px;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.infra-popup__contact:hover {
    background: rgba(251, 191, 36, 0.1);
}

/* Loading State */
.infra-popup--loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.infra-popup--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Accessibility */
.leaflet-popup-content-wrapper:focus-within {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Smooth scrolling for long content */
.infra-popup {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 191, 36, 0.3) transparent;
}

.infra-popup::-webkit-scrollbar {
    width: 6px;
}

.infra-popup::-webkit-scrollbar-track {
    background: transparent;
}

.infra-popup::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.infra-popup::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.5);
}

/* Responsive Adjustments for Popups */
@media (max-width: 768px) {
    .leaflet-popup-content-wrapper {
        border-radius: 10px;
        max-width: 90vw;
    }

    .infra-popup {
        padding: 14px 16px;
        min-width: 140px;
        max-width: 260px;
    }

    .infra-popup__rating {
        font-size: 18px;
    }

    .infra-popup__name {
        font-size: 14px;
    }

    .infra-popup__meta {
        font-size: 12px;
        gap: 10px;
    }

    .infra-popup__category-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .leaflet-popup-close-button {
        font-size: 20px !important;
        padding: 6px 10px !important;
    }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    .leaflet-popup-content-wrapper {
        background: rgba(10, 10, 10, 0.98);
        border-color: rgba(251, 191, 36, 0.4);
    }

    .leaflet-popup-tip {
        background: rgba(10, 10, 10, 0.98);
        border-color: rgba(251, 191, 36, 0.4);
    }
}

/* Print Styles */
@media print {
    .leaflet-popup-close-button {
        display: none;
    }

    .leaflet-popup-content-wrapper {
        background: white;
        color: black;
        border: 1px solid black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .leaflet-popup-content-wrapper {
        border-width: 2px;
        border-color: #fbbf24;
    }

    .infra-popup__rating,
    .infra-popup__name {
        font-weight: 800;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .leaflet-popup,
    .leaflet-popup-content-wrapper,
    .leaflet-popup-close-button,
    .infra-popup__rating,
    .infra-popup__category-icon {
        animation: none;
        transition: none;
    }

    .leaflet-popup-close-button:hover {
        transform: none;
    }
}

/* Popup Footer Actions */
.infra-popup__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(251, 191, 36, 0.15);
}

.infra-popup__action-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.infra-popup__action-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.infra-popup__action-btn:active {
    transform: translateY(0);
}

/* Rating Stars */
.infra-popup__stars {
    display: inline-flex;
    gap: 2px;
    margin-left: 4px;
}

.infra-popup__star {
    color: #fbbf24;
    font-size: 12px;
}

.infra-popup__star--empty {
    color: rgba(251, 191, 36, 0.3);
}

/* ==============================================
   PREMIUM INFRASTRUCTURE TOOLTIP (WOW DESIGN)
   Using L.tooltip with direction: 'auto' for smart positioning
   ============================================== */

/* Tooltip wrapper - override Leaflet defaults */
.premium-infra-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    pointer-events: auto;
}

.premium-infra-tooltip::before {
    display: none !important;  /* Hide default arrow */
}

/* High z-index to ensure tooltip is above all UI */
.leaflet-tooltip.premium-infra-tooltip {
    z-index: 10000 !important;
}

/* Main Card Container */
.infra-card-popup {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-radius: 16px;
    padding: 18px 20px;
    min-width: 200px;
    max-width: 260px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(251, 191, 36, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    animation: infraPopupIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom center;
}

@keyframes infraPopupIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header with Icon */
.infra-card-popup__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
}

.infra-card-popup__icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.infra-card-popup__icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    border-radius: inherit;
}

.infra-card-popup__icon-wrap svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
}

/* Category Colors for Icons */
.infra-card-popup__icon-wrap--realty {
    background: linear-gradient(135deg, rgba(0, 221, 187, 0.25) 0%, rgba(0, 180, 150, 0.15) 100%);
    border: 1px solid rgba(0, 221, 187, 0.3);
    color: #00DDBB;
}

.infra-card-popup__icon-wrap--education {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(109, 62, 216, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.infra-card-popup__icon-wrap--commerce {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(219, 85, 0, 0.15) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #f97316;
}

.infra-card-popup__icon-wrap--service {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(206, 42, 123, 0.15) 100%);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #ec4899;
}

.infra-card-popup__title {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Main Value Section */
.infra-card-popup__value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.infra-card-popup__rating {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fcd34d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.infra-card-popup__rating-star {
    font-size: 24px;
    color: #fbbf24;
    margin-left: 4px;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.infra-card-popup__reviews {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* Progress Bar */
.infra-card-popup__bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}

.infra-card-popup__bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.infra-card-popup__bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.infra-card-popup__bar-fill--realty {
    background: linear-gradient(90deg, #00DDBB 0%, #00ffdd 100%);
}

.infra-card-popup__bar-fill--education {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

.infra-card-popup__bar-fill--commerce {
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
}

.infra-card-popup__bar-fill--service {
    background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
}

/* Info Grid */
.infra-card-popup__info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.infra-card-popup__info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.infra-card-popup__info-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.infra-card-popup__info-value {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 600;
}

/* Single Info Row (for buildings) */
.infra-card-popup__detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.infra-card-popup__detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.infra-card-popup__detail-label {
    font-size: 12px;
    color: #94a3b8;
}

.infra-card-popup__detail-value {
    font-size: 13px;
    color: #f1f5f9;
    font-weight: 600;
}

/* Badge for category */
.infra-card-popup__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.infra-card-popup__badge--realty {
    background: rgba(0, 221, 187, 0.15);
    color: #00DDBB;
    border: 1px solid rgba(0, 221, 187, 0.25);
}

.infra-card-popup__badge--education {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.infra-card-popup__badge--commerce {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.infra-card-popup__badge--service {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

/* No Rating State */
.infra-card-popup__no-rating {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
    text-align: center;
    padding: 10px 0;
}

/* Hover effects on marker that opens popup */
.infra-marker-wrapper:hover .infra-marker {
    transform: scale(1.25);
    box-shadow: 0 0 20px currentColor;
}

/* Responsive */
@media (max-width: 768px) {
    .infra-card-popup {
        padding: 14px 16px;
        min-width: 180px;
        max-width: 240px;
        border-radius: 14px;
    }

    .infra-card-popup__icon-wrap {
        width: 38px;
        height: 38px;
    }

    .infra-card-popup__icon-wrap svg {
        width: 18px;
        height: 18px;
    }

    .infra-card-popup__rating {
        font-size: 26px;
    }

    .infra-card-popup__title {
        font-size: 12px;
    }
}
