@charset "utf-8";
/* -----------------------------------------------------------
 * 게시판 읽기 영역
 ----------------------------------------------------------- */
#bo_v_title {
    font-size:23px;
    font-weight:bold;
    line-height:1.4;
    letter-spacing:-1px;
}
#bo_v_con {
    min-height:200px; 
    word-break:break-all;
    overflow:hidden
}
@media all and (max-width:575px) {
    .responsive #bo_v_title {
        font-size:20px;
        line-height:1.5;
    }
    .responsive #bo_v_con { 
        min-height:140px; 
    }
}
#bo_v_con img {
    max-width:100%;
    height:auto
}
#bo_v_img {
    width:100%;
    text-align:center;
    overflow:hidden;
    zoom:1;
}
#bo_v_img:after {
    display:block;
    visibility:hidden;
    clear:both;
    content:"";
}
#bo_v_img a.view_image {
    display:block;
}
#bo_v_img img {
    margin-bottom:1.0rem;
}

/* SNS 공유 */
#bo_v_sns_icon { 
    margin:-5px auto; 
}
#bo_v_sns_icon img { 
    width:40px; 
    border-radius:50%; 
    margin:5px;
}

/* -----------------------------------------------------------
* 게시판 리뷰 영역 
----------------------------------------------------------- */
/* Custom Source 스타일 */
.custom-source-wrap {
    margin: 30px 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}
.custom-source-header {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #e66a98, #f8a6c1);
}

.source-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.additional-info {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin-left: auto;
    padding-left: 20px;
}

