.sell-form-box {
    max-width: 100%;
    width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
}
.sell-form-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 24px;
}
.sell-form-row {
    position: relative;
    margin-bottom: 16px;
}
.sell-form-row-title {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 12px;
}
.sell-form-row input,
.sell-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.textarea-h150 {
    height: 150px;
}


.sell-form-row button:not(.thumbnail-remove) {
    padding: 8px 12px;
    font-size: 14px;
    margin-top: 6px;
}
.sell-form-check {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sell-form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.btn-submit {
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
}
.btn-cancel {
    background: #ffc107;
    color: black;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
}
.text_trans_price {
    font-size: 12px;
    font-weight: 500;
    position: absolute;
    left: 0;
    bottom: -23px;
}

/* 체크박스 스타일 */
.checkbox-style {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 6px;
}
.checkbox-style input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007aff;
    margin-right: 6px;
}

/* 토지 기본정보 스타일 */
.sell-modal-info-block {
    margin-bottom: 24px;
}

.sell-modal-info-title {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.sell-modal-info-content {
    font-size: 14px;
    color: #444;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sell-modal-info-content-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.6;
    width: 49%;
}

.sell-modal-info-content-row strong {
    flex-shrink: 0;
    color: #333;
    font-size: 13px;
}

.custom-upload-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
    padding-left: 12px;
    background: #fff;
}

.custom-upload-wrapper input[type="file"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
}

#sellUploadBtn {
    background: #ffa726;
    color: white;
    border: none;
    padding: 0 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    height: 100%;
    border-radius: 0 8px 8px 0;
    margin: 0;
}
#imgUploadLabel {
    flex: 1;
    font-size: 14px;
    color: #555;
    padding-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


#sellUploadBtn:hover {
    background: #fb8c00;
}

#sellUploadBtn:active {
    background: #ef6c00;
}
.thumbnail-preview-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.thumbnail-preview-box .thumb {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}
.thumbnail-preview-box .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail-preview-box .thumb button {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 12px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.sell-form-section {
    margin: 0 -32px;
    padding: 16px 32px;

}
.sell-form-section:nth-child(4) {
    background: #eee;
}
.sell-form-section-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}
.sell-form-row-two {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.sell-form-row-half {
    width: 50%;
}

.sell-info-table {
    width: 100%;
    text-align: left;
    border: 1px solid #d4d4d4;
    border-collapse: collapse;
}
.sell-info-table tr {

}
.sell-info-table th {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    width: 20%;
    border-bottom: 1px solid #d4d4d4;
}
.sell-info-table td {
    font-size: 14px;
    font-weight: 400;
    text-align: right;
    padding: 10px 15px;
    border-bottom: 1px solid #d4d4d4;
    width: 30%;
}
.sell-info-table td:nth-child(2){
    border-right: 1px solid #d4d4d4;
}

.sell-form-row-ect {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: -7px;
}
.sell-form-row-ect div {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.sell-form-row-ect strong {
    color: #f20;
}

.popup-detail-header {
    margin-bottom: 20px;
}
#addrView {
    font-size: 13px;
    padding-bottom: 10px;
}
/* 지도 */
#sellMap {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* 썸네일 */
.thumbnail-preview-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail-item {
    position: relative;
    width: 70px;
    aspect-ratio: 1 / 1;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.thumbnail-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4444;
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumbnail-remove img {
    height: 10px;
    filter: invert(1);
}



    /* 매물 리스트 */
.sals-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 16px;
    background: #fff;
    z-index: 10;
}
.sals-top-buy {
    border-top: 3px solid #f5a020;
}
.sals-top-sell {
    border-top: 3px solid #3380fd;
}
.func_sort {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}
.func_sort .active {
    color: #0070f3;
    font-weight: bold;
}
.btn_close_container {
    width: 14px;
}
.btn_close_container img {
    width: 100%;
}
.sale-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 53px;
}
.sale-card {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    position: relative;
}

.sale-thumb {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}
.sale-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 11px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.sale-content {
    flex: 1;
}
.sale-title {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #0070f3;
    margin-bottom: 4px;
}
.wish-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
}

.sale-location {
    font-size: 14px;
    color: #444;
}
.sale-meta {
    font-size: 13px;
    color: #777;
    margin: 4px 0;
}
.sale-desc {
    font-size: 13px;
    color: #222;
}
.sale-tags {
    margin-top: 6px;
}
.sale-tags .tag {
    display: inline-block;
    font-size: 12px;
    color: #555;
    background: #f1f1f1;
    padding: 2px 6px;
    margin-right: 4px;
    border-radius: 4px;
}
.sale-price {
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.4px;
}
.share-label {
    font-size: 12px;
    color: red;
    margin-left: 4px;
    vertical-align: middle;
}
.sale-heart {
    position: absolute;
    top: 0;
    right: 0;
}
.sale-heart img {
    width: 18px;
}
.sale-view {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 10px;
    right: 0;
}
.sale-view img {
    width: 24px;
}
.sale-view span {
    font-size: 12px;
    color: #909090;
}


    /* 매물 상세 페이지 */
