/*
 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.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   SINGLE PROJECT
========================================================= */

.project-single-page {
    background: #f7f7f4;
    color: #173b35;
}

.project-single-page *,
.project-single-page *::before,
.project-single-page *::after {
    box-sizing: border-box;
}

.project-wrapper {
    width: 90%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HERO
========================================================= */

.project-hero {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #123d35;
}

.project-hero-image {
    position: absolute;
    inset: 0;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;

    background:
        linear-gradient(
            to top,
            rgba(7, 38, 33, 0.96) 0%,
            rgba(7, 38, 33, 0.78) 35%,
            rgba(7, 38, 33, 0.35) 70%,
            rgba(7, 38, 33, 0.12) 100%
        );
}

.project-hero-content {
    padding: 90px 0 70px;
    color: #fff;
    max-width: 850px;
}

.project-label-small {
    display: inline-block;

    margin-bottom: 15px;

    color: #d1ae62;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-hero-content h1 {
    margin: 0 0 15px;

    color: #fff;

    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 500;
}

.project-location {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.project-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        360px;

    gap: 40px;

    padding: 65px 0 80px;
}

.project-main {
    min-width: 0;
}


/* =========================================================
   CONTENT BOXES
========================================================= */

.project-intro,
.project-details,
.project-description {
    background: #fff;

    margin-bottom: 35px;
    padding: 30px;

    border: 1px solid #e6e5df;
}

.project-section-label {
    margin-bottom: 10px;

    color: #b9954b;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
}

.project-intro h2,
.project-details h2,
.project-description h2 {
    margin: 0 0 25px;

    color: #173b35;

    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
}

.project-excerpt {
    color: #666;

    font-size: 16px;
    line-height: 1.9;
}


/* =========================================================
   PROJECT DETAILS
========================================================= */

.project-details-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid #e2e1da;
    border-left: 1px solid #e2e1da;
}

.project-detail-box {
    min-height: 115px;

    padding: 22px;

    background: #fafaf7;

    border-right: 1px solid #e2e1da;
    border-bottom: 1px solid #e2e1da;
}

.project-detail-label {
    display: block;

    margin-bottom: 8px;

    color: #8a8a84;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    line-height: 1.4;
    text-transform: uppercase;
}

