﻿/*
 * Property Page Rescue Styles
 * Single property page only.
 */


/* Скрываем ненужные секции */

body.single-estate_property #single-overview-section,
body.single-estate_property #wpestate_property_description_section,
body.single-estate_property #accordion_property_energy_savings,
body.single-estate_property #accordion_property_address,
body.single-estate_property #accordion_property_details_map,
body.single-estate_property #accordion_property_near_by,
body.single-estate_property #accordion_property_page_views,
body.single-estate_property #accordion_property_schedule_tour,
body.single-estate_property .agentpict,
body.single-estate_property .property_reviews_wrapper {
    display: none !important;
}


/* Слайдер фото: фикс схлопывания при загрузке + фикс прыжка высоты */


/* min-height резервирует место до инициализации owl-carousel + серый фон вместо тёмного */

body.single-estate_property .wpestate_property_carousel {
    min-height: 614px !important;
    background-color: #b4b4b5 !important;
}


/* Иконки слайдера: карта слева, фото справа */

body.single-estate_property #slider_enable_map {
    order: -1 !important;
}


/* Фон при загрузке фото */

body.single-estate_property .owl-stage-outer {
    background-color: #b4b4b5 !important;
}


/* Фиксируем высоту owl-stage и картинок — предотвращает прыжок при листании */

@media (min-width: 1100px) {
    body.single-estate_property .owl-stage-outer,
    body.single-estate_property #property_slider_carousel .owl-stage-outer {
        height: 604px !important;
    }
    /* body.single-estate_property #property_slider_carousel .owl-item img {
        height: 604px !important;
        width: 100% !important;
        object-fit: cover !important;
    } */
}


/* @media (max-width: 1199px) {
    body.single-estate_property .owl-stage-outer,
    body.single-estate_property #property_slider_carousel .owl-stage-outer {
        height: auto !important;
    }
} */

@media (max-width: 1199px) {
    .owl-theme .owl-nav {
        margin-top: 0!important;
    }
    body.single-estate_property .wpestate_property_carousel {
        min-height: 0 !important;
    }
    body.single-estate_property #property_slider_carousel .owl-item img {
        height: auto !important;
        object-fit: contain!important;
    }
}


/* Затемнение превью: активный — без затемнения, неактивные — чуть темнее */

body.single-estate_property .wpestate_property_carousel.carouselhorizontal .carousel-indicators .active img {
    opacity: 1 !important;
}

body.single-estate_property .wpestate_property_carousel.carouselhorizontal .carousel-indicators a img,
body.single-estate_property .wpestate_property_carousel.carouselhorizontal .carousel-indicators li img {
    opacity: 0.6 !important;
}

body.single-estate_property .wpestate_property_carousel.carouselhorizontal .carousel-indicators a img:hover,
body.single-estate_property .wpestate_property_carousel.carouselhorizontal .carousel-indicators li img:hover {
    opacity: 0.8 !important;
}


/* Полоса превью слайдера — серый фон как на оригинале */

body.single-estate_property .carusel-back,
body.single-estate_property .caption-wrapper,
body.single-estate_property .wpestate_property_carousel.carouselhorizontal .caption-wrapper,
body.single-estate_property .caption-wrapper.closed {
    background-color: #b4b4b5 !important;
    background: #b4b4b5 !important;
}


/* Кружочки пагинации: наши span скрываем — работает нативный .carousel-round-indicators */

body.single-estate_property .wpestate_property_carousel .caption-wrapper span[data-slide-to] {
    display: none !important;
}


/* Активный кружочек — полностью белый */

body.single-estate_property .carousel-round-indicators a.active,
body.single-estate_property .carousel-round-indicators li.active {
    background-color: rgba(255, 255, 255, 1) !important;
}

body.single-estate_property .wpestate_top_property_navigation,
body.single-estate_property .listing_detail.property_internal_id,
body.single-estate_property #googleMap,
body.single-estate_property #gmap_wrapper,
body.single-estate_property .gmap-controls,
body.single-estate_property #openmap,
body.single-estate_property #gmap-control {
    display: none !important;
}

body.single-estate_property .master_header,
body.single-estate_property .header_wrapper,
body.single-estate_property .header_wrapper_inside {
    background: #fff !important;
}

