/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 07 2025 | 04:49:47 */
/* =================================================================== */
/* == Fully Corrected Style & Layout for ListingPro "listingcampaings" Widget == */
/* =================================================================== */

/* --- 1. THE CLEARFIX HACK --- */
/* This hides the theme's invisible 'line break' after the 3rd item */
.listingcampaings .row > .clearfix {
    display: none !important;
}

/* --- 1a. EQUAL HEIGHT FIX --- */
/* This tells the row to manage cards as a flexible group, forcing equal heights */
.listingcampaings .row {
    display: flex;
    flex-wrap: wrap;
}


/* --- 2. THE 4-COLUMN LAYOUT FIX (FOR DESKTOPS) --- */
/* This targets the theme's default column class and overrides it */
@media (min-width: 1024px) {
    .listingcampaings .col-md-4 {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}


/* --- 3. MAIN CARD STYLING --- */
/* This creates the modern card look */
.listingcampaings .lp-listing {
    background-color: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden; /* Keeps the image inside the rounded corners */
    height: 100%; /* This is the key property that the new flex rule activates */
    display: flex;
    flex-direction: column;
}


/* --- 4. IMAGE STYLING --- */
/* This makes all images a consistent height and prevents stretching */
.listingcampaings .lp-listing-top-thumb {
    height: 180px;
}
.listingcampaings .lp-listing-top-thumb img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}


/* --- 5. CONTENT AREA STYLING --- */
/* This section handles the text content and pushes the buttons to the bottom */
.listingcampaings .lp-listing-bottom {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This is the magic that makes the card fill the height */
}

/* Title Styling */
.listingcampaings .lp-listing-bottom h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-bottom: 8px !important;
}
.listingcampaings .lp-listing-bottom h4 a {
    color: #111 !important;
}

/* "Be the first to review" & Location text */
.listingcampaings .lp-listing-bottom .lp-listing-stars,
.listingcampaings .lp-listing-bottom .lp-listing-location {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}


/* --- 6. BUTTON STYLING --- */
/* This styles the 'Call' and 'Show Map' buttons at the bottom */
.listingcampaings .lp-new-grid-bottom-button {
    margin-top: auto; /* This pushes the buttons to the very bottom of the card */
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.listingcampaings .lp-new-grid-bottom-button ul {
    display: flex; /* Lines up the two buttons */
    justify-content: space-between;
    gap: 10px; /* Adds space between the buttons */
    margin: 0 !important;
    padding: 0 !important;
}

.listingcampaings .lp-new-grid-bottom-button li {
    width: 100%; /* Each button will take up half the available space */
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

/* The actual button link */
.listingcampaings .lp-new-grid-bottom-button li a,
.listingcampaings .lp-new-grid-bottom-button li p { /* Targets the call button too */
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 5px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    background-color: #f0f4f7;
    color: #333;
    transition: all 0.2s ease-in-out;
    margin: 0 !important;
}
.listingcampaings .lp-new-grid-bottom-button li a:hover,
.listingcampaings .lp-new-grid-bottom-button li p:hover {
    background-color: #0d6efd; /* You can change this to your main brand color */
    color: #ffffff !important;
}

/* Specific styling for the phone number text inside the call button */
.listingcampaings .lp-new-grid-bottom-button li p a.grind-number {
    display: none; /* Hides the number by default as per the theme's functionality */
}