.custom-pin {
  width: 80px;
  height: 80px;
  position: absolute;
  z-index: 1;
  cursor: pointer;
}

/* Inner wrapper for pin image */
.pin-inner {
  --pin-url: none;
  width: 100%;
  height: 100%;
  background-image: var(--pin-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.pin-label {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fdf3df;
  color: #dd9c47;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show label on hover */
.custom-pin:hover .pin-label {
  opacity: 1;
}

.pin-inner {
  transform-origin: 50% 100%;
}

/* Overlay layer: masked to pin shape */
.pin-inner::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.2s ease;

  /* ✅ mask to the pin silhouette */
  -webkit-mask-image: var(--pin-url);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--pin-url);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* On hover - scale up and darken only the visible pin pixels */
.custom-pin:hover .pin-inner {
  transform: scale(1.2);
}
.custom-pin:hover .pin-inner::after {
  background-color: rgba(0, 0, 0, 0.08);
}

#image-badge,
#AO-logo-lockup {
  transition: opacity 0.4s ease;
}

.section-counter {
  position: fixed;
  right: 0; /* Stick to right edge */
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 6px 0 0 6px;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .section-counter {
    top: 11.5vh;
    transform: none; /* Remove vertical centering */
  }
}

.section-counter span {
  color: #14797b;
  font-family: inherit;
  font-size: 16px;
  display: block;
}

#section-current {
  font-weight: 700; /* bold current */
  font-size: 16px;
}

#section-total {
  font-weight: 400; /* normal weight total */
  opacity: 0.7;
  font-size: 16px;
}

.section-counter.is--hide {
  opacity: 0;
  pointer-events: none;
}

.mapboxgl-ctrl-logo {
  display: none !important;
}

.mapboxgl-ctrl-attrib {
  display: none !important;
}
