.rumapa-city-picker[hidden] {
  display: none !important;
}

.rumapa-city-picker {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.rumapa-city-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 20, .74);
  backdrop-filter: blur(16px);
}

.rumapa-city-picker__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(126, 166, 235, .22);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(54, 191, 255, .13),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(13, 25, 54, .99),
      rgba(5, 12, 29, .995)
    );
  box-shadow:
    0 40px 120px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}

.rumapa-city-picker__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.rumapa-city-picker__head p {
  margin: 0 0 7px;
  color: #66d8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.rumapa-city-picker__head h2 {
  margin: 0;
  color: #f7faff;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1;
  letter-spacing: -.04em;
}

.rumapa-city-picker__close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(152, 177, 224, .17);
  border-radius: 50%;
  background: rgba(14, 29, 59, .74);
  color: #dbe7fb;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.rumapa-city-picker__lead {
  max-width: 520px;
  margin: 16px 0 22px;
  color: rgba(205, 218, 241, .68);
  font-size: 14px;
  line-height: 1.6;
}

.rumapa-city-picker__location {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(81, 203, 255, .27);
  border-radius: 16px;
  background: rgba(32, 112, 165, .18);
  color: #eaf7ff;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.rumapa-city-picker__location span:first-child {
  color: #62d8ff;
}

.rumapa-city-picker__status {
  min-height: 20px;
  margin: 10px 2px;
  color: rgba(190, 211, 240, .72);
  font-size: 12px;
  line-height: 1.5;
}

.rumapa-city-picker__cities {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 6px;
}

.rumapa-city-picker__city {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(130, 161, 216, .13);
  border-radius: 17px;
  background: rgba(9, 20, 45, .72);
  color: #f1f6ff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.rumapa-city-picker__city:hover,
.rumapa-city-picker__city:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(83, 202, 255, .38);
  background: rgba(18, 39, 77, .84);
}

.rumapa-city-picker__city small {
  display: block;
  margin-bottom: 5px;
  color: rgba(167, 190, 225, .58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rumapa-city-picker__city strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.rumapa-city-picker__city b {
  color: #62d8ff;
  font-size: 17px;
}

.rumapa-city-picker-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .rumapa-city-picker {
    align-items: end;
    padding: 10px;
  }

  .rumapa-city-picker__panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 22px 16px 18px;
    border-radius: 26px;
  }

  .rumapa-city-picker__cities {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rumapa-city-picker__city {
    transition: none;
  }
}
