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

.properties-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;
}

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

.properties-texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.properties-filter-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 6rem;
    z-index: 20;
    background-color: #F5F7FA;
    padding: 1rem 0;
}

.properties-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.properties-filter button {
    color: #0B1427;
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-family: 'Figtree', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    background-color: transparent;
}

.properties-filter button.active {
    color: #1F3B73;
    font-weight: 600;
}

.properties-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); */
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    width: 100%;
    padding-bottom: 5rem;
}

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

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

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

.properties-card {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 1s ease;
    pointer-events: auto;
}

.properties-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.hidden {
    display: none !important;
}


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

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

.properties-title span {
    color: #1F3B73;
}

.properties-description {
    font-size: 24px;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    color: #0B1427;
    text-align: center;
    max-width: 1140px;
}

.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;
}

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

.properties-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) {
    .properties-title {
        font-size: 42px;
    }

    .properties-description {
        font-size: 20px;
        padding: 0 1rem;
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .properties-thumb img {
        height: 400px;
        object-fit: cover;
        width: 100%;
        max-width: 100%;
    }

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

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

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

    .properties-filter button {
        font-size: 20px;
    }
}

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

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

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

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .properties-filter {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .properties-filter-wrapper {
        top: 3.5rem;
    }

    .properties-filter button {
        font-size: 18px;
    }

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

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

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

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

    .properties-title {
        font-size: 26px;
        text-align: center;
    }

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

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

    .properties-filter-wrapper {
        top: 3rem;
    }

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

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

    .properties-thumb img {
        max-height: 280px;
    }

    .properties-filter {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
        margin-bottom: 0;
    }

    .properties-filter button {
        font-size: 16px;
    }
}