.project-detail-box strong {
    display: block;

    color: #173b35;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}


/* =========================================================
   BULLET POINT CONTENT
========================================================= */

.project-bullet-list {
    list-style: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.project-bullet-list li {
    position: relative;

    margin: 0 !important;
    padding: 13px 0 13px 30px !important;

    color: #555;

    font-size: 16px;
    line-height: 1.75;

    border-bottom: 1px solid #eeeeea;
}

.project-bullet-list li:last-child {
    border-bottom: 0;
}

.project-bullet-list li::before {
    content: "";

    position: absolute;

    top: 24px;
    left: 4px;

    width: 7px;
    height: 7px;

    background: #b9954b;

    border-radius: 50%;
}


/* =========================================================
   WPBAKERY CONTENT
========================================================= */

.project-wpbakery-content {
    color: #555;

    font-size: 16px;
    line-height: 1.85;
}

.project-wpbakery-content img {
    max-width: 100%;
    height: auto;
}

.project-wpbakery-content h1,
.project-wpbakery-content h2,
.project-wpbakery-content h3,
.project-wpbakery-content h4,
.project-wpbakery-content h5 {
    color: #173b35;
}

.project-wpbakery-content p {
    margin-bottom: 20px;
}
.project-wpbakery-content h3{
    margin-top:20px;
}

/* =========================================================
   SIDEBAR
========================================================= */

.project-sidebar {
    min-width: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 30px;
    align-self: start;
    height: fit-content;
}

.project-sidebar-box {
    background: #fff;

    margin-bottom: 25px;
    padding: 30px;

    border: 1px solid #e5e5df;
}

.project-sidebar-box h3 {
    margin: 0 0 15px;

    color: #173b35;

    font-size: 23px;
    line-height: 1.3;
    font-weight: 500;
}

.project-sidebar-box p {
    margin: 0 0 20px;

    color: #666;

    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   CONTACT SIDEBAR
========================================================= */

.project-contact-box {


    border-top: 5px solid #b9954b;
}

.sidebar-label {
    margin-bottom: 12px;

    color: #b9954b;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.project-contact-button,
.sidebar-download-button {
    display: block;

    width: 100%;

    padding: 15px 20px;

    background: #b9954b;
    color: #fff !important;

    text-align: center;
    text-decoration: none !important;

    font-size: 14px;
    font-weight: 700;

    border: 0;

    transition:
        background .25s ease,
        color .25s ease;
}

.project-contact-button:hover,
.sidebar-download-button:hover {
    background: #173b35;
    color: #fff !important;
}


/* =========================================================
   SIDEBAR DETAILS
========================================================= */

.sidebar-detail {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 15px;

    padding: 14px 0;

    border-bottom: 1px solid #e7e6df;
}

.sidebar-detail:last-child {
    border-bottom: 0;
}

.sidebar-detail span {
    color: #888;

    font-size: 12px;
    line-height: 1.5;
}

.sidebar-detail strong {
    color: #173b35;

    font-size: 12px;
    line-height: 1.5;

    text-align: right;
}


/* =========================================================
   BROCHURE
========================================================= */

.project-brochure-section {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
    padding: 35px;

    background: #173b35;
}

.project-brochure-section .project-section-label {
    color: #d1ae62;
}

.project-brochure-section h2 {
    margin: 0;

    color: #fff;

    font-size: 25px;
    line-height: 1.3;
}

.project-brochure-button {
    display: inline-block;

    padding: 15px 25px;

    background: #b9954b;
    color: #fff !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.project-brochure-button:hover {
    background: #fff;
    color: #173b35 !important;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.project-cta {
    padding: 65px 0;

    background: #173b35;
}

.project-cta-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.project-cta .project-section-label {
    color: #d1ae62;
}

.project-cta h2 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 34px;
    line-height: 1.25;
    font-weight: 500;
}

.project-cta p {
    margin: 0;

    color: rgba(255,255,255,.8);

    font-size: 15px;
}

.project-cta-inner > a {
    display: inline-block;

    padding: 15px 30px;

    background: #b9954b;
    color: #fff !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.project-cta-inner > a:hover {
    background: #fff;
    color: #173b35 !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .project-layout {
        grid-template-columns: 1fr;

        padding-top: 45px;
    }

    .project-sidebar {
        order: 2;
    }

    .project-main {
        order: 1;
    }

    .project-contact-box {
        position: static;
    }

}


@media (max-width: 767px) {

    .project-wrapper {
        width: 92%;
    }

    .project-hero {
        min-height: 350px;
    }

    .project-hero-image img {
        min-height: 430px;
    }

    .project-hero-content {
        padding: 55px 0;
    }

    .project-hero-content h1 {
        font-size: 38px;
    }

    .project-location {
        font-size: 16px;
    }

    .project-intro,
    .project-details,
    .project-description {
        padding: 25px;
    }

    .project-intro h2,
    .project-details h2,
    .project-description h2 {
        font-size: 26px;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-box {
        min-height: auto;
    }

    .project-brochure-section {
        display: block;
    }

    .project-brochure-button {
        margin-top: 20px;
    }

    .project-cta-inner {
        display: block;
    }

    .project-cta-inner > a {
        margin-top: 25px;
    }

}

/* =========================================================
   PROJECT IMAGE GALLERY
   ========================================================= */

.project-gallery-section {
    width: 100%;
    margin: 0 0 55px;
}

.project-gallery {
    display: grid;
    width: 100%;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 190px 190px 190px;
    gap: 7px;
    overflow: hidden;
    border-radius: 10px;
}

.project-gallery-item {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    background: #eeeeee;
}

.project-gallery-item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.project-gallery-item-2 {
    grid-column: 3;
    grid-row: 1;
}

.project-gallery-item-3 {
    grid-column: 3;
    grid-row: 2;
}

.project-gallery-item-4 {
    grid-column: 1;
    grid-row: 3;
}

.project-gallery-item-5 {
    grid-column: 2;
    grid-row: 3;
}

.project-gallery-item-6 {
    grid-column: 3;
    grid-row: 3;
}

.project-gallery-open {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
}

.project-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.project-gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.82);
}


/* =========================================================
   SEE ALL PHOTOS BUTTON
   ========================================================= */

.project-gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: max-content;
    max-width: 90%;

    padding: 12px 20px;

    transform: translate(-50%, -50%);
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;

    border-radius: 6px;
    white-space: nowrap;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.project-gallery-item:hover .project-gallery-overlay {
    background: rgba(0, 0, 0, 0.86);
    transform: translate(-50%, -50%) scale(1.03);
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

html.project-lightbox-open,
body.project-lightbox-open {
    overflow: hidden !important;
}

.project-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: stretch;
    justify-content: center;

    width: 100%;
    height: 100vh;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.project-photo-lightbox.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.project-photo-lightbox-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(3px);
}

.project-photo-lightbox-inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;

    width: 100%;
    height: 100vh;

    background: #ffffff;
}


