:root {
    --primary-color-grid-rso: #5d6a56;
}

.rso_no_properties_found_text {
    text-align: center;
    padding: 32px;
    font-size: 1.5rem;
}

.rso_property_grid {
    padding: 32px;
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    row-gap: 48px;
}
.rso_property_grid .property-item:hover .img_wrapper img {
    transform: scale(1.1);
}
.rso_property_grid .property-item .img_wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.rso_property_grid .property-item .object_location_price_ {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 24px;
    padding: 16px 8px 0;
}
.rso_property_grid .property-item .price_ {
    text-transform: uppercase;
    font-weight: 600;
}
.rso_property_grid .property-item .location_ {
    text-transform: uppercase;
    font-weight: 600;
}

.rso_property_grid .property-item .img_wrapper img {
    object-fit: cover;
    object-position: center;
    display: block;
    aspect-ratio: 3 / 4;
    width: 100%;
    transition: transform 300ms ease;
}

.rso_property_grid .property-item .object_details_ {
    display: flex;
    column-gap: 24px;
    padding: 4px 8px 8px; 
    font-size: .875rem;
}



/* .rso_pagination */
.rso_pagination {
    position: relative;
    overflow: hidden;
    list-style: none;
    margin: 0 auto;
    padding: 48px 32px 64px;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rso_pagination .current_page_number {
    text-align: center;
}
.rso_pagination .nav_btn {
    display: inline-block;
}
.rso_pagination .nav_btn a {
    padding: 14px 16px 13px;
	background-color: #CCC0A6;
    color: #fff;
	min-width: 140px;
	font-weight: 600;
	transition: color 300ms ease, background-color 300ms ease;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style: normal;
	font-size: 1.5rem;
	text-transform: uppercase;
	text-align: center;
}
.rso_pagination .nav_btn a:hover {
    background-color: var(--primary-color-grid-rso);
}
.rso_pagination .nav_btn.prev {
    float: left;
}
.rso_pagination .nav_btn.next {
    float: right;
}


/*--------------------------------------------------------------*/
/*                        Tablet                                */
/*--------------------------------------------------------------*/
@media screen and (min-width: 800px) {
    .rso_property_grid {
        column-gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*--------------------------------------------------------------*/
/*                        Laptop                                */
/*--------------------------------------------------------------*/
@media screen and (min-width: 1280px) {
    .rso_property_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* Featured Properties */
.rso_featured_properties_wrapper {
    padding: 0;
    width: 100%;
    margin: 0 auto;
    max-width: 1350px;
}

.rso_featured_property_grid {
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
}

.rso_featured_property_grid .featured-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-end;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.featured_img_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.featured_img_wrapper img {
    object-fit: cover;
    object-position: center;
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 400ms ease;
}

.rso_featured_property_grid .featured-item:hover .featured_img_wrapper img {
    transform: scale(1.08);
}

.featured_overlay {
    position: absolute;
    height: 30%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured_badge {
    background-color: #374E2B;
    color: #FFFFFF;
    padding: 6px 14px;
    font-size: clamp(12px, 2vw, 16px);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    align-self: flex-end;
    position: absolute;
    top: 0;
    right: 0;
}

.featured_content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #ffffff;
    position: relative;
    padding: 16px;
    width: 100%;
}

.featured_header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.featured_location_section h2 {
    margin: 0 0 4px 0;
    font-size: clamp(18px, 4vw, 64px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.featured_sublocation {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.featured_reference {
    font-size: clamp(12px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 3px 6px 2px;
    background-color: #CCC0A6;
    line-height: 1;
}

.featured_details_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 550px;
}

.featured_detail_item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(13px, 2vw, 16px);
    color: #ffffff;
}

.featured_detail_item .detail_icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 1;
}

.featured_detail_item .detail_value {
    color: #ffffff;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.featured_price {
    /*grid-column: span 2;*/
    color: #ffffff;
}

@media screen and (min-width: 768px) {
    .rso_featured_property_grid:not(.single_item_in_grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .rso_featured_property_grid.single_item_in_grid .featured-item{
        aspect-ratio: 16 / 9;
    }

    .featured_badge {
        padding: 16px 32px;
    }
    .featured_content {
        padding: 24px;
    }
    .featured_location_section h3 {
        font-size: 20px;
    }
    .featured_detail_item .detail_icon {
        width: 24px;
        height: 24px;
    }
    
    .featured_details_grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 1280px) {
    .rso_featured_property_grid:not(.single_item_in_grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
    .featured_content {
        padding: 0 48px 32px 48px;
    }
}
