.elementor-icon-wrapper {
    display: flex;
}

.content .container_inner {
    width: 100% !important;
}

/*header*/
nav.mobile_menu {
    position: absolute;
    top: 100%;
    left: 0;

    ul {
        padding: 0 45px 20px;
        width: unset;

        @media screen and (max-width: 420px) {
            padding: 0 15px 15px;
        }
    }
}

.header_top {
    background-color: rgba(255, 62, 62, 1) !important;

    .left {
        float: unset;
        text-align: center;

        .header-left-widget {
            float: unset !important;
        }
    }

    .right {
        display: none;
    }
}

.logo_wrapper .q_logo a {
    display: flex;
    align-items: center;
}

.logo_wrapper .q_logo img, .footer_inner img {
    width: 158px !important;
    height: auto !important;
}

@media screen and (min-width: 1001px) {
    .logo_wrapper .q_logo img {
        top: 0;
        transform: translateY(-50%);
    }
}

.wp-block-social-links .wp-social-link svg {
    height: 1.5em !important;
    width: 1.5em !important;
}

.qodef-property-list-holder.qodef-pl-layout-standard .qodef-pl-item .qodef-pl-features-holder .qodef-pl-feature-item {

    .qodef-pl-feature-image img {
        width: 24px;
        margin-right: 4px;
    }

    .qodef-pl-feature-value {
        font-family: 'Poppins', sans-serif;
        font-style: normal;
    }
}

.testimonials_c_holder .flex-control-nav {
    margin-top: 24px;
}

/*single property*/
.wp-singular:has(.custom-single__container), .wrapper_inner:has(.custom-single__container) {
    overflow: visible;
}

.qodef-property-single-holder:has(.custom-single__container) {
    padding: 0 20px;
}

