.navigation-pin-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.navigation-pin-status {
  flex: 1 1 220px;
  color: #000;
  font-size: 13px;
  line-height: 1.5;
}

.navigation-pin-status.is-set {
  color: #b45309;
  font-weight: 700;
}

.navigation-pin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.navigation-pin-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.navigation-pin-button:hover {
  background: #dbeafe;
}

.navigation-pin-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.navigation-pin-modal[hidden] {
  display: none;
}

.navigation-pin-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.54);
  box-sizing: border-box;
}

.navigation-pin-dialog {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(720px, 100%);
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.navigation-pin-dialog-header,
.navigation-pin-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.navigation-pin-dialog-header {
  border-bottom: 1px solid #e5e7eb;
}

.navigation-pin-dialog-header h2 {
  margin: 0;
  color: #000;
  font-size: 18px;
}

.navigation-pin-dialog-header p {
  margin: 5px 0 0;
  color: #000;
  font-size: 13px;
  line-height: 1.5;
}

.navigation-pin-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #000;
  font-size: 22px;
  cursor: pointer;
}

.navigation-pin-map {
  width: 100%;
  min-height: 360px;
  flex: 1 1 360px;
}

.navigation-pin-dialog-actions {
  justify-content: flex-end;
  border-top: 1px solid #e5e7eb;
}

.navigation-pin-dialog-actions button {
  min-height: 40px;
}

@media (max-width: 640px) {
  .navigation-pin-modal {
    padding: 10px;
  }

  .navigation-pin-dialog {
    height: min(620px, 100%);
    border-radius: 14px;
  }

  .navigation-pin-dialog-header,
  .navigation-pin-dialog-actions {
    padding: 13px 14px;
  }

  .navigation-pin-map {
    min-height: 300px;
  }
}
