/* LUVU partners block — production styles */

.luvu-locations,
.luvu-locations * {
  box-sizing: border-box;
}

.luvu-locations {
  --luvu-ink: #313131;
  --luvu-paper: #ffffff;
  --luvu-mist: #f4f4f4;
  --luvu-line: #dedede;

  position: relative;

  width: 100%;
  max-width: 100vw;

  margin: 106px auto;

  color: var(--luvu-ink);
  background: var(--luvu-mist);

  font-family: Helvetica, Arial, sans-serif;
}

.luvu-locations button,
.luvu-locations input,
.luvu-locations select {
  color: inherit;
  font: inherit;
}

.luvu-locations button {
  cursor: pointer;
}

.luvu-locations__sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}

/* =========================
   Статистика
   ========================= */

.luvu-locations__stats {
  position: absolute;
  z-index: 20;

  top: 28px;
  right: 28px;

  display: flex;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.96);

  border-radius: 5px;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);

  backdrop-filter: blur(6px);
}

.luvu-locations__stat {
  width: 132px;

  padding: 18px 23px;

  border-left: 1px solid var(--luvu-line);
}

.luvu-locations__stat:first-child {
  border-left: 0;
}

.luvu-locations__stat strong {
  display: block;

  font-size: 31px;
  font-weight: 400;
  line-height: 1;

  letter-spacing: -0.04em;
}

.luvu-locations__stat span {
  display: block;

  margin-top: 8px;

  color: #777;

  font-size: 10px;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

/* =========================
   Карта
   ========================= */

.luvu-locations__map-wrap {
  position: relative;

  height: 720px;

  overflow: hidden;

  background: #d6d6d6;
}

.luvu-locations__map {
  position: absolute;

  inset: 0;

  background: #d6d6d6;

  filter: grayscale(1) brightness(1.04) contrast(0.94);
}

.luvu-locations__map .ymaps-2-1-79-balloon,
.luvu-locations__map .ymaps-2-1-79-balloon *,
.luvu-locations__map .ymaps-2-1-79-controls__control,
.luvu-locations__map .ymaps-2-1-79-controls__control * {
  filter: none !important;
}

/* =========================
   Панель
   ========================= */

.luvu-locations__panel {
  position: absolute;
  z-index: 21;

  top: 28px;
  left: 28px;

  display: flex;
  flex-direction: column;

  width: 480px;
  height: 664px;

  padding: 24px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.97);

  border-radius: 7px;

  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.13);

  backdrop-filter: blur(8px);
}

.luvu-locations__panel-head {
  display: flex;

  align-items: center;
  justify-content: space-between;

  flex: 0 0 auto;

  margin-bottom: 20px;

  font-size: 12px;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.luvu-locations__close {
  width: 28px;
  height: 28px;

  padding: 0;

  color: var(--luvu-ink);

  font-size: 22px;
  font-weight: 300;
  line-height: 1;

  background: transparent;

  border: 0;
}

.luvu-locations__filters {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 10px;

  flex: 0 0 auto;
}

.luvu-locations__city-trigger,
.luvu-locations__filters input,
.luvu-locations__mobile-search input {
  width: 100%;
  height: 52px;

  padding: 0 16px;

  background: var(--luvu-paper);

  border: 1px solid var(--luvu-line);
  border-radius: 5px;

  outline: none;
}

.luvu-locations__filters input:focus,
.luvu-locations__city-trigger:focus,
.luvu-locations__mobile-search input:focus {
  border-color: var(--luvu-ink);
}

/* Город — тот же кастомный dropdown, что был в исходном блоке. */
.luvu-locations__city-filter {
  min-width: 0;
}

.luvu-locations__city-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--luvu-ink);

  text-align: left;

  cursor: pointer;
}

.luvu-locations__city-arrow {
  display: block;

  width: 12px;
  height: auto;

  margin-left: 12px;

  transition: transform 0.2s ease;
}

.luvu-locations__city-trigger.is-open .luvu-locations__city-arrow {
  transform: rotate(180deg);
}

