/*
Theme Name: Houzez Child
Description: Child theme for Houzez
Template: houzez
Version: 1.0
*/
@import url("../houzez/style.css");

/* Скрываем оригинальный topbar везде */
.top-bar-wrap {
    display: none !important;
}

/*
Theme Name: Houzez Child
Description: Child theme for Houzez
Template: houzez
Version: 1.0
*/
@import url("../houzez/style.css");

img.emoji {
    width: 1.5em !important;
    height: 1.5em !important;
    display: inline-block !important;
    vertical-align: text-top !important;
}

a.label-status.label.status-color-30 {
    display: none !important;
}

a.label-status.label.status-color-29 {
    display: none !important;
}

.hover-effect-flat:before {
    display: none !important;
}


/* Заменить иконку календаря на blueprint */
.icon-calendar-3:before {
    content: "\e916" !important;
}

/* Для поля этаж  */


/* Этаж: иконка рядом с числом */
li.property-overview-item.d-flex.align-items-center:has(+ li.h-floors) {
    position: relative;
    padding-left: 28px;
    /* место под иконку слева */
}

li.property-overview-item.d-flex.align-items-center:has(+ li.h-floors)::before {
    content: "\e289";
    /* stairs icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 20px;
    color: #4a4a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* выравнивание по центру цифры */
}


/* Количество комнат: иконка Houzez */
li.property-overview-item.d-flex.align-items-center:has(+ li.h-amount-of-roomss) {
    position: relative;
    padding-left: 32px;
    /* место для иконки */
}

li.property-overview-item.d-flex.align-items-center:has(+ li.h-amount-of-roomss)::before {
    content: "\e922";
    /* код layout */
    font-family: "houzez-iconfont";
    /* именно FA */
    font-weight: 900;
    /* solid стиль */
    font-size: 22px;
    color: #4a4a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* центр по вертикали */
}




/* Количество комнат: иконка Houzez (прямо на этот <li>) */
li.h-amount-of-rooms.d-flex.align-items-center {
    position: relative;
    padding-left: 24px;
    /* место под иконку */
}

