/* Property Card Styles for Chat Interface */

/* Property card container within chat messages - class name updated to avoid conflicts */
.chat-property-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Ensure the card has adequate width in chat context */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Property card header with name/title */
.chat-property-card .property-card-header {
    margin-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 8px;
}

.chat-property-card .property-card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

/* Property details grid layout */
.chat-property-card .property-details {
    margin-bottom: 16px;
}

.chat-property-card .property-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.chat-property-card .property-detail-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.chat-property-card .property-detail-item:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.chat-property-card .property-detail-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.chat-property-card .property-detail-value {
    color: #34495e;
    font-weight: 500;
}

/* Feature sections styling */
.chat-property-card .property-features-section {
    margin: 16px 0;
    padding-top: 10px;
    border-top: 1px solid #eaeaea;
}

.chat-property-card .property-features-section h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.chat-property-card .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.chat-property-card .features-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.chat-property-card .features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Property description */
.chat-property-card .property-description {
    margin-top: 16px;
    color: #5d6d7e;
    line-height: 1.5;
    padding: 12px;
    background-color: #f2f6fa;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.chat-property-card .property-description p {
    margin: 8px 0;
}

.property-description p:first-child {
    margin-top: 0;
}

.property-description p:last-child {
    margin-bottom: 0;
}

/* Property links/actions */
.property-links {
    margin-top: 16px;
    padding: 12px 0;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: center;
}

.property-links a.website-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background-color: #3498db;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.property-links a.website-link i {
    margin-right: 6px;
}

.property-links a.website-link:hover {
    background-color: #2980b9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .property-detail-grid,
    .features-list {
        grid-template-columns: 1fr;
    }
}
