.selector {
  position: relative;
  z-index: 10;
}

.navigation {
  margin: 0 auto;
  width: 240px;
}

.mobile-dropdown {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
}

.dropdown-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  background-color: #fff;
  border: 1px solid #75cfc3;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  height: 48px;
  text-align: center;
  gap: 17px;
}

.dropdown-header::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-image: url(../images/sightseeing/selector-arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.mobile-dropdown.open .dropdown-header {
  border-bottom: 1px solid transparent;
}

.mobile-dropdown.open .dropdown-header::after {
  transform: scaleY(-1);
}

.dropdown-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
}

.dropdown-list {
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #75cfc3;
  border-top: none;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-dropdown.open .dropdown-list {
  max-height: 400px;
  opacity: 1;
  text-align: center;
  padding: 0 0 6px 0;
}

.dropdown-list li:last-child {
  border-bottom: none;
}

.dropdown-list .nav-item {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
}

.dropdown-list .nav-item:hover {
  background-color: #e6e6e6;
}

.dropdown-list .nav-item.active {
  background-color: #e6e6e6;
}

@media (min-width: 768px) {
  .page-intro {
    padding: 120px 27.5px 64px;
  }
  .dropdown-header {
    display: none;
  }

  .mobile-dropdown {
    max-width: 1032px;
  }

  .navigation {
    margin: 0 auto;
    box-shadow: none;
    width: auto;
  }
  .locations {
    margin: 64px auto 0;
    padding: 0 25.5px 120px;
  }

  .locations__wrapper {
    padding: 0 30px;
    box-sizing: content-box;
    row-gap: 120px;
  }

  .location {
    max-width: 328px;
  }

  .dropdown-list {
    max-height: unset !important;
    border: none;
    display: flex;
    flex-direction: row;
    background-color: transparent;
    justify-content: center;
    gap: 24px;
    position: relative;
    opacity: 1;
    border-radius: 0;
  }
  .dropdown-list .nav-item {
    width: auto;
    height: 48px;
    flex: 1;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s ease;
    text-align: center !important;
    border: 1px solid #75cfc3 !important;
    border-radius: 8px;
  }

  .dropdown-list .nav-item:hover {
    background: #75cfc3;
    color: #fff;
  }

  .dropdown-list .nav-item.active {
    color: #fff;
    background: #75cfc3;
  }

  .dropdown-list .nav-item {
    cursor: pointer;
  }
}
