@charset "UTF-8";
/* detail v2 - title-gallery 섹션. 모든 선택자는 .dv2 하위로 한정. */

/* =========================================================
   타이틀 영역 (_title.jsp) — v1 .deTitle / .hotmark / .savedBtnBox 덮어씀
   ========================================================= */
.dv2 .deTitle.dv2-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 12px;
}

/* 매물번호·수정일(meta)과 배지를 한 줄로. 폭이 모자라면 배지가 다음 줄로 넘어감 */
.dv2 .dv2-title__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1rem;
    row-gap: 4px;
    min-width: 0;
}

.dv2 .deTitle .dv2-title__meta {
    margin: 0;
    font-size: 14px;
    line-height: 18px;
    color: #707070;
}

.dv2 .deTitle .dv2-title__meta em {
    margin: 0 6px;
    font-style: normal;
    color: var(--dv2-border);
}

.dv2 .dv2-title__discount {
    margin-left: 12px;
    font-size: 12px;
    color: var(--dv2-red);
}

.dv2 .dv2-title__discount--price {
    margin-left: 4px;
    font-weight: 700;
}

/* 배지 */
.dv2 .deTitle .hotmark.dv2-title__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0; /* 배지 간격은 구 상세처럼 span margin 2px 로 */
    margin-top: 0;
}

.dv2 .deTitle .dv2-title__badges:empty {
    display: none;
}

.dv2 .deTitle .dv2-title__badges span,
.dv2 .deTitle .dv2-title__badges em.hurry {
    display: inline-flex;
    align-items: center;
    height: 22px;
    margin: 0;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 500;
    font-style: normal;
    line-height: 20px;
    color: var(--dv2-text);
    background: rgb(249, 250, 251);
    border: 1px solid rgb(208, 213, 219);
    border-radius: 4px;
    box-sizing: border-box;
    white-space: nowrap;
}

/* 핫마크 배지: 구 상세 .hotmark span 스타일과 동일 (30px, 14px/500, #F7F9FA 배경, 8px 라운드, margin 2px).
   아이콘-글자 간격은 ::before 를 absolute 대신 flex 항목으로 두고 gap 4px (스프라이트 위치 규칙은 re_common 그대로 재사용) */
.dv2 .deTitle .dv2-title__badges span {
    justify-content: center;
    gap: 4px;
    height: 30px;
    margin: 2px;
    padding: 0 8px !important; /* re_common .hotmarkIcon span 의 padding-left 33px !important 덮어씀 */
    font-size: 14px;
    font-weight: 500;
    line-height: 27px;
    color: #0C0D0E;
    background: #F7F9FA;
    border: 1px solid #D8DDE1;
    border-radius: 8px;
}

/* hotmark 스프라이트 (re_common .hotmarkIcon span:before, 24px 셀): 구 상세처럼 원래 크기로 글자 앞에 배치 */
.dv2 .deTitle .dv2-title__badges span:before {
    position: static;
    flex: 0 0 auto;
}

/* Hurry Up 배지: 크기·여백·라운드는 핫마크 배지와 동일, 색만 빨강 */
.dv2 .deTitle .dv2-title__badges em.hurry {
    height: 30px;
    margin: 2px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 27px;
    color: #fff;
    background: var(--dv2-red);
    border-color: var(--dv2-red);
    border-radius: 8px;
}

/* 조회 / 위시리스트 버튼 */
.dv2 .deTitle .dv2-title__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.dv2 .deTitle .savedBtnBox.dv2-title__btn {
    position: relative;
    top: auto;
    right: auto;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 54px;
    height: 54px;
    margin: 0;
    background: #fff;
    border: 1px solid var(--dv2-border);
    border-radius: var(--dv2-radius);
    box-sizing: border-box;
}

.dv2 .deTitle .dv2-title__btn .savedCount {
    position: static;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 10px;
    color: #303030;
    background: none;
}

.dv2 .deTitle .dv2-title__btn--view:before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: url("https://image.autowini.com/IMG/renew/common/icon/ic_view.svg") center / 24px 24px no-repeat;
}

/* 하트: 미저장 시 외곽선, .saved 시 채움 (상태 클래스는 btnLike가 토글) */
.dv2 .deTitle .dv2-title__btn--wish a {
    display: block;
    margin: 0;
    font-size: 0;
    line-height: 0;
}

.dv2 .deTitle .dv2-title__btn--wish.saved .savedCount {
    color: var(--dv2-red);
    font-weight: 500;
}

/* =========================================================
   갤러리 (_gallery.jsp) — v1 .imgArea / .detailImg / .thumbWrap 덮어씀
   ========================================================= */
.dv2 .imgArea.dv2-gallery {
    float: none;
    width: auto;
}

.dv2 .dv2-gallery .stateBook {
    border-radius: var(--dv2-radius) var(--dv2-radius) 0 0;
}

