@charset "utf-8";

/* =========================
   기본
========================= */
body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #222;
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 14px;
}

.write-wrap {
    width: 850px;
    margin: 0 auto;
}

.page-title-bar {
    margin-bottom: 14px;
}

.page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.page-title span {
    font-weight: 700;
}

.req {
    color: #d60000;
    font-weight: 700;
    margin-left: 2px;
}

/* =========================
   섹션
========================= */
.form-section {
    margin: 0 0 12px 0;
    padding: 0;
    border: 1px solid #8bdd96;
    background: #fff;
}

.form-section h3 {
    margin: 0;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f3552;
    background: #cfd5dd;
    border-bottom: 1px solid #c3cad3;
}

/* =========================
   테이블
========================= */
.form-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
}

.form-table th,
.form-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #6beea6;
    vertical-align: middle;
    box-sizing: border-box;
}

.form-table th {
    width: 140px;
    background: #eef2f6;
    text-align: left;
    font-weight: 700;
    color: #222;
}

.form-table td {
    background: #fff;
    line-height: 1.4;
}

/* =========================
   입력요소
========================= */
.write-wrap input[type="text"],
.write-wrap input[type="date"],
.write-wrap input[type="number"],
.write-wrap input[type="password"],
.write-wrap input[type="file"],
.write-wrap select,
.write-wrap textarea {
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 14px;
    color: #222;
    border: 1px solid #bfc5cc;
    background: #fff;
    padding: 4px 8px;
    box-sizing: border-box;
}

.write-wrap input[type="text"],
.write-wrap input[type="date"],
.write-wrap input[type="number"],
.write-wrap input[type="password"],
.write-wrap select {
    height: 30px;
    line-height: 20px;
}

.write-wrap textarea {
    min-height: 80px;
    padding: 8px;
    resize: vertical;
}

.write-wrap input:focus,
.write-wrap select:focus,
.write-wrap textarea:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74,108,247,0.08);
}

/* =========================
   폭 유틸
========================= */
.w-80  { width: 80px; }
.w-100 { width: 100px; }
.w-120 { width: 120px; }
.w-150 { width: 150px; }
.w-180 { width: 180px; }
.w-200 { width: 200px; }

.input-small { width: 60px; }
.input-mid   { width: 120px; }
.input-wide  { width: 220px; }
.input-full  { width: 100%; }

.input-id           { width: 180px; }
.input-email-id     { width: 90px; }
.input-email-domain { width: 120px; }
.input-email-select { width: 110px; }

.w-input  { width: 140px; }
.w-select { width: 140px; }

.price-input {
    width: 80px;
    text-align: right;
}

.area-input {
    width: 80px;
    text-align: right;
}

.tel-input {
    width: 50px;
    text-align: center;
}

.email-input {
    width: 120px;
}

/* =========================
   인라인 요소
========================= */
.inline-label {
    display: inline-block;
    margin: 0 10px 0 14px;
    font-weight: 600;
}

.inline-text {
    display: inline-block;
    margin: 0 8px 0 14px;
    color: #333;
}

.inline-group {
    display: inline-block;
    margin-right: 20px;
}

.inline-radio {
    display: inline-block;
    margin-right: 14px;
}

/* =========================
   안내문
========================= */
.hint {
    font-size: 12px;
    color: #777;
    margin-left: 6px;
}

.guide-text {
    font-size: 13px;
    color: #666;
    padding-left: 10px;
}

.guide-box {
    background: #f4f6fa;
    border: 1px solid #dcdfe6;
    padding: 10px;
    font-size: 13px;
    color: #444;
}

.price-notice {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.direct-guide {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #444;
}

.memo-guide {
    padding: 10px 0 8px;
    font-size: 13px;
    color: #555;
}

/* =========================
   버튼
========================= */
.submit-wrap,
.form-btn-area {
    text-align: center;
    margin: 24px 0 40px;
}

.btn-submit,
.submit-btn {
    display: inline-block;
    min-width: 220px;
    height: 50px;
    line-height: 48px;
    border: 1px solid #666;
    background: #f5f5f5;
    color: #222;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
}

.btn-submit:hover,
.submit-btn:hover {
    background: #1a252f;
    color: #fff;
}

/* =========================
   업종분류 전용
========================= */
.cate-cell {
    vertical-align: top !important;
}

.cate-guide {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.cate-wrap {
    display: flex;
    border: 1px solid #cfcfcf;
    background: #fff;
}

.cate-left,
.cate-right {
    width: 50%;
    min-height: 150px;
    padding: 16px 18px;
    box-sizing: border-box;
    vertical-align: top;
}

.cate-left {
    border-right: 1px solid #d9d9d9;
}

.cate-head {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #222;
}

.cate-main-item {
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 14px;
    color: #222;
}

.cate-main-item input[type="radio"] {
    margin-right: 6px;
    vertical-align: middle;
}

.cate-main-item span {
    vertical-align: middle;
}

.cate-sub-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    column-gap: 16px;
    row-gap: 12px;
}

.cate-sub-list label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: 1.3;
    font-size: 14px;
    color: #222;
    white-space: nowrap;
}

