.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.venues-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.venues-page__main {
  flex: 1 1 auto;
  padding: 48px 0 80px;
}

.venues-page__head {
  margin-bottom: 28px;
  max-width: 760px;
}

.venues-page__note {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 150%;
  color: #9aa0b4;
}

.venues-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  min-width: 0;
  max-width: 100%;
}

.venues-filters__control {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 15px;
}

.venues-filters__search {
  flex: 1 1 240px;
  max-width: 420px;
}

.venues-filters__search::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.venues-region {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 360px;
}

.venues-region__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.venues-region__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venues-region__chevron {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.8);
}

.venues-region.is-open .venues-region__chevron {
  transform: rotate(180deg);
}

.venues-region__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: min(320px, 50vh);
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow: auto;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #12182c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.venues-region__option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 140%;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.venues-region__option:hover,
.venues-region__option:focus-visible {
  background: rgba(4, 126, 254, 0.28);
  outline: none;
}

.venues-region__option.is-selected {
  background: #047efe;
}

@media (max-width: 720px) {
  .venues-page__main {
    padding: 28px 0 56px;
  }

  .venues-filters {
    flex-direction: column;
  }

  .venues-region,
  .venues-filters__search {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .venue-card {
    padding: 14px;
  }

  .venue-card__name,
  .venue-card__meta,
  .venue-card__address {
    overflow-wrap: anywhere;
  }
}

.venues-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.venue-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.venue-card__name {
  margin: 0;
  font-size: 18px;
  line-height: 130%;
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}

.venue-card__meta,
.venue-card__address {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 140%;
  color: #c4c5cc;
  overflow-wrap: anywhere;
}

.venues-page__empty {
  margin: 8px 0 0;
}
