@charset "utf-8";

/* ==========================================================================
   그누보드5 감성숙소 컨셉 공지사항 스킨 (Notice Board Style)
   ========================================================================== */

.notice-board-wrap,
.notice-view-wrap,
.notice-write-wrap {
    max-width: 1320px;
    margin: 80px auto;
    padding: 108px 24px 80px;
    background: var(--deep);
    /* 기존 배경색 유지 */
    color: var(--cream);
    margin-top: 100px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 게시판 상단 헤더 타이틀 */
.board-header {
    text-align: center;
    margin-bottom: 60px;
}

.board-header .sub-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.board-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    color: var(--cream);
    letter-spacing: 1px;
}

/* 게시판 상단 제어 바 (검색/버튼 등) */
.board-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--sand);
}

/* 감성 테이블 리스트 구조 */
.notice-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--gold);
    /* 상단 포인트 골드선 */
    border-bottom: 1px solid rgba(212, 197, 169, 0.15);
}

.notice-table th {
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 18px 10px;
    color: var(--sand);
    border-bottom: 1px solid rgba(212, 197, 169, 0.15);
    text-transform: uppercase;
}

.notice-table th.th-subject {
    text-align: left;
    padding-left: 20px;
}

.notice-table td {
    padding: 20px 10px;
    font-size: 15px;
    color: rgba(245, 240, 232, 0.85);
    border-bottom: 1px solid rgba(212, 197, 169, 0.1);
    text-align: center;
    transition: background 0.3s;
}

/* 마우스 호버 효과 */
.notice-table tr.board-list-row:hover td {
    background: rgba(201, 139, 74, 0.04);
    /* 은은한 골드빛 배경 호버 */
    color: var(--white);
}

/* 제목 행 스타일 */
.notice-table td.td-subject {
    text-align: left;
    padding-left: 20px;
}

.notice-table td.td-subject a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.notice-table td.td-subject a:hover {
    color: var(--gold);
}

.bo_cate_link {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    padding: 3px 8px;
    border: 1px solid rgba(201, 139, 74, 0.45);
    color: var(--gold);
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-size: 11px;
    line-height: 1.2;
    vertical-align: middle;
}

.food-board-table .td-subject a {
    display: inline;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.food-board-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
    color: rgba(212, 197, 169, 0.72);
    font-size: 13px;
    line-height: 1.5;
}

.food-board-list-meta span {
    position: relative;
}

.food-board-list-meta span+span::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(212, 197, 169, 0.45);
    transform: translateY(-50%);
}

/* 공지사항(Notice) 배지 */
.badge-notice {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-right: 8px;
    font-weight: 400;
}

/* 글쓰기 버튼 등 감성 버튼 스타일 */
.btn-gold-line {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--sand);
    color: var(--sand);
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-gold-line:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--deep);
}

/* 하단 페이지네이션 */
.board-page-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.board-page-wrap a,
.board-page-wrap strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--sand);
    text-decoration: none;
    transition: all 0.3s;
}

.board-page-wrap strong {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    font-weight: 500;
}

.board-page-wrap a:hover {
    color: var(--white);
}

/* ==========================================================================
   그누보드5 감성숙소 컨셉 공지사항 상세 보기 & 글쓰기 스킨 (View & Write Style)
   ========================================================================== */

/* --- 상세 보기 (View) 스타일 --- */

.view-header {
    border-bottom: 1px solid rgba(212, 197, 169, 0.2);
    padding-bottom: 24px;
    margin-bottom: 40px;
}

.view-header h1 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--cream);
    margin-bottom: 20px;
    word-break: break-all;
}

.view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--sand) !important;
}

.view-meta span em {
    font-style: normal;
    color: var(--gold);
    margin-right: 6px;
}

.food-board-view-info {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
    padding: 22px 24px;
    border-top: 1px solid rgba(201, 139, 74, 0.5);
    border-bottom: 1px solid rgba(212, 197, 169, 0.14);
    background: rgba(245, 240, 232, 0.03);
}

.food-board-view-chip {
    justify-self: start;
    padding: 4px 10px;
    border: 1px solid rgba(201, 139, 74, 0.45);
    color: var(--gold);
    font-size: 12px;
    line-height: 1.3;
}

.food-board-view-info dl {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    margin: 0;
}

.food-board-view-info dt {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
}

.food-board-view-info dd {
    margin: 0;
    color: rgba(245, 240, 232, 0.88);
    line-height: 1.65;
}

.food-board-map-link {
    justify-self: start;
}

/* 본문 영역 */
.view-content {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.9);
    min-height: 300px;
    word-break: break-all;
    margin-bottom: 60px;
}

.view-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 2px;
    margin: 20px 0;
}

/* 첨부파일 영역 */
.view-download {
    border-top: 1px solid rgba(212, 197, 169, 0.1);
    border-bottom: 1px solid rgba(212, 197, 169, 0.1);
    padding: 15px 0;
    margin-bottom: 40px;
}

.view-download ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.view-download li {
    font-size: 14px;
    color: var(--sand);
    margin: 6px 0;
}

.view-download a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.view-download a:hover {
    text-decoration: underline;
}

/* 하단 버튼 바 */
.view-btn-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(212, 197, 169, 0.1);
    padding-top: 30px;
}

.view-btn-group .left-btns,
.view-btn-group .right-btns {
    display: flex;
    gap: 10px;
}


/* --- 글쓰기 (Write) 스타일 --- */

.write-form-row {
    margin-bottom: 24px;
}

.write-form-row label {
    display: flex;
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-size: 13px;
    color: var(--sand);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* 입력창 커스텀 플랫 디자인 */
.write-input {
    width: 100%;
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(212, 197, 169, 0.2);
    color: var(--cream);
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.write-input::placeholder {
    color: rgba(245, 240, 232, 0.5);
}

.write-input:focus {
    border-color: var(--gold);
    background: rgba(245, 240, 232, 0.06);
}

select.write-input {
    appearance: none;
}

.write-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.food-board-fields {
    margin: 4px 0 30px;
    padding: 24px;
    border-top: 1px solid rgba(201, 139, 74, 0.42);
    border-bottom: 1px solid rgba(212, 197, 169, 0.12);
    background: rgba(245, 240, 232, 0.025);
}

.food-board-fields .write-form-row:last-child {
    margin-bottom: 0;
}

.write-help {
    margin-top: 8px;
    color: rgba(212, 197, 169, 0.72);
    font-size: 13px;
    line-height: 1.55;
}

/* 에디터나 텍스트에어리어 조정 */
.write-form-row textarea.write-input {
    min-height: 350px;
    resize: vertical;
    line-height: 1.6;
}

/* 체크박스 스타일 (공지사항 체크 등) */
.write-check-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--sand);
    cursor: pointer;
}

.write-check-wrap input[type="checkbox"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {

    .notice-table th.th-num,
    .notice-table td.td-num,
    .notice-table th.th-hit,
    .notice-table td.td-hit {
        display: none;
        /* 모바일에서 번호, 조회수 숨김으로 가독성 확보 */
    }

    .notice-table td.td-subject {
        padding-left: 10px;
    }

    .board-header h2 {
        font-size: 28px;
    }

    .view-btn-group {
        flex-direction: column-reverse;
    }

    .view-btn-group .left-btns,
    .view-btn-group .right-btns {
        width: 100%;
        justify-content: stretch;
    }

    .write-form-grid,
    .food-board-view-info dl {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .view-btn-group a,
    .view-btn-group button {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}