
/* Patch 10J-3 — Peta Sebaran SPPG Publik */
.mbg-public-map-section {
  position: relative;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 18px 44px rgba(50, 50, 93, .09);
  padding: clamp(1rem, 2vw, 1.35rem);
  margin-bottom: 1.1rem;
  overflow: hidden;
}

.mbg-public-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .95rem;
}

.mbg-public-map-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .42rem .75rem;
  border-radius: 999px;
  background: rgba(94, 114, 228, .11);
  color: #5e72e4;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.mbg-public-map-shell {
  position: relative;
  min-height: 26rem;
  border: 1px solid #edf2f7;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #f8f9fa;
}

.mbg-public-sppg-map {
  width: 100%;
  height: 26rem;
  min-height: 26rem;
  z-index: 1;
}

.mbg-public-map-loading,
.mbg-public-map-empty {
  position: absolute;
  inset: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: .95rem;
  background: rgba(255, 255, 255, .88);
  color: #67748e;
  font-size: .86rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(3px);
}

.mbg-public-map-loading[hidden],
.mbg-public-map-empty[hidden] {
  display: none !important;
}

.mbg-public-map-popup {
  min-width: 13rem;
}

.mbg-public-map-popup b {
  display: block;
  color: #172b4d;
  font-size: .9rem;
  margin-bottom: .15rem;
}

.mbg-public-map-popup p {
  margin: 0 0 .5rem;
  color: #8392ab;
  font-size: .75rem;
}

.mbg-public-map-popup-link {
  display: block;
  padding: .45rem 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid #edf2f7;
}

.mbg-public-map-popup-link strong,
.mbg-public-map-popup-link span {
  display: block;
}

.mbg-public-map-popup-link strong {
  color: #344767;
  font-size: .78rem;
}

.mbg-public-map-popup-link span,
.mbg-public-map-popup small {
  color: #8392ab;
  font-size: .72rem;
}

@media (max-width: 767.98px) {
  .mbg-public-map-head {
    display: block;
  }

  .mbg-public-map-badge {
    margin-top: .75rem;
  }

  .mbg-public-map-shell,
  .mbg-public-sppg-map {
    min-height: 21rem;
    height: 21rem;
  }
}


/* Patch 10J-3a — Samakan marker publik dengan peta admin */
.mbg-map-marker {
  width: 34px !important;
  height: 42px !important;
  background: transparent !important;
  border: 0 !important;
}

.mbg-map-marker-pin {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(145deg, #5e72e4, #2d5bff);
  border: 3px solid #ffffff;
  box-shadow: 0 10px 18px rgba(17, 24, 39, .24);
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
}

.mbg-map-marker-pin::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  background: #ffffff;
  opacity: .96;
}

.mbg-map-marker-pin span {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d5bff;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(45deg);
}

.mbg-map-marker-pin span:empty::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2d5bff;
}
