- /*
 Theme Name:   WPResidence Child Theme
 Theme URI:    https://themeforest.net/item/wp-residence-real-estate-wordpress-theme/7896392
 Description:  WPResidence child theme
 Author:       WpEstate
 Author URI:   http://wpestate.org
 Template:     wpresidence
 Version:      5.6.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/
/* Nexest property carousel */
.nexest-home-carousel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    padding: 65px 0 30px;
    background: rgba(255, 255, 255, .4);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: 24px;
}

.nexest-home-carousel::before,
.nexest-home-carousel::after {
    content: none;
}

.nexest-home-carousel .elementor-widget-WpResidenc_Items_Slider {
    width: 100%;
    max-width: 1400px;
    min-width: 0;
    margin-inline: auto;
}

.nexest-home-carousel .slider_container,
.nexest-home-carousel .shortcode_slider_wrapper {
    width: 100%;
    max-width: none;
}

.nexest-home-carousel .shortcode_slider_wrapper {
    overflow: hidden;
    margin:0px !important;
}

.nexest-home-carousel .shortcode_slider_list {
    position: relative;
    margin-bottom: 0;
    padding-bottom: 55px;
}

.nexest-home-carousel .shortcode_slider_list .slick-list {
    overflow: hidden;
    padding-top: 25px;
    padding-bottom: 30px;
}

/* Existing property card styling */
.nexest-home-carousel .slick-list .property_listing {
    padding: 10px;
    background: #fff;
}

