@media (max-width: 991px){
  .listing-archive-top.rtcl-listings-actions .listing-sorting{ visibility:hidden; }
  .listing-archive-top.rtcl-listings-actions h2.rtin-title.rtcl-result-count{ display:flex; align-items:center; gap:10px; }
  .listing-archive-top.rtcl-listings-actions .lh-sort-wrap{ margin-left:auto; width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; position:relative; color:#9aa0a6; }
  .listing-archive-top.rtcl-listings-actions .lh-sort-wrap i{ font-size:18px; line-height:1; }

  /* overlay select is invisible but clickable */
  .listing-archive-top.rtcl-listings-actions .lh-sort-overlay{
    position:absolute; inset:0; margin:0; opacity:0;
  }
  .listing-archive-top.rtcl-listings-actions .lh-sort-overlay select{
    width:100%; height:100%; cursor:pointer; border:0; background:transparent;
    -webkit-appearance:none; appearance:none;
  }
}

				/* Hide THEME footer on mobile (leave only bottom bar) */
@media (max-width: 991px){
  #meanmenu > div.mean-bar,
  #content > div > section.elementor-section.elementor-top-section.elementor-element.elementor-element-a2dd63c.elementor-section-boxed.elementor-section-height-default.elementor-section-height-default.rt-parallax-bg-no > div > div.elementor-column.elementor-col-50.elementor-top-column.elementor-element.elementor-element-bb66231 > div > div > div > div{
    display: none !important;
  }
}
@media (max-width: 991px){
	#content > div.theme-banner,#primary > div > div > div.col-xl-9.col-lg-8.col-sm-12.col-12 > div.listing-archive-top.rtcl-listings-actions > div > div{
	    display:none !important;
	}
#content > div.banner-search > div > div{
	    margin-top:40px!important;
	}
}
     /**Кнопки фильтра по звездам/
     /* ===== Helpy Star Pills ===== */

      
    /* ===== Helpy Star Pills (ALL-ADS) ===== */
