/* Custom Mobile Fixes for Property Cards */

/* Mobile responsive fixes for property cards on search results page */
@media (max-width: 767px) {
    /* Fix property card layout on mobile */
    .item-listing-wrap.item-wrap-v1 .item-body {
        padding: 15px !important;
    }
    
    /* Adjust title font size on mobile */
    .item-listing-wrap.item-wrap-v1 .item-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    /* Adjust address font size on mobile */
    .item-listing-wrap.item-wrap-v1 .item-address {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
    
    /* Fix BHK and Area section on mobile */
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-start {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-start > div {
        width: 100%;
    }
    
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-start .text-end {
        text-align: left !important;
    }
    
    /* Adjust BHK and Area font sizes on mobile */
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-start > div > div:first-child {
        font-size: 22px !important;
    }
    
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-start > div > div:first-child span {
        font-size: 14px !important;
    }
    
    /* Fix Price and Possession section on mobile */
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-center > div {
        width: 100%;
    }
    
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-center .text-end {
        text-align: left !important;
    }
    
    /* Adjust price font size on mobile */
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-center > div:first-child {
        font-size: 20px !important;
    }
    
    /* Adjust possession font size on mobile */
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-center .text-end > div:first-child {
        font-size: 16px !important;
    }
    
    /* Ensure card maintains proper spacing on mobile */
    .item-listing-wrap.item-wrap-v1 .item-wrap {
        margin-bottom: 20px;
    }
    
    /* Fix card border radius on mobile */
    .item-listing-wrap.item-wrap-v1 .item-wrap-no-frame {
        border-radius: 15px !important;
    }
}

/* Tablet responsive fixes */
@media (min-width: 768px) and (max-width: 991px) {
    .item-listing-wrap.item-wrap-v1 .item-body {
        padding: 18px !important;
    }
    
    .item-listing-wrap.item-wrap-v1 .item-title {
        font-size: 20px !important;
    }
    
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-start > div > div:first-child {
        font-size: 24px !important;
    }
    
    .item-listing-wrap.item-wrap-v1 .d-flex.justify-content-between.align-items-center > div:first-child {
        font-size: 22px !important;
    }
}
