.featured-section {
    padding: 4rem 2rem;
    background: #F5F7FA;
}

.featured-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 1600px;
    margin: 0 auto;
    gap: 2.5rem;
    align-items: stretch;
    justify-content: space-between;
}

.featured-texts-left {
    width: 75%;
}

.featured-texts {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}

.residence-grid {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;

    display: flex;
    gap: 5rem;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5rem;
    scrollbar-width: thin;
    /* For Firefox */
    scrollbar-color: #AE8363 #D8BFAA;
    /* Thumb and Track */
    /* grid-template-columns: repeat(auto-fill, minmax(30%, 1fr)); */
}

.residence-grid::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.residence-grid::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.residence-gridresidence-grid::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px #0b1427;
}

.residence-card {
    display: inline-block;
}

.residence-card-link {
    text-decoration: none;
    color: #0B1427;
}

.featured-title {
    font-size: 52px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #0B1427;
}

.featured-title span {
    color: #1F3B73;
    font-weight: 600;
}

.featured-description {
    font-size: 24px;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    color: #0B1427;
}

.view-all-properties-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    color: #D5BFA2;
    font-size: 16px;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #D5BFA2;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.view-all-properties-btn:hover {
    background-color: #D8BFAA;
    color: #1F3B73;
    font-weight: 400;
}

.residence-thumb img {
    width: 480px;
    height: 500px;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.residence-thumb {
    position: relative;
}

.res-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
    border-radius: 4px;
}

.res-thumb-img:first-child {
    position: relative;
    z-index: 1;
}

.res-thumb-img.active {
    opacity: 1;
    z-index: 2;
}


.residence-info h3 {
    font-size: 40px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.location,
.status {
    font-size: 20px;
    font-family: 'Figtree', sans-serif;
    display: inline;
}

@media (max-width: 1024px) {
    .featured-title {
        font-size: 42px;
    }

    .featured-description {
        font-size: 20px;
    }

    .residence-thumb img {
        width: 480px;
        height: 500px;
    }

    .residence-info h3 {
        font-size: 32px;
    }

    .location,
    .status {
        font-size: 18px;
    }

    .featured-texts-left {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .featured-section {
        padding: 3rem 1.5rem;
    }

    .featured-title {
        font-size: 32px;
    }

    .featured-description {
        font-size: 18px;
    }

    .residence-info h3 {
        font-size: 28px;
    }

    .location,
    .status {
        font-size: 16px;
    }

    .featured-texts {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .residence-grid {
        gap: 2rem;
        padding-bottom: 3rem;
    }

    .view-all-properties-btn {
        font-size: 15px;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .featured-section {
        padding: 3rem 1rem;
    }

    .featured-title {
        font-size: 26px;
    }

    .featured-description {
        font-size: 16px;
    }

    .residence-info h3 {
        font-size: 24px;
    }

    .location,
    .status {
        font-size: 14px;
    }

    .residence-thumb img {
        width: 350px;
        height: 380px;
    }

    .view-all-properties-btn {
        font-size: 13px !important;
        padding: 0.75rem 1.5rem !important;
    }
}