My rules of agreement making
First rule of making agreements: the less trust there is in the relationship the more detail needs to be in the agreement.
Second rule of making agreements: enforcing an agreement on a recalcitrant participant when simple negotiation is ineffective is rarely worth the cost and aggravation.
Third rule of making agreements: Consequences for failing to comply should be spelled out in the agreement. The "or else ..." clauses all need to be detailed. Otherwise you are going to court to find out what happens.
Forth rule of making agreements: Long term agreements need to be changeable and flexible. This conflicts with rules one and three - no one said this was easy.
both parents shall maintain adequate housing with a separate room for each child.
... and if they can't because they lose their job?
.. and what is "adequate" anyway?
parents shall maintain civil relationship if both are attending the same event
Good luck - by definition people with an acrimonious relationship will have difficulty being civil.
neither parent will move more than 15 miles from current locations
This would be a void clause - no one can tell you where you can and can't live.
neither parent will have a non-blood relative member of the opposite sex spend the night while the child is present.
This would also be a void clause - no one can tell you who you can and can't have as a house guest.
Your relationship with your spouse is over - get used to the fact that you will have no control on what they do and who they do it with. With that as a starting point you need to sit down like grown-ups and work out what is best for your children that fits with each of your lifestyle choices and you will need to do this again and again until the children are old enough to make their own decisions. A lawyer can't really help you with this.
A comment suggested that the examples were not untenable. For clarity - they are not untenable; they are unenforceable. People are free to agree to anything they want, even illegal things, and they can follow that agreement as long as they want, however, if they don't follow it and the other party turns to the courts, if the terms of the agreement are illegal then the court will not enforce them.
A further comment asked for an illustration of my "third rule":
neither parent will move more than 15 miles from current locations without providing at least 3 months notice. During the notice period the parents will meet and attempt to agree on revised custody arrangements. Should agreement not be possible or the notice period not be met then the revised arrangements shall be X, Y & Z.