.luvu-locations__city-dropdown {
  position: absolute;
  z-index: 80;

  top: calc(100% + 10px);
  right: 0;
  left: 0;

  height: 265px;

  padding: 10px 22px 10px 12px;

  overflow: hidden;

  background: #fff;

  border-radius: 7px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.luvu-locations__city-dropdown[hidden] {
  display: none;
}

.luvu-locations__city-dropdown-content {
  height: 100%;

  overflow-y: auto;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.luvu-locations__city-dropdown-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.luvu-locations__city-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 39px;

  padding: 0 3px;

  color: #3a3a3a;
  background: transparent;

  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;

  text-align: left;

  border: 0;
  border-bottom: 1px solid #d0d0d0;
}

.luvu-locations__city-item:hover,
.luvu-locations__city-item.is-active {
  color: #1f1f1f;
}

.luvu-locations__city-count {
  flex: 0 0 auto;

  padding-left: 15px;

  color: #9b9b9b;

  font-size: 17px;
  font-weight: 400;
}

.luvu-locations__city-scrollbar {
  position: absolute;

  top: 11px;
  right: 8px;
  bottom: 11px;

  width: 5px;

  background: #efefef;

  border-radius: 10px;
}

.luvu-locations__city-thumb {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  min-height: 28px;

  background: #9c9c9c;

  border-radius: 10px;

  cursor: grab;
}

.luvu-locations__city-thumb:active {
  cursor: grabbing;
}

.luvu-locations__search-field,
.luvu-locations__mobile-search {
  position: relative;
}

.luvu-locations__search-field input,
.luvu-locations__mobile-search input {
  padding-left: 43px;
}

.luvu-locations__search-icon {
  position: absolute;
  z-index: 1;

  top: 50%;
  left: 17px;

  width: 16px;
  height: 16px;

  border: 1.6px solid var(--luvu-ink);
  border-radius: 50%;

  transform: translateY(-55%);

  pointer-events: none;
}

.luvu-locations__search-icon::after {
  position: absolute;

  right: -6px;
  bottom: -3px;

  width: 8px;
  height: 1.6px;

  background: var(--luvu-ink);

  content: "";

  transform: rotate(45deg);
}

.luvu-locations__note {
  flex: 0 0 auto;

  margin: 16px 0;

  color: #666;

  font-size: 13px;
  line-height: 1.35;
}

/* =========================
   Список
   ========================= */

.luvu-locations__list {
  min-height: 0;

  flex: 1 1 auto;

  overflow-y: auto;
  overscroll-behavior: contain;

  padding-right: 7px;
}

.luvu-locations__list::-webkit-scrollbar {
  width: 6px;
}

.luvu-locations__list::-webkit-scrollbar-track {
  background: transparent;
}

.luvu-locations__list::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 8px;
}

