/* =========================
   후기 작성 페이지 (클린콜 2.0)
========================= */

/* 전체 래퍼 (파트너 기준 맞춤) */

.review-wrap,
.review-pending {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
}

/* 실제 입력 카드 */
.review-box {
    background:#fff;
    padding:30px;
    border-radius:16px;
    border:1px solid #e5e7eb;
}

/* 제목 */
.review-title {
    font-size:24px;
    font-weight:800;
    margin-bottom:12px;
    color:#111827;
}

/* 안내 문구 */
.review-guide {
    font-size:15px;
    color:#6b7280;
    margin-bottom:18px;
}

/* 별점 */
.star-wrap {
    display:flex;
    gap:8px;
    margin-bottom:12px;
}

.star {
    font-size:36px;
    cursor:pointer;
    color:#ddd;
    transition:0.2s;
}

.star.active {
    color:#f59e0b;
}

.star:hover {
    transform:scale(1.2);
}

/* 작성 힌트 */
.review-hint {
    font-size:14px;
    color:#9ca3af;
    margin-bottom:16px;
    line-height:1.5;
}

/* 입력 공통 */
.input-box {
    width:100%;
    padding:14px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    margin-bottom:14px;
    font-size:15px;
    background:#fff;
}

.input-box:focus {
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 2px rgba(37,99,235,0.1);
}

/* textarea */
textarea.input-box {
    height:140px;
    resize:none;
}

/* 업로드 */
.upload-box {
    font-size:14px;
    margin-bottom:18px;
}

/* 버튼 */
.submit-btn {
    width:100%;
    padding:16px;
    background:#111827;
    color:#fff;
    border:none;
    border-radius:12px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:0.2s;
    margin-top: 30px;
}

.submit-btn:hover {
    background:#2563eb;
}

/* =========================
   📱 모바일 대응
========================= */

@media (max-width: 768px) {

    .review-wrap {
        margin: 40px 15px;
        padding: 20px;
    }

    .review-box {
        padding:20px;
        border-radius:12px;
    }

    .review-title {
        font-size:20px;
    }

    .review-guide {
        font-size:14px;
    }

    .star {
        font-size:30px;
    }

    .input-box {
        padding:12px;
        font-size:14px;
    }

    textarea.input-box {
        height:120px;
    }

}

/* 도움말 */ 
.form-help {
    display:block;
    font-size:13px;
    color:#9ca3af;
    margin-top:6px;
}

/* 파일 선택 숨김 */

#imageInput {
    display: none;
}

/* 사진 업로드 */ 
.upload-box {
    border:2px dashed #e5e7eb;
    padding:20px;
    text-align:center;
    border-radius:12px;
    cursor:pointer;
    margin-bottom:10px;
}

.upload-box.dragover {
    background:#f3f4f6;
}

.upload-text {
    font-size:14px;
    color:#6b7280;
}

.image-preview {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top: 12px; /* 🔥 간격 추가 */
}

.preview-item {
    position:relative;
    width:80px;
    height:80px;
    flex: 0 0 auto;   /* 🔥 이거 추가 */
}

.preview-item img {
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:8px;
}

.preview-remove {
    position:absolute;
    top:-6px;
    right:-6px;
    background:#111;
    color:#fff;
    width:18px;
    height:18px;
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    cursor:pointer;
}

/* 리뷰리스트 */ 
.review-list {
    display:flex;
    flex-direction:column;
    gap:16px;
}

.review-item {
    padding:20px;
    border:1px solid #e5e7eb;
    border-radius:16px;
    background:#fff;
}

.review-top {
    display:flex;
    justify-content:space-between;
    font-size:13px;
    color:#6b7280;
    margin-bottom:8px;
}

.review-star {
    color:#f59e0b;
    margin-bottom:8px;
}

.review-content {
    font-size:14px;
    line-height:1.5;
    margin-bottom:10px;
}

.review-images {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.review-images img {
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:8px;
}


/* 이미지 hover */
.review-thumb {
    cursor:pointer;
    transition:0.2s;
}

.review-thumb:hover {
    transform:scale(1.05);
}

/* =========================
   갤러리 모달
========================= */

#gallery-modal {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    z-index:9999;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

/* 상단 */
.gallery-top {
    width:100%;
    max-width:900px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#fff;
    margin-bottom:10px;
}

.gallery-tools button {
    background:none;
    border:none;
    color:#fff;
    font-size:20px;
    margin-left:10px;
    cursor:pointer;
}

/* 메인 */
.gallery-main {
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    max-width:900px;
}

.gallery-viewport {
    width:100%;
    text-align:center;
}

#gallery-image {
    max-width:100%;
    max-height:70vh;
}

/* 좌우 버튼 */
.gallery-prev,
.gallery-next {
    background:none;
    border:none;
    color:#fff;
    font-size:40px;
    cursor:pointer;
    padding:10px;
}

/* 썸네일 */
.gallery-thumbs {
    display:flex;
    gap:8px;
    margin-top:10px;
    overflow-x:auto;
    max-width:900px;
}

.gallery-thumbs img {
    width:60px;
    height:60px;
    object-fit:cover;
    opacity:0.6;
    cursor:pointer;
}

.gallery-thumbs img.active {
    opacity:1;
    border:2px solid #fff;
}