.reviews-view-wrap {
    
}

.reviews-view-wrap .inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 좌측: 갤러리 + 그 아래 후기 */
.reviews-view-wrap .view-main {
    flex: 1 1 60%;
    min-width: 0;
    width: 60%;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.reviews-view-wrap .inner:not(.has-aside) .view-main {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
}

/* 좌측 이미지 — 원본 765×500 비율에 맞춤 (고정높이+contain 여백 제거) */
.reviews-view-wrap .thumb {
    width: 100%;
    position: relative;
}

.reviews-view-wrap .thumb .swiper-container {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: auto;
    aspect-ratio: 765 / 500;
    background: #f7f7f7;
}

.reviews-view-wrap .thumb .swiper-wrapper {
    height: 100%;
}

.reviews-view-wrap .thumb .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.reviews-view-wrap .thumb .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* 좌우 버튼 */
.reviews-view-wrap .thumb .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 10;
    cursor: pointer;
}

.reviews-view-wrap .thumb .nav.prev {
    left: 16px;
}

.reviews-view-wrap .thumb .nav.next {
    right: 16px;
}

/* 화살표 */
.reviews-view-wrap .thumb .nav::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.reviews-view-wrap .thumb .nav.prev::after {
    transform: translate(-50%, -50%) rotate(-135deg);
}


/* 하단 카운트 */
.reviews-view-wrap .thumb .count {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    z-index: 10;
}


/* pagination (필요하면 유지) */
.reviews-view-wrap .thumb .swiper-pagination {
    bottom: 16px !important;
}

.reviews-view-wrap .thumb .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.reviews-view-wrap .thumb .swiper-pagination-bullet-active {
    background: #fff;
}

/* pagination */
.reviews-view-wrap .swiper-pagination {
    bottom: 16px !important;
}

.reviews-view-wrap .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.reviews-view-wrap .swiper-pagination-bullet-active {
    background: #fff;
}


/* 우측 — 연관 차량 고정 */
.reviews-view-wrap .view-aside {
    position: sticky;
    top: 140px;
    align-self: flex-start;
    flex: 0 0 40%;
    width: 40%;
    z-index: 2;
}

/* 후기 본문 — 갤러리 하단 */
.reviews-view-wrap .info-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.reviews-view-wrap .info-wrap .dflx {
    display: flex;
    flex-direction: column;
}

/* 상단 */
.reviews-view-wrap .bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.reviews-view-wrap .tag {
    display: inline-block;
    padding: 6px 10px;
    font-size: 0.8rem;
    background: #eef3ff;
    color: #3b5cff;
    border-radius: 6px;
}

.reviews-view-wrap .title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
}

/* 프로필 영역 */
.reviews-view-wrap .top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.reviews-view-wrap .profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f1f1;
    overflow: hidden;
    flex-shrink: 0;
}

.reviews-view-wrap .profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 메타 */
.reviews-view-wrap .meta {
    flex: 1;
}

.reviews-view-wrap .sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 16px;
    color: #777;
}

.reviews-view-wrap .sub span {
    position: relative;
    padding-left: 10px;
}

.reviews-view-wrap .sub span:first-child {
    padding-left: 0;
    margin-left: 0;
}

.reviews-view-wrap .sub .date {
    display: none;
}

.reviews-view-wrap .sub span:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #ddd;
}

/* 본문 */
.reviews-view-wrap .desc-wrap {
    margin-top: 20px;
}

.reviews-view-wrap .desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

/* CTA */
.reviews-view-wrap .cta {
    margin-top: 40px;
}

.reviews-view-wrap .cta a {
    display: block;
    width: 100%;
    height: 56px;
    line-height: 56px;
    text-align: center;
    border-radius: 12px;
    background: #1e63e9;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    transition: 0.2s;
}

.reviews-view-wrap .cta a:hover {
    background: #174ec0;
}


/* 반응형 */
@media (max-width: 1024px) {
    .reviews-view-wrap .inner {
        flex-direction: column;
    }

    .reviews-view-wrap .view-main,
    .reviews-view-wrap .view-aside {
        width: 100%;
        max-width: none;
        flex: none;
    }

    .reviews-view-wrap .view-aside {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .reviews-view-wrap .profile {
        width: 24px;
        height: 24px;
    }

    .reviews-view-wrap .sub .location,
    .reviews-view-wrap .sub .brand,
    .reviews-view-wrap .sub .age,
    .reviews-view-wrap .sub .gender {
        font-size: 14.5px;
    }

    .reviews-view-wrap .desc {
        font-size: 14.5px;
    }
}

/* ------------------------------------------------------------------
   후기 하단 즉시출고 추천 슬라이드
   카드 UI: estimate/fast_list.php + fast-list.css 와 동일 (스코프 .review-fast-cars)
   ------------------------------------------------------------------ */
.review-fast-cars {
    margin-top: 48px;
    padding-bottom: 24px;
    width: 100%;
}

.review-fast-cars__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.review-fast-cars .sec-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.review-fast-cars .sec-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
}

