/**
 * Public-facing styles for MLS Properties.
 *
 * @package    MLS_Connection
 */

/* Container */
.mls-properties-container {
    margin: 30px 0;
    width: 100%;
}

.mls-properties-header {
    margin-bottom: 30px;
}

.mls-properties-header h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.mls-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Grid Layout */
.mls-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

/* Property Card */
.mls-property-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mls-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Property Image */
.mls-property-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

.mls-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mls-property-card:hover .mls-property-image img {
    transform: scale(1.05);
}

/* Property Content */
.mls-property-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mls-property-price {
    font-size: 26px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 12px;
}

.mls-property-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.mls-property-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Property Details */
.mls-property-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.mls-detail-item {
    font-size: 14px;
    color: #555;
}

.mls-detail-item strong {
    font-size: 16px;
    color: #1a1a1a;
}

.mls-property-type {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.mls-property-meta {
    font-size: 12px;
    color: #999;
    margin-top: auto;
    padding-top: 10px;
}

/* Debug Container */
.mls-debug-container {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 30px 0;
}

.mls-debug-container h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.mls-debug-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.mls-debug-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mls-debug-section h4 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.mls-debug-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mls-debug-section ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mls-debug-section ul li:last-child {
    border-bottom: none;
}

.mls-fields-list {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

/* Error Message */
.mls-error {
    padding: 15px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mls-properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mls-property-details {
        gap: 10px;
    }
    
    .mls-debug-container {
        padding: 20px;
    }
    
    .mls-fields-list div {
        column-count: 1 !important;
    }
}

