/*
 * Carte « Últimas avaliações » (partial tagus-value-last-estimations-display.php).
 * Feuille à part : les pages de marché n'ont besoin que d'elle, pas des
 * 3 200 lignes de tagus-value-public.css.
 */
.tagus-value-latest-estimates {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 2rem auto;
    padding: 1.5rem;
    max-width: 1200px;
}

.latest-estimates-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 2rem;
    text-align: center;
}

.estimates-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.estimate-item {
    background-color: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.estimate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.estimate-date {
    font-size: 0.8rem;
    color: #7F8C8D;
    margin-bottom: 1rem;
}

.estimate-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* L'état du bien, sous la ligne principale : il explique un écart de prix
   que la seule typologie ne justifie pas. Discret — c'est un qualificatif,
   pas le titre de la carte. */
.estimate-condition {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #7F8C8D;
}

.estimate-description .fas {
    margin-right: 0.5rem;
    color: #1ABC9C;
    font-size: 1em;
}

.estimate-total-price {
    font-size: 25px;
    font-weight: 700;
    color: #1ABC9C;
    margin-top: 1rem;
    border-top: 1px solid #ECF0F1;
    padding-top: 1rem;
    text-align: left;
}

.estimate-price-per-sqm {
    display: inline-block;
    background-color: #303d4e;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 0.75rem;
    text-align: center;
    align-self: flex-start;
    border: none;
    cursor: default;
}

.price-trend-icon {
    margin-left: 0.5rem;
    font-size: 1em;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .estimates-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .estimates-list {
        grid-template-columns: 1fr;
    }
    .latest-estimates-title {
        font-size: 1.75rem;
    }
}