li.h-amount-of-rooms.d-flex.align-items-center::before {
    content: "\e922";
    /* твой код глифа */
    font-family: "houzez-iconfont";
    /* тот же шрифт, что и у тебя */
    font-weight: 900;
    font-size: 18px;
    color: #4a4a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


/* Комплектация: иконка Font Awesome (та же, что у Количество комнат) */
li.property-overview-item.d-flex.align-items-center:has(+ li.h-equipments) {
    position: relative;
    padding-left: 32px;
    /* отступ под иконку */
}

li.property-overview-item.d-flex.align-items-center:has(+ li.h-equipments)::before {
    content: "\e51a";
    /* kitchen-set */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    /* solid */
    font-size: 22px;
    color: #4a4a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


/* Статус объекта: иконка Houzez */
li.property-overview-item.d-flex.align-items-center:has(+ li.h-object-statuss) {
    position: relative;
    padding-left: 32px;
    /* место для иконки слева */
}

li.property-overview-item.d-flex.align-items-center:has(+ li.h-object-statuss)::before {
    content: "\e901";
    /* azr-icons */
    font-family: "azr-icons";
    font-size: 20px;
    color: #4a4a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* выравнивание по центру цифры */
}


/* Расстояние до моря: иконка Houzez */
li.property-overview-item.d-flex.align-items-center:has(+ li.h-distance-to-seas) {
    position: relative;
    padding-left: 30px;
    /* место для иконки слева */
}

li.property-overview-item.d-flex.align-items-center:has(+ li.h-distance-to-seas)::before {
    content: "\e962";
    /* код иконки Houzez */
    font-family: "houzez-iconfont";
    /* важно! именно houzez */
    font-size: 24px;
    color: #4a4a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* выравнивание по центру цифры */
}

/* Расстояние до моря, м — иконка должна быть перед значением (предыдущий li) */
li.property-overview-item.d-flex.align-items-center:has(+ li.h-distance-to-the-see-kms) {
    position: relative;
    padding-left: 30px;
    /* место для иконки слева */
}

li.property-overview-item.d-flex.align-items-center:has(+ li.h-distance-to-the-see-kms)::before {
    content: "\e962";
    /* тот же глиф */
    font-family: "houzez-iconfont";
    /* тот же шрифт */
    font-size: 24px;
    color: #4a4a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Балконы — иконка из нашего шрифта azr-icons (код E900) */
li.property-overview-item.d-flex.align-items-center:has(+ li.h-balconiess) {
    position: relative;
    padding-left: 30px;
}

li.property-overview-item.d-flex.align-items-center:has(+ li.h-balconiess)::before {
    content: "\e900";
    font-family: "azr-icons";
    font-size: 20px;
    color: #4a4a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


/* Тип недвижимости: иконка Houzez */
li.property-overview-item.d-flex.align-items-center:has(+ li.h-types) {
    position: relative;
    padding-left: 30px;
    /* место для иконки слева */
}

li.property-overview-item.d-flex.align-items-center:has(+ li.h-types)::before {
    content: "\e981";
    /* код иконки Houzez */
    font-family: "houzez-iconfont";
    /* важно! именно houzez */
    font-size: 24px;
    color: #4a4a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* выравнивание по центру цифры */
}

/* Тип квартиры: иконка из нашего шрифта azr-icons (E901) */
li.property-overview-item.d-flex.align-items-center:has(+ li.h-apartment-types) {
    position: relative;
    padding-left: 30px;
}

li.property-overview-item.d-flex.align-items-center:has(+ li.h-apartment-types)::before {
    content: "\e979";
    /* houzez */
    font-family: "houzez-iconfont";
    font-size: 22px;
    color: #4a4a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


/* метки в строку на картинках */

.labels-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    /* чтобы были выровнены по левому краю */
    gap: 4px;
    /* расстояние между метками, подбери под дизайн */
}

/* Azurit: кнопка карты (шорткод [azr_map_button]) */
.elementor .azr-map-button {
    background-color: #00115E !important;
    color: #F7F8F9 !important;
    border-color: #00115E !important;
    padding: 6px 14px !important;
    /* высота/ширина за счёт внутренних отступов */
    line-height: 1.1 !important;
    /* плотность строки (уменьшает высоту) */
    font-size: 14px !important;
    /* при необходимости уменьшай шрифт */
    border-radius: 6px;
    /* если нужно скругление */
}

/* (reverted) */
.bootstrap-select>.dropdown-toggle {
    box-shadow: none !important;
    outline: 0 !important;
}

.elementor .azr-map-button:hover,
.elementor .azr-map-button:focus {
    color: #ECE3A4 !important;
    background-color: #00115E !important;
    border-color: #00115E !important;
}


/* убираем Title - из сортировки */

[id^="bs-select-"][id$="-6"],
[id^="bs-select-"][id$="-7"] {
    display: none !important;
}








.grid-item {
    position: relative;
    overflow: hidden;
}

.grid-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    z-index: 0;
}

.grid-item:hover::before {
    transform: scale(1.1);
    /* увеличиваем только фон */
}


/* --- Hover-zoom внутри карточек в карусели --- */

/* 1) страхуемся от "выползания" */
.houzez-listing-carousel,
.houzez-listing-carousel .slick-list,
.houzez-listing-carousel .slide-img {
    overflow: hidden;
}

/* 2) плавность для картинок */
.houzez-listing-carousel .slide-img img {
    transition: transform .45s ease;
    /* не трогаем opacity/box-shadow темы */
    will-change: transform;
    transform-origin: center center;
}

/* 3) увеличение при наведении на карточку */
.item-listing-wrap:hover .houzez-listing-carousel .slide-img img {
    transform: scale(1.06);
}

/* 4) тоже самое по фокусу (клавиатура/мобайл-click) */
.item-listing-wrap:focus-within .houzez-listing-carousel .slide-img img {
    transform: scale(1.06);
}

/* 5) чтобы не мешать тач-устройствам без hover (опционально) */
@media (hover: none) {

    .item-listing-wrap:hover .houzez-listing-carousel .slide-img img,
    .item-listing-wrap:focus-within .houzez-listing-carousel .slide-img img {
        transform: none;
    }
}


/* --- Убираем исходное затемнение/оверлей в карусели --- */

/* 1) отключаем псевдо-оверлеи темы */
.houzez-listing-carousel .slide-img a.hover-effect::before,
.houzez-listing-carousel .slide-img a.hover-effect::after {
    opacity: 0 !important;
    background: none !important;
    transition: none !important;
    pointer-events: none !important;
}

/* 2) возвращаем картинке 100% яркость/непрозрачность всегда */
.houzez-listing-carousel .slide-img a.hover-effect img {
    opacity: 1 !important;
    filter: none !important;
    /* на случай brightness()/grayscale() */
}

/* 3) на :hover не меняем прозрачность/фильтры (оставляем только зум) */
.houzez-listing-carousel .slide-img a.hover-effect:hover::before,
.houzez-listing-carousel .slide-img a.hover-effect:hover::after,
.houzez-listing-carousel .slide-img a.hover-effect:hover img {
    opacity: 1 !important;
    filter: none !important;
}


/* Убрать начальное затемнение баннеров */
.banner-image-module-link,
.banner-image-module-link:hover,
.banner-image-module-link:focus {
    background: transparent !important;
    opacity: 0 !important;
    /* якорь-оверлей остаётся кликабельным, но прозрачный */
}

/* На случай затемнения через псевдоэлемент */
.banner-image-module-link::before,
.banner-image-module-link::after {
    content: none !important;
    background: none !important;
    opacity: 0 !important;
}

/* На случай затемнения фильтром на картинке */
.banner-image-module img {
    filter: none !important;
    -webkit-filter: none !important;
}


/* надпись на типах недвижимости */
.banner-image-content-wrap {
    position: absolute;
    top: 15px;
    /* отступ сверху */
    left: 15px;
    /* отступ слева */
    text-align: left !important;
}






























/* Скрываем оригинальный topbar везде */
.top-bar-wrap {
    display: none !important;
}

/* иконки соцсетей в мобильном */
@media screen and (max-width: 768px) {
    .header-social-icons {
        display: none !important;
    }

    .desktop-social-hide-mobile {
        display: none !important;
    }
}

/* БЕЗ МЕДИА-ЗАПРОСА - применится везде */
#header-mobile {
    min-height: 100px;
}

.mobile-topbar-in-header.hide-top-bar-mobile {
    display: block !important;
}

.mobile-topbar-in-header {
    background-color: #fff !important;
    color: #00167a;
    font-size: 14px;
    margin: 0 -15px;
}

.header-mobile-main {
    padding-top: 13px;
}

/* Цвет текста для контакта в topbar */
.mobile-topbar-in-header .contact-phone-link,
.mobile-topbar-in-header .phone-text {
    color: 00167a !important;
}

/* Цвет иконки телефона */
.mobile-topbar-in-header .houzez-icon.icon-phone {
    color: #00167a !important;
}


/*модальные формы*/

/* Стили для табов во всех модальных окнах */
.modal-content .nav-tabs .nav-link {
    background-color: #00115e !important;
    color: white !important;
    border: 1px solid #00115e !important;
}

/* Активный таб */
.modal-content .nav-tabs .nav-link.active {
    background-color: #00115e !important;
    color: white !important;
    border-color: #00115e !important;
}

/* Ховер на табах - тот же фон, светлый текст */
.modal-content .nav-tabs .nav-link:hover {
    background-color: #00115e !important;
    color: #ece3a4 !important;
    border-color: #00115e !important;
}

/* Убираем синий фон у области табов */
.modal-content .nav-tabs {
    background-color: white !important;
    border-bottom: none !important;
}

/* Кнопки в модальных окнах */
.modal-content .btn-primary,
.modal-content button[type="submit"] {
    background-color: #00115e !important;
    border-color: #00115e !important;
    color: white !important;
}

/* Hover на кнопках */
.modal-content .btn-primary:hover,
.modal-content button[type="submit"]:hover {
    background-color: #00115e !important;
    border-color: #00115e !important;
    color: #ece3a4 !important;
}

/* Ссылки внутри модальных окон */
.modal-content a,
.modal-content .modal-body a,
.modal-content .modal-footer a {
    color: #00115e !important;
}

/* Ховер на ссылках */
.modal-content a:hover {
    color: #ece3a4 !important;
}

/* Убираем синий фон у modal-header */
.modal-content .modal-header {
    background-color: white !important;
}



/* Фикс ширины элементов формы (Только мобилка) */
@media (max-width: 768px) {
    .e-n-tabs-content .elementor-form-fields-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        overflow-x: hidden !important;
        /* ← ключевая страховка */
        box-sizing: border-box !important;
    }


    .e-n-tabs-content .elementor-field-group {
        display: flex !important;
    }
}

/* Стили для табов Elementor перенесены в azr-features/azr-search-results/dropdowns-unified.css */

/* Bootstrap-select стили перенесены в azr-features/azr-search-results/dropdowns-unified.css */


/* ИСКЛЮЧЕНИЕ для мобильных - отменяем десктопные стили */
@media (max-width: 768px) {
    .e-n-tabs-content .elementor-field-group {
        display: block !important;
        /* Отменяем flex для мобильных */
    }

    html,
    body {
        overflow-x: hidden;
    }


    .e-n-tabs-content .elementor-field-group.mobile-inline {
        display: inline-block !important;
        /* Разрешаем inline-block */
    }

    .e-n-tabs-content .elementor-field-group.mobile-3-10 {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }

    .e-n-tabs-content .elementor-field-group.order-plus {
        flex: 0 0 calc(20% - 5px) !important;
        max-width: calc(20% - 5px) !important;
    }


}

/* Фиксируем ширину для кнопок в табах */
.e-n-tabs-content .elementor-col-15 {
    flex: 0 0 15% !important;
    max-width: 15% !important;
    width: 15% !important;
}

.e-n-tabs-content .elementor-col-16 {
    flex: 0 0 16% !important;
    max-width: 16% !important;
    width: 16% !important;
}

.e-n-tabs-content .elementor-col-20 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
}