.nexest-home-carousel .property_listing .listing_unit_price_wrapper {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.nexest-home-carousel .property_listing .price_label {
    font-size: 14px;
    line-height: 1.4;
}

.nexest-home-carousel .property_listing h4,
.nexest-home-carousel .property_listing h4 a {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.nexest-home-carousel .property_listing .property_listing_details_v2,
.nexest-home-carousel .property_listing_details_v2_item,
.nexest-home-carousel .property_listing_details_v2 .icon_label {
    font-size: 14px;
    line-height: 1.7;
}

/* Desktop perspective: final values from your existing overrides */
@media (min-width: 1025px) {
    .nexest-home-carousel .shortcode_slider_list .slick-list {
        perspective: 1100px;
        perspective-origin: 50% 45%;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .nexest-home-carousel .slick-track {
        transform-style: preserve-3d;
    }

    .nexest-home-carousel .slick-track > .slick-slide {
        --nx-x: 0%;
        --nx-z: -300px;
        --nx-angle: 0deg;
        --nx-scale: .82;

        position: relative;
        z-index: 1;
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        filter: none;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform-style: preserve-3d;
        transform-origin: 50% 50%;
        transform:
            translateX(var(--nx-x))
            translateZ(var(--nx-z))
            rotateY(var(--nx-angle))
            scale(var(--nx-scale));
        transition:
            transform 500ms cubic-bezier(.22, .61, .36, 1),
            opacity 350ms ease;
    }

    .nexest-home-carousel .slick-track > .slick-current,
    .nexest-home-carousel .slick-current + .slick-slide,
    .nexest-home-carousel .slick-current + .slick-slide + .slick-slide,
    .nexest-home-carousel .slick-current + .slick-slide + .slick-slide + .slick-slide,
    .nexest-home-carousel .slick-current + .slick-slide + .slick-slide + .slick-slide + .slick-slide {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
        will-change: transform;
    }

    .nexest-home-carousel .slick-track > .slick-current {
        --nx-z: -140px;
        --nx-angle: 30deg;
        --nx-scale: .95;
    }

    .nexest-home-carousel .slick-current + .slick-slide {
        --nx-x: 4%;
        --nx-z: -75px;
        --nx-angle: 24deg;
        --nx-scale: 1;
        z-index: 2;
    }

    .nexest-home-carousel .slick-current + .slick-slide + .slick-slide {
        --nx-z: 0px;
        --nx-scale: 1.2;
        z-index: 3;
    }

    .nexest-home-carousel .slick-current + .slick-slide + .slick-slide + .slick-slide {
        --nx-x: -4%;
        --nx-z: -75px;
        --nx-angle: -24deg;
        --nx-scale: 1;
        z-index: 2;
    }

    .nexest-home-carousel .slick-current + .slick-slide + .slick-slide + .slick-slide + .slick-slide {
        --nx-z: -140px;
        --nx-angle: -30deg;
        --nx-scale: .95;
    }
}

/* Existing pagination */
/* Existing Slick arrows, positioned below the cards */
.nexest-home-carousel .shortcode_slider_list > .slick-dots {
    display: none;
}

.nexest-home-carousel .shortcode_slider_list > button.slick-arrow {
    position: absolute;
    top: auto;
    bottom: 5px;
    right: auto;
    width: 44px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #a99b85;
    color: #fff;
    font-size: 0;
    transform: none;
    z-index: 4;
}

.nexest-home-carousel .shortcode_slider_list > button.slick-prev {
    left: calc(50% - 44px);
    border-radius: 999px 0 0 999px;
}

.nexest-home-carousel .shortcode_slider_list > button.slick-next {
    left: 50%;
    border-radius: 0 999px 999px 0;
}

.nexest-home-carousel .shortcode_slider_list > button.slick-arrow::before {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 36px;
    opacity: 1;
}

.nexest-home-carousel .shortcode_slider_list > button.slick-prev::before {
    content: "←";
}

.nexest-home-carousel .shortcode_slider_list > button.slick-next::before {
    content: "→";
}

.nexest-home-carousel .shortcode_slider_list > button.slick-arrow:hover,
.nexest-home-carousel .shortcode_slider_list > button.slick-arrow:active {
    background: #927f61;
}

.nexest-home-carousel .shortcode_slider_list > button.slick-arrow:focus-visible {
    outline: 2px solid #927f61;
    outline-offset: 3px;
}

/* Preserve the theme's responsive slide counts */
@media (max-width: 1024px) {
    .nexest-home-carousel {
        padding: 35px 0 20px;
    }
}

@media (max-width: 550px) {
    .nexest-home-carousel {
        padding: 25px 0 15px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nexest-home-carousel .slick-track > .slick-slide {
        transition: none;
    }
}

/* Home Contact Section */

/* Curved ivory edge */
.elementor .nexest-contact-info {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.elementor .nexest-contact-info::after {
    content: "";
    display: block;
    position: absolute;
   inset: 0 -26px 0 auto;
    width: 90px;
    height: 100%;
    pointer-events: none;
    background: #151515 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 600' preserveAspectRatio='none'%3E%3Cpath fill='%23F3EFE6' d='M0 0H70C100 140 100 190 60 300S10 470 50 600H0Z'/%3E%3Cpath fill='none' stroke='%23BEA56E' stroke-width='3' d='M70 0C100 140 100 190 60 300S10 470 50 600'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Remaining form colors */
.nexest-contact #wpforms-form-27616 .wpforms-field-label {
    color: #f5f3ee;
}

.nexest-contact #wpforms-form-27616 :is(
    input[type="text"], input[type="email"],
    input[type="tel"], select, textarea
) {
    background: #222;
    color: #f5f3ee;
    border: 1px solid #626262;
    border-radius: 8px;
}

.nexest-contact #wpforms-form-27616 ::placeholder {
    color: #b8b8b8;
    opacity: 1;
}

.nexest-contact #wpforms-submit-27616 {
    background: #bea56e;
    color: #111;
    border-radius: 8px;
    width: 100%;
    padding: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nexest-contact #wpforms-submit-27616:hover {
    background: #cbb580;
}

/* Remove the vertical curve when columns stack */
@media (max-width: 900px) {
    .elementor .nexest-contact-info::after {
        display: none;
    }
}


/* Testimonials */

.nexest-home-testimonials .owl-carousel .owl-dots{
    display: none;
}

.nexest-home-testimonials#testimonials_napa {
    .wpestate_testimonial_slider {
        width: 100% !important;
        max-width: 770px !important;
    }

    .owl-stage-outer {
        padding-block: 45px 95px;
    }

    .wpestate_testimonial_slider .item {
        position: relative;
        display: flex;
        align-items: center;
        gap: 30px;
        height: auto !important;
        min-height: 400px;
        padding: 85px 35px 70px !important;
        background: transparent !important;
        border-radius: 0;
        overflow: visible;
        isolation: isolate;
        box-shadow: none;
    }

    /* Sloping card with curved tail */
    .item::before {
        content: "";
        position: absolute;
        inset: 0 0 -70px;
        z-index: -1;
        pointer-events: none;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 770 500' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 145Q0 112 35 105L715 8Q770 -4 770 52V380Q770 420 730 420H620Q620 460 650 490Q590 460 555 420H40Q0 420 0 380Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
        filter: drop-shadow(0 8px 5px #00000026);
    }

    .item .item_testimonal_image {
        order: -1;
        flex: 0 0 30%;
        width: 30%;
        height: 300px;
        margin-top: -70px;
        border: 5px solid #fff;
        border-radius: 35px;
        background-position: center top;
        background-size: cover;
    }

    .item .item_testimonial_content {
        flex: 1;
        width: auto;
        height: auto;
        min-width: 0;
        padding: 0;
        background: transparent !important;
        text-align: left;
    }

    .item .item_testimonial_title {
        margin-bottom: 16px;
        color: #94792f;
        font-size: 12px;
        letter-spacing: 1px;
    }

    .item .item_testimonial_text p {
        margin: 0;
        font: 500 17px/1.65 "Roboto", sans-serif;
        color: #383838;
        text-align: left;
    }

    .item .item_testimonial_name,
    .item .item_testimonial_job {
        color: #383838;
        text-align: right;
    }

    .item .item_testimonial_name {
        font-size: 18px;
        font-weight: 600;
    }

    /* Tablet and mobile */
    @media (max-width: 1024px) {
        .elementor-widget-Wpresidence_Testimonial_Slider {
            width: 100%;
            min-width: 0;
        }

        .wpestate_testimonial_slider {
            max-width: 100% !important;
        }

        .item .item_testimonal_image {
            display: block;
        }

        .item .item_testimonial_content {
            overflow-wrap: anywhere;
        }

        .owl-nav {
            position: static;
            display: flex;
            justify-content: center;
            gap: 12px;
            width: 100%;
            margin: 0 0 12px;
        }

        .owl-nav :is(.owl-prev, .owl-next) {
            position: static;
            margin: 0;
        }
    }

    /* Mobile */
    @media (max-width: 767px) {
        .wpestate_testimonial_slider .item {
            flex-direction: column;
            gap: 20px;
            min-height: 0;
            padding: 45px 24px 110px !important;
        }

        .item .item_testimonal_image {
            flex: none;
            width: 150px;
            max-width: 100%;
            height: 200px;
            margin-top: -35px;
        }

        .item .item_testimonial_content {
            flex: none;
            width: 100%;
        }
    }
}

@media (max-width: 767px){
#nexest-home-listing .elementor-18618 .elementor-element.elementor-element-adbbb7d .control_tax_wrapper {
        justify-content: center;
        column-gap: 20px;
        row-gap: 20px;
    }
    #nexest-home-listing .control_tax_wrapper{
      row-gap: 16px;
    }
    #nexest-home-listing .control_tax_wrapper .control_tax_sh{
      padding: 10px;
    border: 1px solid #000000;
    flex-direction: row;
    }
    #nexest-home-listing .control_tax_wrapper .control_tax_sh.tax_active{
      border: 1px solid #94792F94;
    }
    .nexest-home-carousel .slider_container .shortcode_slider_wrapper{
      margin-top:0px;
    }
  }


  /* Home page first section */
    .nexest-find-your-prop .elementor-tabs-view-horizontal .wpestate-elementor-nav-tabs{
        border:none;
    }
  .nexest-find-your-prop .elementor-tabs-view-horizontal .wpestate-elementor-nav-tabs ul{
    background-color: #000000;
    justify-content: center;
  }
   .nexest-find-your-prop .elementor-tabs-view-horizontal .wpestate-elementor-nav-tabs ul li a svg{
    fill:#ffffff !important;
    width: 24px !important;
    height: 24px !important;
   }
.nexest-find-your-prop .elementor-tabs-view-horizontal .wpestate-elementor-nav-tabs ul li .nav-link.active svg{
fill:#94792f !important;
      }
      .nexest-find-your-prop .elementor-tabs-view-horizontal .wpestate-elementor-nav-tabs ul li .nav-link{
        display: inline-flex;
      }
  .nexest-find-your-prop .elementor-tabs-view-horizontal .tab-content .tab-pane{
    background-color: #000000 !important;
  }

.nexest-category-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    height: auto;
    box-sizing: border-box;
    border: 3px solid transparent;
    border-radius: 20px;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(0, 0, 0, .95) 100%
    );
    background-clip: padding-box;
    pointer-events: none;
}