/* 메인 이미지: 4:3 스테이지 */
.dv2 .detailImg .mainImg.dv2-gallery__main {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--dv2-radius);
    overflow: hidden;
    background: #000;
}

.dv2 .dv2-gallery .stateBook + .detailImg .mainImg.dv2-gallery__main {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.dv2 .detailImg .mainImg .imgStock.dv2-gallery__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

/* imgSizeCheck()가 v1 596px 스테이지 기준 inline width/height/margin-top을 넣음 → 무력화.
   가로형: 전체 너비, 원본 비율 높이 (요소 박스 == 이미지라 ez-plus 줌이 1:1 대응).
   4:3보다 세로로 긴 경우: max-height로 제한하고 object-fit으로 레터박스. */
.dv2 .detailImg .mainImg .imgStock #imgStock {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 100%;
    margin: 0 !important;
    object-fit: contain;
}

/* 이전 / 다음: 흰색 셰브론, 세로 가운데 */
.dv2 .detailImg .mainImg .btnPrev,
.dv2 .detailImg .mainImg .btnNext {
    display: block;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 64px;
    margin-top: -32px;
    overflow: hidden;
    text-indent: -9999px;
    background: none;
    z-index: 116;
}

.dv2 .detailImg .mainImg .btnPrev { left: 4px; }
.dv2 .detailImg .mainImg .btnNext { right: 4px; }

.dv2 .detailImg .mainImg .btnPrev:before,
.dv2 .detailImg .mainImg .btnNext:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.45));
}

.dv2 .detailImg .mainImg .btnNext:before { transform: translateX(-3px) rotate(45deg); }
.dv2 .detailImg .mainImg .btnPrev:before { transform: translateX(3px) rotate(-135deg); }

.dv2 .detailImg .mainImg .btnPrev.off,
.dv2 .detailImg .mainImg .btnNext.off {
    display: none;
}

/* 이미지 위 배지 */
.dv2 .detailImg .inpectedMk {
    top: 0;
    left: 0;
}

.dv2 .detailImg .inpectedMk img {
    display: block;
    width: 88px;
}

.dv2 .detailImg .guaranteeBadge {
    top: 12px;
    left: 12px;
}

.dv2 .detailImg .guaranteeBadge img {
    width: 64px;
}

/* 좌하단 도구: "View all photos"(확대) + "Download all photos" */
.dv2 .detailImg .itemNoPhoto.dv2-gallery__tools {
    display: flex;
    gap: 8px;
    left: 12px;
    bottom: 12px;
}

.dv2 .detailImg .dv2-gallery__tools a {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    font-size: 0;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 26px 26px;
}

.dv2 .detailImg .dv2-gallery__tools .btnViewAll {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16.5 16.5L21 21M11 8v6M8 11h6'/%3E%3C/svg%3E");
}

.dv2 .detailImg .dv2-gallery__tools .btnDownPhoto {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5l5 5 5-5M5 20h14'/%3E%3C/svg%3E");
}

/* 우하단 카운터 pill */
.dv2 .detailImg .photoCount.dv2-gallery__count {
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    z-index: 100;
}

/* 썸네일: 10열 그리드 (영상 썸네일 + li 항목이 display:contents로 그리드 공유) */
.dv2 .detailImg .thumbWrap.dv2-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 4px;
    width: auto;
    margin: 0;
    padding-top: 8px;
}

.dv2 .detailImg .thumbWrap.dv2-gallery__thumbs:after,
.dv2 .dv2-gallery__thumbs ul:after {
    display: none;
}

.dv2 .dv2-gallery__thumbs ul {
    display: contents;
}

.dv2 .dv2-gallery__thumbs li,
.dv2 .dv2-gallery__thumbs .videoWrap {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--dv2-bg-soft);
    background-size: cover;
}

.dv2 .dv2-gallery__thumbs li a,
.dv2 .dv2-gallery__thumbs .videoWrap a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-sizing: border-box;
}

.dv2 .dv2-gallery__thumbs li a img,
.dv2 .dv2-gallery__thumbs .videoWrap .thumbImg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dv2 .dv2-gallery__thumbs li.on a,
.dv2 .dv2-gallery__thumbs .videoWrap a.on {
    border: 2px solid var(--dv2-red);
}

/* 영상 썸네일: 어둡게 처리한 썸네일 위 재생 아이콘 */
.dv2 .dv2-gallery__thumbs .videoWrap a:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.dv2 .dv2-gallery__thumbs .videoWrap img.imgVideo {
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    z-index: 1;
}

/* ---------- 판매완료 페이지 (.soldpage, v2 상세 공통) ---------- */
.soldpage {
    display: flex;
    justify-content: center;
}

.content.soldpage.hasData {
    max-width: 920px;
}