/* В РЕДАКТОРЕ: включаем привычную «сетку-полоску» */
.elementor-editor-active .e-n-tabs-content .elementor-form-fields-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.elementor-editor-active .e-n-tabs-content .elementor-field-group {
    flex: 0 0 auto !important;
}




/* В редакторе и на десктопе кнопки — inline, не на 100% */
@media (min-width: 769px) {

    .e-n-tabs-content .advanced-search-btn,
    .e-n-tabs-content .houzez-search-button {
        display: inline-flex !important;
        width: auto !important;
        max-width: none !important;
    }
}


/* Убираем возможные паддинги/маргины которые могут мешать */
.e-n-tabs-content .elementor-field-type-submit {
    padding-left: 0 !important;
    padding-right: 0 !important;
}





/* Стили для панели инфраструктуры */
.azurit-features-panel {
    background: linear-gradient(to bottom, #ffffff, #fafafa) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    padding: 25px !important;
}

/* .azurit-features-panel h5 {
    color: #00115e !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #00115e !important;
} */

/* Стили для чекбоксов */
.azurit-feature-checkbox {
    width: 18px !important;
    height: 18px !important;
    /* accent-color: #832c4a !important; */
    cursor: pointer;
    margin-right: 10px !important;
    /* расстояние между чекбоксом и текстом */

}

.azurit-features-panel {
    background: linear-gradient(to bottom, #ffffff, #fafafa) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    padding: 25px 35px 25px 25px !important;
    /* Увеличен правый padding с 25px до 35px */
    max-width: none !important;
    /* Убираем ограничение */
}

.azurit-features-panel label:hover {
    background: #f5f5f5 !important;
    transform: translateX(3px);
}

/* Кнопки действий */
.azurit-features-actions .btn {
    border-radius: 20px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.azurit-features-actions .btn-secondary {
    background: #00115e !important;
    border: none !important;
}

.azurit-features-actions .btn-secondary:hover {
    background: #00115e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 17, 94, 0.3) !important;
}

.azurit-features-actions .btn-light {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #666 !important;
}

.azurit-features-actions .btn-light:hover {
    background: #f8f8f8 !important;
    border-color: #00115e !important;
    color: #00115e !important;
}

.azurit-features-panel {
    animation: slideDown 0.3s ease;
}


/* === Модальное окно Инфраструктуры (мобайл) === */
@media (max-width:768px) {
    .azurit-features-modal {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: none
    }

    .azurit-features-modal.is-open {
        display: block
    }

    .azm-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .35)
    }

    .azm-sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .2)
    }

    .azm-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid #eee
    }

    .azm-title {
        font-weight: 400;
        /* было 600 */
        font-size: 16px;
    }

    .azm-close {
        appearance: none;
        background: transparent;
        border: 0;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        color: #00115e
    }

    .azm-body {
        padding: 12px 16px 6px;
        overflow: auto
    }

    /* Сетка и элементы в модалке */
    .azm-grid {
        display: grid;
        grid-template-columns: 1fr;
        /* одна колонка */
        justify-items: start;
        /* выравниваем элементы по левому краю */
        gap: 8px;
        margin: 8px 0 12px;
        padding-left: 12px;
        /* небольшой левый отступ */
    }


    .azm-grid label {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 10px;
        border: 1px solid #E8E8E8;
        border-radius: 12px;
        background: #fff;
        line-height: 1.25;
        width: 80%;
        /* одинаковая ширина 80% */
        justify-self: start;
        /* на всякий, фикс левого края */

        /* одинаковая ширина для всех */
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
        font-weight: 400;
        /* обычный */
    }

    .azm-grid label .azm-text {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-overflow: ellipsis;
        font-weight: 400;
    }

    .azm-grid label strong {
        font-weight: 400 !important;
    }

    .azm-grid .azurit-feature-checkbox {
        width: 16px;
        height: 16px;
        /* accent-color: #832c4a; */
        flex: 0 0 auto;
    }

    /* подсветка выбранных */
    .azm-grid label:has(.azurit-feature-checkbox:checked),
    .azm-grid label.is-checked {
        background: #eef1ff;
        border-color: #00115e;
        box-shadow: 0 0 0 2px rgba(0, 17, 94, .08) inset;
    }

    /* Кнопки действий у нижнего края модалки */
    .azurit-features-modal .azurit-features-actions {
        position: static !important;
        /* больше не липкая */
        bottom: auto !important;
        background: transparent !important;
        padding: 8px 0 0 !important;
        margin: 12px 0 0 !important;
        /* небольшой отступ сверху */
    }


    .azurit-features-modal .azurit-features-actions .btn {
        width: 100%;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 15px;
    }

    /* модалка поверх всего и блокировка скролла фона */
    .azurit-features-modal {
        z-index: 999999 !important;
    }

    body.azm-locked {
        overflow: hidden;
    }



    /* === Инфраструктура: мобильный дизайн панели чекбоксов === */
    @media (max-width: 768px) {

        /* Контейнер панели */
        .azurit-features-panel {
            padding: 16px 16px 80px !important;
            /* место под липкие кнопки */
            border-radius: 14px !important;
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
            max-height: 68vh !important;
            overflow-y: auto !important;
        }

        /* Заголовок */
        /* В модалке не показываем заголовок панели */
        .azurit-features-modal .azurit-features-panel h5 {
            display: none !important;
        }


        /* Делаем из чекбоксов аккуратные "пилюли" и раскладываем в 2 колонки */
        .azurit-features-panel label {
            display: inline-flex !important;
            /* чтобы работала ширина в % */
            align-items: center !important;
            gap: 10px !important;
            padding: 10px 12px !important;
            margin: 6px 0 !important;
            border: 1px solid #e8e8e8 !important;
            border-radius: 12px !important;
            background: #fff !important;
            line-height: 1.2 !important;
            cursor: pointer !important;
            width: auto !important;
            /* <-- 2 колонки */
            box-sizing: border-box !important;
        }

        /* Сам чекбокс побольше */
        .azurit-features-panel .azurit-feature-checkbox {
            width: 18px !important;
            height: 18px !important;
            /* accent-color: #832c4a !important; */
            flex: 0 0 auto !important;
        }

        /* Ховер и выбранное состояние */
        .azurit-features-panel label:hover {
            background: #f9f6f7 !important;
            border-color: #e2c7d0 !important;
        }

        /* Если браузер поддерживает :has — хватит этого */
        .azurit-features-panel label:has(.azurit-feature-checkbox:checked) {
            background: #fff5f8 !important;
            border-color: #00115e !important;
            box-shadow: 0 0 0 2px rgba(131, 44, 74, .08) inset !important;
        }

        /* Фоллбек: класс .is-checked проставим JS-ом (ниже) */
        .azurit-features-panel label.is-checked {
            background: #fff5f8 !important;
            border-color: #00115e !important;
            box-shadow: 0 0 0 2px rgba(131, 44, 74, .08) inset !important;
        }



        .azurit-features-actions .btn {
            width: 100% !important;
            border-radius: 12px !important;
            padding: 12px 14px !important;
            font-size: 15px !important;
        }

        /* Текст пунктов обычным весом */
        .azm-grid label,
        .azm-grid label .azm-text,
        .azm-grid label strong {
            font-weight: 400 !important;
        }

    }



    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

}

