.properties-items.grid-view { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.properties-items.list-view { display: flex; flex-direction: column; gap: 1rem;}

.properties-card {  display: flex; flex-direction: column; gap: 1rem;width: 100%; background: #fff;border-radius: 1rem;padding: 0.25rem;}
.properties-card a { text-decoration: none; color: #333; }

.properties-items .property-desc { display: none;}

.properties-items.grid-view .properties-card { flex-direction: column; align-items: center; justify-content: stretch; text-align: center;}
.properties-items.list-view .properties-card { flex-direction: row; align-items: stretch; justify-content: space-between; }

.properties-card-title {
    font-family: Onest;
font-weight: 600;
font-style: SemiBold;
font-size: 24px;
leading-trim: NONE;
line-height: 32px;
letter-spacing: 0%;
color: rgba(19, 20, 21, 1);

}

.properties-card .property-card-photo {
    width: 100%;                 /* ширина родителя */
    aspect-ratio: 5 / 3;         /* современный способ задать пропорции */
    overflow: hidden;
    border-radius: 12px;
    background: #f0f2f5;
    flex-shrink: 0;
}
.properties-items.list-view  .property-card-photo {
    max-width: 312px;
    aspect-ratio: 1 / 1; 
}

.properties-card .property-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.properties-items.list-view .property-main-info { flex: 1; display: flex; flex-direction: column; gap: 1rem;}
.properties-items.list-view .property-desc { display: block; max-height: 60px; overflow-y: hidden;
                                             font-family: Onest;
font-weight: 400;
font-size: 14px;
line-height: 20px;
color: rgba(118, 122, 140, 1);


}

.property-card-info {}

.properties-items.list-view .property-card-body { display: flex; flex-direction: row;}

.properties-items.list-view .property-main-info { order:1;}
.properties-items.list-view .property-secondary-info { order:2;}


.properties-items.list-view .property-card-info { display: flex; flex-direction: column; gap: 1rem; padding: 0.75rem 0; justify-content: space-between;}
.properties-items.list-view .property-card-info .property-card-body { display: flex; gap: 1rem;}
.properties-items.list-view .property-card-info .property-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;}


.properties-items.list-view .property-card-info .properties-card-agent { display: flex; gap: 1.5rem; align-items: center;}
.properties-items.list-view .property-card-info .properties-card-agent .property-agent-info { margin-bottom: 0;}
.properties-items.list-view .property-card-info .properties-card-agent .property-agent-img { width: 48px; height:48px;}
.properties-items.list-view .property-card-info .properties-card-agent .property-agent-appoinment { font-size: 0.875rem; line-height: 1.25rem;}
.properties-items.list-view .property-card-info .properties-card-agent .property-agent-name { font-size: 1rem; line-height: 1.5rem;}


.properties-items.list-view .properties-card-meta {font-family: Onest;
font-weight: 400;
font-style: Regular;
font-size: 14px;
leading-trim: NONE;
line-height: 20px;
letter-spacing: 0%;
color: rgba(118, 122, 140, 1);

}







.properties-items.list-view .property-card-body .property-secondary-info { display: flex; gap: 1rem; }
.properties-items.list-view .property-card-body .property-secondary-info .property-prices { text-align: right; color: rgba(19, 20, 21, 1);

font-family: Onest;
font-weight: 600;
font-style: SemiBold;
font-size: 24px;
leading-trim: NONE;
line-height: 32px;
letter-spacing: 0%;


}
.properties-items.list-view .property-card-body .property-secondary-info .property-actions { display: flex; flex-direction: column; gap: 0.5rem;}



.property-actions__btn {
    display: inline-block;
    
    width: 40px;
height: 40px;
border-radius: 10px;
padding: 12px;
gap: 4px;
background: rgba(242, 244, 247, 1);
border:0;
cursor: pointer;
}
.property-actions__btn:before { content:"";display: block; width:16px;height:16px; }
.property-actions__btn:hover {}
.property-actions__btn--favorite:before { background-image: url('../images/icons/favorite.svg');}
.property-actions__btn--compare:before { background-image: url('../images/icons/compare.svg');}
.property-actions__btn--share:before { background-image: url('../images/icons/share.svg');}


.properties-items.grid-view .property-card-info {}


.properties-items.grid-view .property-actions { display: none!important;}
.properties-items.grid-view .properties-card-meta { display: none!important;}
.properties-items.grid-view .property-agent-info { display: none!important;}
.properties-items.grid-view .properties-card-title {font-family: Onest;
font-weight: 400;
font-style: Regular;
font-size: 16px;
leading-trim: NONE;
line-height: 24px;
letter-spacing: 0%;
}

.properties-items.grid-view .property-card-body { display: flex; flex-direction: column;gap: 0.5rem;}
.properties-items.grid-view .property-main-info { order:2; gap: 0.5rem; display: flex; flex-direction: column;}
.properties-items.grid-view .property-secondary-info { order:1;}

.properties-items.grid-view .property-prices {
    font-family: Onest;
font-weight: 500;
font-style: Medium;
font-size: 20px;
leading-trim: NONE;
line-height: 24px;
letter-spacing: 0%;
}

.properties-items.grid-view .property-card-info { display: flex; flex-direction: column; gap: 1rem; justify-content: space-between;    flex: 1;}

.properties-items.grid-view .properties-card-phone {}
.properties-items.grid-view .properties-card-phone a { width: 100%; background: rgba(237, 243, 254, 1)!important;color: rgba(19, 20, 21, 1)!important;

 }
.properties-items.grid-view .properties-card-phone a:hover {background: rgba(223, 234, 255, 1)!important;
}