.cate-sub-list input[type="radio"] {
    margin: 0;
    flex: 0 0 auto;
}

.cate-desc {
    margin-top: 14px;
    line-height: 1.7;
    font-size: 13px;
    color: #444;
}

.cate-direct-input {
    width: 220px;
    height: 32px;
    margin-top: 10px;
}

/* =========================
   판매자/관리자
========================= */
.seller-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.seller-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.seller-table td {
    line-height: 1.8;
}

.contact-label {
    display: inline-block;
    width: 60px;
}

.admin-memo-textarea {
    width: 100%;
    box-sizing: border-box;
}

/* =========================
   기타
========================= */
.line-row {
    display: block;
    width: 100%;
}

.line-row input[type="text"] {
    width: 160px;
}

/* =========================
   반응형
========================= */
@media (max-width: 900px) {
    .write-wrap {
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .form-table,
    .form-table th,
    .form-table td {
        table-layout: auto;
    }

    .cate-sub-list {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 18px;
    }

    .form-section h3 {
        font-size: 15px;
        padding: 8px 10px;
    }

    .form-table,
    .form-table tbody,
    .form-table tr,
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }

    .form-table tr {
        border-bottom: 1px solid #ddd;
    }

    .form-table th {
        border-bottom: none;
        padding: 8px 10px 4px;
        background: #eef2f6;
    }

    .form-table td {
        padding: 6px 10px 10px;
        border-top: none;
    }

    .cate-wrap {
        display: block;
    }

    .cate-left,
    .cate-right {
        width: 100%;
        min-height: auto;
        padding: 12px;
    }

    .cate-left {
        border-right: none;
        border-bottom: 1px solid #d9d9d9;
    }

    .cate-sub-list {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }

    .w-input,
    .w-select,
    .w-120,
    .w-150,
    .w-200,
    .input-small,
    .input-mid,
    .input-wide,
    .input-id,
    .input-email-id,
    .input-email-domain,
    .input-email-select,
    .price-input,
    .area-input,
    .cate-direct-input {
        width: 100% !important;
        max-width: 100% !important;
    }

    .line-row input[type="text"] {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .write-wrap {
        padding: 0 8px;
    }

    .cate-sub-list {
        grid-template-columns: 1fr;
    }

    .cate-sub-list label {
        font-size: 13px;
    }

    .form-table th,
    .form-table td {
        font-size: 13px;
    }
}

.cate-sub-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr)); /* 살짝 좁힘 */
    column-gap: 6px;  /* ← 줄임 (기존 16 → 10) */
    row-gap: 8px;      /* ← 줄임 (기존 12 → 8) */
}

.cate-sub-list label {
    gap: 3px;          /* ← 줄임 */
    font-size: 13px;   /* ← 살짝 줄임 */
    line-height: 1.0;  /* ← 핵심 */
}

.cate-main-item {
    margin-bottom: 6px;   /* 기존 10 → 6 */
    font-size: 13px;
}

/* =========================
   2026-04-19 세부 수정
========================= */

@charset "utf-8";

/* =========================
   기본
========================= */
body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #222;
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 13px;
}

.write-wrap {
    width: 900px;
    margin: 0 auto;
}

.page-title-bar {
    margin-bottom: 10px;
}

.page-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.page-title span {
    font-size: 15px;
    font-weight: 700;
}

.req {
    color: #d60000;
    font-weight: 700;
    margin-left: 2px;
}

/* =========================
   섹션
========================= */
.form-section {
    margin: 0 0 10px 0;
    padding: 0;
    border: 1px solid #7ea3c7;
    background: #fff;
}

.form-section h3 {
    margin: 0;
    padding: 7px 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f3552;
    background: #cfd5dd;
    border-bottom: 1px solid #c3cad3;
}

/* =========================
   테이블
========================= */
.form-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
}

.form-table th,
.form-table td {
    border: 1px solid #c9d0d8;
    padding: 6px 8px;
    box-sizing: border-box;
}

.form-table th {
    width: 140px;
    background: #eef2f6;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: #222;
    vertical-align: middle;
}

.form-table td {
    background: #fff;
    font-size: 13px;
    line-height: 1.25;
    vertical-align: middle;
}

/* =========================
   입력요소
========================= */
.write-wrap input[type="text"],
.write-wrap input[type="date"],
.write-wrap input[type="number"],
.write-wrap input[type="password"],
.write-wrap input[type="file"],
.write-wrap select,
.write-wrap textarea,
.write-wrap button {
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 13px;
    color: #222;
    box-sizing: border-box;
}