.custom-source-header i {
    color: white;
    font-size: 20px;
    margin-right: 10px;
}
.custom-source-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}
.custom-source-content {
    padding: 20px 25px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.custom-source-name, 
.custom-source-url {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
}
.custom-source-name i, 
.custom-source-url i {
    color: #4a6ee0;
    font-size: 20px;
}
.custom-source-url a {
    color: #4a6ee0;
    text-decoration: none;
}
.custom-source-url a:hover {
    text-decoration: underline;
}

/* 업체정보 */
.store-info {
   margin-bottom: 2rem;
   background: #fff;
   box-shadow: 0 2px 8px rgba(0,0,0,0.08);
   border-radius: 1rem;
   padding: 1.75rem;
   border: 1px solid #e9ecef;
}

/* Custom Store 스타일 */
.custom-store-wrap {
   margin: 30px 0;
   background: #fff;
   border: 1px solid #e9ecef;
   border-radius: 12px;
   box-shadow: 0 2px 8px rgba(0,0,0,0.05);
   overflow: hidden;
}

.custom-store-header {
   display: flex;
   align-items: center;
   padding: 15px 25px;
   background: linear-gradient(135deg, #6e8efb, #4a6ee0);
}

.custom-store-header i {
   color: white;
   font-size: 24px;
   margin-right: 10px;
}

.custom-store-header h3 {
   color: white;
   font-size: 20px;
   font-weight: 500;
   margin: 0;
   padding: 0;
   background: none;
   border: none;
}

.custom-store-content {
   padding: 5px 0;
}

.custom-store-item {
   display: flex;
   padding: 10px 25px;
   border-bottom: 1px solid #f1f3f5;
   transition: background-color 0.2s;
   align-items: center;
}

.custom-store-item:last-child {
   border-bottom: none;
}

.custom-store-item:hover {
   background-color: #f8f9fa;
}

.custom-store-label {
   flex: 0 0 140px;
   color: #495057;
   font-weight: 500;
   padding-right: 20px;
}

.custom-store-value {
   flex: 1;
   color: #212529;
   line-height: 1.5;
}

.store-info-title {
   font-size: 1.5rem;
   font-weight: 600;
   color: #1a202c;
   margin-bottom: 1.25rem;
   padding-bottom: 1rem;
   border-bottom: 2px solid #4a5568;
}

.store-info-table {
   width: 100%;
}

.store-info-table th,
.store-info-table td {
   padding: 0.875rem 1rem;
   border-bottom: 1px solid #e9ecef;
   vertical-align: top;
   line-height: 1.5;
}

.store-info-table th {
   width: 130px;
   color: #2d3748;
   background: #f8fafc;
   font-weight: 600;
}

/* 리뷰 그룹 */
.review-group {
   position: relative;
   margin: 2.5rem 0;
   background: #fff;
   box-shadow: 0 3px 12px rgba(0,0,0,0.08);
   border-radius: 1rem;
   padding: 2rem;
   border-left: 4px solid #4299e1;
}

.review-group-header {
   display: flex;
   align-items: center;
   gap: 1.25rem;
   margin: -0.5rem 0 1rem;
   padding: 0.5rem 0rem;
   background: linear-gradient(to right, #f7fafc, transparent);
   border-radius: 0.5rem;
}

.group-title {
   font-size: 1.5rem;
   font-weight: 400;
   color: #2c5282;
   margin: 0;
   white-space: nowrap;
   text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}

.group-title span {
   font-size: 0.8em;
   vertical-align: super;
   margin-left: 0px;
   opacity: 0.7;
}

.group-description {
   color: #4a5568;
   font-size: 1.2rem;
   font-weight: 500;
   line-height: 1.4;
   background: rgba(237, 242, 247, 0.8);
   padding: 0.75rem 1.25rem;
   border-radius: 0.5rem;
   border: 1px solid #e2e8f0;
   flex: 1;
}

/* 리뷰 항목 */
.review-items {
   margin-bottom: 0.5rem;
}

.review-item {
   margin: 1rem 0;
   padding: 0.2rem;
   background: linear-gradient(to right, #f8fafc, transparent);
   border-radius: 0.75rem;
   border: 1px solid #edf2f7;
}

.review-item:last-child {
   margin-bottom: 0;
}

.review-item-header {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-bottom: 0.2rem;
   position: relative;
   min-height: 48px;
}

/* 평가 막대 스타일 */
.rating-bar-container {
   flex: 1;
   height: 48px;
   background: #f0f0f0;
   border-radius: 6px;
   overflow: hidden;
   position: relative;
   min-width: 200px;
   box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
   display: flex;
   align-items: center;
}

/* 항목명 스타일 */
.review-item-title {
   height: 48px;  /* 별점 그래프와 동일한 높이 */
   font-size: 18px; /* 폰트 크기 증가 */
   font-weight: 500;
   padding: 0 20px;
   background: rgba(255, 255, 255, 0.95);
   border-radius: 4px;
   backdrop-filter: blur(4px);
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
   color: #2c3e50;
   border-left: 3px solid #4a90e2;
   margin: 0;
   display: flex;
   align-items: center; /* 세로 중앙 정렬 */
}

/* 별점이 있을 때 적용되는 스타일 */
.review-item-header:has(.rating-bar-container) .review-item-title {
   height: auto;
   position: absolute;
   left: 20px;
   top: 50%;
   transform: translateY(-50%);
   z-index: 3;
   max-width: calc(100% - 120px);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   font-size: 16px;
   padding: 6px 12px;
}

/* 구분선 스타일 */
.rating-grid {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   display: flex;
   pointer-events: none;
}

.rating-grid-line {
   flex: 1;
   position: relative;
}

.rating-grid-line:after {
   content: '';
   position: absolute;
   right: 0;
   top: 0;
   width: 2px;
   height: 100%;
   background: rgba(255,255,255,0.5);
   z-index: 2;
}

.rating-grid-line:before {
   content: '';
   position: absolute;
   right: -1px;
   top: 0;
   width: 2px;
   height: 100%;
   background: rgba(0,0,0,0.08);
   z-index: 2;
}

.rating-bar {
   height: 100%;
   width: var(--rating-percent);
   transition: width 0.3s ease;
   position: absolute;
   left: 0;
   top: 0;
}

/* 여기에 추가 */
.rating-bar-container:after {
   content: '';
   position: absolute;
   left: 50%;
   top: 0;
   width: 2px;
   height: 100%;
   background: rgba(0,0,0,0.2);
   z-index: 1;
}

.rating-positive {
   left: 50%;
   background: #44b944;
   width: calc((100% / (var(--star-count) * 2)) * var(--rating-value));
}

.rating-negative {
   right: 50%;
   left: auto;
   background: #ff4444;
   width: calc((100% / (var(--star-count) * 2)) * var(--rating-value));
}

/* 점수에 따른 그라데이션 색상 */
.rating-bar-positive {
    background: linear-gradient(to right, #3182ce, #63b3ed);
}

.rating-bar-negative {
    background: linear-gradient(to right, #ed8936, #f6ad55);
}

/* 점수 표시 박스 */
.rating-text-box {
   position: absolute;
   right: 10px;
   top: 50%;
   transform: translateY(-50%);
   background: rgba(255, 255, 255, 0.3);
   padding: 4px 12px;
   border-radius: 4px;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
   z-index: 3;
   min-width: 80px;
   text-align: center;
}

.rating-text {
   color: #495057;
   font-weight: 500;
   font-size: 15px;
   white-space: nowrap;
}

.rating-text span:first-of-type {
   color: #dc3545;
   font-weight: 700;
}

.review-item-content {
   color: #4a5568;
   line-height: 1.6;
   font-size: 16px;
   background: rgba(255,255,255,0.8);
   padding: 1rem 1.25rem;
   border-radius: 0.5rem;
   border: 1px solid #edf2f7;
   margin-top: 0.75rem;
}

/* 이미지 갤러리 */
.review-images {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
   gap: 0.75rem;
   margin-top: 1.5rem;
   padding: 1rem;
   background: rgba(247, 250, 252, 0.8);
   border-radius: 0.75rem;
}

.review-image {
   aspect-ratio: 1;
   position: relative;
   cursor: pointer;
}

.review-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 0.5rem;
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
   transition: transform 0.2s, box-shadow 0.2s;
   border: 2px solid #fff;
}

.review-image:hover img {
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(0,0,0,0.15);
   border-color: #4299e1;
}

/* 이미지 모달 */
.review-modal {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.9);
   z-index: 9999;
   padding: 2rem;
}

.review-modal-content {
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.review-modal-main {
   text-align: center;
   margin-bottom: 2rem;
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
}

.review-modal-main img {
   max-width: 100%;
   max-height: calc(100vh - 200px);
   width: auto;
   height: auto;
   object-fit: contain;
   display: block;
   margin: 0 auto;
   border-radius: 0.5rem;
   box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.review-modal-thumbs {
   display: flex;
   gap: 1rem;
   overflow-x: auto;
   padding: 1.25rem;
   justify-content: center;
   background: rgba(255,255,255,0.1);
   border-radius: 0.75rem;
   border: 1px solid rgba(255,255,255,0.1);
}

.review-modal-thumb {
   width: 80px;
   height: 80px;
   flex-shrink: 0;
   cursor: pointer;
   opacity: 0.6;
   border-radius: 0.375rem;
   overflow: hidden;
   box-shadow: 0 2px 4px rgba(0,0,0,0.2);
   transition: all 0.2s ease;
}

.review-modal-thumb.active {
   opacity: 1;
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(0,0,0,0.3);
   border: 2px solid #ed8936;
}

.review-modal-thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.review-modal-close {
   position: absolute;
   top: 1.5rem;
   right: 1.5rem;
   color: #fff;
   font-size: 2.5rem;
   cursor: pointer;
   z-index: 10000;
   text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* -----------------------------------------------------------
 * 게시판 댓글 영역 
 ----------------------------------------------------------- */
/* 댓글 내용 */
.cmt-reply {
    top:0;
    left:-16px;
}
.by-writer { 
    background:#fbefef !important;
    border-top:1px solid #f6cece !important;
}
.cmt-content {
    word-break:break-all;
    overflow:hidden
}
.cmt-content img {
    max-width:100%;
    height:auto
}

/* 대댓글, 수정, 삭제 */
.cmt-btn ul { 
    list-style: none; 
    margin: 0; 
}
.cmt-btn ul > li { 
    float: left; 
    font-size:12px;
    padding: 0 10px; 
}
.cmt-btn ul > li::before { 
    float: left; 
    color:#ccc; 
    content: "|"; 
    margin-left:-12px;
}
.cmt-btn ul > li:last-child { 
    padding-right:0;
}
.cmt-btn ul > li:first-child::before, 
.cmt-btn ul > li.no-bar::before { 
    content: ""; 
    margin-left:0; 
}
.cmt-btn ul > li > a { 
    float:left;
    color:#888;
    white-space:nowrap;    
}

/* 댓글 쓰기폼 */
#fviewcomment #wr_content { 
    resize:none; 
}

/* SNS 등록 */
#bo_vc_opt ol {    
    margin:0;
    padding:0;
    list-style:none;
    zoom:1; 
    background:#ccc;
    border-radius:3px;
}
#bo_vc_opt ol:after { 
    display:block;
    visibility:hidden;
    clear:both;
    content:""; 
}
#bo_vc_opt ol li { 
    float:left;
    margin:0; 
}
#bo_vc_send_sns ul { 
    margin:0;
    padding:0;
    list-style:none;
    zoom:1; 
}
#bo_vc_send_sns ul:after { 
    display:block;
    visibility:hidden;
    clear:both;
    content:""; 
}
#bo_vc_send_sns ul li {    
    float:left;
    margin:0 1.0rem 0 0;
}
#bo_vc_send_sns input {    
    margin:0 0 0 0.5rem;
}

