/* ========================================
   Overlay
======================================== */

#npb-project-popup-overlay {

    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, .78);

    backdrop-filter: blur(6px);

    z-index: 999999;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

#npb-project-popup-overlay.show {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

#npb-project-popup-overlay.show .npb-project-right img {

    transform: scale(1.07);
}


/* ========================================
   Popup Card
======================================== */

#npb-project-popup {

    position: relative;

    width: min(960px, 92vw);

    background:
        linear-gradient(135deg,
            #06152d 0%,
            #082246 45%,
            #0b2d5a 100%);

    border-radius: 20px;

    overflow: hidden;

    border: 1px solid rgba(216, 165, 74, .18);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .45),
        0 0 40px rgba(216, 165, 74, .08);

    transform:
        translateY(25px) scale(.96);

    transition:
        transform .35s ease;
}

#npb-project-popup::before {

    content: '';

    position: absolute;

    inset: 0;

    border-radius: 20px;

    padding: 1px;

    background:
        linear-gradient(130deg,
            rgba(216, 165, 74, .65),
            transparent,
            rgba(216, 165, 74, .35));

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    pointer-events: none;
}

#npb-project-popup-overlay.show #npb-project-popup {

    transform:
        translateY(0) scale(1);
}


/* ========================================
   Grid
======================================== */

.npb-project-grid {

    display: grid;

    grid-template-columns:
        1fr 1.15fr;
}


/* ========================================
   Left Content
======================================== */

.npb-project-left {

    position: relative;
    overflow: hidden;

    padding: 38px;

    color: #fff;

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .015),
            rgba(255, 255, 255, 0));
}

.npb-project-left::before {

    content: '';

    position: absolute;

    width: 400px;
    height: 400px;

    top: -200px;
    left: -200px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(224, 183, 95, .08),
            transparent 70%);

    pointer-events: none;
}

.npb-popup-tag {

    display: inline-block;

    padding: 8px 14px;

    border-radius: 50px;

    background: rgba(216, 165, 74, .15);

    color: #e0b75f;

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.npb-project-title {

   margin: 16px 0 14px;

    font-size: 38px;

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -.5px;

    max-width: 380px;
}

.npb-location,
.npb-apartment {

    display: flex;

    align-items: center;

    gap: 12px;

    width: fit-content;

    margin-top: 14px;

    padding: 8px 14px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .05);

    border:
        1px solid rgba(224, 183, 95, .18);

    color: #fff;

    font-size: 15px;

    font-weight: 500;

    backdrop-filter: blur(12px);

    transition: .3s ease;
}

.npb-location:hover,
.npb-apartment:hover {

    transform: translateX(4px);

    border-color:
        rgba(224, 183, 95, .40);
}

.npb-possession {

    margin-top: 18px;

    color:
        rgba(255, 255, 255, .88);

    font-size: 15px;
}

.npb-hero-line {

    margin-top: 18px;

    color: rgba(255, 255, 255, .80);

    font-size: 15px;

    line-height: 1.7;
}


/* ========================================
   Price Box
======================================== */

.npb-price-box {
    position: relative;

    overflow: hidden;

    margin-top: 22px;

    padding: 16px 18px;

    border: 1px solid rgba(216, 165, 74, .25);

    border-radius: 14px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .06),
            rgba(255, 255, 255, .02));

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.npb-price-box::after {

    content: '';

    position: absolute;

    top: 0;
    left: -120%;

    width: 70px;
    height: 100%;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(224, 183, 95, .35),
            rgba(255, 255, 255, .18),
            rgba(224, 183, 95, .35),
            transparent);

    animation:
        npbPriceShine 5s infinite;
}

@keyframes npbPriceShine {

    100% {

        left: 180%;
    }
}

.npb-price-box span {

    display: block;

    font-size: 12px;

    text-transform: uppercase;

    color: #e0b75f;

    letter-spacing: .5px;
}

.npb-price-box strong {
    display: block;

    margin-top: 6px;

    font-size: 42px;

    line-height: 1;

    font-weight: 800;

    color: #fff;

    text-shadow:
        0 0 18px rgba(224, 183, 95, .15);
}


/* ========================================
   CTA
======================================== */

.npb-whatsapp-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 24px;

    min-height: 44px;

    padding: 0 20px;

    border-radius: 12px;
    background:
        linear-gradient(135deg,
            #f3cd74,
            #e0b75f,
            #c9952f);
    color: #07192f;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.npb-whatsapp-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 18px 40px rgba(224, 183, 95, .35);

    color: #07192f;
}

.npb-popup-tag {
    background:
        linear-gradient(135deg,
            rgba(224, 183, 95, .18),
            rgba(224, 183, 95, .08));
    animation:
        npbFloat 4s ease-in-out infinite;
}

@keyframes npbFloat {

    50% {

        transform:
            translateY(-3px);
    }
}


/* ========================================
   Image
======================================== */

.npb-project-right {

    position: relative;

    overflow: hidden;

    background: #05111f;

    display: flex;

    align-items: center;
    justify-content: center;
}

.npb-project-right::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(to left,
            transparent,
            rgba(5, 17, 31, .15));

    z-index: 2;
}

.npb-project-right img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    filter:
        contrast(1.05) saturate(1.08) brightness(1.03);

    transition:
        transform 8s ease;
}


/* ========================================
   Close Button
======================================== */

#npb-project-popup-close {

    position: absolute;

    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, .95);

    color: #111;

    cursor: pointer;

    z-index: 5;

    font-size: 20px;
}


/* ========================================
   Tablet
======================================== */

@media (max-width: 991px) {

    .npb-project-grid {

        grid-template-columns: 1fr;
    }

    .npb-project-right {

        order: -1;
    }

    .npb-project-right img {

        height: 280px;

        object-fit: cover;
    }
}


/* ========================================
   Mobile
======================================== */

@media (max-width: 767px) {

    #npb-project-popup {

        width: 95vw;
    }

    .npb-project-left {

        padding: 24px;
    }

    .npb-project-title {

        font-size: 26px;
    }

    .npb-price-box strong {

        font-size: 24px;
    }

    .npb-whatsapp-btn {

        width: 100%;
    }

    .npb-project-right img {

        height: 220px;
    }
}