.map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 10;
  transition: opacity .3s ease;
  pointer-events: auto;
}

.map-pin:hover {
  transform: scale(1.15) translateY(-2px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4));
}

.map-pin {
  width: 24px;
  height: 36px;
}

.map-pin-icon {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.map-pin-pulse {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  animation: map-pulse 2s cubic-bezier(.4, 0, .2, 1) infinite;
  opacity: 0;
}

.marker-gold-normal {
  color: var(--color-gold-normal);
}

.marker-accent {
  color: var(--color-accent);
}

.map-filter-btn.active {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.map-filter-btn:not(.active) {
  opacity: .8;
}

.map-filter-btn:not(.active):hover {
  opacity: 1;
  transform: scale(1.02);
}

.map-popup {
  position: absolute;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transform-origin: bottom center;
}

.map-popup.show {
  opacity: 1;
  pointer-events: auto;
  animation: popupAppear .3s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

.map-popup.show * {
  pointer-events: auto;
}

.map-popup-content {
  background: rgba(29, 156, 240, .95);
  border: 1px solid #79CDFF;
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 200px;
  max-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  position: relative;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.map-popup .map-popup-header,
.map-popup .map-popup-body {
  opacity: 0;
  transform: translateY(15px);
}

.map-popup.show .map-popup-header {
  animation: popupSlideIn .35s cubic-bezier(.34, 1.56, .64, 1) .1s forwards;
}

.map-popup.show .map-popup-body {
  animation: popupSlideIn .35s cubic-bezier(.34, 1.56, .64, 1) .2s forwards;
}

.map-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.map-popup-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .2);
  border-radius: 8px;
}

.map-popup-icon i {
  font-size: 24px;
  color: white;
}

.map-popup-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.map-popup-title {
  color: white;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.map-popup-body {
  color: white;
  pointer-events: auto;
}

.map-popup-icons {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-popup-category {
  margin-bottom: 12px;
}

.map-popup-category:last-child {
  margin-bottom: 0;
}

.map-popup-category-label {
  font-size: 14px;
  font-weight: 700;
  color: #A1D9FF;
  margin-bottom: 8px;
  display: block;
}

.map-popup-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: white !important;
  transition: opacity .2s ease, transform .2s ease;
  cursor: pointer !important;
  pointer-events: auto !important;
  text-decoration: none !important;
  border-radius: 4px;
  z-index: 10;
  position: relative;
}

.map-popup-link:hover {
  opacity: .8;
  transform: scale(1.1);
  background: rgba(255, 255, 255, .1);
}

.map-popup-link:active {
  transform: scale(.95);
}

.map-popup-link i {
  font-size: 20px;
  pointer-events: none;
}

.map-popup-pointer {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid rgba(29, 156, 240, .9);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: .15s;
}

.map-popup.show .map-popup-pointer {
  transform: translateX(-50%) scaleY(1);
}

@media (min-width:768px) {
  .map-pin {
    width: 36px;
    height: 46px
  }

  .map-popup-pointer {
    bottom: -15px;
    border-left-width: 15px;
    border-right-width: 15px;
    border-top-width: 15px
  }

  .map-popup-link i {
    font-size: 26px
  }

  .map-popup-link {
    width: 40px;
    height: 40px
  }

  .map-popup-category-label {
    font-size: 16px;
    margin-bottom: 10px
  }

  .map-popup-icons {
    gap: 16px
  }

  .map-popup-content {
    border-radius: 12px;
    padding: 20px 24px;
    min-width: 300px;
    max-width: 400px
  }

  .map-popup-title {
    font-size: 28px
  }

  .map-popup-icon i {
    font-size: 32px
  }

  .map-popup-icon {
    width: 64px;
    height: 64px;
    min-width: 64px
  }

  .map-pin-pulse {
    width: 14px;
    height: 14px
  }
}

@keyframes popupAppear {
  from {
    opacity: 0;
    transform: translate(-50%, 10px) scale(.95)
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1)
  }
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes map-pulse {
  0% {
    transform: translateX(-50%) scale(.5);
    opacity: .7
  }

  50% {
    opacity: .4
  }

  100% {
    transform: translateX(-50%) scale(3);
    opacity: 0
  }
}