/* OVERRIDE: в модалке одна колонка, 80% ширины, слева */
.azurit-features-modal .azm-grid {
    justify-items: start;
    padding-left: 12px;
}

.azurit-features-modal .azm-grid label {
    width: 80% !important;
    /* перебивает старое calc(50% - 8px) */
    justify-self: start;
    margin: 6px 0 !important;
    /* убираем боковые маргины из старого правила */
}

/* обычный вес текста в пунктах, даже если внутри <strong> */
.azurit-features-modal .azm-grid label,
.azurit-features-modal .azm-grid label * {
    font-weight: 400 !important;
}









/* ==== Half-Map: простой вариант, поля аккуратно в столбик по ширине колонки ==== */
.half-map-left-wrap {
    flex: 0 0 400px;
    max-width: 400px;
    background: #fff;
    border-right: 1px solid #eee;
    /* по умолчанию, но на search-results перебивается */
    position: relative;
}

.az-halfmap-filter {
    padding: 16px;
    position: relative;
    margin-top: 20px;
    /* вместо top: 20px; чтобы высота родителя учитывала смещение */
    z-index: 2;
    background: #fff;
    /* гарантируем прорисовку нижней границы внешнего контейнера */
    background-clip: padding-box;
}

/* Десктоп: делаем левый фильтр прокручиваемым (3/4 высоты окна) */
@media (min-width: 992px) {
    .az-halfmap-filter {
        max-height: none !important;
        /* БЫЛО: 50vh */
        overflow-y: visible !important;
        /* БЫЛО: auto */
        overscroll-behavior: auto;
        padding-right: 16px;
        /* БЫЛО: 8px */
        padding-bottom: 12px;
    }
}

