/* Harbour editor bottom sheet — used when picking the camp position and radius.
   Slides up from the bottom so the map stays visible above. */

.map-container .harbour-panel {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 24px));
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popup);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, opacity 0.2s ease;
  overflow: hidden;
}

.map-container .harbour-panel.harbour-panel-closed {
  transform: translate(-50%, calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 992px) {
  .map-container .harbour-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    transform: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .map-container .harbour-panel.harbour-panel-closed {
    transform: translateY(calc(100% + 24px));
  }
}

.harbour-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 18px;
  border-bottom: 1px solid var(--border-light);
}

.harbour-panel-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.harbour-panel-icon {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.harbour-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.2px;
}

.harbour-panel-close {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background-color 0.15s ease;
}

.harbour-panel-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.harbour-panel-close .icon {
  width: 20px;
  height: 20px;
}

.harbour-panel-body {
  padding: 16px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.harbour-panel-info {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.harbour-panel-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.harbour-panel-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-label);
  margin: 0;
}

.harbour-radius-input {
  position: relative;
  display: flex;
  align-items: center;
}

.harbour-radius-input input[type="number"] {
  width: 100%;
  max-width: 100%;
  padding: 10px 36px 10px 12px;
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid #d6dde1;
  border-radius: var(--radius-sm);
  font-family: 'Roboto', sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.harbour-radius-input input[type="number"]::placeholder {
  color: var(--text-muted);
}

.harbour-radius-input input[type="number"]:hover {
  border-color: #b9c3c9;
}

.harbour-radius-input input[type="number"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 160, 155, 0.15);
}

.harbour-radius-suffix {
  position: absolute;
  right: 12px;
  pointer-events: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.harbour-panel-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border-light);
  background: #fff;
}

.harbour-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.harbour-action:active { transform: translateY(1px); }

.harbour-action-primary {
  background: var(--blue);
  color: #fff;
}

.harbour-action-primary:hover { background: var(--blue-light-hover); }

.harbour-action-primary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.harbour-action-secondary {
  background: #fff;
  color: var(--text-primary);
  border-color: #d6dde1;
}

.harbour-action-secondary:hover {
  background: var(--bg-hover);
  border-color: #b9c3c9;
}

.harbour-action-secondary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