.write-wrap input[type="text"],
.write-wrap input[type="date"],
.write-wrap input[type="number"],
.write-wrap input[type="password"],
.write-wrap select {
    height: 26px;
    line-height: 16px;
    padding: 2px 6px;
    border: 1px solid #bfc5cc;
    background: #fff;
}

.write-wrap textarea {
    width: 100%;
    min-height: 90px;
    padding: 8px;
    border: 1px solid #bfc5cc;
    background: #fff;
    line-height: 1.35;
    resize: vertical;
}

.write-wrap input:focus,
.write-wrap select:focus,
.write-wrap textarea:focus {
    outline: none;
    border-color: #7f78d6;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.08);
}

.write-wrap input[type="radio"] {
    margin-right: 4px;
    vertical-align: middle;
}

/* =========================
   버튼
========================= */
.btn-search,
.btn-map {
    height: 26px;
    padding: 0 8px;
    border: 1px solid #999;
    background: #f8f8f8;
    cursor: pointer;
}

.btn-search:hover,
.btn-map:hover {
    background: #efefef;
}

.form-btn-area {
    text-align: center;
    margin: 20px 0 36px;
}

.submit-btn {
    display: inline-block;
    min-width: 220px;
    height: 48px;
    line-height: 46px;
    border: 1px solid #666;
    background: #f5f5f5;
    color: #222;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
}

.submit-btn:hover {
    background: #1a252f;
    color: #fff;
}

/* =========================
   폭 유틸
========================= */
.w-80  { width: 80px; }
.w-100 { width: 100px; }
.w-120 { width: 120px; }
.w-150 { width: 150px; }
.w-180 { width: 180px; }
.w-200 { width: 200px; }

.input-small { width: 56px; }
.input-mid   { width: 120px; }
.input-wide  { width: 240px; }
.input-full  { width: 100%; }

.input-email-id     { width: 90px; }
.input-email-domain { width: 120px; }
.input-email-select { width: 110px; }

.w-input  { width: 140px; }
.w-select { width: 140px; }

.price-input {
    width: 78px;
    text-align: right;
}

.profit-rate-input {
    width: 78px;
    text-align: right;
}

.area-input {
    width: 70px;
    text-align: right;
}

.floor-mini {
    width: 70px;
    text-align: center;
}

/* =========================
   인라인 요소
========================= */
.inline-label {
    display: inline-block;
    margin: 0 10px 0 14px;
    font-weight: 600;
}

.inline-group {
    display: inline-block;
    margin-right: 20px;
}

.inline-radio {
    display: inline-block;
    margin-right: 12px;
}

/* =========================
   안내문
========================= */
.hint {
    font-size: 11px;
    color: #777;
    margin-left: 5px;
}

.price-notice {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    margin: 8px 0 6px;
}

.memo-guide {
    padding: 10px 12px 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #555;
}

/* =========================
   업종분류
========================= */
.cate-cell {
    vertical-align: top !important;
}

.cate-guide {
    margin-bottom: 8px;
    font-size: 12px;
    color: #333;
}

.cate-wrap {
    display: flex;
    border: 1px solid #cfcfcf;
    background: #fff;
}

.cate-left,
.cate-right {
    width: 50%;
    min-height: 120px;
    padding: 10px 12px;
    box-sizing: border-box;
    vertical-align: top;
}

.cate-left {
    border-right: 1px solid #d9d9d9;
}

.cate-head {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.cate-main-item {
    display: inline-block;
    width: 32%;
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-size: 14px;
    color: #222;
    vertical-align: top;
}

.cate-main-item span {
    vertical-align: middle;
}

.cate-sub-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    column-gap: 10px;
    row-gap: 8px;
}

.cate-sub-list label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    line-height: 1.2;
    font-size: 14px;
    color: #222;
    white-space: nowrap;
}

.cate-sub-list input[type="radio"] {
    margin: 0;
    flex: 0 0 auto;
}

.cate-selected-info {
    margin-top: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
}

.cate-selected-info strong {
    display: inline-block;
    width: 68px;
}

.cate-desc {
    margin-top: 6px;
    line-height: 1.5;
    font-size: 12px;
    color: #444;
}

.cate-direct-input {
    width: 180px;
    height: 26px;
    margin-top: 8px;
}

/* =========================
   주소입력
========================= */
.address-table .addr-row input[type="text"] {
    vertical-align: middle;
}

.address-table .input-wide,
.address-table input[name="address1"],
.address-table input[name="address2"] {
    width: 240px;
}

.summary-input,
input[name="location_desc"] {
    width: 27ch;
    min-width: 27ch;
}

/* =========================
   개별정보
========================= */
.info-table td {
    line-height: 1.25;
}

.info-table .w-select,
.info-table .w-input {
    width: 140px;
}