.custom-single__container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;

    .custom-single__grid {
        width: 100%;
        display: grid;
        grid-template-columns: 62% auto;
        grid-template-rows: auto 1fr;
        grid-gap: 40px 20px;
        grid-template-areas:
        "a b"
        "c b"
        "c b";
        align-content: end;

        @media screen and (max-width: 1024px) {
            grid-template-columns: 100%;
            grid-gap: 0;
            grid-template-areas:
            "a"
            "b"
            "c";
        }
    }

    .custom-single__gallery {
        position: relative;
        grid-area: a;
        overflow: hidden;
        width: 100%;

        .qodef-property-single-gallery-holder {
            padding: 0;
            background-color: transparent;

            .owl-item img {
                width: 595px;
                height: 500px;
                object-fit: cover;
                object-position: center center;
                border-radius: 8px;

                @media screen and (max-width: 1024px) {
                    height: 400px;
                }

                @media screen and (max-width: 767.98px) {
                    height: 250px;
                }
            }
        }
    }

    .custom-single__tabs {
        grid-area: c;

        .qodef-property-single-outer {
            margin-bottom: 40px;
            padding: 30px;

            @media screen and (max-width: 768px) {
                padding: 20px;
            }

            .tab-header {
                display: inline-flex;
                flex-wrap: wrap;
                gap: 10px;
                align-items: center;
                border-bottom: 1px solid #D2D2D2;
                padding-bottom: 20px;

                @media screen and (max-width: 767.98px) {
                    gap: 0;
                }

                .header-tab-item {

                    h5 {
                        padding: 16px 20px;
                        border-radius: 50px;
                        font-family: 'Poppins', sans-serif;
                        font-size: 16px;
                        line-height: 1.2;
                        font-weight: 500;
                        cursor: pointer;
                        transition: 0.3s ease;

                        @media screen and (max-width: 768px) {
                            padding: 10px 20px;
                        }
                    }

                    &.active h5 {
                        background-color: #c4e8e9;
                    }

                    &:hover h5, &:focus h5 {
                        background-color: #FF3E3E;
                        color: #FFF;
                    }
                }
            }

            .tab-content-item {
                display: none;
                padding: 0 20px;

                @media screen and (max-width: 768px) {
                    padding-top: 20px;
                }

                &.active {
                    display: block;
                }

                .qodef-property-label-style {
                    display: none;
                }

                .qode-grid-col-6 {
                    width: 100%;
                }

                .qodef-label-items-label {
                    display: flex;
                    align-items: center;
                    gap: 6px;
                    width: fit-content;

                    .qodef-label-icon {
                        flex-shrink: 0;
                        display: flex;
                    }
                }

                .qodef-property-label-items-holder {
                    padding-bottom: 30px;
                    border: none;
                }

                .qodef-property-floor-plans-accordion-holder {
                    .qode-title-holder {
                        display: flex;
                    }

                    .qodef-accordion-title-content {
                        gap: 40px;
                    }

                    .qodef-accordion-title-value {
                        line-height: 1.5;
                    }

                    .qodef-accordion-title-info {
                        line-height: 2;
                    }
                }

                .qodef-property-feature-items .qode-grid-col-4 {

                    &:has(.qodef-feature.qodef-feature-inactive) {
                        display: none;
                    }

                    @media screen and (max-width: 1024px) {
                        width: 50%;
                        float: left;
                    }

                    @media screen and (max-width: 600px) {
                        width: 100%;
                        float: none;
                    }
                }
            }
        }
    }

    .custom-single__sidebar {
        display: flex;
        flex-direction: column;
        max-width: 570px;
        height: fit-content;
        grid-area: b;
        z-index: 1;
        position: sticky;
        top: 70px;

        @media screen and (max-width: 1024px) {
            position: static;
            max-width: 100%;
            padding: 40px 0;
        }

        .qodef-property-intro-info-holder {
            @media screen and (max-width: 1024px) {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 20px;
            }

            @media screen and (max-width: 768px) {
                grid-template-columns: 1fr;
                gap: 40px;
            }
        }

        .qodef-property-basic-info-outer {
            padding: 0;
            border: none;
        }

        .qodef-property-title-section {
            padding: 30px;

            @media screen and (max-width: 768px) {
                padding: 20px;
            }
        }

        .qodef-property-title-inner {
            gap: 20px;
            align-items: flex-start;

            @media screen and (max-width: 768px) {
                padding: 0;
                gap: 0;
            }
        }

        .qodef-property-basic-info-inner-left {
            display: flex;
            flex-direction: column;
            gap: 14px;

            @media screen and (max-width: 768px) {
                gap: 4px;
            }

            .qodef-property-content {
                gap: 4px;
            }

            .qodef-property-value {
                color: #717171;
            }
        }

        .qodef-property-social-share {
            padding-top: 40px;

            .social_share_holder {
                display: flex;
                gap: 40px;
                align-items: center;
            }

            a:has(.social_share_title) {
                flex-shrink: 0;
                padding-top: 6px;
                pointer-events: none;
            }

            .icon-basic-share, .social_share_title {
                color: #000000;
                font-family: 'Poppins', sans-serif;
                font-size: 20px;
                line-height: 29px;
                font-weight: 500;
            }

            .icon-basic-share {
                margin-right: 15px;
            }

            .social_share_dropdown {
                position: static;
                visibility: visible;
                opacity: 1;
                transform: none;
                width: 100%;
                padding: 0;

                .inner_arrow {
                    display: none;
                }

                ul {
                    background-color: transparent;
                    display: flex;
                    gap: 10px;
                    width: 100%;

                    li img {
                        width: 28px;
                        transition: 0.3s ease;

                        &:hover, &:focus {
                            transform: scale(1.1);
                        }
                    }
                }
            }
        }

        .qodef-property-map {
            display: flex;
            flex-direction: column;
            gap: 20px;
            border: none;
            padding: 40px 0;

            @media screen and (max-width: 1024px) {
                padding: 0;
            }

            .qodef-property-map-label {
                @media screen and (max-width: 1024px) {
                    height: unset;
                }
                @media screen and (max-width: 768px) {
                    margin: 0;
                }
            }

            .qodef-property-map-object {
                @media screen and (max-width: 1024px) {
                    height: 100%;
                    overflow: hidden;
                }
            }

            .google_map_shortcode_holder, .qode_google_map, #custom-map-single {
                height: 300px !important;

                @media screen and (max-width: 1024px) {
                    height: 100% !important;
                    min-height: 300px;
                }
            }

            .qodef-property-map-items {
                display: block;
                width: 100%;
            }

            .qodef-property-map-address {
                display: none;
            }
        }
    }

    .container_inner {
        width: 100%;
    }

    .qodef-property-related-posts-holder {
        .qode-outer-space {
            @media screen and (max-width: 600px) {
                margin: 0;
            }
        }

        .qode-item-space {
            @media screen and (max-width: 1024px) {
                margin-bottom: 30px !important;
            }
        }

        .qodef-pl-item .qodef-pli-image img {
            aspect-ratio: 2 / 1.1;
            object-fit: cover;
        }
    }
}