/* 반응형 */
@media all and (max-width:768px) {
   .store-info,
   .review-group {
       padding: 1rem;
       margin: 0 0;
   }

   .store-info-table th {
       width: 100px;
   }
   
   .group-title {
       font-size: 1.5rem;
   }

   .review-item-header {
       gap: 0.5rem;
   }

   .review-item-title {
       height: 42px; /* 모바일에서 별점 그래프 높이에 맞춤 */
       font-size: 14px;
   }

   .review-item-header:has(.rating-bar-container) .review-item-title {
       font-size: 14px;
       padding: 4px 10px;
   }

   .review-item-content {
       font-size: 14px;
       padding: 0.5rem 1rem;
   }

   .rating-bar-container {
       height: 42px;
       min-width: 120px;
   }

   .rating-text-box {
       min-width: 60px;
       padding: 4px 8px;
   }

   .rating-text {
       font-size: 13px;
   }

   .review-images {
       grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
       gap: 0.5rem;
   }

   .review-modal {
       padding: 1rem;
   }

   .review-modal-thumb {
       width: 60px;
       height: 60px;
   }
   
   .custom-store-item {
       flex-direction: row;
       gap: 15px;
       align-items: center;
   }
   
   .custom-store-label {
       flex: 0 0 100px;
       padding-right: 0;
       color: #868e96;
       font-size: 14px;
       word-break: keep-all;
       white-space: nowrap;
   }
   
   .custom-store-value {
       font-size: 14px;
       word-break: break-all;
   }

   .custom-store-header i {
       font-size: 20px;
   }

   .custom-store-header h3 {
       font-size: 18px;
   }

    .custom-source-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-source-name, 
    .custom-source-url {
        width: 100%;
    }

}



@media all and (max-width:575px) {
    .responsive .cmt-box {
        border-right:0 !important;
    }
    .responsive #bo_vc_w .cmt-box {
        border-left:0 !important;
        border-radius:0 !important;
    }
    .responsive #bo_vc_login {
        border-left:0 !important;
        border-right:0 !important;
        border-radius:0 !important;
    }
}