/* ============================================
   ПОПАП ВЫБОРА ГОРОДА - СТИЛИ
   ============================================ */

/* Оверлей (затемнение фона) */
.city-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cityPopupFadeIn 0.3s ease;
}

@keyframes cityPopupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cityPopupFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Контейнер попапа */
.city-popup-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: cityPopupSlideUp 0.3s ease;
}

@keyframes cityPopupSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Содержимое попапа */
.city-popup-content {
  padding: 30px 25px;
  text-align: center;
}

/* Иконка */
.city-popup-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: #f05633;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-popup-icon i {
  font-size: 30px;
  color: #fff;
}

/* Заголовок */
.city-popup-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

/* Название города */
.city-popup-city-name {
  font-size: 28px;
  font-weight: 700;
  color: #f05633;
  margin-bottom: 8px;
}

/* Вопрос */
.city-popup-question {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
}

/* Кнопки */
.city-popup-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.city-popup-btn-yes,
.city-popup-btn-no {
  min-width: 110px;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.city-popup-btn-yes {
  background: #f05633;
  border: none;
  color: #fff;
}

.city-popup-btn-yes:hover {
  background: #d94d2d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 86, 51, 0.4);
  color: #fff;
}

.city-popup-btn-no {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.city-popup-btn-no:hover {
  background: #e9e9e9;
  color: #666;
}

/* Поле поиска */
.city-popup-search-wrapper {
  position: relative;
  margin-top: 15px;
}

.city-popup-search {
  width: 100%;
  padding: 10px 18px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.city-popup-search:focus {
  border-color: #f05633;
  outline: none;
}

/* Результаты поиска */
.city-popup-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: none;
}

.city-popup-results.active {
  display: block;
}

.city-result-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.city-result-item:last-child {
  border-bottom: none;
}

.city-result-item:hover {
  background: #f5f5f5;
}

.city-result-item.selected {
  background: #f05633;
  color: #fff;
}

/* Шаги */
.city-popup-step {
  animation: cityPopupFadeIn 0.3s ease;
}

/* Кнопка ссылка */
.city-popup-buttons .btn-link {
  background: transparent;
  color: #f05633;
  border: none;
  text-decoration: underline;
  padding: 10px 15px;
  font-size: 14px;
}

.city-popup-buttons .btn-link:hover {
  color: #d94d2d;
  text-decoration: underline;
}

/* Кнопка подтверждения выбранного города */
#city-popup-confirm-btn {
  background: #f05633;
  border: none;
  color: #fff;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#city-popup-confirm-btn:hover:not(:disabled) {
  background: #d94d2d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 86, 51, 0.4);
}

#city-popup-confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
  .city-popup-container {
    width: 95%;
    border-radius: 8px;
  }
  
  .city-popup-content {
    padding: 25px 20px;
  }
  
  .city-popup-city-name {
    font-size: 24px;
  }
  
  .city-popup-title {
    font-size: 18px;
  }
  
  .city-popup-icon {
    width: 50px;
    height: 50px;
  }
  
  .city-popup-icon i {
    font-size: 24px;
  }
  
  .city-popup-buttons {
    flex-direction: column;
  }
  
  .city-popup-btn-yes,
  .city-popup-btn-no {
    width: 100%;
  }
}

/* Кнопка подтвердить в экране поиска */
.city-popup-confirm-button {
  background: #f05633 !important;
  border-color: #f05633 !important;
  color: #fff !important;
}

.city-popup-confirm-button:hover:not(:disabled) {
  background: #d94d2d !important;
  border-color: #d94d2d !important;
}

.city-popup-confirm-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Все кнопки btn-primary в попапе - оранжевые */
.city-popup-overlay .btn-primary {
  background: #f05633 !important;
  border-color: #f05633 !important;
  color: #fff !important;
}

.city-popup-overlay .btn-primary:hover:not(:disabled) {
  background: #d94d2d !important;
  border-color: #d94d2d !important;
  color: #fff !important;
}

/* Скроллбар для результатов */
.city-popup-results::-webkit-scrollbar {
  width: 6px;
}

.city-popup-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 0 8px 0;
}

.city-popup-results::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.city-popup-results::-webkit-scrollbar-thumb:hover {
  background: #555;
}

