﻿/* ═══════════════════════════════════════════
   STATUS OVERLAY — Big oversized text
   Bottom-right of property card image
   ═══════════════════════════════════════════ */
.status-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 14px 30px;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    z-index: 5;
    border-radius: 8px 0 0 8px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.55);
    box-shadow: -3px 3px 12px rgba(0,0,0,0.25);
    pointer-events: none;
    -webkit-text-stroke: 2px currentColor;
}

/*  LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .lightbox.active {
        display: flex;
    }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

    .lightbox-close:hover {
        opacity: 1;
    }

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s;
}

    .lightbox-prev:hover, .lightbox-next:hover {
        background: rgba(255,255,255,0.3);
    }

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .lightbox-content img {
        max-width: 90vw;
        max-height: 82vh;
        object-fit: contain;
        border-radius: 4px;
    }

.lightbox-counter {
    color: rgba(255,255,255,0.7);
    margin-top: 12px;
    font-size: 0.9rem;
}

/* HOW IT WORKS SECTION */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient( 180deg, #fde7d9 0%, /* soft peach */
    #f9d9e2 20%, /* rose blush */
    #e8dff5 45%, /* lavender haze */
    #dfe8f7 70%, /* pale sky blue */
    #f7f3e8 100% /* warm sand */
    );
    position: relative;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}


    /* Mountain silhouette background */
    .how-it-works::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 1400px;
        height: 300px;
        transform: translateX(-50%);
        background-image: url('data:image/svg+xml;utf8,\
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">\
        <path fill="%23e0d6c8" fill-opacity="0.65" d="M0,256L80,240C160,224,320,192,480,170.7C640,149,800,139,960,149.3C1120,160,1280,192,1360,208L1440,224L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path>\
        </svg>');
        background-size: cover;
        background-repeat: no-repeat;
        opacity: 0.35;
        pointer-events: none;
    }

    .how-it-works h2 {
        text-align: center;
        font-size: 2.6rem;
        margin-bottom: 70px;
        font-weight: 700;
        color: #3a2f1f;
    }

/* TIMELINE GRID */
.steps-grid {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 40px;
}

    /* COLORFUL ANIMATED LINE */
    .steps-grid::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 14px; /* thicker line */
        transform: translateX(-50%);
        background: linear-gradient( 180deg, #ffbfa3, #ff9e8a, #ff7f7f, #d88acb, #a9a7ff, #7fd4ff, #ffbfa3 );
        background-size: 100% 400%;
        animation: sunsetFlow 10s ease-in-out infinite, glowPulse 4s ease-in-out infinite;
        border-radius: 10px;
        box-shadow: 0 0 18px rgba(255, 180, 150, 0.35);
    }

/* Smooth gradient breathing */
@keyframes sunsetFlow {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Soft glow pulse */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 180, 150, 0.25);
    }

    50% {
        box-shadow: 0 0 22px rgba(255, 180, 150, 0.55);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 180, 150, 0.25);
    }
}

/* STEP CONTAINER */
.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin: 60px 0;
    position: relative;
    width: 62%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

    /* Alternating left/right */
    .step:nth-child(odd) {
        flex-direction: row-reverse;
        margin-left: auto;
        text-align: left;
    }

    .step:nth-child(even) {
        text-align: right;
    }

/* NUMBER CIRCLE */
.how-it-works .step-number {
    width: 48px; /* smaller circle */
    height: 48px;
    min-width: 48px;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    font-size: 2.8rem; /* big number */
    line-height: 1;
    font-weight: 900;
    overflow: visible; /* allows number to spill out */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* WHITE CONTENT BOX */
.step-content {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}

.step h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #3a2f1f;
    font-weight: 600;
}

.step p {
    margin: 8px 0 0;
    font-size: 1rem;
    color: #5a4a36;
    line-height: 1.55;
}

/* PATH TITLES */
.path-title {
    margin: 100px auto 40px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #3a2f1f;
}

    .path-title::after {
        content: "";
        display: block;
        width: 90px;
        height: 4px;
        background: #ffffff;
        margin: 12px auto 0;
        border-radius: 2px;
    }

/* Fade-in animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {

        .steps-grid::before {
            left: 15%; /* move timeline to left */
            transform: translateX(-50%);
            width: 14px; /* slightly thinner for mobile */
        }

    .step {
        width: 100%;
        flex-direction: column !important; /* override alternating layout */
        text-align: left !important;
        align-items: center; /* center number */
        gap: 15px;
    }

    .step-number {
        margin: 0 auto; /* center the number */
    }

    .step-content {
        width: 100%;
    }
}