/* =========================================================
   LIGHTBOX PHOTO VIEWER
   ========================================================= */

.project-photo-viewer {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 0;

    background: #111111;
}

.project-photo-main {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 30px 75px;
}

.project-photo-main img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;

    object-fit: contain;

    user-select: none;

    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.project-photo-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.project-photo-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}


/* =========================================================
   PREVIOUS / NEXT BUTTONS
   ========================================================= */

.project-photo-prev,
.project-photo-next {
    position: absolute;
    top: 50%;
    z-index: 15;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding: 0;

    transform: translateY(-50%);

    border: 0;
    border-radius: 5px;

    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;

    font-size: 42px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.project-photo-prev {
    left: 18px;
}

.project-photo-next {
    right: 18px;
}

.project-photo-prev:hover,
.project-photo-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.project-photo-prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

.project-photo-next:hover {
    transform: translateY(-50%) translateX(2px);
}


/* =========================================================
   PHOTO COUNTER
   ========================================================= */

.project-photo-counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 15;

    transform: translateX(-50%);

    padding: 7px 14px;

    border-radius: 5px;

    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   CONTACT SIDEBAR
   ========================================================= */

.project-photo-contact {
    position: relative;

    height: 100%;

    background: #ffffff;
    color: #153f35;

    overflow: hidden;
}

.project-photo-contact-scroll {
    height: 100%;
    overflow-y: auto;

    padding: 45px 30px;
}

.project-photo-contact h2 {
    margin: 0 0 20px;

    color: #123e34;

    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.project-photo-contact h3 {
    margin: 0 0 20px;

    color: #123e34;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}


/* =========================================================
   LIGHTBOX FORM
   ========================================================= */

.project-lightbox-form {
    width: 100%;
}

.project-lightbox-form input,
.project-lightbox-form textarea,
.project-lightbox-form select {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 16px;

    border: 1px solid #dddddd;
    border-radius: 6px;

    background: #ffffff;
    color: #555555;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.project-lightbox-form input:focus,
.project-lightbox-form textarea:focus,
.project-lightbox-form select:focus {
    border-color: #c8a65f;

    box-shadow: 0 0 0 3px rgba(200, 166, 95, 0.12);
}

.project-lightbox-form textarea {
    min-height: 105px;
    resize: vertical;
}

.project-lightbox-form p {
    margin: 0 0 12px;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.project-form-submit {
    display: block;

    width: 100%;
    min-height: 50px;

    padding: 12px 20px;

    border: 0;
    border-radius: 6px;

    background: #c8a65f;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.project-form-submit:hover {
    background: #ae8d4b;
    transform: translateY(-1px);
}


/* =========================================================
   CALL / WHATSAPP BUTTONS
   ========================================================= */

.project-lightbox-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;

    margin-top: 13px;
}

.project-lightbox-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 50px;

    padding: 10px 12px;

    border: 1px solid #c8a65f;
    border-radius: 6px;

    background: #ffffff;
    color: #c19d52;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.project-lightbox-action:hover {
    background: #c8a65f;
    color: #ffffff;
}

.project-action-icon {
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   CONTACT FORM 7 COMPATIBILITY
   ========================================================= */

.project-lightbox-form .wpcf7 {
    width: 100%;
}

.project-lightbox-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.project-lightbox-form .wpcf7 input[type="text"],
.project-lightbox-form .wpcf7 input[type="email"],
.project-lightbox-form .wpcf7 input[type="tel"],
.project-lightbox-form .wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;
}

.project-lightbox-form .wpcf7-submit {
    width: 100%;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .project-photo-lightbox-inner {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .project-photo-contact-scroll {
        padding: 30px 24px;
    }

    .project-photo-contact h2 {
        font-size: 25px;
    }

    .project-photo-contact h3 {
        font-size: 19px;
    }

    .project-photo-main {
        padding: 25px 65px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .project-gallery-section {
        margin-bottom: 35px;
    }

    .project-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows:
            230px
            150px
            150px
            150px;

        gap: 5px;
        border-radius: 7px;
    }

    .project-gallery-item-1 {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .project-gallery-item-2 {
        grid-column: 1;
        grid-row: 2;
    }

    .project-gallery-item-3 {
        grid-column: 2;
        grid-row: 2;
    }

    .project-gallery-item-4 {
        grid-column: 1;
        grid-row: 3;
    }

    .project-gallery-item-5 {
        grid-column: 2;
        grid-row: 3;
    }

    .project-gallery-item-6 {
        grid-column: 1 / 3;
        grid-row: 4;
    }

    .project-gallery-overlay {
        font-size: 13px;
        padding: 10px 14px;
    }


    /* Mobile lightbox */

    .project-photo-lightbox-inner {
        display: flex;
        flex-direction: column;

        height: 100vh;
    }

    .project-photo-viewer {
        flex: 0 0 52vh;
        min-height: 300px;
    }

    .project-photo-contact {
        flex: 1 1 auto;

        height: auto;
        min-height: 0;

        overflow: hidden;
    }

    .project-photo-contact-scroll {
        height: 100%;
        padding: 24px 20px;
    }

    .project-photo-contact h2 {
        margin-bottom: 12px;
        font-size: 22px;
    }

    .project-photo-contact h3 {
        margin-bottom: 14px;
        font-size: 18px;
    }

    .project-photo-main {
        padding: 45px 45px 35px;
    }

    .project-photo-prev,
    .project-photo-next {
        width: 42px;
        height: 42px;

        font-size: 35px;
    }

    .project-photo-prev {
        left: 10px;
    }

    .project-photo-next {
        right: 10px;
    }

    .project-photo-close {
        top: 10px;
        right: 10px;

        width: 40px;
        height: 40px;

        font-size: 28px;
    }

    .project-photo-counter {
        bottom: 10px;
    }

    .project-lightbox-actions {
        margin-bottom: 15px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .project-gallery {
        grid-template-rows:
            200px
            125px
            125px
            125px;
    }

    .project-gallery-overlay {
        font-size: 12px;
        padding: 8px 11px;
    }

    .project-photo-viewer {
        flex-basis: 47vh;
    }

    .project-photo-main {
        padding: 42px 40px 30px;
    }

    .project-photo-contact-scroll {
        padding: 20px 16px;
    }

    .project-photo-contact h2 {
        font-size: 20px;
    }

    .project-photo-contact h3 {
        font-size: 17px;
    }
}

/* */
.how-it-works {
    position: relative;
}

.how-it-works:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 40px);
    width: 180px;
    height: 12px;
    transform: translateY(-50%);
    background: radial-gradient(circle, #d5d9df 4px, transparent 5px);
    background-size: 27px 12px;
    background-repeat: repeat-x;
}
.card-investment:hover .card-inner-investment {
  transform: translateY(0);
}
@media (max-width: 767px) {
    .how-it-works:not(:last-child)::after {
        display: none;
    }

}

.wpresidence_button {
    display: none !important;
}

.elementor-field-subgroup {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.elementor-field-option {
    display: inline-flex !important;
    width: auto !important;
}