/* =========================================================
   gp3 상품 상세 페이지 - V2 CSS 오버라이드
   파일: /css/gp3-v2.css
   경로: https://ios.co.kr/css/gp3-v2.css
   버전: 2025-11-28 v3 (갤러리만 적용)
   ========================================================= */

/* =========================================================
   헤더 - 전체 가운데 정렬
   ========================================================= */
.s_read .doc_header { text-align: center !important; margin-bottom: 40px !important; border-bottom: 1px solid #eee !important; padding-top: 60px !important; }
.s_read .doc_header .container { text-align: center !important; }

@media (max-width: 767px) {
    .s_read .doc_header { margin-bottom: 25px !important; padding-top: 40px !important; }
}


.s_read .item_share { margin-top: 15px !important; padding-top: 15px !important; border-top: 1px solid #eee !important; }

/* 기존 gp3.css .btn_share 완전 오버라이드 */
.btn_share,
.s_read .btn_share,
.s_read .item_share .btn_share,
body .s_read .item_share .btn.btn_share,
body .s_read .item_share button.btn.btn_share,
body .s_read .item_share a.btn.btn_share { 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    padding: 7px 14px !important; 
    font-size: 12px !important; 
    font-weight: 500 !important;
    color: #666 !important; 
    background-color: #fff !important;
    background: #fff !important; 
    border: 1px solid #ddd !important; 
    border-radius: 4px !important; 
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    margin-right: 8px !important;
    margin-bottom: 8px !important;
    box-shadow: none !important;
}
.btn_share:hover,
.s_read .btn_share:hover,
.s_read .item_share .btn_share:hover,
body .s_read .item_share .btn.btn_share:hover,
body .s_read .item_share .btn.btn_share:focus { 
    color: #333 !important; 
    border-color: #999 !important; 
    background-color: #f9f9f9 !important;
    background: #f9f9f9 !important; 
    box-shadow: none !important;
    outline: none !important;
}

/* 아이콘 - 오른쪽 마진으로 간격 */
.btn_share i,
.btn_share i.fa,
.s_read .item_share .btn_share i,
body .s_read .item_share .btn_share i.fa { 
    font-size: 13px !important;
    color: #888 !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
}
.btn_share img,
.s_read .item_share .btn_share img,
body .s_read .item_share .btn_share img { 
    width: 16px !important; 
    height: 16px !important; 
    margin-right: 6px !important;
    vertical-align: middle !important;
    filter: grayscale(100%) brightness(0.6) !important;
}
.btn_share:hover i,
.s_read .item_share .btn_share:hover i { 
    color: #555 !important;
}
.btn_share:hover img,
.s_read .item_share .btn_share:hover img { 
    filter: grayscale(50%) brightness(0.4) !important;
}

@media (max-width: 767px) {
    .btn_share,
    .s_read .btn_share,
    .s_read .item_share .btn_share,
    body .s_read .item_share .btn.btn_share { 
        padding: 6px 12px !important; 
        font-size: 11px !important; 
        margin-right: 6px !important;
        margin-bottom: 6px !important;
    }
    .btn_share i,
    .s_read .item_share .btn_share i { 
        font-size: 12px !important;
        margin-right: 5px !important;
    }
    .btn_share img,
    .s_read .item_share .btn_share img { 
        width: 14px !important; 
        height: 14px !important; 
        margin-right: 5px !important;
    }
}

/* 상품 설명 (.center .cnt) */
.s_read .doc_header .center .cnt {
    display: block !important;
    max-width: 800px !important;
    margin: 12px auto 0 auto !important;
    padding: 20px 20px 0 20px !important;
    background: transparent !important;
    border: none !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #666 !important;
    text-align: center !important;
}

/* 구분 바 - 상품 설명 위 */
.s_read .doc_header .center .cnt::before {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 2px !important;
    background: #ccc !important;
    margin: 0 auto 20px auto !important;
}

@media (max-width: 767px) {
    .s_read .doc_header .center .cnt {
        padding: 16px 15px 0 15px !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
        margin-top: 10px !important;
    }
    .s_read .doc_header .center .cnt::before {
        width: 50px !important;
        margin-bottom: 16px !important;
    }
}

/* 여행지역 (#item_path) */
.s_read .doc_header #item_path { 
    display: inline-block !important; 
    margin: 14px auto 0 auto !important; 
    padding: 8px 18px !important; 
    background: #f0f4f8 !important; 
    border: 1px solid #d0dce8 !important;
    border-radius: 8px !important; 
    font-size: 13px !important; 
    font-weight: 500 !important;
    color: #4a6785 !important; 
    letter-spacing: 0.5px !important;
    text-align: center !important;
}
.s_read .doc_header #item_path:empty { display: none !important; }

@media (max-width: 767px) {
    .s_read .doc_header #item_path { 
        font-size: 12px !important; 
        padding: 6px 14px !important; 
        margin-top: 10px !important; 
    }
}

