.clm-listings-grid {
    display: grid;
    width: 100%;
    gap: 20px;
}

.clm-listing-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: auto;
    position: relative;
}

.clm-listing-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.clm-listing-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.clm-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.clm-listing-item:hover .clm-listing-image img {
    transform: scale(1.05);
}

.clm-no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

/* Promoted Badge - Fixed styling */
.clm-promoted-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
    line-height: 1;
}

/* Negotiable Badge - Fixed styling */
.clm-negotiable-badge {
    background: #bfd00d;
    color: white;
    padding: 1px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: 8px 0 0 0;
    display: inline-block;
    align-self: flex-start;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
    width: auto;
}

.clm-listing-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.clm-listing-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    flex-grow: 0;
}

.clm-listing-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.clm-listing-title a:hover {
    color: #007cba;
}

.clm-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-grow: 0;
}

.clm-contact-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.clm-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 12px 0;
    flex-grow: 0;
}

.clm-listing-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    justify-content: flex-end;
}

.clm-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.clm-meta-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.clm-meta-text {
    line-height: 1.2;
    word-break: break-word;
}

.clm-no-listings {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .clm-listings-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .clm-listings-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .clm-listing-content {
        padding: 12px;
    }
    
    .clm-listing-image {
        height: 180px;
    }
    
    .clm-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .clm-promoted-badge {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .clm-negotiable-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .clm-listings-grid {
    min-height: 200px;
}

.elementor-editor-active .clm-listing-item {
    min-height: 300px;
}

/* Print Styles */
@media print {
    .clm-listing-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .clm-promoted-badge,
    .clm-negotiable-badge {
        background: #333 !important;
        color: white !important;
    }
}