/* =======================================================================
   GUIAZONA REVIEWS — RESUMEN DE VALORACIONES (tarjetas, estilo Airbnb)
   Archivo: gz-ratings-breakdown.css
   Úsalo en: modules/reviews/presentation/assets/css/
   ======================================================================= */

.gz-ratings-breakdown {
    display: flex;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.gz-ratings-breakdown__item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 12px;
    border-right: 1px solid #e5e7eb;
}

.gz-ratings-breakdown__item:last-child {
    border-right: none;
}

.gz-ratings-breakdown__item--overall {
    background: #fafafa;
}

.gz-ratings-breakdown__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    color: #111827;
}

.gz-ratings-breakdown__icon svg {
    width: 100%;
    height: 100%;
}

.gz-ratings-breakdown__score {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.gz-ratings-breakdown__score--small {
    font-size: 17px;
    font-weight: 600;
    margin-top: 6px;
}

.gz-ratings-breakdown__label {
    font-size: 13px;
    color: #4b5563;
    margin-top: 4px;
    line-height: 1.3;
}

.gz-ratings-breakdown__item--overall .gz-ratings-breakdown__label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-top: 2px;
}

.gz-ratings-breakdown__sublabel {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* -----------------------------------------------------------------------
   RESPONSIVE — en móvil se pasa a 2 columnas por fila
----------------------------------------------------------------------- */

@media (max-width: 640px) {

    .gz-ratings-breakdown {
        flex-wrap: wrap;
        border-radius: 14px;
    }

    .gz-ratings-breakdown__item {
        flex: 0 0 50%;
        border-right: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        padding: 16px 10px;
    }

    .gz-ratings-breakdown__item:nth-child(2n) {
        border-right: none;
    }

    .gz-ratings-breakdown__item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .gz-ratings-breakdown__item--overall {
        flex: 0 0 100%;
        border-right: none;
    }
}
