*{
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  height: 7px!important;
  width: 7px!important;
}
::-webkit-scrollbar-track {
  background: transparent!important;
}
::-webkit-scrollbar-thumb {
  background-color: #a58c71!important;
  border-radius: 4px!important;
}

* {
  scrollbar-width: thin;          /* "auto" или "thin"  */
  scrollbar-color: #a58c71 transparent;   /* плашка скролла и дорожка */ 
}

#map-background {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.925);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.svg-wrapper {
  width: 750px;
  height: 750px;
  overflow: auto;
  border: 6px ridge #a58c71;
  box-sizing: border-box;
}

.map {
  background-image: url('https://forumstatic.ru/files/001a/0f/73/86797.webp');
  background-position: center;
  background-size: cover;
  position: relative;
}

.map.size-1 { width: 800px; height: 800px; }
.map.size-2 { width: 1000px; height: 1000px; }
.map.size-3 { width: 1200px; height: 1200px; }

.map-point {
  fill-opacity: 0.7;
  filter: blur(5px);
  transition: all 0.3s;
}

.map-link:hover .map-point{
  fill-opacity: 1
}

.map-loc-name{
  display: none;
  -webkit-text-stroke-width: 5px;
}

.map-link:hover .map-loc-name {
  display: block;
}

.map-mob-panel {
  display: none;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  align-items: center;
  position: fixed;
  top: -40px;
  height: 40px;
  width: 100%;
  background: #000;
  z-index: 999999;
  color: bisque;
  transition: top .3s;
}

.mob-map-size {
  width: 40%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-right: 100px;
}

.map-size {
  display: flex;
  position: fixed;
  justify-content: space-around;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.705);
  width: 100px;
  height: 30px;
  top: 1vh;
  left: 1vw;
  border-radius: 5px;
}

.map-size #size-min, 
.map-size #size-max{
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
}

.map-size #size-1,
.map-size #size-2,
.map-size #size-3,
.size-1-mob,
.size-2-mob,
.size-3-mob {
  width: 5px;
  height: 5px;
}

.map-size #size-1,
.map-size #size-2,
.map-size #size-3 {
  background-color: black;
}

.size-1-mob,
.size-2-mob,
.size-3-mob {
  background-color: #f7e7da;
}


.mob-map-size button {
  width: 20px; 
  height: 20px;
  color: #f7e7da;
  font-size: 15px;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 10px;
  cursor: pointer;
}

#mob-panel-button {
  background-color: #000;
  position: absolute;
  bottom: -25px;
  height: 25px;
  width: 50px;
  padding: 0 5px 0px 5px;
  cursor: pointer;
  text-align: center;
  border-radius: 0 0 5px 5px;
}

.mob-upp-arrow {
  display: none;
}

#map-point-desc {
  width: 300px;
  height: 750px;
  background-color: black;
  color: beige;
  display: flex;
  flex-direction: column;
}

#map-point-desc img {
  width: 300px;
}

#map-point-desc p,
#map-point-desc h2,
#map-point-desc h3 {
  padding: 10px;
}

#map-point-desc #desc_and_loc {
  overflow-y: auto;
}

#close-map {
  position: fixed;
  right: 20px;
  top: 20px;
  background-color: rgba(240, 255, 255, 0.61);
  font-size: 22px;
  color: rgb(255, 255, 255);
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  cursor: pointer;
}

#open-map {
  width: 60px;
  height: 60px;
  position: fixed;
  right: -20px;
  top: 80px;
  background-color: #f7e7da;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  opacity: .8;
  transition: all .3s;
}

#open-map:hover {
  right: 0;
  opacity: 1;
}

#open-map img {
  width: 40px;
  height: 40px;
  margin-top: 10px;
  margin-left: 10px;
}

.map-layer {
  position: fixed;
  left: 1vw;
  bottom: 2vh;
  display: flex;
  flex-direction: column;
}

.map-layer h3 {
  color: #f7e7da;
}

.map-layer .map-layer-btn {
  padding: 5px 10px;
  margin: 5px 0;
  text-align: center;
  background-color: black;
  color: bisque;
  cursor: pointer;
  border: 1px solid grey;
}

.map-layer .map-layer-btn.active, 
.map-layer .map-layer-btn:hover {
  background-color: beige;
  color: black;
}

#mob-close {
  cursor: pointer;
  border: solid 1px #f7e7da;
  width: 20px;
  height: 20px;
  text-align: center;
  border-radius: 10px;
}

@media (max-width: 360px) {
    #map-background{
    flex-direction: column;
  }
  .svg-wrapper {
    width: 100vw;
    height: 60vh;
  }
  #map-point-desc {
    width: 100vw;
    height: 40vh;
  }
  #map-point-desc img {
    display: none;
  }
  .map-layer {
    flex-direction: row;
    background-color: black;
    margin: 0;
    padding: 5px;
    bottom: 41vh;
  }
  .map-layer .map-layer-btn {
    margin: 0 5px;
  }
}

@media (max-width: 540px) {
  #map-background{
    flex-direction: column;
  }
  .svg-wrapper {
    width: 100vw;
    height: 60vh;
  }
  #map-point-desc {
    width: 100vw;
    height: 40vh;
  }
  #map-point-desc img {
    display: none;
  }
  #open-map {
    width: 35px;
    height: 35px;
    border-radius: 10px 0 0 10px;
    right: 0;
    opacity: 1;
  }
  #open-map img {
    width: 25px;
    height: 25px;
    margin: 5px;
  }
  #close-map {
    top: 80px;
  }
  #map-point-desc h2 {
    display: none;
  }
  .map-layer {
    width: 98%;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    background-color: black;
    margin: 0;
    padding: 5px;
    bottom: 0;
  }
  .map-layer .map-layer-btn {
    margin: 0 5px;
  }
  #close-map, .map-size {
    display: none;
  }
  .map-mob-panel {
    display: flex;
  }
}

@media (min-width: 541px) and (max-width: 767px) {
  .svg-wrapper {
    width: 70vw;
    height: 100vh;
  }
  #map-point-desc {
    width: 30vw;
    height: 100vh;
  }
  #map-point-desc img {
    width: 30vw;
  }
  #open-map {
    width: 20px;
    height: 20px;
  }
  .map-layer {
    flex-direction: row;
    background-color: black;
    margin: 0;
    padding: 5px;
  }
  .map-layer .map-layer-btn {
    margin: 0 5px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #map-background{
    width: 100%;
    height: 100vh;
  }
  .map-container{
    width: 90vw;
    height: 100vh;
  }
  .svg-wrapper {
    width: 70vw;
    height: 90vh;
  }
  #map-point-desc {
    width: 30vw;
    height: 100vh;
  }
  #map-point-desc img {
    width: 30vw;
  }
  .map-layer {
    flex-direction: row;
    background-color: black;
    margin: 0;
    padding: 5px;
  }
  .map-layer .map-layer-btn {
    margin: 0 5px;
  }
}

@media (min-width: 991px) and (max-width: 1199px) {
  .map-container {
    width: 70vw;
    height: 100vh;
  }
  .svg-wrapper {
    width: 70vw;
    height: 100vh;
  }
  #map-point-desc {
    width: 30vw;
    height: 100vh;
  }
  #map-point-desc img {
    width: 30vw;
  }
  .map-layer {
    flex-direction: row;
    background-color: black;
    margin: 0;
    padding: 5px;
    bottom: 31vh;
  }
  .map-layer .map-layer-btn {
    margin: 0 5px;
  }
}