div.reset-button button {
  font-weight: 525;
  color: #a1a1a1;
    max-width: 150px;
    max-height: 100px;
    border-radius: 7px;    
    padding: 6px;
    margin-left: 15px;
}
@media (min-width: 769px) {
  .card:hover {
      color:#ffffff ;
      border: 1px solid rgb(33, 174, 89);

  background-color:rgb(33, 174, 89); /* Изменяем цвет фона при наведении */
}

  /* Layout */
.adaptive {
  width: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr minmax(2px, auto);
}

.adaptive > * {
  padding: 8px 10px;
  background: var(--bg_gradient);
  color: var(--primary);
}


  #apply-filter {    

  background-color: #007bff;
  color: rgb(0, 0, 0);
  border: 1px solid #b2cfb1;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 7px;
  max-height: 35px ;
margin-top: 17px;
}

 .price-inputs  { 
  min-width: 100px;
    max-width: 200px;
}
#district, #city, #completionYear , #rassrochka, #unit, #shariah {
  min-width: 10px;

  max-width:150px;

}
/* Стиль для меток */
label {
  display: inline-block; /* Размещение меток в одной строке с элементами формы */
  font-weight: bold; /* Жирный шрифт для метки (по вашему выбору) */
}

  .filter-content {
  display: flex;
  justify-content: space-between; /* Равномерное распределение между кнопками */

  }
  .filter-content label {
  display: inline-block; /* Установите метки в ряд */

  }
  #district, #city, #completionYear , #rassrochka, #unit, #shariah 
  {
    color:#717171;
  flex-grow: 1;
  padding: 5px;
  outline: none;
  border: 0.5px solid var(--invert_secondary);
  border-radius: 7px;  cursor: pointer; /* Устанавливаем курсор при наведении */
}
  .filter-button {
display: none;
}

.filter-popup {

  max-height: 75px;
width: 100%;
  border-radius: 7px; /* Add border radius */
  background-color: white;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999; /* устанавливаем большое значение z-index */
}
.header{  
  
  display: flex;
  flex-wrap: wrap; /* Позволяет переносить элементы на новую строку при необходимости */
  box-shadow: 0 10px 10px rgba(188, 188, 188, 0.2);
}
body{overflow-y: hidden;}
  .card{
    min-height: 255px;
    margin-top: 0px;
  }
  .map-button{display: none}/* Скрытие кнопки toggleMapAndCards */

  .content{
height: 85vh;
    display: flex; 
  
  }

  .card-container {
  height: 100%;
    margin-left: 10px;
    
    padding: 5px;
    background-color: #ffffff;
    overflow-y: scroll; 
    display: flex;
    flex-direction: column; 
    align-items: stretch; 
  }

}
 
/*                                              ПЕРЕХОД */
/*                     ПЕРЕХОД */
/* ПЕРЕХОД */
.leaflet-touch .leaflet-control-attribution, .leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    display: none;
}

.card-container {
  height: 100%;
    padding: 17px;
    background-color: #ffffff;
    overflow-y: scroll; 
    display: flex;
    flex-direction: column; 
    align-items: stretch; 
  }
.types-prices-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.types-container, .prices-container {
    display: flex;
    flex-direction: row;
    align-items: center; /* Центрирование элементов по вертикали */
    
}

.popup-rassrochka{
  font-size: 14px;
  font-weight: 500;
}
.type,.price{
  width: 80px;
    margin-right: 8px;
}
.type:last-child,
.price:last-child {
    margin-right: 0px;
    margin-left: 8px;

}
.type{font-size: 14px ;
  margin-top: 5px;
font-weight: 500;}
.price{
  margin-bottom: 10px;
}

/**/

.typee,.pricee{

  border-right: 1px solid #ccc; /* Optional: Add a border between rows */

  width: 80px;
    margin-right: 8px;
}
.typee:last-child,
.pricee:last-child {
  border-right: 0px solid #ccc; /* Optional: Add a border between rows */

    margin-right: 0px;
    margin-left: 8px;

}
.typee{font-size: 14px ;
  margin-top: 10px;
font-weight: 600;}
.pricee{
  margin-bottom: 10px;
}


  /*border-right: 1px solid #ccc;  Optional: Add a border between rows */

.logo {
  margin-right: auto; /* Отступ справа, чтобы логотип выравнивался к левому краю */
}

.filter-button {
  margin-left: auto; /* Отступ слева, чтобы кнопка фильтра выравнивалась к правому краю */
}
  .filter-container {
  position: relative;
}
.content{
  margin-top: 0px;
}










.price-inputs input {
  border-radius: 7px;
  margin-right: 10px; /* Устанавливаем отступ только между полями */
}


