
    /* ============================================
       PROPERTY GALLERY STYLES
       ============================================ */
.home-property-gallery-listing{
    .property-gallery {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr 1fr;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
        font-family: 'FS Albert', sans-serif;
    }

    /* Card base */
    .property-gallery .property-card {
        position: relative;
        overflow: hidden;
        border-radius: 4px;
        min-height: 240px;
        background-color: #1a1a1a;
        cursor: pointer;
    }

    /* Featured card: spans left 2 cols (50%) across both rows */
    .property-gallery .property-card--featured {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
        min-height: 495px;
    }

    /* 4 small cards auto-flow into cols 3-4, filling 2x2 on the right */
    .property-gallery .property-card:not(.property-card--featured) {
        grid-column: auto;
    }

    /* Image */
    .property-gallery .property-card__image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease;
    }

    .property-gallery .property-card:hover .property-card__image {
        transform: scale(1.05);
    }

    /* Gradient overlay for text readability */
    .property-gallery .property-card::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.35) 35%,
            rgba(0, 0, 0, 0) 60%
        );
        pointer-events: none;
        z-index: 1;
    }

    /* Content */
    .property-gallery .property-card__content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 20px 22px;
        z-index: 2;
        color: #ffffff;
    }

    .property-gallery .property-card__location {
        font-family: 'FS Albert', sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.3;
        margin: 0 0 6px 0;
        color: #ffffff;
    }

    .property-gallery .property-card__type {
        font-family: 'FS Albert', sans-serif;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.4;
        margin: 0;
        color: #ffffff;
        opacity: 0.95;
    }

    .property-gallery .property-card__price {
        font-family: 'FS Albert', sans-serif;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.3;
        margin: 4px 0 0 0;
        color: #ffffff;
    }

    /* Featured card: location stays top-left, price bottom-right */
    .property-gallery .property-card--featured .property-card__content {
        padding: 25px 28px;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 15px;
    }

    .property-gallery .property-card--featured .property-card__location {
        font-size: 18px;
    }

    .property-gallery .property-card--featured .property-card__type {
        font-size: 17px;
    }

    .property-gallery .property-card--featured .property-card__price {
        font-size: 20px;
        margin: 0;
        white-space: nowrap;
    }

    .property-gallery .property-card--featured .property-card__info {
        flex: 1;
        min-width: 0;
    }

    /* ============================================
       TABLET
       ============================================ */
    @media (max-width: 1024px) {
        .property-gallery {
            gap: 15px;
        }

        .property-gallery .property-card {
            min-height: 200px;
        }

        .property-gallery .property-card--featured {
            min-height: 412px;
        }

        .property-gallery .property-card__content {
            padding: 16px 18px;
        }

        .property-gallery .property-card--featured .property-card__content {
            padding: 20px 22px;
        }

        .property-gallery .property-card__location,
        .property-gallery .property-card--featured .property-card__location {
            font-size: 15px;
        }

        .property-gallery .property-card__type,
        .property-gallery .property-card--featured .property-card__type {
            font-size: 14px;
        }

        .property-gallery .property-card__price {
            font-size: 16px;
        }

        .property-gallery .property-card--featured .property-card__price {
            font-size: 18px;
        }
    }

    /* ============================================
       MOBILE / TABLET PORTRAIT — keep gallery feel
       2 columns, featured spans full width on top
       ============================================ */
    @media (max-width: 768px) {
        .property-gallery {
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto;
            gap: 15px;
        }

        .property-gallery .property-card {
            grid-row: auto;
            grid-column: auto;
            min-height: 180px;
        }

        .property-gallery .property-card--featured {
            grid-column: 1 / span 2;
            grid-row: auto;
            min-height: 280px;
        }

        .property-gallery .property-card--featured .property-card__content {
            flex-direction: row;
            align-items: flex-end;
            justify-content: space-between;
            gap: 12px;
        }

        .property-gallery .property-card--featured .property-card__price {
            margin: 0;
        }

        .property-gallery .property-card__content {
            padding: 14px 16px;
        }

        .property-gallery .property-card__location,
        .property-gallery .property-card--featured .property-card__location {
            font-size: 14px;
        }

        .property-gallery .property-card__type,
        .property-gallery .property-card--featured .property-card__type {
            font-size: 13px;
        }

        .property-gallery .property-card__price {
            font-size: 14px;
        }

        .property-gallery .property-card--featured .property-card__price {
            font-size: 16px;
        }
    }


    /* ============================================
       SMALL MOBILE — finally collapse to 1 column
       ============================================ */
    @media (max-width: 450px) {
        .property-gallery {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .property-gallery .property-card,
        .property-gallery .property-card--featured {
            grid-column: auto;
            min-height: 240px;
        }

        .property-gallery .property-card--featured {
            min-height: 280px;
        }

        .property-gallery .property-card--featured .property-card__content {
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
        }

        .property-gallery .property-card--featured .property-card__price {
            margin-top: 4px;
        }
    }
}