/* Navigation Controls Container */
.nav-controls {
  position: absolute;
  right: 16px;
  bottom: 75px;
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: 1001;
  gap: 8px;
}

/* Pan Controls */
.pan-control {
  position: absolute;
  right: 12px;
  bottom: 40px;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: none;
  z-index: 1001;
}

.nav-controls .pan-control {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  margin: 0;
}

.nav-controls .pan-arrow {
  width: 18px;
  height: 18px;
  font-size: 12px;
  margin: 1px 0;
  background: rgba(0,0,0,0.18);
  border: none;
  border-radius: 50%;
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-controls .pan-arrow:hover {
  background: rgba(0,0,0,0.32);
  color: #fff;
}

.nav-controls .pan-middle-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Zoom Controls - horizontal */
.zoom-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
  box-shadow: none;
  padding: 0 2px;
  margin: 0;
  gap: 4px;
}

.zoom-btn {
  width: 28px;
  height: 28px;
  font-size: 16px;
  margin: 0;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  border: none;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.zoom-btn:hover {
  background: rgba(255,255,255,0.6);
}

/* Scale bar positioning */
.bottom-left-controls {
  position: absolute;
  right: 16px;
  bottom: 24px;
  z-index: 1001;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.zoom-controls #toggle-measurement {
  width: 28px;
  height: 28px;
  font-size: 16px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  margin-right: 46px;
}

.zoom-controls #toggle-measurement:hover {
  background: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.3);
}

.bottom-left-controls .ol-scale-line {
  position: static !important;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
  padding: 2px 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-controls {
    right: 10px;
    bottom: 65px;
    gap: 8px;
  }
  .pan-control {
    right: 6px;
  }
  .zoom-btn {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
  .nav-controls .pan-arrow {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  .zoom-controls {
    gap: 2px;
    padding: 0 1px;
  }
}

#toggle-pan {
  width: 35px;
  height: 35px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  color: #bbb;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, border 0.3s;
  margin-bottom: 5px;
  margin-right: 5px;
  box-shadow: none;
  outline: none;
}
#toggle-pan:hover, #toggle-pan.active {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
#toggle-pan i {
  pointer-events: none;
}

.layer-menu-content {
  padding: 0 0 10px 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 10px 10px;
}