.qodef-property-enquiry-inner {
    max-width: 90%;
}

.qodef-property-list-holder.qodef-pl-gallery .qode-outer-space .qode-item-space {
    margin-bottom: 30px !important;
}

/*filter*/
.custom-filter {
    display: flex;
    gap: 20px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        gap: 0;
    }

    .custom-select__wrapper {
        width: 100%;
        max-width: 250px;

        @media screen and (max-width: 768px) {
            max-width: 100%;
        }

        &:has(.inactive) {
            width: 0;
        }
    }

    .custom_select_wrap {
        position: relative;
        height: fit-content;
        min-height: 56px;
        border-bottom: 1px solid #000;
        color: #000;
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        cursor: pointer;
        @media screen and (max-width: 768px) {
            font-size: 16px;
        }

        &:after {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 0;
            content: '';
            display: block;
            width: 36px;
            height: 36px;
            background: url(../images/expand_more.svg) center / contain no-repeat;
            transition: 350ms ease-in-out;
            cursor: pointer;
        }

        &.open {
            .custom_option_wrap {
                display: flex;
            }

            &:after {
                transform: translateY(-50%) rotate(-180deg);
            }
        }

        &.inactive {
            display: none;
        }

        .custom_option_wrap, .main {
            position: absolute;
        }

        .main {
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            white-space: nowrap;
            width: 90%;
            overflow: hidden;
            pointer-events: none;
            text-transform: capitalize;

            @media screen and (max-width: 768px) {
                border-width: 1px;
                padding: 0;
            }
        }

        .custom_option_wrap {
            z-index: 20;
            top: 100%;
            left: 0;
            right: 0;
            padding: 10px 0;
            display: none;
            flex-direction: column;
            height: fit-content;
            max-height: 200px;
            overflow: auto;
            background-color: #fff;
            border: 1px solid #000;
            color: #000;

            @media screen and (max-width: 767.98px) {
                max-height: 150px;
            }

            &::-webkit-scrollbar {
                display: block;
                width: 10px;
                @media screen and (max-width: 768px) {
                    width: 4px;
                }
            }

            &::-webkit-scrollbar-button {
                background-color: transparent;
                height: 2px;
            }

            &::-webkit-scrollbar-track {
                background-color: transparent;
            }

            &::-webkit-scrollbar-thumb {
                border-radius: 8px;
                background-color: rgba(0, 0, 0, 0.3);
                opacity: 0.6;
                cursor: pointer;
                width: 8px;
                @media screen and (max-width: 768px) {
                    width: 4px;
                }
            }

            span {
                cursor: pointer;
                padding: 10px;
                line-height: 120%;
                text-transform: capitalize;

                &:hover {
                    background-color: rgba(195, 231, 232, 0.4);
                }
            }
        }
    }

    .button__wrapper {
        flex-grow: 1;
        display: flex;
        justify-content: flex-end;

        @media screen and (max-width: 768px) {
            justify-content: flex-start;
            margin-top: 20px;
        }

        button {
            min-width: 240px;
            min-height: 60px;
            font-size: 16px;
            cursor: pointer;

            @media screen and (max-width: 1024px) {
                min-width: 160px;
            }
        }
    }

    select {
        position: absolute;
        pointer-events: none;
        visibility: hidden;
        height: 1px;
        min-height: initial;
    }
}

.vertical {
    .custom-filter {
        max-width: 374px;
        flex-direction: column;
        gap: 10px;

        @media screen and (max-width: 768px) {
            gap: 0;
        }

        .custom-select__wrapper {
            max-width: unset;
        }

        .button__wrapper {
            justify-content: flex-start;
            margin-top: 20px;

            @media screen and (max-width: 768px) {
                margin-top: 20px;
            }
        }
    }
}

