/* Realty CRM Integration Frontend Styles */

.rcrmi-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.rcrmi-property-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.rcrmi-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rcrmi-property-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.rcrmi-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.rcrmi-property-card:hover .rcrmi-property-image img {
    transform: scale(1.05);
}

.rcrmi-property-content {
    padding: 20px;
}

.rcrmi-property-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.rcrmi-property-title a {
    text-decoration: none;
    color: #333;
}

.rcrmi-property-title a:hover {
    color: #0073aa;
}

.rcrmi-property-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.rcrmi-property-location {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.rcrmi-property-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rcrmi-detail-item {
    font-size: 0.9em;
    color: #666;
}

.rcrmi-detail-label {
    font-weight: 600;
    margin-right: 3px;
}

.rcrmi-property-agent {
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #555;
    font-size: 0.9em;
}

.rcrmi-property-agent strong {
    color: #333;
}

/* Single Property Styles */

.rcrmi-single-property {
    max-width: 1200px;
    margin: 40px auto;
}

.rcrmi-property-heading {
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
}

.rcrmi-property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rcrmi-property-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.rcrmi-property-main-info {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.rcrmi-property-price-large {
    font-size: 3em;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.rcrmi-property-location {
    font-size: 1.2em;
    color: #666;
}

.rcrmi-property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.rcrmi-detail-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.rcrmi-detail-icon {
    font-size: 2em;
}

.rcrmi-detail-value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.rcrmi-detail-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.rcrmi-property-agent-block {
    background: #2c5aa0;
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.rcrmi-property-agent-block h3 {
    margin: 0 0 10px 0;
    color: #fff;
}

.rcrmi-agent-name {
    font-size: 1.3em;
    margin: 0;
}

.rcrmi-property-description {
    line-height: 1.8;
    color: #555;
}

.rcrmi-pagination {
    margin-top: 40px;
    text-align: center;
}

.rcrmi-pagination a,
.rcrmi-pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #0073aa;
}

.rcrmi-pagination span.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.rcrmi-no-properties {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

/* Responsive Styles */

@media (max-width: 768px) {
    .rcrmi-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .rcrmi-property-price-large {
        font-size: 2em;
    }
    
    .rcrmi-property-details-grid {
        grid-template-columns: 1fr;
    }
}
