/* Map area */
.mapWrap {
  position: relative;
  height: 100%;
  width: 100%;
  min-height: 0;
}

#map {
  height: 100%;
  width: 100%;
  background: #080d27;
  position: relative;
  z-index: 1;
  /* filter: saturate(0.5) brightness(0.45) contrast(1.1); */
}

/* Cluster pins (AllTrails-style) */
.clusterPin {
  background: #1c2f23;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clusterPin .clusterCount {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

/* Individual pins (AllTrails-style) */
.pinDotWrap {
  background: transparent;
  border: none;
}

.pinDot {
  position: relative;
  width: 30px;
  height: 30px;
  display: block;
  background: #1c2f23;
  border: 2px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.pinDot::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: #ffffff;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Controls */
.mapControls {
  position: absolute;
  right: 25px;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 600;
  align-items: flex-end;
}

.ctrlBtn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--drawer-border);
  background: rgba(12, 18, 44, 0.85);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 32, 88, 0.4);
  font-size: 24px;
  color: #e9e4ff;
}

.ctrlBtn img {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.ctrlGlyph {
  font-size: 18px;
  font-weight: 700;
  color: #eaedff;
  line-height: 1;
  display: block;
}

.ctrlBtn:hover {
  background: rgba(44, 16, 76, 0.95);
}

/* Leaflet z-index sanity */
.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
  z-index: 2;
}

/* Activity pin */
.pinEmoji {
  font-size: 26px;
  transform: translateY(-6px);
}

.drawerMap {
  position: relative;
  min-height: 240px;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  padding: 10px;
}

#drawerMap {
  position: absolute;
  inset: 0px;
  border-radius: 12px;
  overflow: hidden;
}

.drawerMapControls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(51, 70, 121, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 10px;
  overflow: hidden;
  --lg-bg-color: rgba(16, 8, 28, 0.45);
  --lg-highlight: rgba(255, 255, 255, 0.2);
}

.drawerMapControls .ctrlBtn {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
}

.drawerMapControls .ctrlBtn img {
  width: 15px;
  height: 15px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}