.popup-detail {
    max-width: 800px;
    width: 100%;
}
.detail-header-addr {
    font-size: 18px;
    line-height: 21px;
}
.popup-detail .info-block {
    margin: 0;
    padding: 24px 0;
    border: none;
}
.popup-detail .info-block-wide {
    margin: 0 -32px;
    padding: 24px 32px;
    background-color: #f1f3f5;
}
.detail-upload-img-wrapper {
    display: flex;
    align-items: center;

    margin-top: 14px;
    width: 100%;

    overflow-x: auto;   /* 가로 스크롤 허용 */
    overflow-y: hidden; /* 세로 스크롤 제거 */
    white-space: nowrap; /* 줄바꿈 방지 */
    gap: 8px;           /* 이미지 사이 간격 (선택사항) */
    padding-bottom: 8px; /* 스크롤 바와 간섭 방지 */
}
.detail-upload-img {
    flex: 0 0 auto;
    width: 100px; /* 원하는 이미지 너비 */
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.detail-upload-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
#detailMap {
    margin: 0 -32px;
    height: 200px;
    border-radius: 8px;
}

.detail-info {
    padding: 24px 0 0;
}
.detail-info-top {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}
.detail-info-top h1 {
    font-size: 24px;
    font-weight: bold;
    line-height: 28px;
}
.detail-info-top p {
    font-size: 18px;
    font-weight: bold;
}
.detail-info-top span {
    font-size: 14px;
    line-height: 16px;
}
.detail-info-table {
    width: 100%;
    border: none;
    border-collapse: collapse;
    table-layout: fixed;
}
.detail-info-table th,
.detail-info-table td {
    padding: 7px;
}
.detail-info-table th {
    width: 100px;
}
.detail-info-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px auto 30px;
}
.detail-info-tags .tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 6px 12px;
    font-size: 14px;
}
.detail-info-desc {
    padding: 16px;
    background-color: #f1f3f5;
    border-radius: 4px;
    font-size: 14px;
    margin: 15px 0 0;
    line-height: 1.7;
}
.detail-info-desc p {
    white-space: pre-line;
}
.info-block-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}
.info-block-table th,
.info-block-table td {
    padding: 7px 0;
}

.detail-info-interview {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
    background-color: #e2f1ff;
    border-radius: 4px;
    font-size: 14px;
    margin: 15px 0 0;
}
.interview_left,
.interview_right {
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 4px;
}
.detail-info-interview .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    overflow: hidden;
    border-radius: 50%;
}
.detail-info-interview .icon img {
    width: 60%;
}
.detail-info-interview .interview_left .interview_text {
    background-color: rgba(248, 247, 181, 0.5);
}
.interview_right {
    flex-direction: row-reverse;
}
.interview_right .icon img {
    width: 100%;
}
.detail-info-interview .interview_text {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    line-height: 1.7;
    border-radius: 7px;
    background-color: #fff;
    max-width: calc(100% - 300px);
    font-size: 14px;
}


#chartDetail {
    height: 200px;
}

.cluster-form-row-two {
    align-items: baseline;
}
.cluster-form-row-two > div {
    flex: 1;
    border: none;
}

.image_slider_popup {
    display:flex;
    justify-content:center;
    align-items:center;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:9999;
    background:rgba(0,0,0,0.8);
}
.image_slider_popup_container {
    position:relative;
    max-width:90%;
    max-height:90%;
    width:800px;
}
.btn_close_image_slider_popup {
    position: absolute;
    top: -30px;
    right: 0;
    border: none;
    z-index: 10;
    width: 24px;
    cursor: pointer;
}
.btn_close_image_slider_popup img {
    width: 100%;
    filter: invert(1);
}
.btn_slider_ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
}
.btn_slider_ctrl img {
    filter: invert(1);
    width: 10px;
}
.btn_slider_prev {
    left:0;
}
.btn_slider_prev img {
    transform: rotate(180deg);
}
.btn_slider_next {
    right:0;
}

.slider_image {
    width:100%;
    max-height:80vh;
    object-fit:contain;
    border-radius:8px;
}



@media screen and (max-width: 1032px) {
    .sell-form-section {
        margin: 0 -20px;
        padding-right: 20px;
        padding-left: 20px;
    }
    .sell-form-row-ect {
        flex-direction: column;
        align-items: baseline;
        gap: 10px;
    }
    .sell-form-section-title {
        flex-direction: column;
        gap: 10px;
    }
    .sell-form-row input, .sell-form-row textarea {
        font-size: 12px;
    }


    .sell-form-row-two {
        flex-direction: column;
        gap: 0;
    }
    .sell-form-row-half {
        width: 100%;
    }

    .sell-info-table th,
    .responsive-table th {
        display: none;
    }
    .sell-info-table td:not(.ck_cnt),
    .responsive-table td:not(.ck_cnt){
        min-height: 26px;
        text-align: right;
        border-right: none;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        font-size: 12px;
    }
    .sell-info-table tr:last-of-type td:not(.ck_cnt):last-of-type,
    .responsive-table tr:last-of-type td:not(.ck_cnt):last-of-type{
        border-bottom: none;
    }
    .sell-info-table td::before,
    .responsive-table td::before{
        display: block;
        content: attr(data-label);
        text-align: left;
        font-weight: bold;
        margin-bottom: 0;
    }

    .sell-form-box {
        width: 100%;
    }

    .thumbnail-item {
        width: calc(33.33% - 7px);
    }

    .text_trans_price {
        bottom: initial;
        top: 0;
        right: 0;
        left: initial;
    }

    .cluster-form-row-two > div {
        width: 100%;
    }

    .detail-upload-img-wrapper {
        padding: 0 12px;
    }

    .detail-info-interview .interview_text {
        max-width: calc(100% - 50px);
    }

    #detailMap {
        margin: 0 -20px;
    }
    .popup-detail .info-block-wide {
        margin: 0 -20px;
        padding: 24px 20px;
    }
    .cluster-form-row-two {
        padding-top: 24px;
    }
}
