/* Bandhu – Property Reviews widget */

.bppm-reviews__header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 18px;
}

.bppm-reviews__avg-star {
    color: #f5a623;
    font-size: 20px;
}

.bppm-reviews__avg {
    font-weight: 700;
}

.bppm-reviews__total {
    color: #717171;
    font-size: 15px;
}

.bppm-reviews__grid {
    display: grid;
    grid-template-columns: repeat( 2, 1fr );
    gap: 16px;
}

.bppm-review {
    background: #fff;
    border: 1px solid #e8e6e1; /* borde base; configurable desde Elementor */
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bppm-review__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bppm-review__stars {
    color: #f5a623;
    letter-spacing: 1px;
    font-size: 15px;
}

.bppm-review__platform {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
    background: #e8e8e8;
    color: #555;
}

.bppm-review__platform--airbnb  { background: #ffe8ec; color: #e0245e; }
.bppm-review__platform--booking { background: #e6efff; color: #1a4fc4; }
.bppm-review__platform--direct  { background: #e6f7ee; color: #137a4b; }

.bppm-review__text {
    margin: 0;
    color: #222;
    line-height: 1.55;
    font-size: 15px;
    /* Clamp a N líneas (N lo controla Elementor → -webkit-line-clamp). */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bppm-review.is-expanded .bppm-review__text {
    display: block; /* clave: vuelve a flujo normal y empuja al botón hacia abajo */
    -webkit-line-clamp: unset;
    overflow: visible;
}

.bppm-review__more {
    all: unset;
    cursor: pointer;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: #9e2a2b;
    margin-top: 8px;
    background: transparent;
    transition: color 0.15s ease;
}

/* CRÍTICO: 'all: unset' pone display:inline y anula [hidden]. Restaurarlo. */
.bppm-review__more[hidden] {
    display: none !important;
}

/* Anular cualquier fondo/sombra que el tema aplique a button:hover/focus.
   En hover SOLO cambia el color del texto. */
.bppm-review__more:hover,
.bppm-review__more:focus,
.bppm-review__more:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.bppm-review__more:hover {
    color: #5e1819; /* default; editable desde Elementor (Color "Ver más" hover) */
}

/* Meta apilado: nombre (bold) arriba, fecha abajo */
.bppm-review__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: #8a8a8a;
    margin-top: auto;
    padding-top: 4px;
}

.bppm-review__author {
    font-weight: 700;
    color: #222;
    font-size: 14px;
}

.bppm-review__translated {
    font-style: italic;
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.bppm-review__translated::before {
    content: '🌐 ';
    font-style: normal;
}

@media ( max-width: 768px ) {
    .bppm-reviews__grid {
        grid-template-columns: 1fr;
    }
}