/* =========================
   금액정보
========================= */
.price-table th {
    width: 90px;
    white-space: nowrap;
}

.price-table td {
    line-height: 1.25;
    vertical-align: middle;
}

.price-table input[type="text"],
.price-table input[type="number"] {
    width: 78px;
    height: 26px;
    text-align: right;
}

.price-table .hint {
    margin-left: 6px;
    font-size: 10px;
}

/* =========================
   판매자/관리자
========================= */
.seller-section {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.seller-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-memo-textarea {
    width: 100%;
    box-sizing: border-box;
}

/* =========================
   이미지 미리보기
========================= */
#preview {
    margin-top: 8px;
}

#preview img {
    max-width: 120px;
    height: auto;
    margin: 4px;
    border: 1px solid #ddd;
    padding: 2px;
    background: #fff;
}

/* =========================
   반응형
========================= */
@media (max-width: 920px) {
    .write-wrap {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 17px;
    }

    .form-section h3 {
        font-size: 14px;
        padding: 8px 10px;
    }

    .form-table,
    .form-table tbody,
    .form-table tr,
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }

    .form-table th {
        padding: 8px 10px 4px;
        border-bottom: none;
    }

    .form-table td {
        padding: 6px 10px 10px;
        border-top: none;
    }

    .cate-wrap {
        display: block;
    }

    .cate-left,
    .cate-right {
        width: 100%;
        min-height: auto;
        padding: 10px;
    }

    .cate-left {
        border-right: none;
        border-bottom: 1px solid #d9d9d9;
    }

    .cate-main-item {
        width: 49%;
    }

    .cate-sub-list {
        grid-template-columns: repeat(2, minmax(80px, 1fr));
    }

    .w-120,
    .w-150,
    .w-200,
    .input-wide,
    .summary-input,
    .cate-direct-input {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .cate-main-item {
        width: 100%;
    }

    .cate-sub-list {
        grid-template-columns: 1fr;
    }
}


/* 금액정보 입력칸 */
/* 금액정보 입력칸 강제 고정 */
.price-table input.price-input,
.price-table input.price-input-mid,
.price-table input.price-input-wide,
.price-table input.profit-rate-input {
    width: 78px !important;
    height: 28px !important;
    padding: 2px 6px !important;
    box-sizing: border-box !important;
    border: 1px solid #bfc5cc !important;
    vertical-align: middle;
}

/* 매가합계도 같은 폭으로 */
.price-table input.price-input-wide {
    width: 78px !important;
}

/* 보증금 / 월세 / 권리금 / 관리비 / 월수익 / 월매출 / 월수익금 */
.price-table input.price-input-mid {
    width: 78px !important;
}

/* 월수익률 */
.price-table input.profit-rate-input {
    width: 78px !important;
}

.price-table td {
    white-space: nowrap;
}

.price-table .hint {
    font-size: 11px;
    color: #666;
    margin-left: 8px;
}

/* ===============================
   write.php 레이아웃 복원용
================================ */

.write-wrap{
    width:960px;
    margin:30px auto;
    background:#fff;
    padding:0 0 20px 0;
}

.form-section{
    width:100%;
    margin-bottom:12px;
    border:1px solid #93c45b;
    box-sizing:border-box;
}

.form-section h3{
    margin:0;
    padding:8px 12px;
    background:#cfd8e2;
    font-size:16px;
    font-weight:bold;
}

.form-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

.form-table th{
    width:150px;
    background:#e9edf2;
    border:1px solid #c9c9c9;
    padding:8px;
    text-align:left;
    vertical-align:middle;
    font-size:14px;
}

.form-table td{
    border:1px solid #c9c9c9;
    padding:8px;
    vertical-align:middle;
    font-size:14px;
}

.form-table input[type="text"],
.form-table select{
    height:28px;
    box-sizing:border-box;
}

.cate-cell{
    padding:8px !important;
}

.cate-guide{
    margin-bottom:10px;
    font-size:13px;
}

.cate-wrap{
    display:flex;
    width:100%;
    border:1px solid #d0d0d0;
    box-sizing:border-box;
}

.cate-left,
.cate-right{
    width:50%;
    min-height:160px;
    padding:12px;
    box-sizing:border-box;
}

.cate-left{
    border-right:1px solid #d0d0d0;
}

.cate-head{
    font-weight:bold;
    margin-bottom:10px;
}

.cate-main-item,
.cate-sub-item{
    display:inline-block;
    width:32%;
    margin-bottom:10px;
    font-size:14px;
}

.cate-desc{
    margin-top:8px;
    font-size:13px;
    line-height:1.5;
}

.cate-direct-row{
    margin-top:8px;
}

.cate-direct-input{
    width:180px;
}

textarea{
    width:100%;
    min-height:150px;
    box-sizing:border-box;
}