/**
 * Block Skin: rental-review/basic (Rental)
 *
 * 이미지 상단 + 본문 + 푸터 카드형. list / slide(Swiper) 모드 모두 호환.
 */

.block-review__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── 슬라이드 / 리스트 공통: 슬라이드 모드에서 .swiper-slide 가 됨 ── */
/* Swiper 가 .swiper-slide 에 height: 100% 를 주는데 부모 .swiper 의 높이가
   wrapper 가 가장 큰 슬라이드 높이로 잡히기 위해 항목 자체는 auto + stretch. */
.block-review__item {
    min-width: 0;
    height: auto;
    display: flex;
}

.block-review .swiper-wrapper {
    align-items: stretch;
}

/* 안전망: image 블록 전용인 has-fixed-height 가 후기 슬라이드에
   잘못 적용돼도 카드가 짜부되지 않도록 height override. */
.block-review .mublo-item-layout.has-fixed-height .swiper-slide {
    height: auto;
}

/* ── 카드 ── */
.block-review__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ececf2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.block-review__card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: #d6d6e3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.block-review__card.is-best {
    border-color: #fde68a;
}

/* ── 이미지 영역 (16:10 비율, 빈 카드와 키 맞춤 위해 항상 동일 비율) ── */
.block-review__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    overflow: hidden;
}

/* 구형 브라우저 폴백 (aspect-ratio 미지원) */
@supports not (aspect-ratio: 1) {
    .block-review__media {
        padding-top: 62.5%;
    }
    .block-review__image {
        position: absolute;
        inset: 0;
    }
}

.block-review__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.block-review__card:hover .block-review__image {
    transform: scale(1.05);
}

.block-review__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

/* ── 본문 ── */
.block-review__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 10px;
    flex: 1;
    min-height: 0;
}

/* 별점 */
.block-review__stars {
    display: inline-flex;
    gap: 1px;
    font-size: 0.875rem;
    line-height: 1;
    letter-spacing: 1px;
}

.block-review__star--full  { color: #f59e0b; }
.block-review__star--empty { color: #e5e7eb; }

/* 제목 */
.block-review__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 요약 — 2줄 클램프 */
.block-review__summary {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 작성자 / 날짜 */
.block-review__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.block-review__author {
    font-weight: 500;
    color: #475569;
}

/* ── 푸터 — 브랜드 + 구매 버튼 ── */
.block-review__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px 14px;
    border-top: 1px solid #f1f5f9;
}

.block-review__brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.block-review__brand-logo {
    height: 1.5rem;
    width: auto;
    max-width: 5rem;
    object-fit: contain;
    opacity: 0.85;
}

.block-review__brand-name {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-review__buy-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    background: #f1f5f9;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.block-review__card:hover .block-review__buy-btn {
    background: #0f172a;
    color: #fff;
    transform: translateX(2px);
}

/* ── 빈 상태 ── */
.block-empty {
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}
