.projects-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.project-result-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
    padding: 10px;
}

.project-result-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.project-result-card.selected {
    border: 2px solid #28a745 !important;
    background-color: #f8fff9;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.project-result-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
}

.project-result-card .project-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.project-result-card .project-image-placeholder {
    width: 100%;
    height: 150px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    border-radius: 4px;
    margin-bottom: 10px;
    font-style: italic;
}

.project-result-card p {
    margin-bottom: 8px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #555;
}

.project-result-card p strong {
    color: #333;
}

.project-result-card .description {
    font-size: 0.85em;
    color: #666;
}

.project-result-card a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.project-result-card a:hover {
    text-decoration: underline;
}

.project-result-card a.details-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #4f0f87; /* XBurg primary purple */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.project-result-card a.details-link:hover {
    background-color: #3a0b62; /* Darker purple for hover */
    color: white; 
    text-decoration: none;
}

/* Status-specific styling */
.project-result-card .status-under_construction {
    font-weight: bold;
    color: #ff9800; /* Orange */
}

.project-result-card .status-completed {
    font-weight: bold;
    color: #4caf50; /* Green */
}

.project-result-card .status-planned {
    font-weight: bold;
    color: #2196f3; /* Blue */
}

.project-result-card .status-on_hold {
    font-weight: bold;
    color: #f44336; /* Red */
}

.project-result-card .status-cancelled {
    font-weight: bold;
    color: #757575; /* Grey */
}

/* Optional: if you want the minimal message (like "Found X projects") to also be styled */
.project-summary-message {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
    text-align: center;
}

/* Text Highlighting Styles */
.text-highlighting {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    font-size: 0.85em;
}

.match-explanation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #495057;
    font-style: italic;
}

.match-icon {
    font-size: 1.1em;
}

.match-metrics {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.coverage-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
}

.coverage-badge.high-coverage {
    background-color: #28a745;
}

.coverage-badge.medium-coverage {
    background-color: #ffc107;
    color: #212529;
}

.coverage-badge.low-coverage {
    background-color: #6c757d;
}

.matches-count {
    padding: 3px 8px;
    background-color: #e9ecef;
    border-radius: 12px;
    font-size: 0.8em;
    color: #495057;
    font-weight: 500;
}

.similarity-score {
    padding: 3px 8px;
    background-color: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 12px;
    font-size: 0.8em;
    color: #0066cc;
    font-weight: 500;
}

.highlighted-snippets {
    margin-top: 8px;
}

.snippet {
    background-color: white;
    border-left: 3px solid #4f0f87;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 0.9em;
    line-height: 1.4;
    border-radius: 0 4px 4px 0;
}

.snippet:last-child {
    margin-bottom: 0;
}

.snippet mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 600;
    border: 1px solid #ffeaa7;
}

/* Selected marker pulsation animation */
@keyframes pulse-glow {
    0% {
        box-shadow:
            0 0   0px   0px  rgba(2, 194, 109, 0.00),   /* expanding ring */
            0 0  10px   2px  rgba(2, 194, 109, 0.60);   /* inner glow  */
    }
    50% {
        box-shadow:
            0 0  20px  15px  rgba(2, 194, 109, 0.00),   /* expanding ring */
            0 0  30px   6px  rgba(2, 194, 109, 0.85);   /* inner glow  */
    }
    100% {
        box-shadow:
            0 0   0px   0px  rgba(2, 194, 109, 0.00),   /* expanding ring */
            0 0  10px   2px  rgba(2, 194, 109, 0.60);   /* inner glow  */
    }
}

.marker-pulse {
    animation: pulse-glow 1.1s ease-in-out infinite;
    /* NO transform to avoid Mapbox positioning conflicts */
}
