/* Residencias Section Styles */
.residencias-section {
    background-color: #F8F9FA;
    position: relative;
    padding-top: 6rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

/* Background subtle abstract pattern */
.residencias-section::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -10rem;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 233, 146, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.gallery-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    padding-bottom: 4rem;
}

.gallery-item {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex: 1;
}

.gallery-left,
.gallery-right {
    height: 380px;
    z-index: 10;
    max-width: 320px;
    width: 100%;
}

.gallery-left {
    transform: translateX(40px);
}

.gallery-right {
    transform: translateX(-40px);
}

.gallery-center {
    height: 480px;
    z-index: 20;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-pill {
    background-color: #163923;
    color: white;
    border-radius: 9999px;
    padding: 2rem 3rem;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: 90%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(22, 57, 35, 0.3);
}

@media (max-width: 1024px) {
    .gallery-container {
        flex-direction: column;
        gap: 2rem;
    }

    .gallery-left,
    .gallery-right {
        transform: translateX(0);
        height: 300px;
        max-width: 100%;
    }

    .gallery-center {
        height: 350px;
        max-width: 100%;
    }

    .feature-pill {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin: 2.5rem auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 1.5rem !important;
        padding: 2.5rem 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        z-index: 30;
    }
    
    .feature-pill p {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }
}