/* Вікно «Шукаєте у [місто]?» + список міст.
   Той самий прийом, що у вікна кошика (cart-modal.css): стан живе на
   <body>, а не на самій розмітці, і перемикається лише одним класом. */

.city-modal {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: none;
}

body.city-open .city-modal {
  display: block;
}

.city-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
}

.city-modal__window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 36px 32px 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(60, 30, 24, 0.22);
}

.city-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--home-muted, #6b625c);
  cursor: pointer;
}

.city-modal__close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.city-modal__close:hover {
  color: var(--home-accent-bright, #e63329);
}

/* --- екран підтвердження --- */
.city-modal__window--confirm {
  text-align: center;
}

.city-modal__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--home-chip-bg, #fdf3ee);
  color: var(--home-accent-bright, #e63329);
}

.city-modal__pin svg {
  width: 24px;
  height: 24px;
}

.city-modal__question {
  margin: 0 0 26px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--home-text, #221f1d);
}

.city-modal__question strong {
  color: var(--home-accent-bright, #e63329);
}

.city-modal__answers {
  display: flex;
  gap: 12px;
}

.city-modal__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.city-modal__btn--fill {
  background: var(--home-accent, #d6473a);
  border-color: var(--home-accent, #d6473a);
  color: #fff;
}

.city-modal__btn--fill:hover {
  background: var(--home-accent-dark, #b83a2f);
  border-color: var(--home-accent-dark, #b83a2f);
}

.city-modal__btn--outline {
  background: #fff;
  border-color: var(--home-accent, #d6473a);
  color: var(--home-accent, #d6473a);
}

.city-modal__btn--outline:hover {
  background: var(--home-cream-soft, #fdf3ee);
  border-color: var(--home-accent-dark, #b83a2f);
  color: var(--home-accent-dark, #b83a2f);
}

/* --- екран зі списком ---
   Навмисно без пімплів і рамок довкола кожного міста — рядок і легкий
   тон при наведенні, як у мінімалістичних списках вибору, а не сітка
   плашок. */
.city-modal__window--list {
  display: flex;
  flex-direction: column;
  padding: 28px 12px 12px;
}

.city-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 8px;
}

.city-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--home-text, #221f1d);
}

.city-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.city-modal__option {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--home-text, #221f1d);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.city-modal__option:hover {
  background: var(--home-chip-bg, #fdf3ee);
}

.city-modal__option.is-current {
  color: var(--home-accent-bright, #e63329);
  font-weight: 700;
}

@media (max-width: 480px) {
  .city-modal__window {
    padding: 32px 24px 26px;
  }

  .city-modal__window--list {
    width: calc(100vw - 32px);
    max-height: 70vh;
  }
}

/* Скільки вражень у місті — дрібно праворуч від назви */
.city-modal__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.city-modal__count {
  font-size: 0.78rem;
  color: var(--home-muted, #6b625c);
}
