/**
 * MLD Public Records Integration - Styles
 *
 * Displays public records data (assessment, tax, sale history) on property detail pages.
 *
 * @package MLS_Listings_Display
 * @since 6.79.0
 */

.mld-public-records-section {
    margin: 30px 0;
    padding: 0;
}

.mld-pr-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.mld-pr-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.mld-pr-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1a1a2e;
}

.mld-pr-card-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.mld-pr-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mld-pr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

.mld-pr-row:last-child {
    border-bottom: none;
}

.mld-pr-label {
    color: #6b7280;
    font-size: 14px;
}

.mld-pr-value {
    font-weight: 500;
    color: #1a1a2e;
    font-size: 14px;
}

.mld-pr-highlight {
    background: #f0f9ff;
    border-radius: 6px;
    padding: 10px !important;
    margin: 4px -4px;
}

.mld-pr-highlight .mld-pr-value {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
}

/* Tables */
.mld-pr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mld-pr-table th {
    text-align: left;
    padding: 8px 12px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.mld-pr-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
}

.mld-pr-table tbody tr:hover {
    background: #f9fafb;
}

.mld-pr-mismatch {
    background: #fef2f2 !important;
}

.mld-pr-mismatch:hover {
    background: #fee2e2 !important;
}

.mld-pr-discrepancy-note {
    font-size: 13px;
    color: #92400e;
    margin: 0 0 12px 0;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 6px;
}

.mld-pr-match-info {
    text-align: right;
    color: #9ca3af;
    padding: 8px 0;
    font-size: 12px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mld-pr-table {
        font-size: 12px;
    }

    .mld-pr-table th,
    .mld-pr-table td {
        padding: 6px 8px;
    }

    .mld-pr-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .mld-pr-value {
        font-size: 15px;
    }
}
