/* ==========================================
   AVITO HEADER - Шапка как на avito.ru
   ========================================== */

/* Верхняя панель */
.header-wow-top {
  background: #fff !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

.header-wow-top-list .header-wow-top-list-item {
  color: #71747a !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.header-wow-top-list .header-wow-top-list-item:hover {
  color: #0af !important;
}

/* Шапка */
.header-wow-sticky {
  background: #fff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  padding: 12px 0 !important;
}

/* Логотип SVG */
.h-logo {
  display: flex !important;
  align-items: center !important;
}

.megapolis-logo {
  height: 36px !important;
  width: auto !important;
  display: block !important;
}

/* Кнопка Каталог - серая с иконкой сетки */
.header-button-menu-catalog {
  background: #f5f5f5 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  color: #2c2d2e !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.header-button-menu-catalog:hover {
  background: #e8e8e8 !important;
}

/* Иконка сетки (9 точек) как на Авито */
.header-button-menu-catalog i {
  font-size: 18px !important;
  color: #2c2d2e !important;
}

/* Контейнер поиска */
.live-search-container {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.live-search-form {
  position: relative !important;
  flex: 1 !important;
}

/* Поле поиска - серое как на Авито */
.live-search-form {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.live-search-form-input {
  width: 100% !important;
  height: 44px !important;
  background: #f5f5f5 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0 80px 0 40px !important;
  font-size: 15px !important;
  color: #2c2d2e !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.live-search-form-input::placeholder {
  color: #aaadb3 !important;
}

.live-search-form-input:focus {
  background: #ebebeb !important;
}

/* Иконка лупы слева внутри поля */
.live-search-form-icon {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #71747a !important;
  font-size: 20px !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

/* Кнопка поиска (если есть) справа */
.live-search-form button {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  background: transparent !important;
  border: none !important;
  color: #71747a !important;
  font-size: 20px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  z-index: 2 !important;
}

.live-search-form button:hover {
  color: #2c2d2e !important;
}

/* Геолокация справа от поиска (вне поля) */
.live-search-container-geo {
  margin-left: 16px !important;
}

.live-search-container-geo-name {
  color: #0af !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.live-search-container-geo-name i {
  font-size: 14px !important;
}

/* Кнопка "Разместить объявление" - зеленая */
.header-wow-sticky-add {
  background: #00d359 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  transition: background 0.2s !important;
}

.header-wow-sticky-add:hover {
  background: #00c050 !important;
}

/* Кнопка Войти */
.header-wow-sticky-auth {
  background: transparent !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  color: #2c2d2e !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
}

.header-wow-sticky-auth:hover {
  border-color: #0af !important;
  color: #0af !important;
}

/* Иконки в шапке */
.header-wow-top-list-icon-item {
  color: #71747a !important;
  font-size: 22px !important;
  transition: color 0.2s !important;
}

.header-wow-top-list-icon-item:hover {
  color: #0af !important;
}
