*{
    margin: 0;
    backface-visibility: hidden;
    box-sizing: border-box;
}
.cont {
    background: linear-gradient(to right,#f8f9fa,#eaf7ef);
    min-height: 85vh;
        padding-top: 80px !important;    /* مسافة من فوق */
    padding-bottom: 80px !important; /* مسافة من تحت */
    display: block;
    width: 100%;
}
.owners{
    display: grid;
    justify-self: center;
    margin-bottom: 10px;
    margin-top: 10px;
    color: #1e3e30;
}

.tag-orange{
    border: #b3ccb6 solid 1px;
    background-color: #e3f0e4;
    margin-left: 7px;
    color: #2c4535;
}

.details{
    width: 320px;
    height: fit-content;
    padding: 16px;
    direction: rtl;
    transition: 0.3s;
    border-radius: 18px;
    background-color: #ffffff;
    border: 1px solid #d6e3d6;
    box-shadow: 0 10px 24px rgba(21, 49, 30, 0.06);
}

.details:hover {
    transform: translateY(-5px);
}
 
.mini-stat{
    border-radius: 12px;
    border: none;
    padding: 10px 14px;
    width: fit-content;
    display: inline-block;
    background-color: #f3faf3;
    color: #2a3b2d;
    text-align: center;
    font-size: 14px;
}
.close-btn {
    background-color: transparent;
    color: #2a3b2d;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 15px;
    background: none;
}
.btn-outline-info {
    background-color: transparent;
    border: 1px solid #3d8e6e;
    color: #2a3b2d;
}
.btn-info {
    background-color: #3d8e6e;
    border-color: #3d8e6e;
    color: white;
}



.val{
    display: block;
    font-weight: bold;
    color: #161819;
    
}

.stars-row .rating-text {
    font-weight: bold;
    color: #2f6e50;
}


.custom-modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px); 
}

/* صندوق المحتوى */
.custom-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    direction: rtl;
    animation: fadeIn 0.2s ease-in-out;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-lg { max-width: 800px; } 

/* زر الإغلاق */

/* تنسيقات إضافية للأزرار */
.btn-success {
    text-decoration: none;
    background: #3d8e6e;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    
}
.btn-primary {
    background: #2f6e50;
    border-color: #2f6e50;
    color: white;
    
}
.contact-info {
    border: 1px solid #d6e3d6;
    border-radius: 14px;
    background: #f7faf5;
    padding: 16px;
    margin-bottom: 16px;
}
.contact-row {
    display: flex;
    justify-content: start;
    gap: 30px;
    border: 1px solid #d0dbd0;
    border-radius: 12px;
    padding: 10px 9px;
    margin-bottom: 10px;
    background: white;
}
.contact-row:last-child {
    margin-bottom: 0;
}
.contact-label {
    color: #556d57;
    font-weight: 700;
}
.contact-value {
    color: #1e3e30;
    text-align: left;
}
button#load-more-btn.btn.btn-success{
    display: flex;
    justify-content: center;
}
.btn{
    display: flex;
    justify-self: center;
}
/* أنيميشن الظهور */
@keyframes fadeIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ------------------------- */

 @media (min-width: 380px) { 
    .details{
        width:80%;
        font-size:14px;

    }
 }
@media (min-width: 768px) {
    .details {
        width: 48%; 
        font-size: 16px;
    }
}
@media (min-width: 992px) { 
    .details{
        width: 30%;
        font-size:18px;
    }
 }


@media (min-width: 1200px) {
    .details {
        width: 23.5%;
            

    }
}
