/**
 * Repliers Shortcode Styles
 * Enhanced styling for listing shortcodes in Elementor post widgets
 */

/* ===== LISTING IMAGE STYLES ===== */
.listing-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.listing-image:hover {
    transform: scale(1.02);
}

/* ===== ELEMENTOR POST WIDGET FIXES ===== */
.elementor-posts-container .elementor-post {
    margin-bottom: 20px;
}

.elementor-posts-container .elementor-post__thumbnail {
    overflow: hidden;
    border-radius: 8px;
}

.elementor-posts-container .elementor-post__thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.elementor-posts-container .elementor-post__thumbnail:hover img {
    transform: scale(1.05);
}

/* ===== LISTING PRICE STYLING ===== */
.listing-price,
.elementor-post__text .listing-price {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
    margin: 10px 0;
}

/* ===== LISTING DETAILS STYLING ===== */
.listing-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.listing-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== LISTING ADDRESS STYLING ===== */
.listing-address {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 5px 0;
}

/* ===== LISTING MLS STYLING ===== */
.listing-mls {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== LISTING PRICE STYLING ===== */
.listing-price {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 5px 0;
}

/* ===== RESPONSIVE GRID FIXES ===== */
@media (max-width: 768px) {
    .elementor-posts-container .elementor-post__thumbnail img {
        height: 160px;
    }
    
    .listing-price {
        font-size: 20px;
    }
    
    .listing-details {
        gap: 10px;
    }
}

/* ===== HOVER EFFECTS ===== */
.elementor-post:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===== GALLERY STYLES ===== */
.listing-gallery {
    margin: 20px 0;
}

.listing-gallery img {
    border-radius: 8px;
    margin: 5px;
}

/* ===== DIAGNOSTIC STYLES ===== */
.listing-diagnostic {
    background: #f0f0f0;
    padding: 10px;
    border-left: 4px solid #007cba;
    margin: 10px 0;
    font-family: monospace;
    font-size: 12px;
}

/* ===== EMERGENCY TEST STYLES ===== */
.emergency-test {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}