.luvu-locations__place {
  position: relative;

  margin-top: 10px;

  padding: 17px 18px;

  background: var(--luvu-paper);

  border: 1px solid #e5e5e5;
  border-radius: 5px;

  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.luvu-locations__place:first-child {
  margin-top: 0;
}

.luvu-locations__place.is-selected {
  color: var(--luvu-paper);
  background: var(--luvu-ink);
  border-color: var(--luvu-ink);
}

.luvu-locations__place[hidden] {
  display: none;
}

.luvu-locations__place small {
  position: absolute;

  top: 17px;
  right: 17px;

  color: #aaa;

  font-size: 10px;

  letter-spacing: 0.12em;
}

.luvu-locations__place h3,
.luvu-locations__mobile-card h3 {
  margin: 0 30px 7px 0;

  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;

  letter-spacing: -0.02em;
}

.luvu-locations__place p,
.luvu-locations__place a {
  margin: 4px 0;

  color: #818181;

  font-size: 13px;
  line-height: 1.35;

  text-decoration: none;
}

.luvu-locations__place.is-selected p,
.luvu-locations__place.is-selected a {
  color: #ddd;
}

.luvu-locations__place [data-luvu-select] {
  display: block;

  margin-top: 10px;

  padding: 0 0 2px;

  color: inherit;

  font-size: 12px;

  background: transparent;

  border: 0;
  border-bottom: 1px solid currentColor;
}

.luvu-locations__empty {
  padding: 28px 0;

  color: #777;

  font-size: 13px;

  text-align: center;
}

.luvu-locations__more {
  display: none;

  width: 100%;
  height: 42px;

  margin-top: 12px;
  padding: 0 18px;

  color: var(--luvu-ink);
  background: var(--luvu-paper);

  font-size: 12px;

  border: 1px solid #d5d5d5;
  border-radius: 4px;
}

.luvu-locations__more[hidden] {
  display: none !important;
}

.luvu-locations__open-panel {
  position: absolute;
  z-index: 21;

  top: 28px;
  left: 28px;

  padding: 15px 18px;

  color: var(--luvu-ink);
  background: var(--luvu-paper);

  border: 0;
  border-radius: 5px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.luvu-locations[data-panel-open="false"] .luvu-locations__panel {
  display: none;
}

.luvu-locations[data-panel-open="false"] .luvu-locations__open-panel {
  display: block;
}

/* =========================
   Mobile-only
   ========================= */

.luvu-locations__mobile-tabs,
.luvu-locations__mobile-search,
.luvu-locations__mobile-card {
  display: none;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .luvu-locations {
    width: calc(100% - 40px);
    max-width: none;
  }

  .luvu-locations__map-wrap {
    height: 650px;
  }

  .luvu-locations__stats {
    top: 20px;
    right: 20px;
  }

  .luvu-locations__stat {
    width: 112px;

    padding: 16px 19px;
  }

  .luvu-locations__stat strong {
    font-size: 27px;
  }

  .luvu-locations__panel {
    top: 88px;
    left: 20px;

    width: 390px;
    height: 542px;

    padding: 20px;
  }

  .luvu-locations__filters {
    gap: 8px;
  }

  .luvu-locations__city-trigger,
  .luvu-locations__filters input {
    height: 44px;

    font-size: 12px;
  }

  .luvu-locations__note {
    margin: 13px 0;

    font-size: 11px;
  }

  .luvu-locations__place {
    padding: 14px 15px;
  }

  .luvu-locations__place h3 {
    font-size: 16px;
  }

  .luvu-locations__place p,
  .luvu-locations__place a {
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  .luvu-locations {
    width: 100%;
    max-width: none;

    margin: 18px 0 24px;
  }

  .luvu-locations__stats {
    position: relative;

    top: auto;
    right: auto;

    width: 100%;

    padding: 12px 18px 9px;

    background: var(--luvu-mist);

    border-radius: 0;

    box-shadow: none;

    backdrop-filter: none;
  }

  .luvu-locations__stat {
    flex: 1;

    width: auto;

    padding: 8px 11px;
  }

  .luvu-locations__stat:first-child {
    padding-left: 0;
  }

  .luvu-locations__stat strong {
    font-size: 24px;
  }

  .luvu-locations__stat span {
    font-size: 8px;
  }

  .luvu-locations__mobile-tabs {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    padding: 0 18px 11px;

    background: var(--luvu-mist);
  }

  .luvu-locations__tab {
    height: 38px;

    color: var(--luvu-ink);
    background: var(--luvu-paper);

    font-size: 12px;

    border: 1px solid #d5d5d5;
    border-radius: 4px;
  }

  .luvu-locations__tab.is-active {
    color: var(--luvu-paper);
    background: var(--luvu-ink);
    border-color: var(--luvu-ink);
  }

  .luvu-locations__mobile-search {
    display: block;

    z-index: 25;

    margin: 0 18px;
  }

  .luvu-locations__mobile-search input {
    height: 42px;

    font-size: 12px;
  }

  .luvu-locations__map-wrap {
    height: 510px;

    margin-top: 10px;
  }

  .luvu-locations__map {
    top: 0;
  }

  .luvu-locations__panel,
  .luvu-locations__open-panel {
    display: none;
  }

  .luvu-locations__mobile-card {
    position: absolute;
    z-index: 22;

    right: 18px;
    bottom: 18px;
    left: 18px;

    display: block;

    padding: 16px 17px;

    color: var(--luvu-paper);
    background: var(--luvu-ink);

    border-radius: 6px;

    box-shadow: 0 9px 25px rgba(0, 0, 0, 0.14);
  }

  .luvu-locations__mobile-card[hidden] {
    display: none !important;
  }

  .luvu-locations__mobile-card p,
  .luvu-locations__mobile-card a {
    margin: 4px 0;

    color: #ddd;

    font-size: 11px;
    line-height: 1.35;

    text-decoration: none;
  }

  .luvu-locations__mobile-card button {
    display: block;

    margin-top: 9px;

    padding: 0 0 2px;

    color: inherit;

    font-size: 11px;

    background: transparent;

    border: 0;
    border-bottom: 1px solid currentColor;
  }

  .luvu-locations[data-view="list"] .luvu-locations__map,
  .luvu-locations[data-view="list"] .luvu-locations__mobile-card {
    display: none;
  }

  .luvu-locations[data-view="list"] .luvu-locations__map-wrap {
    height: auto;
    min-height: 0;

    margin-top: 10px;
    padding: 14px 18px 22px;

    background: var(--luvu-mist);
  }

  .luvu-locations[data-view="list"] .luvu-locations__panel {
    position: static;

    display: block;

    width: 100%;
    height: auto;

    padding: 0;

    overflow: visible;

    background: transparent;

    border-radius: 0;

    box-shadow: none;

    backdrop-filter: none;
  }

  .luvu-locations[data-view="list"] .luvu-locations__panel-head,
  .luvu-locations[data-view="list"] .luvu-locations__filters,
  .luvu-locations[data-view="list"] .luvu-locations__note {
    display: none;
  }

  .luvu-locations[data-view="list"] .luvu-locations__list {
    overflow: visible;
    padding-right: 0;
  }

  .luvu-locations[data-view="list"] .luvu-locations__place {
    display: block;
  }

  .luvu-locations[data-view="list"] .luvu-locations__place[hidden] {
    display: none;
  }

  .luvu-locations[data-view="list"] .luvu-locations__more:not([hidden]) {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .luvu-locations__place {
    transition: none;
  }
}
