.min_main-button, .main-button {
  width: 180px;
  height: 180px;
  min-width: 180px;
  background: #EE8012;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #FCFCFC;
  text-align: center;
  border-radius: 50%;
  align-self: flex-end;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

  &:hover {
    background: #FF9B30;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  &:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

.min_main-button:hover,
.main-button:hover {
  background: #F19941;
}
.min_main-button span,
.main-button span {
  text-transform: uppercase;
  font-size: 14px;
}
.min_main-button img,
.main-button img {
  height: 18px;
  margin-top: 10px;
  margin-bottom: -10px;
}
.min_main-img_title,
.min_main-button {
  display: none;
}
section.main-screen {
  margin-top: 35px;
}
section.main-screen .title {
  display: flex;
  justify-content: space-between;
}
section.main-screen .title h1 {
  font-size: 69px;
  width: 870px;
  max-width: 870px;
  color: #000003;
  text-transform: uppercase;
}
section.main-screen .categories {
  margin-top: 40px;
}
section.main-screen .categories .category-title {
  font-size: 23px;
  color: #666666;
  font-family: 'Tenor Sans', sans-serif;
}
section.main-screen .categories .buttons {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}
/*section.main-screen .categories .buttons button {
  border-radius: 50px;
  border: 1px solid #666666;
  background: #F7F7F7;
  cursor: pointer;
  transition: 0.3s;
}*/

section.main-screen .categories .buttons button {
  white-space: nowrap;
  border-radius: 50px;
  padding: 10px 30px;
  background: linear-gradient(0deg, rgba(255,151,0,1) 0%, rgb(255, 92, 32) 100%);
  color: #FCFCFC;
  font-size: 16px;
  font-weight: bold;
  margin-left: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(0deg, rgb(255, 165, 30) 0%, rgb(255, 107, 54) 100%);
  }

  &:active {
    transform: translateY(1px);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1);
  }

  &:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 151, 0, 0.1);
  }
}

/* Анимация при наведении: изменение фона и цвета текста */
section.main-screen .categories .buttons button:hover {
  background: transparent; /* Прозрачный фон при наведении */
  color: rgba(251,75,2,1); /* Изменение цвета текста */
}

section.main-screen .main-img_title {
  margin-top: 50px;
  text-align: right;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
  color: #666666;
}

section.main-screen .main-img_title span {
  color: #EE8012;
}
section.main-screen .main-img_wrap picture {
  max-width: 100%;
  max-height: 100%;
  border-radius: 30px;
}
section.hot-deals .section-title {
  margin-bottom: 50px;
}

section.hot-deals .main-more {
  margin-top: 30px;
}
section.search .section-title {
  margin-bottom: 50px;
}
/*section.search .map {
  margin-top: 30px;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  background-image: url("../media/img/map_desctop.jpg");
  background-size: cover;
  background-position: center;
}*/

section.search .map {
  display: flex;
  align-items: center; /* Центрирует содержимое по вертикали */
  justify-content: center; /* Центрирует содержимое по горизонтали */
  margin-top: 30px;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  background-image: url("../media/img/map_desctop.jpg");
  background-size: cover;
  background-position: center;
}

.map-text {
  color: white; /* Или другой цвет, который хорошо виден на фоне */
  padding: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Добавляет немного прозрачности для читаемости */
  border-radius: 15px; /* Если нужны закругленные углы */
}

.mapboxgl-popup-content h3{
  font-size: 28px;
  margin: 10px auto;
}

.mapboxgl-popup-content p{
  margin-bottom: 15px;
}

section.deals-from-developers .scroll-cards {
  margin-top: 50px;
}
@media screen and (max-width: 1159px) {
  section.main-screen .title h1 {
    font-size: 49px;
  }
}
@media screen and (max-width: 989px) {
  section.main-screen .title h1 {
    font-size: 27px;
    width: 100%;
    max-width: 100%;
  }
  section.main-screen .title {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  section.main-screen {
    padding-top: 0;
    margin-top: 30px;
  }
  section.deals-from-developers .scroll-cards {
    margin-top: 30px;
  }
  section.main-screen .main-button {
    display: none;
  }
  .min_main-img_title {
    text-align: center;
    font-size: 15px;
    color: #666666;
    margin-top: 20px;
    display: block;
  }
  .min_main-img_title span {
    color: #EE8012;
  }

  .main-img_title{
    display: none;
  }
  .min_main-button {
    display: flex;
    width: 115px;
    height: 115px;
    min-width: 115px;
    margin: 30px auto 0 auto;
  }
  .min_main-button span {
    font-size: 11px;
  }
  .min_main-button img {
    height: 12px;
  }
  section.main-screen .categories .buttons {
    flex-wrap: wrap;
  }
  section.main-screen .categories .buttons button {
    flex-basis: 100%;
    min-width: 200px;
  }
  section.main-screen .main-img_wrap {
    display: none;
  }
}
@media screen and (max-width: 769px) {

  section.main-screen .categories .buttons {
    flex-direction: column; /* элементы выстраиваются в колонку */
  }

  section.main-screen .categories .buttons a {
    width: 100%; /* ссылки растягиваются на всю ширину */
  }

  section.main-screen .categories .buttons button {
    width: 100%; /* кнопки растягиваются на всю ширину */
    margin-left: 0;
  }

  .mob_cards-grid {
    display: grid;
  }
  section.hot-deals .section-title {
    margin-bottom: 30px;
  }
}