body.single-estate_property .header_wrapper_inside {
    justify-content: flex-end !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

body.single-estate_property .header_wrapper_inside .logo {
    margin-right: auto !important;
    margin-left: -10px !important;
}

body.single-estate_property .header_wrapper_inside .wpresidence-navigation-menu {
    margin-left: auto !important;
    margin-right: -16px !important;
}

body.single-estate_property .header_wrapper_inside .user_menu_wrapper:empty {
    display: none !important;
}


/* Баннер под хедером — точная копия .wpestate_header_image с /all-properties/ */

body.single-estate_property .header_media {
    display: block !important;
    position: relative !important;
    height: 150px !important;
    max-height: 150px !important;
    width: 100% !important;
    background-image: url('/media/header.png') !important;
    background-color: #ffffff !important;
    background-size: cover !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

@media (max-width: 1199px) {
    body.single-estate_property .header_media {
        height: 60px !important;
        max-height: 60px !important;
        background-attachment: scroll !important;
    }
}

body.single-estate_property .content_wrapper,
body.single-estate_property .wpresidence-content-container-wrapper,
body.single-estate_property .site-content,
body.single-estate_property #content_container {
    background: transparent !important;
}

body.single-estate_property .wpresidence_property_page_title_area {
    position: relative !important;
    margin: 15px 0 30px !important;
    padding: 0 !important;
    width: 100% !important;
}

body.single-estate_property .wpresidence_property_page_title_area .entry-title.entry-prop {
    margin: 10px 0 0 !important;
    font-size: 28px !important;
    line-height: 36.4px !important;
    font-weight: 400 !important;
    color: #b4b4b5 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-family: 'Open Sans', sans-serif;
}

body.single-estate_property .wpresidence_property_page_title_area .price_area {
    margin: 0 auto !important;
    padding-top: 8px !important;
    font-size: 22px !important;
    line-height: 22px !important;
    font-weight: 300 !important;
    color: #b4b4b5 !important;
    text-align: center !important;
    float: none !important;
    display: block !important;
    font-family: 'Open Sans', sans-serif;
}

body.single-estate_property .wpresidence_property_page_title_area .notice_area {
    position: relative !important;
    margin-top: 14px !important;
    padding: 16px 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    text-align: center !important;
    border-top: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

body.single-estate_property .wpresidence_property_page_title_area .property_categs,
body.single-estate_property .wpresidence_property_page_title_area .adres_area {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 26.4px !important;
    font-weight: 400 !important;
    color: #353535 !important;
}

body.single-estate_property .wpresidence_property_page_title_area .single_property_labels,
body.single-estate_property .wpresidence_property_page_title_area .property_status_wrapper,
body.single-estate_property .wpresidence_property_page_title_area .property_status,
body.single-estate_property .wpresidence_property_page_title_area .property_label {
    display: none !important;
}

body.single-estate_property .wpresidence_property_page_title_area .property_categs a,
body.single-estate_property .wpresidence_property_page_title_area .adres_area a {
    color: #353535 !important;
}


/* #add_favorites: текст "add to favorites" слева, сердечко справа */

body.single-estate_property .wpresidence_property_page_title_area #add_favorites {
    position: absolute !important;
    right: 0 !important;
    top: 15px !important;
    color: #b4b4b5 !important;
    font-size: 12px !important;
    line-height: 26px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}

body.single-estate_property .wpresidence_property_page_title_area #add_favorites::after {
    display: none !important;
}

body.single-estate_property .wpresidence_property_page_title_area #add_favorites i {
    color: #f39c9f !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 15px !important;
    height: 15px !important;
}


/* .prop_social: flex, все иконки 17px */

body.single-estate_property .wpresidence_property_page_title_area .prop_social {
    position: absolute !important;
    right: 0 !important;
    bottom: 2px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #b4b4b5 !important;
}


/* Обёртки соцсетей — выровнять по центру */

body.single-estate_property .wpresidence_property_page_title_area .prop_social a {
    color: #8593a9 !important;
    font-size: 17px !important;
    line-height: 17px !important;
    display: flex !important;
    align-items: center !important;
    height: 17px !important;
}


/* Все иконки в prop_social — 17px */

body.single-estate_property .wpresidence_property_page_title_area .prop_social i,
body.single-estate_property .wpresidence_property_page_title_area .prop_social>i {
    color: #b4b4b5 !important;
    font-size: 15px !important;
    line-height: 15px !important;
    height: 15px !important;
    display: flex !important;
    align-items: center !important;
}