/* =========================================================
   STEP1 출발일 선택
   ========================================================= */
/* 추후 스타일링 예정 */

/* =========================================================
   탭 메뉴 스타일
   ========================================================= */
.item_detail_tabT {
    border: none !important;
    background: #f8f9fa !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    gap: 0 !important;
}

.item_detail_tabTE {
    flex: 1 !important;
    margin: 0 !important;
}

.item_detail_tabTE .nav-link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #666 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.item_detail_tabTE:first-child .nav-link {
    border-radius: 8px 0 0 0 !important;
}

.item_detail_tabTE:last-child .nav-link {
    border-radius: 0 8px 0 0 !important;
}

.item_detail_tabTE .nav-link:hover {
    color: #333 !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

.item_detail_tabTE .nav-link.active {
    color: #2563eb !important;
    font-weight: 600 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-bottom: 2px solid #fff !important;
    margin-bottom: -1px !important;
}

/* 탭 콘텐츠 영역 */
#step_5 .tab-content,
.tab-content {
    border: 1px solid #ddd !important;
    border-color: #ddd !important;
    background: #fff !important;
    border-radius: 0 0 8px 8px !important;
}

.item_detail_tabCE {
    padding: 30px !important;
    border-right: 1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
    border-left: 1px solid #ddd !important;
}

/* 반응형 - 모바일 */
@media (max-width: 767px) {
    .item_detail_tabT {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 0 !important;
    }
    
    .item_detail_tabTE {
        flex: 0 0 auto !important;
    }
    
    .item_detail_tabTE .nav-link {
        padding: 12px 16px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    
    .item_detail_tabCE {
        padding: 20px 15px !important;
    }
}

/* =========================================================
   갤러리 영역 (.item_photo)
   ========================================================= */
.s_read .item_photo { position: relative !important; border-radius: 16px !important; overflow: hidden !important; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important; background: #f5f5f5 !important; }
.s_read .item_photo img { border-radius: 0 !important; }

/* Best/추천 라벨 - 내용 없으면 숨김 */
.s_read .item_photo .tgl_ele_best,
.s_read .item_photo .tgl_ele_rcmd { position: absolute !important; top: 16px !important; left: 16px !important; z-index: 10 !important; padding: 6px 14px !important; border-radius: 20px !important; font-size: 12px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; }
.s_read .item_photo .tgl_ele_best:empty,
.s_read .item_photo .tgl_ele_rcmd:empty { display: none !important; }
.s_read .item_photo .tgl_ele_best { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(238, 90, 90, 0.4) !important; }
.s_read .item_photo .tgl_ele_rcmd { background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(51, 154, 240, 0.4) !important; top: 52px !important; }

/* Swiper 슬라이더 */
.s_read .item_photo .swiper-container { border-radius: 16px !important; overflow: hidden !important; }
.s_read .item_photo .swiper-slide img { width: 100% !important; height: auto !important; display: block !important; }

/* Swiper 네비게이션 버튼 */
.s_read .item_photo .swiper-button-prev,
.s_read .item_photo .swiper-button-next { width: 44px !important; height: 44px !important; background: rgba(255, 255, 255, 0.95) !important; border-radius: 50% !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; transition: all 0.3s ease !important; }
.s_read .item_photo .swiper-button-prev:hover,
.s_read .item_photo .swiper-button-next:hover { background: #fff !important; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important; transform: scale(1.1) !important; }
.s_read .item_photo .swiper-button-prev::after,
.s_read .item_photo .swiper-button-next::after { font-size: 16px !important; font-weight: 700 !important; color: #333 !important; }
.s_read .item_photo .swiper-button-prev { left: 16px !important; }
.s_read .item_photo .swiper-button-next { right: 16px !important; }

@media (max-width: 767px) {
    .s_read .item_photo { border-radius: 12px !important; margin: 0 -5px !important; }
    .s_read .item_photo .swiper-button-prev,
    .s_read .item_photo .swiper-button-next { width: 36px !important; height: 36px !important; }
    .s_read .item_photo .swiper-button-prev::after,
    .s_read .item_photo .swiper-button-next::after { font-size: 14px !important; }
    .s_read .item_photo .swiper-button-prev { left: 10px !important; }
    .s_read .item_photo .swiper-button-next { right: 10px !important; }
}