@media (max-width: 991px){
    .banner-search .lh-stars-pills{
      display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:12px !important;
    padding: 5px 0;
    
      background:rgb(255, 255, 255)!important;          /* светлая секция */
      
    }
    
    /* pill */
    .banner-search .lh-star-pill{
      display:flex;
      align-items:center;
      gap:6px;
    
      padding:3px 16px;
      border-radius:22px;
    
      font-size:14px;
      font-weight:500;
    
      background:#ffffff;
      border:1px solid #dcdce1;
    
      color:#333;
      cursor:pointer;
      transition:all .2s ease;
    }
    
    /* star icon */
    .banner-search .lh-star-pill .lh-star{
      font-size:13px;
      line-height:1;
      color:#a0a0a8;
      transition:.2s ease;
    }
    
    /* hover */
    .banner-search .lh-star-pill:hover{
      border-color:#c6c6cc;
      box-shadow:0 1px 3px rgba(0,0,0,0.06);
    }
    
    /* ACTIVE */
    .banner-search .lh-star-pill.is-active{
      background:#6f2dbd;
      border-color:#56239a;
      color:#fff;
    }
    
    .banner-search .lh-star-pill.is-active .lh-star{
      color:#fff;
    }
    /*Контейнер Формы Стилизация для кнопок*/
    #content > div.banner-search > div > div > div{
        background-color:rgb(255, 255, 255)!important;
        box-shadow:rgba(0, 0, 0, 0.1) 0px 1px 1px 0px!important;
    }
    #content > div.banner-search > div > div > div > form{
        box-shadow:none!important;
    }
    /*Скрываю  Филтерс на странице всех обьявлений*/
    #primary > div > div > div.col-xl-3.col-lg-4.col-sm-12.col-12 > aside{
        display:none!important;
    }
    /* layout */
    .banner-search .lh-stars-pills{
      display:flex;
      align-items:center;
      justify-content:space-between;
    }
    
    /* left pills group */
    .banner-search .lh-stars-left{
      display:flex;
      gap:12px;
    }
    
    /* CLEAR button */
    .banner-search .lh-clear-rating{
      background:none;
      border:none;
      padding:0;
      margin-left: 5px;
    
      font-size:14px;
      font-weight:500;
    
      color:rgba(111,45,189,0.6);/*#6f2dbd;*/
      cursor:pointer;
      
    
      text-decoration:underline;
      transition:opacity .2s ease;
    }
    
    .banner-search .lh-clear-rating:hover{
      opacity:0.7;
    }
        /* All Services with FontAwesome icon */
        .rtcl-ui-modal .lh-all-services-link{
      display:flex;
      align-items:center;
      gap:10px;
      margin-left:5px!important;
    }
    .rtcl-ui-modal .lh-all-services-link i{
      color:#6f2dbd;
      font-size:14px;
    }
    /*Убираю гап под верхней белой секцией*/
    .content-area.classima-listing-archive.rtcl{
        padding-top: 30px!important;
    }
    /*Делаю блок с сортировкой флексом */
    .listing-archive-top.rtcl-listings-actions{
        display: flex!important;
        padding-bottom: 0px;
        padding-top: 0px!important;
        line-height: 10px!important;
    }
    /*Делаю текст короче и меньше*/
    .rtin-title.rtcl-result-count{
        font-size:14px!important;
    }


  /* 1) Скрываем штатный блок сортировки СРАЗУ (без вспышки), но не display:none */
  .listing-archive-top.rtcl-listings-actions .listing-sorting{
    position:absolute !important;
    left:-9999px !important;
    top:auto !important;
    width:1px !important;
    height:1px !important;
    overflow:hidden !important;
    visibility:hidden !important;
  }

  /* 2) H2 как flex, чтобы справа вставить кнопку */
  .listing-archive-top.rtcl-listings-actions h2.rtin-title.rtcl-result-count{
    display:flex;
    align-items:center;
    gap:10px;
    margin: 0!important;
  }

  .listing-archive-top.rtcl-listings-actions .lh-sort-wrap{
    margin-left:auto;
    width:40px;
    height:40px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:relative;
    color:#9aa0a6; /* серый */
  }

  .listing-archive-top.rtcl-listings-actions .lh-sort-wrap i{
    font-size:18px;
    line-height:1;
  }

  /* 3) Невидимый, но кликабельный form/select поверх иконки */
  .listing-archive-top.rtcl-listings-actions .lh-sort-wrap form.rtcl-ordering{
    position:absolute;
    inset:0;
    margin:0;
    opacity:0;
  }

  .listing-archive-top.rtcl-listings-actions .lh-sort-wrap form.rtcl-ordering select.orderby{
    width:100%;
    height:100%;
    cursor:pointer;
    -webkit-appearance:none;
    appearance:none;
    border:0;
    background:transparent;
  }
      /* контурная звезда */
    .lh-star-svg{
      width:18px;
      height:18px;
      display:block;
    
      fill:none;
      stroke:#6f2dbd;
      stroke-width:2;
      stroke-linejoin:round;
      stroke-linecap:round;
    }
    
    /* активная — заливка */
    .lh-star-pill.is-active .lh-star-svg{
      fill:#6f2dbd;
      stroke:#6f2dbd;
    }
    .lh-star-pill.is-active .lh-star-svg{
      fill:#ffffff;
      stroke:#ffffff;
    }
}

/* =========================================================
   STABILIZER STYLES (desktop + mobile)
   ========================================================= */
@media (max-width: 991px){
/* "Clear all" link appended to result count */
.lh-clear-all{
  margin-left: 12px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(111,45,189,0.85);
  white-space: nowrap;
}
.lh-clear-all:hover{ opacity: .8; }

/* fallback search if banner-search/form missing */
.lh-fallback-search{
  margin: 12px 0 14px;
}
.lh-fallback-search-form{
  display:flex;
  gap:10px;
}
.lh-fallback-search-form input{
  flex:1;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.12);
}
.lh-fallback-search-form button{
  padding:10px 14px;
  border-radius:14px;
}

}

