/* --- GRID SETUP --- */
.pj-property-grid {
    display: grid;
    /* Allows for a flexible grid, min 300px wide cards */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* --- CARD ITEM STRUCTURE --- */
.pj-property-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex; 
    flex-direction: column; /* Stacks image and content */
    text-decoration: none; /* Removes underline from link */
    color: inherit; /* Ensures text color isn't link blue */
}

/* HOVER EFFECT */
.pj-property-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}

/* --- IMAGE SECTION --- */
.pj-entry-featured-image-url {
    position: relative;
    overflow: hidden;
    /* Optional: Aspect Ratio for consistency. If not needed, remove. */
    /* padding-top: 67%; /* 3:2 aspect ratio */
}

.pj-entry-featured-image-url img {
    width: 100%;
    /* Set a fixed height to ensure all cards have the same image size */
    height: 220px; 
    object-fit: cover;
    transition: transform 0.5s ease; 
}

/* IMAGE HOVER ZOOM */
.pj-property-item:hover .pj-entry-featured-image-url img {
    transform: scale(1.05);
}

/* IMAGE OVERLAY */
.pj-blog-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05); 
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.pj-property-item:hover .pj-blog-post-overlay {
    opacity: 1;
}

/* --- CONTENT SECTION --- */
.pj-post-content {
    padding: 20px; /* Increased padding slightly to match common Divi styling */
    position: relative;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

/* TITLE STYLING (matching the dipi-blog-slider h2) */
.pj-entry-title {
    font-size: 23px; /* Larger title font */
    line-height: 1.3em;
    text-align: center;
    font-weight: 700;
    color: #135ea7; /* Dark blue color */
    margin-bottom: 8px;
}

/* EXCERPT/TEXT STYLING */
.pj-post-text {
    font-weight: 300;
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes meta to the bottom */
}

/* --- PROPERTY META (Bed, Bath, Price) --- */

/* Container for property meta */
.pj-property-meta {
    display: flex;
    align-items: center;
    gap: 15px; /* space between items */
    margin-top: 10px;
    font-family: inherit;
    font-size: 18px;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid #eee; /* Separator line for meta section */
}

/* Price styling: rounded pill (matching .dipi-price) */
.pj-price {
    background-color: #e0f0ff; /* light blue background */
    color: #0073e6; /* darker blue text */
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Bed and bathroom items */
.pj-bed,
.pj-bathroom {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #3e78b3;
}

/* Icons (Font Awesome) */
.pj-bed i,
.pj-bathroom i {
    font-size: 16px;
    color: #3e78b3;
}

/* --- PAGINATION --- */
.pj-property-pagination {
    text-align: center;
    margin-top: 25px;
    /* Add basic styling for pagination links if needed */
}