
.active-filters {
    border: 1.5px solid rgba(220, 205, 188, 1);
    border-radius: 12px;
    padding: 12px;
    margin: 20px 0 0 0;
}
@media (max-width: 991px){
      .active-filters {
            margin: 10px 0 0 0;
      }
}

.catalog-toolbar__right{
       margin-top: 20px;
}
@media (max-width: 991px){
      .catalog-toolbar__right{
       margin-top: 10px;
}
}
@media (max-width: 768px) {
    html .popup--filters .popup__content--filters {
  
        height: 90vh;
        max-height: 90vh;
     
    }
}

.form-global__column-seven{
    flex: 1 1 auto;
}
.form-global__column-seven .cont-popup-three{
    width: 530px;
}
@media (max-width: 1200px){
      .form-global__column-seven .cont-popup-three{
    width: 100%;
}
}
div#catalog-results {
    min-height: 600px;
}
.s-gr .filter__tabs-cont-tab.filter__tabs-cont-tab-one{
display: block !important;
}
/**
 * =====================================================
 * КАТАЛОГ НЕДВИЖИМОСТИ - ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
 * Дополняют существующие стили form-global
 * =====================================================
 */

/* =====================================================
   ТУЛБАР (теги + сортировка)
   ===================================================== */



.catalog-toolbar__right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
        width: 100%;
    justify-content: space-between;
}

.catalog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .catalog-toolbar__right {
        justify-content: space-between;
            margin-top: 20px;
            gap: 12px;
    }
    
    .catalog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* =====================================================
   АКТИВНЫЕ ФИЛЬТРЫ (ТЕГИ)
   ===================================================== */

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-reset-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: rgba(2, 0, 0, 1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-reset-btn:hover {
    background: rgba(87, 39, 39, 1);
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;

    border: 1px solid rgba(244, 242, 239, 1);
    border-radius: 12px;
    font-size: 14px;
    color: rgb(47, 47, 47);
    cursor: default;
    transition: all 0.2s ease;
    background: rgba(244, 242, 239, 1);
}

.active-filter-tag:hover {
    border-color: rgba(236, 110, 28, 1);
}

.active-filter-tag .remove-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(220, 205, 188, 0.5);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.active-filter-tag .remove-tag:hover {
    background: rgba(236, 110, 28, 1);
    color: #fff;
}

/* =====================================================
   КНОПКА КАРТЫ
   ===================================================== */
.catalog-section h1{
    font-size: 60px;
    margin-bottom: 50px;
}
@media (max-width: 991px){
      .catalog-section h1{
    font-size: 36px;
      margin-bottom: 28px;
}
}
.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid rgba(244, 242, 239, 1);
    background: rgba(244, 242, 239, 1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgb(47, 47, 47);
    cursor: pointer;
    transition: all 0.2s ease;
}
@media (max-width: 768px){
      .btn-map{
         width: 100%;
    display: flex;

    justify-content: center;
      }
}
.btn-map:hover {
    border-color: rgba(236, 110, 28, 1);
    color: rgba(236, 110, 28, 1);
}

.btn-map svg {
    width: 18px;
    height: 18px;
}

/* =====================================================
   КНОПКА "БОЛЬШЕ ФИЛЬТРОВ"
   ===================================================== */

.form-global__column-more {
    display: flex;
    align-items: flex-end;
}

.btn-more-filters {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgb(2, 0, 0);
    color: rgb(244, 240, 235);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-more-filters:hover {
    background: rgb(40, 40, 40);
}

.btn-more-filters svg {
    width: 12px;
    height: 12px;
}

/* =====================================================
   СЧЁТЧИК И СОРТИРОВКА
   ===================================================== */

.catalog-count {
    font-size: 15px;
    color: rgb(47, 47, 47);
}

.catalog-count strong {
    font-weight: 600;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-wrapper > span {
    font-size: 14px;
    color: rgba(137, 120, 101, 1);
}

.sort-select {
    padding: 10px 35px 10px 16px;
    background: rgba(254, 253, 251, 1);
    border: 1px solid rgba(220, 205, 188, 1);
    border-radius: 12px;
    font-size: 14px;
    color: rgb(47, 47, 47);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232F2F2F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.archive .catalog-elem__btn.btn-white button{
    background: rgba(2, 0, 0, 1);
    color: rgba(244, 240, 235, 1);
}
.archive .catalog-elem__btn.btn-white button svg path{
    stroke: #fff;
}

.sort-select:focus {
    outline: none;
    border-color: rgba(236, 110, 28, 1);
}

/* =====================================================
   РЕЗУЛЬТАТЫ
   ===================================================== */

.catalog-results {
    transition: opacity 0.3s ease;
}

.catalog-results.loading {
    opacity: 0.5;
    pointer-events: none;
}

.catalog-empty {
    padding: 60px 20px;
    text-align: center;
    background: rgba(251, 245, 237, 1);
    border-radius: 16px;
}

.catalog-empty p {
    font-size: 18px;
    color: rgba(137, 120, 101, 1);
}

/* =====================================================
   ПАГИНАЦИЯ
   ===================================================== */

.catalog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(93.77deg, #EC6E1C 20%, #C6501F 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 6px 8px 0px rgba(90, 72, 52, 0.24);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 16px 0px rgba(90, 72, 52, 0.3);
}

.load-more-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.load-more-btn .remaining-count {
    opacity: 0.8;
    font-size: 14px;
}

.seo-pagination {
    display: none !important;
}

/* =====================================================
   POPUP КАРТА
   ===================================================== */

#popup_kart .popup__content {
    max-width: 95vw;
    width: 100%;
    height: 90vh;
    max-height: 900px;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}

.popup-map__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px 20px 24px;
    border-bottom: 1px solid rgba(220, 205, 188, 1);
    background: rgba(254, 253, 251, 1);
}

.popup-map__header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.popup-map__count {
    font-size: 14px;
    color: rgba(137, 120, 101, 1);
}

.popup-map__container {
    width: 100%;
    height: calc(100% - 70px);
}

#popup_kart .close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    cursor: pointer;
    background: rgba(254, 253, 251, 1);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* =====================================================
   БАЛУН КАРТЫ
   ===================================================== */

.balun-cust-global {
    padding: 10px;
    min-width: 200px;
}

.balun-cust-global img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.balun-cust-global p {
    font-size: 14px;
    margin: 0 0 5px 0;
}

.balun-cust-global .balun-title {
    font-weight: 600;
    font-size: 15px;
}

.balun-cust-global .balun-price {
    color: rgba(236, 110, 28, 1);
    font-weight: 500;
}

.balun-cust-global .balun-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(236, 110, 28, 1);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
}

.balun-cust-global .balun-link:hover {
    background: rgba(198, 80, 31, 1);
}

.ymaps-2-1-79-balloon__layout {
    overflow: hidden;
    border-radius: 12px !important;
}

.ymaps-2-1-79-balloon {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

/* =====================================================
   АДАПТИВ
   ===================================================== */

@media (max-width: 1100px) {
    .form-global__column-more {
        flex: 0 0 100%;
        margin-top: 10px;
    }
    
    .btn-more-filters {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 650px) {
    .catalog-toolbar {
          padding: 0;
    margin-bottom: 0px;
    }
    
    .active-filter-tag {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .filter-reset-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .sort-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-select {
        flex: 1;
    }
    
    .load-more-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}