body, html{
    font-family: 'Open Sans', sans-serif;
}

#results-container {
    padding: 140px 0px 100px 0px;
    max-width: 1400px;
    margin: 0 auto;  
    background-color: white;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 1.5em;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
    padding: 0px 40px;
}

.result-card {
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    border-color: #ccc;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.card-content {
    padding: 20px;
    flex: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.card-header h3 {
    color: black;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 0; 
}

.card-type {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f0f0f0;
    color: black;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.card-description {
    color: black;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.card-address {
    color: black;
    font-size: 13px;
    margin-top: 8px;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 20px 20px;
    margin-top: auto;
}

.feedback-buttons {
    display: flex;
    gap: 10px;
}

.card-actions button {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 24pt;
}

.view-details-button {
    display: flex;
    align-items: center;
    margin-left: auto;
    background: #0f1d2f;
    color: white;
    border: none;
    font-size: 13px;
    transition: background 0.2s ease;
}

.view-details-button:hover {
    background-color: #79BDE8;
    color: #0f1d2f;
}

.btn-relevant {
    background-color: white;
    border: 1.5px solid #ccc;
    color: #374151;
}

.btn-not-relevant {
    background-color: white;
    border: 1.5px solid #ccc;
    color: #374151;
}

.btn-relevant:hover {
    background-color: #ecfccb;
    border-color: #84c31e;
    color: #5fbc18;
}

.btn-not-relevant:hover {
    background-color: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
}
.btn-active-relevant{
    background-color: #84c31e !important;
    color: white !important;
    border-color: #84c31e !important;
}
.btn-active-relevant:hover {
    background-color: #5fbc18;
    border-color: #5fbc18;
    color: white;
}

.btn-active-not-relevant {
    background-color: #f91e1e !important;
    color: white !important;
    border-color: #f91e1e !important;
}
.btn-active-not-relevant:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

.btn-icon {
    font-size: 14px;
    margin-left: -5px
}

.view-details-link {
    padding: 0 20px 20px 20px;
    display: inline-block;
    color: #003C71;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-details-link:hover {
    color: #002347;
    text-decoration: underline;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    grid-column: span 2;
}
.no-results h2 {
    color: #003C71;
    font-size: 28px;
    margin-bottom: 12px;
}
.no-results p {
    color: #666;
    font-size: 16px;
}
@media (max-width: 900px) {
    .results-grid {
        gap: 20px;
    }
    
    .card-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    #result-container {
        padding: 20px 16px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-header h3 {
        font-size: 18px;
    }
    
    .card-actions {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .view-details-link {
        margin-top: 12px;
        display: block;
        text-align: center;
    }
}

/* Loading Screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px 20px;
    text-align: center;
}

.loading-icon {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0f1d2f;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-screen p {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}