.review-fast-cars .swiper-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.review-fast-cars .swiper-button-prev,
.review-fast-cars .swiper-button-next {
    position: static;
    transform: none;
    margin: 0;
    left: auto;
    right: auto;
    top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1;
}

.review-fast-cars .swiper-button-prev::after,
.review-fast-cars .swiper-button-next::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid #111;
    border-right: 2px solid #111;
    display: block;
    font-size: 0;
    line-height: 0;
}

.review-fast-cars .swiper-button-prev::after {
    transform: rotate(-135deg);
}

.review-fast-cars .swiper-button-next::after {
    transform: rotate(45deg);
}

.review-fast-cars__swiper-outer {
    overflow: hidden;
}

/*
 * Swiper 기본(.swiper-wrapper { height: 100% }) + 본 페이지에서 ul에 height:100%를 주면
 * 슬라이드가 flex로 동일 높이로 늘어나고, 카드 안에 빈 세로 공간이 생김.
 * 래퍼·슬라이드는 콘텐츠 높이만 쓰도록 고정.
 */
.review-fast-cars .swiper-container {
    height: auto;
}

.review-fast-cars .swiper-wrapper {
    height: auto !important;
    align-items: flex-start;
}

.review-fast-cars .swiper-slide {
    height: auto !important;
}

.review-fast-cars__card-list {
    margin: 0;
    padding: 0;
    list-style: none;
    height: auto;
}

/* --- fast-list.css 카드 블록 (.fast-list-wrap .car …) 와 동일 --- */
.review-fast-cars .car {
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
    overflow: hidden;
}

.review-fast-cars .car:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.review-fast-cars .car .thumb {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f9f9f9;
}

.review-fast-cars .car .thumb img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
}

.review-fast-cars .car .name-df {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.review-fast-cars .car .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
}

.review-fast-cars .car .info .brand-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f7f7;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.review-fast-cars .car .brand-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #333;
}

.review-fast-cars .car .stock-wrap {
    font-size: 13px;
    font-weight: 500;
    color: #0b2c5f;
}

.review-fast-cars .car .stock-wrap .stock-count {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.review-fast-cars .car .stock-wrap.stock-none {
    font-weight: 500;
    color: #9ca3af;
}

.review-fast-cars .car .info .name {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    color: #2a2a2a;
}

.review-fast-cars .car .brand-wrapper img {
    width: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.review-fast-cars .car .cta-wrap {
    margin-top: 12px;
    width: 100%;
}

.review-fast-cars .car .btn-cta {
    width: 100%;
    text-align: center;
    height: 44px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #ddeeff;
    color: #31383f;
    cursor: pointer;
    transition: 0.2s;
}

.review-fast-cars .car .btn-cta:hover {
    background: #dce4ed;
}

.review-fast-cars .car .btn-cta:active {
    transform: scale(0.97);
}

@media (max-width: 768px) {
    .review-fast-cars__inner {
        padding-left: 0;
        padding-right: 0;
    }

    .review-fast-cars .car .thumb {
        width: 100%;
        height: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        background: #f9f9f9;
    }

    .review-fast-cars .car .thumb img {
        max-width: 100%;
        max-height: 105%;
        object-fit: contain;
    }
}

/* ------------------------------------------------------------------
   후기 우측 연관 차량 (갤러리 옆)
   ------------------------------------------------------------------ */
.reviews-view-wrap .view-aside .review-related {
    margin-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.review-related__block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-related__title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #111;
    letter-spacing: -0.02em;
}

.review-related__card {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

a.review-related__card:hover {
    border-color: #d0d8e8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.review-related__card--fast {
    cursor: default;
}

.review-related__thumb {
    position: relative;
    flex: 0 0 132px;
    width: 132px;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    background: #f3f4f6;
    overflow: hidden;
}

.review-related__thumb img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.review-related__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.review-related__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.review-related__car-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-related__meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-related__meta-label {
    font-size: 13px;
    line-height: 1.3;
    color: #9ca3af;
}

.review-related__meta-value {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    letter-spacing: -0.02em;
}

.review-related__stock-meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-related__stock-label {
    font-size: 13px;
    line-height: 1.3;
    color: #9ca3af;
}

.review-related__stock-value {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    color: #111;
}

.review-related__stock-num {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.review-related__stock-value.is-empty {
    color: #9ca3af;
}

.review-related__cta-wrap {
    width: 100%;
    margin-top: 4px;
}

.review-related__btn-cta {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: #ddeeff;
    color: #31383f;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.review-related__btn-cta:hover {
    background: #dce4ed;
}

@media (max-width: 768px) {
    .reviews-view-wrap .view-aside .review-related {
        margin-top: 0;
        gap: 24px;
    }

    .review-related__title {
        font-size: 16px;
    }

    .review-related__card {
        gap: 12px;
        padding: 14px;
    }

    .review-related__thumb {
        flex-basis: 108px;
        width: 108px;
        min-height: 88px;
    }

    .review-related__thumb img {
        max-height: 68px;
    }

    .review-related__car-name {
        font-size: 0.9375rem;
    }

    .review-related__meta-value {
        font-size: 1rem;
    }
}
