@media screen and (max-width: 1200px) {
  .main {
    height: 100%;
    width: 100%;
  }
  .opening_hours {
    flex: 40%;
  }
}
@media screen and (min-width: 1301px) and (max-width: 1500px) {
  .places-list {
    flex: 32%;
  }
  .overleaf-map {
    flex: 68%;
  }
}

@media screen and (min-width: 1000px) and (max-width: 1300px) {
  .places-list {
    flex: 35%;
  }
  .overleaf-map {
    flex: 65%;
  }
}

@media screen and (min-width: 1701px) {
  .places-list {
    flex: 27%;
    height: 100%;
    flex-direction: column;
  }

  .main {
    width: 75vw;
    height: 85vh;
    max-width: 1600px;
    max-height: 1100px;
  }

  .main.embedded {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
  }
}

@media screen and (max-width: 1000px) {
  .selected-addr-descr {
    height: auto;
  }
  .overleaf-map {
    background: var(--background-color-light);
  }
  .address-wrapper .logo {
    padding: 0;
  }

  .scrollable {
    width: 100%;
  }

  .places-list {
    flex: none;
    height: 5%;
    align-items: center;
    margin: 0 10px;
  }

  .places-list .logo {
    display: none;
  }

  .left-column {
    width: 100%;
  }

  .main {
    flex-wrap: nowrap;
    flex-direction: column-reverse;
  }

  .address-wrapper {
    margin: 0 15px;
  }

  .address-wrapper .logo,
  .box-info-buttons {
    display: flex;
  }

  .address-wrapper .address,
  .selectbutton {
    display: none;
  }

  .expanded-places-list {
    height: 43.5vh;
  }

  .expand-search-btn,
  .geolocation-btn,
  .expand-location-list {
    display: block;
  }

  .selected-box-info {
    height: 30vh;
    flex-direction: row;
    overflow: auto;
    margin: 10px;
    overflow: hidden;
  }

  .opening_hours {
    overflow: visible;
  }

  .picture_wrapper {
    height: 100%;
    width: auto;
  }

  .picture {
    justify-content: center;
    width: 100%;
    height: 200px;
  }

  .map {
    margin-right: 0px;
  }

  .instant-search-popup {
    margin-top: 60px;
    width: 100%;
    left: 0;
  }

  .listpopup {
    width: 100%;
    overflow-y: scroll;
  }

  .info-address {
    max-width: none;
    align-items: center;
  }

  .selected-box-description {
    height: auto;
  }

  .opening_hours_list {
    overflow: auto;
    padding-right: 10px;
  }
}

@media screen and (max-width: 750px) {
  .selected-box-info {
    height: 30vh;
    flex-direction: column;
    overflow: auto;
    margin: 10px;
  }

  .opening_hours_list {
    overflow: none;
    padding: 0px;
  }
}

@media screen and (min-width: 1000px) and (max-width: 1200px) and (max-height: 650px) {
  .picture_wrapper {
    display: none;
  }

  .selected-addr-descr {
    overflow: visible;
  }

  .selected-box-address {
    overflow: auto;
  }
  .selected-box-info {
    height: 42%;
  }
  .selected-addr-descr {
    height: 100%;
  }
}
