*, *::after, *::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
*:focus {
    outline: none;
}

#map {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    top: 0px;
}

button.add,
button.info {
    position: absolute;
    background: none;
    border: 0;
    z-index: 10000;
    display: none;
    cursor: pointer;
}

button img {
    width: 48px;
}

button.add {
    top: 0;
    right: 0;
}

.active {
    display: block !important;
}
button.info {
    top: 0;
    left: 0;
}

.sidebar {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(222,222,222,0.8);
    width: 360px;
    z-index: 10001;
    padding: 4px;
}

#info {
    left: 0;
}


#add {
    right: 0;
}

#add input[type="text"] {
    width: 100%;
    border: 1px solid red;
    padding: 4px;

}
#add textarea {
    width: 100%;
    height: 400px;
    border: 1px solid red;
    padding: 4px;
}
#add .buttons {
    padding: 1em;
    text-align: center;
}
#add button {
    border-radius: 10px;
    padding: 8px 16px;
    border: 1px solid red;
}

.leaflet-control-attribution a:first-child,
.leaflet-control-attribution span {
    display: none;
}

.close {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.close.right {
    right: 4px;
    left: unset;
}

.close::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1a1a1a;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) rotate(45deg);
}
.close::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1a1a1a;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) rotate(-45deg);
}