.custom-cities__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;

    @media screen and (max-width: 767.98px) {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    &.vertical {
        @media screen and (max-width: 767.98px) {
            grid-template-columns: 1fr;

            .custom-cities__item-title {
                font-size: 20px;
            }
        }
    }

    .custom-cities__item {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .custom-cities__item-image {
        aspect-ratio: 1;
        overflow: hidden;
        width: 100%;
        max-width: 350px;
        border-radius: 50%;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.4s ease;
        }

        img:hover, img:focus {
            transform: scale(1.05);
        }
    }

    .custom-cities__item-title {
        font-size: 20px;
        line-height: 1.2;

        @media screen and (max-width: 767.98px) {
            font-size: 16px;
        }
    }
}

/*property archive map*/
#custom-map {
    .gm-style {
        .gm-style-iw-c {
            max-height: fit-content !important;
            padding: 0 0 12px 12px !important;

            .gm-style-iw-d {
                padding: 0 12px 6px 0 !important;
                overflow: auto !important;
                max-height: fit-content !important;
            }

            .gm-style-iw-chr {
                button {
                    width: 36px !important;
                    height: 36px !important;

                    span {
                        margin: 6px !important;
                    }
                }
            }
        }

        .gm-style-iw-tc {
            display: none;
        }
    }

    .map-card {
        width: 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;

        img {
            width: 100%;
            height: auto;
            aspect-ratio: 2 / 1.2;
            object-fit: cover;
        }

        h4 {
            font-size: 16px;
            line-height: 1.5;
            text-align: center;
            font-weight: 600;
        }

        a {
            font-family: 'Poppins', sans-serif;
            font-size: 12px;
            font-weight: 500;
            text-decoration: underline;
            color: #000;
            transition: 0.3s ease;

            &:hover, &:focus {
                color: #FF3E3E;
            }
        }
    }
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    line-height: 1.2;
    transform: translateY(-5px);
}

.custom-single__container .qodef-property-single-action {
    display: none !important;
}

.custom-property-enquiry-cta .qbutton {
    width: fit-content;
    text-align: center;
    box-sizing: border-box;
}

.custom-property-enquiry-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .25);
    z-index: 10050;
    display: none;
    overflow-y: auto;
    padding: 40px 16px 32px;
    box-sizing: border-box;
}

.custom-property-enquiry-inner {
    position: relative;
    width: min(388px, calc(100% - 32px));
    margin: auto;
    background-color: #fff;
    height: fit-content;
}

.custom-property-enquiry-heading {
    position: relative;
    height: 52px;
}

.custom-property-enquiry-title {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 0 52px 0 37px;
    line-height: 52px;
    box-sizing: border-box;
    margin: 0;
    color: #fff;
    background-color: #000;
}

.custom-property-enquiry-close {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    top: 0;
    right: 0;
    border: 0;
    cursor: pointer;
    color: #fff;
    background-color: #1abc9c;
    padding: 0;
    font-size: 20px;
}

.custom-property-enquiry-form {
    padding: 34px;
    box-sizing: border-box;
}

.custom-property-enquiry-form form {
    margin: 0;
}

.custom-property-enquiry-form input[type='text'],
.custom-property-enquiry-form input[type='email'],
.custom-property-enquiry-form textarea.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    margin: 2px 0 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    color: #000;
    border-radius: 0;
    border: 1px solid #000;
    box-sizing: border-box;
}

.custom-property-enquiry-form textarea.wpcf7-form-control.wpcf7-textarea {
    max-width: 100%;
    margin-bottom: 20px;
    max-height: 120px;
}

.custom-property-enquiry-form .wpcf7-submit,
.custom-property-enquiry-form .qbutton {
    width: 100%;
    box-sizing: border-box !important;
    text-align: center;
}

.custom-property-enquiry-open {
    overflow: hidden;
}

@media screen and (max-width: 767.98px) {

    .custom-property-enquiry-inner {
        width: 100%;
    }
}

.custom-property-enquiry-form {
    .wpcf7-response-output {
        margin-bottom: 0 !important;
        line-height: 1.4;
        text-transform: unset !important;
        letter-spacing: 0 !important;
    }

    .wpcf7-spinner {
        vertical-align: middle;
    }
}