/* Общий контейнер контента результатов поиска */
.azr-search-content {
    position: relative;
    z-index: 1;
}


/* форма: без сеток и костылей — просто столбик */
.az-halfmap-filter .houzez-search-form-js {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* az-halfmap-filter стили перенесены в azr-features/azr-search-results/dropdowns-unified.css */

/* кнопки — на всю ширину, одна под другой */
.az-halfmap-filter .btn,
.az-halfmap-filter button[type="submit"] {
    width: 100%;
}

/* === Half-map: выравнивание и цвет кнопок фильтра (десктоп) === */
@media (min-width: 992px) {
    .advanced-search-half-map .half-map-buttons-wrap {
        display: flex;
        gap: 16px;
    }

    .advanced-search-half-map .half-map-buttons-wrap>* {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Явно уравниваем кнопку submit и обёртку reset */
    .advanced-search-half-map .half-map-buttons-wrap>button[type="submit"],
    .advanced-search-half-map .half-map-buttons-wrap>.reset-search-btn-wrap {
        flex: 1 1 0% !important;
    }

    .advanced-search-half-map .half-map-buttons-wrap .btn {
        width: 100% !important;
    }

    /* Наш тёмно-синий фон для обеих кнопок */
    .advanced-search-half-map .half-map-buttons-wrap .btn,
    .advanced-search-half-map .half-map-buttons-wrap .btn.btn-secondary,
    .advanced-search-half-map .half-map-buttons-wrap .btn.reset-search-btn,
    .advanced-search-half-map .half-map-buttons-wrap .btn.btn-grey-outlined {
        background-color: #00167a !important;
        border-color: #00167a !important;
        color: #fff !important;
    }

    .advanced-search-half-map .half-map-buttons-wrap .btn:hover,
    .advanced-search-half-map .half-map-buttons-wrap .btn:focus {
        filter: brightness(1.05);
        color: #ece3a4 !important;
    }
}

/* правая колонка со списком */
.half-map-right-wrap {
    flex: 1 1 auto;
    min-width: 0;
    padding: 20px;
}


/* az-halfmap-filter form-group стили перенесены в azr-features/azr-search-results/dropdowns-unified.css */




/* === Header (desktop) — выравниваем по левому/правому краю контента === */
@media (min-width: 992px) {

    /* Можно задать свои значения… */
    :root {
        --azr-header-extra-left: 60px;
        --azr-header-extra-right: 60px;
        /* ...или раскомментировать ниже, чтобы брать те же значения, что у топбара: */
        /* --azr-header-extra-left: var(--azr-topbar-extra-left);
       --azr-header-extra-right: var(--azr-topbar-extra-right); */
    }

    /* Контейнер шапки: добавляем такие же внутренние отступы */
    .header-desktop.header-v1>.container,
    .header-desktop.header-v1>.container-fluid {
        padding-left: calc(20px + var(--azr-header-extra-left));
        padding-right: calc(20px + var(--azr-header-extra-right));
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    /* Чтобы паддинги не «съедались» внутренними обёртками */
    .header-desktop.header-v1 .header-inner-wrap,
    .header-desktop.header-v1 .navbar {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Сдвигаем навигацию правее за счёт левого отступа у контейнера меню */
    .header-desktop.header-v1 nav.main-nav {
        margin-left: 48px !important;
        /* подберите значение при необходимости */
    }
}

/* (moved to sticky-footer css) */



/* === Синхронный sticky для топбара и хедера — базовая версия === */
:root {
    --azr-topbar-h: 0px;
}




/* Контейнер для скролла (обычно body/html) */
html {
    scroll-timeline-name: --page-scroll;
    scroll-timeline-axis: block;
}



/* В РЕДАКТОРЕ: принудительно показываем скрытый блок "Больше" */
.elementor-editor-active .collapse {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

/* === Slick arrows: opaque dark grey bg, white icon === */
.slick-arrow.slick-prev,
.slick-arrow.slick-next {
    background-color: #4a4a4a !important;
    /* opaque dark grey */
    border-color: #4a4a4a !important;
    color: #ffffff !important;
    /* fallback for non-pseudo icons */
    box-shadow: none !important;
}

/* pseudo icon color: solid white, no glow */
.slick-arrow.slick-prev:before,
.slick-arrow.slick-next:before {
    color: #ffffff !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
}

/* (removed overrides on request) */

/* === Call button (default state) to brand color === */
a.btn.hz-btn-call,
.btn.hz-btn-call {
    background-color: #00115e !important;
    border-color: #00115e !important;
    color: #fff !important;
}

/* Hover: only text color changes to gold; bg/border unchanged */
a.btn.hz-btn-call:hover,
.btn.hz-btn-call:hover {
    color: #ece3a4 !important;
}

/* === Agent contact submit button (default + hover text only) === */
button.houzez-ele-button.btn,
.houzez-ele-button.btn,
button.houzez_agent_property_form.btn,
.houzez_agent_property_form.btn {
    background-color: #00115e !important;
    border-color: #00115e !important;
    color: #fff !important;
}

button.houzez-ele-button.btn:hover,
.houzez-ele-button.btn:hover,
button.houzez_agent_property_form.btn:hover,
.houzez_agent_property_form.btn:hover {
    color: #ece3a4 !important;
}

/* === WhatsApp button: only border color fixed to brand === */
a.hz-btn-whatsapp.btn.btn-secondary-outlined,
.hz-btn-whatsapp.btn.btn-secondary-outlined {
    border-color: #00115e !important;
}

a.hz-btn-whatsapp.btn.btn-secondary-outlined:hover,
a.hz-btn-whatsapp.btn.btn-secondary-outlined:focus,
.hz-btn-whatsapp.btn.btn-secondary-outlined:hover,
.hz-btn-whatsapp.btn.btn-secondary-outlined:focus {
    border-color: #00115e !important;
}

/* === Bitrix livechat controls: solid brand bg, no border; hover text gold === */
button.bx-livechat-control-btn.bx-livechat-control-btn-like,
button.bx-livechat-control-btn.bx-livechat-control-btn-menu,
button.bx-livechat-control-btn.bx-livechat-control-btn-close,
.bx-livechat-control-btn.bx-livechat-control-btn-like,
.bx-livechat-control-btn.bx-livechat-control-btn-menu,
.bx-livechat-control-btn.bx-livechat-control-btn-close {
    background-color: #0064E1 !important;
    border: none !important;
    color: #fff !important;
}

button.bx-livechat-control-btn.bx-livechat-control-btn-like:hover,
button.bx-livechat-control-btn.bx-livechat-control-btn-menu:hover,
button.bx-livechat-control-btn.bx-livechat-control-btn-close:hover,
.bx-livechat-control-btn.bx-livechat-control-btn-like:hover,
.bx-livechat-control-btn.bx-livechat-control-btn-menu:hover,
.bx-livechat-control-btn.bx-livechat-control-btn-close:hover {
    color: #ece3a4 !important;
}

/* --- Desktop override: gallery arrows inside extended property gallery --- */
@media (min-width: 992px) {

    body.single-property [data-azr-gallery-extended] #azr-single-pane .top-gallery-section,
    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSSlideOuter {
        overflow: visible !important;
    }

    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction>a.lSPrev {
        left: -28px !important;
    }

    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction>a.lSNext {
        right: -28px !important;
    }

    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction .slick-arrow {
        width: 56px !important;
        height: 56px !important;
        border-radius: 12px !important;
        background: #eef2f6 !important;
        border-color: #eef2f6 !important;
        color: #4a4a4a !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction .slick-arrow:before {
        color: #4a4a4a !important;
        text-shadow: none !important;
        -webkit-text-stroke: 0 !important;
        text-stroke: 0 !important;
    }

    /* Кнопки "Фото ..." поверх визуальных полей */
    body.single-property [data-azr-gallery-extended] .azr-gallery-btn {
        position: relative;
        z-index: 9;
    }

    /* Нижняя лента превью поверх полей */
    body.single-property [data-azr-gallery-extended] .lSPager {
        position: relative;
        z-index: 9;
    }

    /* Gallery arrows (anchors) in extended widget: remove any translucent bg/blur from anchors */
    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction>a {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
    }

    /* Inner buttons: solid grey, no blur/shadow */
    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction .slick-arrow {
        background: #d7dbe2 !important;
        border-color: #d7dbe2 !important;
        color: #2f3440 !important;
        box-shadow: none !important;
        opacity: 1 !important;
    }

    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction .slick-arrow:hover,
    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction .slick-arrow:focus,
    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction .slick-arrow:active {
        background: #cfd4dc !important;
        border-color: #cfd4dc !important;
        box-shadow: none !important;
    }

    /* Force outer-side rounding only */
    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction>a.lSPrev .slick-arrow {
        border-radius: 12px 0 0 12px !important;
    }

    body.single-property [data-azr-gallery-extended] #azr-property-gallery .lSAction>a.lSNext .slick-arrow {
        border-radius: 0 12px 12px 0 !important;
    }
}