/* -------------------------- */
/* -------------------------- */
/* 대표 타이틀 메뉴 */
/* -------------------------- */
/* -------------------------- */
.content-title {
    margin: 30px 0;
    display: flex;
    gap: 12px;
}

.content-title .title-message{
    position: relative;
    padding-right: 12px;
    color: #007DC4;
}

.content-title .title-message::before {
    content: "";
    width: 3px;
    height: 17px;
    background-color:#007DC4;
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    top: 2px;
    right: 0;
}

/* -------------------------- */
/* -------------------------- */
/* 서브 사이드바 및 메인영역 */
/* -------------------------- */
/* -------------------------- */

/* 전체 레이아웃 */
.solution-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

/* 왼쪽 탭 */
.solution-tabs {
    flex: 0 0 240px;
    background: #f9fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    height : 100vh;
}

.solution-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.solution-tabs li {
    margin-bottom: 8px;
}

.solution-tabs li a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.solution-tabs li:hover {
    background: #f1f3f7;
}

.solution-tabs li a.active {
    background: #ffffff;
    border-left: 4px solid #007DC4;
    color: #007DC4;
    font-weight: 600;
}

/* 오른쪽 콘텐츠 */
.solution-content {
    flex: 1;
    min-width: 300px;
}

.solution-title {
    display : flex;
    justify-content: space-between;
    align-items: baseline;
}

.solution-content .content-box {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.solution-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

/* 반응형 */
@media (max-width: 768px) {
    .solution-layout {
        flex-direction: column;
    }

    .solution-tabs {
        flex: 1;
        width: 100%;
    }

    .solution-content {
        width: 100%;
    }

    .solution-tabs li {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* -------------------------- */
/* -------------------------- */
/* 추천매물 인수리스트 */
/* -------------------------- */
/* -------------------------- */

/* 검색 영역 */
.board-search {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.board-search select,
.board-search input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.board-search button {
    padding: 8px 16px;
    background: #007DC4;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.board-search button:hover {
    background: #005fcc;
}

/* 게시판 리스트 영역 */
.board-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.board-list li {
    width: calc(24.2% - 10px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.board-item-head {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.board-item-head h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
}

.board-item-head p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.board-list li img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.board-item-txt {
    padding: 10px 12px;
}

.board-item-txt h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.3;
    color: #222;
}

.board-item-txt p {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

/* 페이징 */
.board-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.board-pagination button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
    color: #555;
}

.board-pagination button.active,
.board-pagination button:hover {
    background: #007DC4;
    color: #fff;
    border-color: #007DC4;
}

/* 반응형 */
@media(max-width:768px){
    .board-list li {
        width: 100%;
    }
}

/* -------------------------- */
/* -------------------------- */
/* 상담신청 */
/* -------------------------- */
/* -------------------------- */
.consult-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1; /* 기본 1개씩 공간 차지 */
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.consult-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007DC4;
    color: #fff;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.consult-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* 한 줄에 최대 4개 input */
.flex-4 .form-group {
    flex: 1 1 calc(25% - 15px); /* 4개 배치, gap 반영 */
}

/* 상담 내용 한 줄 전체 */
.full-width {
    flex: 1 1 100%;
}

/* 신청 버튼 */
.form-submit {
    text-align: right;
}

.form-submit button {
    padding: 10px 20px;
    background: #007DC4;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.form-submit button:hover {
    background: #005fcc;
}

/* 반응형 */
@media (max-width: 1024px){
    .flex-4 .form-group {
        flex: 1 1 calc(50% - 10px); /* 태블릿: 2개씩 */
    }
}

@media (max-width: 768px){
    .flex-4 .form-group {
        flex: 1 1 100%; /* 모바일: 1개씩 */
    }
}

/* -------------------------- */
/* -------------------------- */
/* 상담신청목록 */
/* -------------------------- */
/* -------------------------- */
.consult-list table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.consult-list th,
.consult-list td {
    border: 1px solid #eee;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.consult-list th {
    background: #f9f9f9;
    font-weight: 600;
}

.consult-list tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.consult-list tbody tr:hover {
    background: #f1faff;
}

.board-list li a {
    display: block;
    color: inherit;
    text-decoration: none;
}
.board-list li:hover {
    transform: translateY(-4px);
    transition: 0.2s ease;
}

.consult-row:hover {
    cursor:pointer;
}

/* 반응형 */
@media(max-width:768px){
    .consult-list table,
    .consult-list thead,
    .consult-list tbody,
    .consult-list th,
    .consult-list td,
    .consult-list tr {
        display: block;
    }

    .consult-list thead tr {
        display: none;
    }

    .consult-list tbody tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
    }

    .consult-list td {
        border: none;
        padding: 6px 0;
        position: relative;
        padding-left: 50%;
    }

    .consult-list td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        font-weight: 600;
    }
}

/* -------------------------- */
/* -------------------------- */
/* 신규의뢰 내용상세 */
/* -------------------------- */
/* -------------------------- */

.request-detail {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 상단 썸네일 + 정보 */
.request-detail-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.request-thumbnail {
    flex: 0 0 40%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.request-thumbnail img {
    width: 100%;
    max-height: 375px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.request-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left : 15px;
    border-left: 1px solid #eee;
}


/* 상단 라벨과 날짜 */
.request-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #777;
}

.request-info .category {
    background: #eef3ff;
    color: #007DC4;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.request-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-top: 4px;
    line-height: 1.4;
}

.request-summary {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* 본문 */
.request-body {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* 하단 링크 (목록으로 돌아가기) */
.request-detail > div:last-child {
    text-align: right;
}

.request-detail > div:last-child a {
    display: inline-block;
    background: #007DC4;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s ease;
}

.request-detail > div:last-child a:hover {
    background: #2747b2;
}

/* 반응형 */
@media (max-width: 768px) {
    .request-detail-box {
        flex-direction: column;
    }

    .request-thumbnail {
        flex: 0 0 100%;
    }

    .request-info-box {
        flex: 1;
    }
}

/* -------------------------- */
/* -------------------------- */
/* 신규의뢰 내용등록 */
/* -------------------------- */
/* -------------------------- */


.request-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.request-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-form label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.request-form input[type="text"],
.request-form input[type="datetime-local"],
.request-form input[type="file"],
.request-form textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: 0.2s;
}

.request-form input[type="text"]:focus,
.request-form textarea:focus {
    border-color: #3459d5;
    outline: none;
}

.request-form textarea {
    resize: vertical;
}

.form-actions {
    text-align: right;
    margin-top: 10px;
}

.btn-submit {
    background: #007DC4;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-submit:hover {
    background: #2747b2;
}

/* 반응형 */
@media (max-width: 768px) {
    .request-form {
        gap: 16px;
    }
}