/* === PIN BADGES (nad pinezką) === */
.pin-wrap {
  position: relative;
  width: 42px;
}

.pin-badges {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  z-index: 2;
}

.pin-badge {
  position: relative;
  pointer-events: auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 1px;
  color: #fff;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  background: #999;
  cursor: help;
}

.bd-premium  { background: #d4af37; }
.bd-verified { background: #0d6efd; }
.bd-fg-ok    { background: #198754; }
.bd-fg-no    { background: #fd7e14; }

.pin-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #212529;
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}
.pin-badge:hover::after {
  opacity: 1;
}

/* === PIN HEAD (kolorowa głowa z ceną) === */
.map-pin {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}
.map-pin .pin-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.pin-face.is-long {
  font-size: 9px;
}

.price-low       { background: #2E7D32; }
.price-mid       { background: #FFB300; }
.price-high      { background: #F57C00; }
.price-expensive { background: #D32F2F; }
.price-unknown   { background: #616161; }

.map-pin:hover {
  transform: rotate(-45deg) scale(1.15);
  z-index: 1000;
}

/* === PREMIUM EXPOSURE === */
.pin-wrap.is-premium .map-pin {
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.85), 0 3px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.pin-wrap.is-premium .map-pin::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(212, 175, 55, 0.5);
  animation: pin-pulse 2s ease-out infinite;
}
@keyframes pin-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.has-premium-hover .map-pin:not(.is-premium) {
  opacity: 0.45;
  filter: saturate(0.6);
}

/* === POPUP CENOWE === */
.popup-price {
  font-size: 14px;
  margin-top: 8px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.3;
}

.popup-price.price-low {
  background-color: #e8f5e9;
  color: #1b5e20;
  border-left: 3px solid #2E7D32;
}
.popup-price.price-mid {
  background-color: #fff8e1;
  color: #ff6f00;
  border-left: 3px solid #FFB300;
}
.popup-price.price-high {
  background-color: #fff3e0;
  color: #e65100;
  border-left: 3px solid #F57C00;
}
.popup-price.price-expensive {
  background-color: #ffebee;
  color: #b71c1c;
  border-left: 3px solid #D32F2F;
}
.popup-price.price-unknown {
  background-color: #f5f5f5;
  color: #424242;
  border-left: 3px solid #616161;
  font-style: italic;
}

.popup-price-no-data {
  color: #424242;
  font-style: italic;
  font-weight: 500;
  padding-left: 8px;
  display: inline-block;
}
.popup-price-no-data::before {
  content: 'ℹ ';
  font-size: 12px;
}
@media (max-width: 991.98px) {
    .map-sidebar-sticky {
        position: static !important;
    }
}
