.city-popup {
  position: fixed;
  right: 24px;
  left: auto;
  bottom: 310px;
  z-index: 900;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.city-popup__card {
  width: min(230px, calc(100vw - 48px));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(8, 142, 201, 0.18);
  border: 1px solid #cce5f5;
  background: #fff;
}

.city-popup__header {
  position: relative;
  background: linear-gradient(150deg, #088EC9 0%, #0670a0 100%);
  color: #fff;
  padding: 10px 36px 8px 12px;
}

.city-popup__body {
  padding: 10px 12px 12px;
  background-color: #f8f8f8;
  background-image: linear-gradient(rgba(8, 142, 201, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 142, 201, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}

.city-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.95;
}

.city-popup__close:hover,
.city-popup__close:focus-visible {
  background: rgba(255, 255, 255, 0.34);
  opacity: 1;
  transform: scale(1.06);
  outline: none;
}

.city-popup__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  font-weight: 700;
}

.city-popup__title {
  font-size: 18px;
  line-height: 1.05;
  margin: 4px 0 0;
  font-weight: 700;
}

.city-popup__address {
  color: #088EC9;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 8px;
}

.city-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.city-popup__actions .dp-button {
  min-width: 0;
  min-height: 0;
  height: auto;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.city-popup__actions .dp-button--consult {
  background: #0670a0;
  color: #fff;
  border: 1px solid #0670a0;
}

.city-popup__actions .dp-button--consult:hover,
.city-popup__actions .dp-button--consult:focus-visible {
  background: #054e72;
  box-shadow: 0 6px 14px rgba(6, 112, 160, 0.22);
  color: #fff;
  outline: none;
}

.city-popup.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .city-popup {
    right: 12px;
    left: auto;
    bottom: 90px;
  }

  .city-popup__card {
    width: min(210px, calc(100vw - 24px));
    border-radius: 10px;
  }

  .city-popup__header {
    padding: 8px 32px 6px 10px;
  }

  .city-popup__body {
    padding: 8px 10px 10px;
  }

  .city-popup__title {
    font-size: 16px;
  }

  .city-popup__address {
    font-size: 13px;
  }

  .city-popup__actions .dp-button {
    min-height: 0;
    height: auto;
    font-size: 14px;
    padding: 7px 10px;
  }
}