.location-inputs,.price-inputs  {margin-top: 5px;
  margin-bottom: 10px;
  display: flex;
}
.location-inputs select { 
  margin-right: 10px; /* Устанавливаем отступ только между полями */
}

.label {
  margin-bottom: 5px; /* Добавляем отступ снизу под заголовком */
}
      .shariah-yes {
        box-shadow: 0 0 10px 0 rgba(34, 180, 18, 0.65); /* Зеленая тень без смещения */
  }

@media (max-width: 768px){
  #apply-filter {
  background-color: #007bff;
  color: rgb(0, 0, 0);
  border: 1px solid #b2cfb1;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 7px;
  max-height: 35px ;
margin-top: 5px;}

  .price-inputs input:last-child, .location-inputs select:last-child {
  margin-right: 0; /* Убираем отступ справа у последнего поля */
}
  #district, #city, #completionYear , #rassrochka, #unit, #shariah 
  {color:#717171;
  width: 100%;
  flex-grow: 1;
  padding: 5px;
  outline: none;
  border: 0.5px solid var(--invert_secondary);
  border-radius: 7px;  cursor: pointer; /* Устанавливаем курсор при наведении */
}
  .header {
  display: flex;
  align-items: center;
}
  .filter-content {
  display: flex;
  flex-direction: column;
}

  .filter-button {
  align-items: center;
  max-height: 28.5px;
  color: var(--bg);
  cursor: pointer;
  color: rgb(33, 174, 89);
  padding: 5px 12px;
  border-radius: 9px;
  border: 1px solid #b2cfb1;
}
  .filter-popup {
  width: 100%;
  display: none;
  position: absolute;
  transform: translate(-48.5%, -20%);
  border-radius: 7px; /* Add border radius */
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999; /* устанавливаем большое значение z-index */
}

.map-button {
  position: fixed;
  bottom: 40px;
  right: 25px;
  background-color: #051804; /* Цвет фона кнопки */
  border: 1px solid #cccccc;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 999;
}}
    .card {
      border: 1px solid #717171;
      background-color: #ffffff;
    }
    .card {
 margin-bottom: 20px;
  padding: 0;
  width: 100%;
  color: var(--invert_primary);
  font-weight: 300;
  font-size: 15px;
  overflow: hidden;
  border-radius: var(--radius);
}
    .card__desc {
      margin-top: 2px;
      margin-left: 10px;
      margin-right: 10px;
      display: flex;
      flex-direction: column;
      font-size: 80%;
      font-weight: 400;
    }

    .types-container,
    .prices-container {
      display: flex;
      justify-content: space-between;
      align-items: center;

    }     
 


    .marker-circle {
  display: flex; /* Использование flexbox */
  justify-content: center; /* Выравнивание по центру по горизонтали */
  align-items: center; /* Выравнивание по центру по вертикали */
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.5);
  overflow: hidden; /* Обрезать содержимое, выходящее за пределы круга */
  border: 2.5px solid rgba(255, 0, 0, 0.992); /* Красная обводка */
}
.marker-circle.shariah-yes {
  border-color:rgb(0, 172, 69); /* Зеленая обводка для проектов с shariah */
}
.project-image {
  justify-content: center; /* Выравнивание по центру по горизонтали */
  align-items: center; /* Выравнивание по центру по вертикали */
  min-width: 45px;
  min-height: 45px;
}
.project-name {
  justify-content: center; /* Выравнивание по центру по горизонтали */
  align-items: center; /* Выравнивание по центру по вертикали */
  font-weight: 650;
  font-size: 12px;
  color: rgb(0, 0, 0);
  text-align: center;
  margin-top: 5px; /* Добавление отступа сверху */
  width: 100px; /* Ширина элемента для центрирования по горизонтали */

}
.custom-cluster-icon {
  justify-content: center; /* Выравнивание по центру по горизонтали */
  align-items: center; /* Выравнивание по центру по вертикали */
    background-color: rgb(255, 255, 255); /* Цвет фона кластера */
    border-radius: 50%; /* Округленные углы */
    text-align: center; /* Выравнивание текста по центру */
    line-height: 36px; /* Высота строки для выравнивания текста */
    font-size: 16px; /* Размер шрифта */
    color: rgb(76, 76, 76); /* Цвет текста */
    border: 1.5px solid rgb(33, 174, 89); /* Красная обводка */
    box-shadow: 0 0 20px rgb(33, 174, 89);
font-weight: 550;
}


.leaflet-popup-content p {
    margin-top: 5px;
    margin-bottom: 5px;

}

    .popup-image {
      width: 100%;
    }

    .popup-description {

      color: #333;
      font-size: 20px;
      font-weight: 650;
      margin: 0;
    }

    .popup-link {
      color: blue;
      text-decoration: underline;
    }

    /* Скрыть карточки при отображении карты */
    .hidden {
      display: none;
    }