/* no_views: иконка глаза + число в ряд */

body.single-estate_property .wpresidence_property_page_title_area .no_views {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 15px !important;
    color: #b4b4b5 !important;
}

body.single-estate_property .wpresidence_property_page_title_area .no_views i {
    color: #b4b4b5 !important;
    font-size: 15px !important;
    line-height: 15px !important;
    height: 15px !important;
}


/* Контактная форма агента */


/* Убираем CALL и WhatsApp */

body.single-estate_property .realtor-contact-buttons {
    display: none !important;
}


/* Строка агента: одна горизонтальная полоса — facebook+имя слева, email+телефон справа */

body.single-estate_property .wpestate_single_agent_details_wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
}


/* Колонки агента — вместо двух col-md-6 делаем одну строку */

body.single-estate_property .agentpic-wrapper {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 10px 0 !important;
    margin-right: auto !important;
}

body.single-estate_property .agent_details {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 10px 0 !important;
    gap: 20px !important;
}


/* Скрываем фото агента и должность */

body.single-estate_property .agent-listing-img-wrapper,
body.single-estate_property .agent_position,
body.single-estate_property .agent_details h3 {
    display: none !important;
}


/* Иконка Facebook + имя агента */

body.single-estate_property .agent_unit_social_single {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #b4b4b5 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

body.single-estate_property .agent_unit_social_single a {
    color: #b4b4b5 !important;
    font-size: 14px !important;
    text-decoration: none !important;
}


/* Имя "Next Altea": 18px, серый #b4b4b5, bold 600 — как h4.best_agents в оригинале */

body.single-estate_property .agent_unit_social_single .agent-name-label {
    color: #b4b4b5 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}


/* Детали агента: телефон и email — 13px, тёмный как в оригинале */

body.single-estate_property .agent_detail {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: rgb(53, 53, 53) !important;
}

body.single-estate_property .agent_detail a {
    font-size: 13px !important;
    color: rgb(53, 53, 53) !important;
    text-decoration: none !important;
}

body.single-estate_property .agent_detail svg {
    width: 14px !important;
    height: 14px !important;
    fill: rgb(53, 53, 53) !important;
    flex-shrink: 0 !important;
}


/* Email перед телефоном (как в оригинале) */

body.single-estate_property .agent_email_class {
    order: -1 !important;
}


/* custom_details_container и заголовок формы — полная ширина */

body.single-estate_property .custom_details_container,
body.single-estate_property .wpestate_single_agent_details_header_wrapper,
body.single-estate_property .alert-message,
body.single-estate_property .schedule_wrapper,
body.single-estate_property .contact_form_flex_wrapper {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}


/* Граница под строкой агента */

body.single-estate_property .agentpic-wrapper,
body.single-estate_property .agent_details {
    /* border-bottom: 1px solid #f0f0f0 !important; */
    margin-bottom: 0 !important;
}


/* Date/Time в один ряд (когда показан темой) */

body.single-estate_property .schedule_wrapper[style*="display: block"],
body.single-estate_property .schedule_wrapper[style*="display:block"] {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    flex-wrap: nowrap !important;
}

body.single-estate_property .schedule_wrapper input,
body.single-estate_property .schedule_wrapper select {
    flex: 1 !important;
    min-width: 0 !important;
}


/* "Contact Me" + "Schedule a showing?" — в одну строку */

body.single-estate_property .wpestate_single_agent_details_header_wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

body.single-estate_property #show_contact {
    float: none !important;
    margin: 0 !important;
}


/* Кнопка Schedule a showing? */

body.single-estate_property .schedule_meeting {
    display: inline-block !important;
    background-color: #353535 !important;
    color: #fff !important;
    padding: 3px 15px 5px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    border-radius: 2px !important;
}


/* Поля формы — три в ряд */

body.single-estate_property .contact_form_flex_input_wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

body.single-estate_property .contact_form_flex_input_wrapper input {
    flex: 1 !important;
    min-width: 0 !important;
}


/* Textarea: высота и цвет текста как в оригинале */

body.single-estate_property .contact_form_flex_wrapper textarea {
    height: 100px !important;
    min-height: 100px !important;
    color: rgb(181, 181, 182) !important;
}


/* Кнопка отправки */

body.single-estate_property .agent_submit_class {
    display: inline-block !important;
    background-color: #bab9ba !important;
    border-color: #bab9ba !important;
}

.listing-content .wpestate_single_agent_details_wrapper {
    margin: 0;
}

.wpresidence_button {
    padding: 10px 14px;
}

.schedule_meeting {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.agent_unit_social_single a {
    line-height: 45px;
}

.agent_details {
    font-family: 'Open Sans', sans-serif;
}


/* Плейсхолдеры в полях формы — серый как в оригинале */

body.single-estate_property .contact_form_flex_input_wrapper input::placeholder,
body.single-estate_property .contact_form_flex_wrapper input::placeholder,
body.single-estate_property .schedule_wrapper input::placeholder {
    color: rgb(181, 181, 182) !important;
    opacity: 1 !important;
}


/* Иконка аккордиона (стрелка ∧) — в 2 раза меньше */

body.single-estate_property .accordion-button::after {
    width: 10px !important;
    height: 10px !important;
    background-size: 10px !important;
}

.accordion-item:first-of-type,
.accordion-item:first-of-type>.accordion-header .accordion-button {
    font-family: 'Open Sans', sans-serif;
    color: #bcbcbd!important;
    font-size: 14px;
    padding: 20px 30px 0px!important;
    font-weight: 600!important;
}

.accordion-item:first-of-type>.accordion-header .accordion-button:hover {
    color: #353535!important;
}


/* Дропдаун Time: дефолтный вариант серый, остальные тёмные */

body.single-estate_property .schedule_wrapper select.schedule_hour {
    color: rgb(181, 181, 182) !important;
    font-size: 13px !important;
}

body.single-estate_property .schedule_wrapper select.schedule_hour option {
    color: rgb(53, 53, 53) !important;
}

.acc_google_maps:hover,
body.single-estate_property .schedule_meeting:hover,
.wpresidence_button:hover,
.twitter_wrapper,
.slider_control_right:hover,
.slider_control_left:hover,
.comment-form #submit:hover,
.carousel-control-theme-prev:hover,
.carousel-control-theme-next:hover,
.wpb_btn-info:hover,
#advanced_submit_2:hover,
#agent_submit:hover,
.single-content input[type="submit"]:hover,
.agent_contanct_form input[type="submit"]:hover,
.submit_action:hover,
.submit_listing:hover,
.unit_type3_details:hover {
    background-color: #b5b5c4 !important;
}

.listing_detail.col-md-4.property_default_price {
    display: none;
}


/* =============================================
   МОБИЛЬНАЯ ВЕРСТКА (max-width: 767px)
   ============================================= */

@media (max-width: 767px) {
    /* --- notice_area: убираем absolute, делаем нормальный поток --- */
    body.single-estate_property .wpresidence_property_page_title_area {
        padding-bottom: 0 !important;
    }
    /* add_favorites — в нормальный поток, по центру */
    body.single-estate_property .wpresidence_property_page_title_area #add_favorites {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        margin: 6px auto 0 !important;
        width: auto !important;
    }
    /* prop_social — в нормальный поток, по центру */
    body.single-estate_property .wpresidence_property_page_title_area .prop_social {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        margin: 4px auto 0 !important;
        width: auto !important;
    }
    /* notice_area убираем паддинг снизу чтобы не было лишнего места */
    body.single-estate_property .wpresidence_property_page_title_area .notice_area {
        padding-bottom: 6px !important;
    }
    /* --- Слайдер на мобильном --- */
    /* Скрываем полосу превью (thumbnail-сетку) */
    body.single-estate_property .wpestate_property_carousel .carousel-indicators,
    body.single-estate_property .wpestate_property_carousel .carusel-back,
    body.single-estate_property .wpestate_property_carousel .caption-wrapper {
        display: none !important;
    }
    /* Кружочки — скрываем на мобильном */
    body.single-estate_property .carousel-round-indicators {
        display: none !important;
    }
    /* Слайдер: position relative чтобы кружочки позиционировались внутри */
    body.single-estate_property .wpestate_property_carousel {
        position: relative !important;
        min-height: 0 !important;
    }
    /* Стрелки влево/вправо — показываем */
    body.single-estate_property .slider_control_right,
    body.single-estate_property .slider_control_left {
        display: flex !important;
    }
}