/* === Основной блок карты === */
.location-search-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 20px 20px;
  gap:0px;
  background: #1D1E1F;
  z-index: 1;
}

/* === Заголовок === */
.location-heading {
  width: 1000px;
  height: 60px;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 50px;
  line-height: 120%;
  text-align: center;
  color: #F8F8F8!important;
}

.location-search-field {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0px 12px 12px;
  gap: 10px;

  width: 400px;
  height: 52px;

  background: rgba(248, 248, 248, 0.05)!important; /* только обёртка */
  border-radius: 40px;
}


#location-input {
  background-color: transparent !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#location-input:focus,
.location-search-field input#location-input:focus,
.elementor-kit-6 #location-input:focus,
.elementor-kit-6 .location-search-field input#location-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.location-search-btn {
  background: #F95D32;
  border: none;
  border-radius: 43px;
  width: 72px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* === Карта === */
#location-map {
  width: 800px !important;
  height: 414px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 8px;
  margin-bottom: 8px;
  filter: contrast(1.2) saturate(0.9) brightness(1);
  transition: filter 0.3s ease; /* плавность на будущее */
}

.location-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0px auto 0;
}

.location-tag {
  max-width: 250px; /* Ограничиваем, чтобы не ломала строку */
  white-space: nowrap;
  text-align: center;
  padding: 16px 24px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 140%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: inline-block !important;   /* обязательно, иначе transform не сработает */
  transition: transform 1s ease !important;
}


.location-footer .location-tag:hover {
  transform: translateY(4px) !important;
}

.elementor-button-wrapper {
  flex-shrink: 0;
}

/* === Популярные локации === */
.popular-locations {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 1120px;
  height: 57px;
  margin-top: 20px;
}

.location-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  gap: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 140%;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1)!important;
  border-radius: 40px;
  border: none;
  cursor: pointer;
}

/* ============================= */
/* ======== МОБИЛЬНАЯ ========= */
/* ============================= */

@media screen and (max-width: 768px) {
  .location-search-block {
    padding: 32px 16px;
    gap: 4 px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .location-heading {
    font-size: 28px;
    text-align: center;
  }

  .location-search-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width:100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 12px 16px;
    gap: 12px;
    margin: 0 !important;
  }

  .location-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #F8F8F8;
    padding: 0;
    margin: 0 !important;
    width: 100%;
  }

  .location-search-btn {
    display: none !important;
  }

  #location-map {
    display: flex;
    align-items: center;
    width: 95%!important;;
    height: 300px;
    border-radius: 12px;
    max-width: 100%;
  }

  .location-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 0 important;
    width: 100%;
  }

  .popular-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    flex-grow: 1;
  }

  .location-tag {
    padding: 12px 12px!important;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px!important;
    color: white;
    white-space: nowrap;
  }

  .location-submit {
    background: #F95D32;
    border-radius: 140px;
    font-size: 16px;
    color: white;
    font-family: 'Poppins', sans-serif;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .location-submit img {
    width: 18px;
    height: 18px;
  }

  .location-selected-title {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 500;
    margin-top: 24px;
    text-align: center;
  }
}


.map-search-btn {
  display: none;
}
.map-search-btn.visible {
  display: block;
}

.map-search-btn.visible {
  display: inline-block !important;        /* нужно для transform */
  transition: transform 1s ease !important; /* длительность и плавность */
}

.map-search-btn.visible:hover,
.map-search-btn.visible:focus {
  transform: translateY(4px) !important;   /* опускаем на 4px */
}

/* Увеличиваем боковые паддинги кнопки до 32px*/ 
.map-search-btn .elementor-button {
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* Отступ слева от иконки внутри кнопки */
.map-search-btn .elementor-button-icon {
  margin-left: 16px !important;
}

/* Скрыть только флаг */
.leaflet-control-attribution .leaflet-attribution-flag {
  display: none !important;
}


@media (max-width: 768px) {
  /* 1) Убираем «кастомный» отступ h2 */
  .location-heading {
    margin: 0 0 8px !important;
  }
  /* 2) Между поиском и заголовком */
  .location-search-block {
    display: flex;
    flex-direction: column;
    gap: 8px !important;
    padding: 16px !important; /* по вашему вкусу */
  }
  /* 3) Между полем поиска и картой */
  #location-map {
    /* переопределяем inline-style margin:20px auto; */
    margin: 8px auto !important;
    height: 280px; /* если нужно чуть пониже */
  }
  /* 4) Между картой и тегами */
  .location-footer {
    margin-top: 8px !important;
    padding: 0 16px; /* если нужна внутренняя отступка */
  }
}

/* убираем ВСЕ фоны, градиенты и тени у селекта */
.location-search-field select#location-select,
select#location-select,
#location-select,
#location-select:focus {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none;
  border-color: transparent; /* если нужна рамка — поменяй цвет здесь */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* если фон рисуется псевдоэлементом контейнера */
.location-search-field::before,
.location-search-field::after {
  display: none !important;
}

#location-select {
  color: #fff !important; /* белый текст */
}

/* если у тебя остаётся тёмная стрелка у стандартного select */
#location-select::-ms-expand {
  display: none; /* скрыть стандартную стрелку в IE/Edge */
}

#location-select option {
  color: #000; /* цвет текста в выпадающем списке — лучше тёмный для читаемости */
  background-color: #fff; /* фон списка опций */
}

#location-select:focus,
#location-select:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}