/* 서브페이지 공통 스타일 — layouts.subpage를 쓰는 모든 화면(게시판/문의/마이페이지/정책/검색 등)에서 로드된다.
   색상 변수(--color-*)는 frontend.css의 :root에서 정의된 것을 그대로 참조한다. */


/* 서브페이지 상단 경로 표시(홈 > 상위메뉴 > 현재메뉴) */
.breadcrumb {
    padding-bottom: 12px; border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--color-text-sub); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after {
    content: ''; margin: 0 8px; 
    width: 4px; height: 8px;
    background: url('/images/icons/arrow-right.svg') no-repeat center / cover;
    filter: brightness(0);
}
.breadcrumb a { color: var(--color-text-sub); }
.breadcrumb a:hover { color: var(--color-main); text-decoration: underline; }
.breadcrumb li:last-child span { color: var(--color-text); font-weight: 600; }



.sub-content {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 70dvh;
    padding-bottom: 70px;
}


/* 서브페이지 레이아웃 (로컬 서브메뉴 + 본문) */
.content-layout {
    margin-top: 40px !important;
    min-height: 40dvh;
}
/* .content-main { flex: 1; min-width: 0; } */


.sub-container {
    width: 100%;
    max-width: var(--sub-maxWidth);
    margin: 0 auto;
}


@media (max-width: 1530px) {
   .sub-container {
      max-width: 100%;
      padding: 0 20px;
   }
}

@media (max-width: 1024px) {
    .content-layout {
        margin-top: 30px !important;
    }
}


.local-nav {
    --nav-size: 80px;
    position: absolute;
    width: 100%;
    bottom: 0;
    z-index: 2;
    height: var(--nav-size);
}

.local-nav .select-wrap {
    display: flex;
    align-items: center;
    height: 100%;
}

.local-nav .home-btn {
    --size: 80px;
    background: var(--color-main);
    width: var(--size);
    height: 100%;
    display: grid;
    place-items: center;
    transition: background 0.1s;
}

.local-nav .home-btn:hover {
    background: var(--color-main-dark);
}

.local-nav-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 32rem));
    width: 100%;
    flex: 1;
    height: 100%;
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    background: #fff;
}

.local-nav-selects .ui-select {
    width: 100%;
    border-top: 0;
    border-bottom: 0;
    border-left-color: var(--color-border);
    border-right: 0;
    border-radius: 0;
    background: transparent;
}

.local-nav-selects .ui-select:last-child {
    border-right: 1px solid var(--color-border);
}

.local-nav-selects .ui-select-btn {
    height: 100%;
    font-size: 20px;
}

.local-nav-selects .ui-select-list {
    box-shadow: 0 0px 10px -3px rgba(0, 0, 0, 0.1);
}

.local-nav-selects .ui-select-list > li {
    padding: 10px;
    font-size: 18px;
}

@media (min-width: 769px) {
    .nav-mob-text {display: none;}
}

/* local-nav 내부 .breadcrumb */ 
.nav-mob-text .breadcrumb a,
.nav-mob-text .breadcrumb li:last-child span {
    color: #fff; font-size: 16px; font-weight: 500;
}

.nav-mob-text .breadcrumb li:not(:last-child)::after {
    filter: unset;
}


@media (max-width: 1024px) {
    .local-nav {--nav-size: 60px;}
    .local-nav-selects .ui-select-btn {font-size: 18px;}
    .local-nav-selects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .local-nav {
        height: auto;
    }
    .local-nav .select-wrap {
        display: none;
    }
}


/* .local-nav-sub { list-style: none; margin: 0 0 4px; padding: 0 0 0 14px; }
.local-nav-sub.is-hidden { display: none; }
.local-nav-sub li a {
    display: block;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-sub);
    border-radius: 6px;
}
.local-nav-sub li a:hover, .local-nav-sub li a:focus-visible { background: var(--color-bg-alt); text-decoration: none; }
.local-nav-sub li.is-active a { color: var(--color-main); font-weight: 600; } */


/* 서브페이지 상단 베너 */
.sub-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.sub-hero__title {
    color: #fff;
    font-size: max(25px, 6rem);
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
}

@media (max-width: 1024px) {
    .sub-hero {
        height: 200px;
    }

    .sub-hero__title {font-size: 30px;}
}

@media (max-width: 768px) {
    .sub-hero {justify-content: start; height: 165px;}
    .sub-hero__title {
        transform: translate(20px, -30%);
    }
}


/* 서브페이지 상단 헤더 — <x-sub-header> 컴포넌트 전용. 내부 h1/p/nav는 기존
   .page-title/.post-meta/.board-category-filter 클래스를 그대로 재사용하고, 여기서는
   컴포넌트 안에서의 간격만 조정한다(각 클래스 자체의 스타일은 건드리지 않음). */
.sub-header { margin-bottom: 12px; }
.sub-header .page-title { margin-bottom: 8px; }
.sub-header .page-title:last-child { margin-bottom: 0; }
.sub-header .post-meta { margin-bottom: 16px; }
.sub-header .board-category-filter {
    margin-bottom: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
}

@media (max-width: 768px) {
    /* .content-layout { flex-direction: column; } */
    /* .local-nav { width: 100%; } */
    .sub-header { margin-bottom: 16px; }
}

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-notice { background: #fee2e2; color: var(--color-danger); }
.badge-secret { background: #969799; color: #fff; }
.badge-gray { background: #f3f4f6; color: var(--color-text-sub); }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-danger { background: #fee2e2; color: var(--color-danger); }
.badge-warning { background: #fef3c7; color: #92400e; }

/* 폼 — 컨트롤 자체의 시각 스타일(테두리/포커스/색)은 frontend.css 공통 버튼·폼 컨트롤 섹션 참고.
   여기는 레이아웃/간격 규칙만 남긴다. */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.form-group .hint { font-size: 13px; color: var(--color-text-sub); margin-top: 4px; }
.form-error { color: var(--color-danger); font-size: 13px; margin-top: 4px; }
.form-actions { margin-top: 20px; display: flex; justify-content: center; gap: 8px; }

.form-actions.show {
    flex-wrap: wrap;
    width: 100%;
    max-width: 250px;
    margin: 20px auto 0;
}

.form-actions.show > *:first-child {
    width: 100%;
    flex: unset;
}

.form-actions.show > * {flex: 1;}

@media (max-width: 680px) {
    .form-actions.show {
        max-width: 100%;
    }
}

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 15px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.post-meta { color: var(--color-text-sub); font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; }


/* 260907 통합검색 페이지 검색 결과*/

/* 통합검색  */
.content-layout:has(.data-search-layer) {
    margin-top: 0 !important;
}
.data-search-layer .board-toolbar {
    background: var(--bg-layer-gray);
    padding: 4rem; gap: 5rem;
    margin-bottom: 0;
}

.data-search-layer .search-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.data-search-layer .board-search-form.property {
    background: #fff;
    flex: 1;
    max-width: 100%;
    padding: 10px 20px;
}

.data-search-layer .board-search-form.property input[type="text"] {
    flex: 1;
    max-width: 100%;
}

.data-search-layer .search-bar-wrap .reset-btn {
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 100px;
    padding: 5px;
    width: 160px;
    min-height: max(35px, 6rem);
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: max(15px, 2rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.data-search-layer .search-bar-wrap .reset-btn:hover {
    background: #efefef;
}


.data-search-layer .search_result {
    width: 100%;
    text-align: center;
    font-size: max(20px, 2.4rem);
    font-weight: 500;
    color: var(--color-text-sub);
    line-height: 1.3;
}

.data-search-layer .board-count-info {
    margin: 20px 0;
}

@media (min-width: 1230px) {
    .data-search-layer .board-search-form.property .customfield_select {
        min-width: 160px;
    }
}

@media (min-width: 1025px) {
    .data-search-layer .board-search-form.property .customfield_select {
        flex: unset;
    }
}

@media (max-width: 1024px) {
    .data-search-layer .search-bar-wrap {
        flex-direction: column;
    }

    .data-search-layer .board-toolbar {
        background: transparent;
        padding: 4rem 0;
    }

    .data-search-layer .board-search-form.property input[type="text"] {
        max-width: 100%;
        width: 100%;
        flex: 1;
    }
}


/* dialog 모달: 간단한 alert용 모달. */
/* 1. 기본 스타일 및 애니메이션 설정 */
dialog {
    width: 100%;
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #fff;

    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -48%);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        display 0.3s allow-discrete,
        overlay 0.3s allow-discrete;
}

dialog[open] {
    opacity: 1;
    transform: translate(-50%, -50%);
}

@starting-style {
    dialog[open] {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
}

/* dialog::backdrop {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(4px);

    transition:
        background-color 0.3s ease,
        display 0.3s allow-discrete,
        overlay 0.3s allow-discrete;
}

dialog[open]::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

@starting-style {
    dialog[open]::backdrop {
        background-color: rgba(0, 0, 0, 0);
    }
} */


dialog .modal-header {
    border-radius: 10px 10px 0 0;
    padding: 20px 20px 10px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

dialog .modal-header h5 {
    font-size: max(18px, 2rem);
    font-weight: 700;
    line-height: 1.3;
}

dialog .modal-header .modal_closeBtn {
    width: 20px; height: 20px;
    cursor: pointer;
}

dialog .modal-body {
    padding: 20px;
    background: var(--bg-layer-gray);
    overflow-y: auto;
    max-height: 700px;
}

dialog .modal-footer {
    border-radius: 10px 10px 0 0;
    padding: 10px 20px 20px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* 4. Backdrop (배경) 스타일 */
/* dialog::backdrop {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition:
        background-color 0.4s ease,
        backdrop-filter 0.4s ease,
        display 0.4s ease allow-discrete,
        overlay 0.4s ease allow-discrete;
}

dialog[open]::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

dialog.confirm[open]::backdrop {
    background: transparent;
    backdrop-filter: unset;
}

@starting-style {
    dialog[open]::backdrop {
        background-color: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
} */

@media (max-width: 991px) {
    dialog {max-width: 90% !important;}
    dialog.confirm, dialog.confirm-bg {
        max-width: 400px !important;
    }
}

@media (max-width: 450px) {
    dialog.confirm, dialog.confirm-bg {
        max-width: 90% !important;
    }
}


.status-modal .modal-body {
    background: #a7f3d0;
    color: #065f46;
}


/* 콘텐츠 상세 공통 — 게시판/문의/정책/일반페이지가 함께 쓰는 "글 상세" 뼈대이므로
   board.css가 아니라 여기(공용)에 둔다. */
.post-header { border-bottom: 2px solid var(--color-text); padding-bottom: 16px; margin-bottom: 24px; }
.post-title { font-size: max(18px, 2.5rem); margin: 0 0 10px; }
.post-content {
    line-height: 1.9; word-break: break-word; min-height: 300px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}
.post-content img { border-radius: 6px; }
.post-files { 
    margin-top: 24px;
}
.post-files ul { list-style: none; margin-top: 15px; padding: 0; }
.post-files ul li {
    padding: max(15px, 2rem);
    background: var(--bg-layer-gray);
    border-radius: 100px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--color-text-sub);
}
.post-files ul li:not(:last-child) {
    margin-bottom: 10px;
}
.post-files ul li a {display: flex; align-items: center; gap: 7px;}
.post-files ul li a:hover {text-decoration: underline;}

/* 페이지네이션 — Paginator::defaultView()로 앱 전체에 등록되어 있어(vendor/pagination/custom.blade.php)
   게시판뿐 아니라 커뮤니티/문의 등 목록이 있는 모든 화면에서 함께 쓴다. */
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 24px;}

.pagination_nums {
    display: flex; gap: 8px; justify-content: center; align-items: center; list-style: none; padding: 0;
}


.pagination .prev svg,
.pagination .next.depth svg {
    transform: rotate(180deg);
}

.pagination .prev.depth svg {
    transform: rotate(0);
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--color-text);
    font-size: max(15px, 1.6rem);
    transition: .15s;
    border-radius: 50%;
    border: 1px solid transparent;
    line-height: 1;
}

.pagination a:hover {
    font-weight: 700;
}
.pagination .disabled span {
    color: var(--color-border);
    cursor: no-drop;
}
.pagination .numbers.active span {
    background: var(--color-main);
    color: #fff;
    font-weight: 700;
}


.pagination .button_box {
    display: flex; gap: 8px;
    justify-content: center; align-items: center;
}


.mob-nums {display: none;}

@media (max-width: 768px) {
    .pc-nums {display: none;}
    .mob-nums {display: flex;}
    .pagination {
        flex-wrap: wrap;
    }

    .pagination .pagination_nums.mob-nums {
        width: 100%;
        order: 1;
    }

    .pagination .button_box {
        width: fit-content;
        order: 2;
    }
}

.btn-link { background: none; border: none; padding: 0; color: var(--color-text-sub); font-size: 14px; cursor: pointer; text-decoration: underline; }
.btn-link-danger { color: var(--color-danger); }

/* 리스트 타이틀박스 ※inquery도 같이 사용해서 여기에 기재함. */
.board-title-box {
    background: var(--bg-layer-gray);
    text-align: center;
    padding: 40px 10px;
    margin-bottom: 20px;
}

.board-title-box h1 {
    font-size: max(25px, 3.6rem);
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 400;
}

.board-title-box p {
    font-size: max(18px, 2.4rem);
    line-height: 1.3;
}

.board-title-box p i {
    color: #ff0000;
}



/* 폼 보조 */
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }

.form-group.row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.insert-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.insert-row > label {
    min-width: 200px;
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
    letter-spacing: -5%;
    line-height: 1.2;
    margin-bottom: 0;
}

.insert-row > input {
    width: 100%;
    max-width: 400px;
}

.insert-row.title > input {max-width: 100%;}


.field-error { 
    color: var(--color-danger); margin: 4px 0 0;
    font-size: 15px;
}

.form-group.row .field-error {
    margin-left: 10px;
}

/* @media (max-width: 1250px) {
    .insert-row > label {
        min-width: 120px;
    }
} */

@media (max-width: 768px) {
    .form-row {flex-direction: column;}
    .insert-row {
        flex-direction: column;
        align-items: start;
    }
    .insert-row > input {
        max-width: 100%;
    }
}


@media (max-width: 680px) {
    .post-content {min-height: 200px;}

    .form-actions {flex-wrap: wrap;}
    .form-actions .btn:first-child {width: 100%;}
    .form-actions > *:not(.btn:first-child) {flex: 1;}
    .form-actions > form .btn {width: 100%;}
}



/* 1:1 문의 글쓰기 */
.inquery-title-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 30px 0;
    padding-right: 520px;
}

.inquery-title-box .txt-box {
    margin-bottom: 60px;
}

.inquery-title-box .txt-box h1 {
    font-size: max(24px, 3rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

.inquery-title-box .txt-box p {
    font-size: max(16px, 2rem);
    line-height: 1.5;
    color: var(--color-text-sub);
}

.inquery-title-box .info_card {
    position: absolute;
    top: 0; right: 0;
    min-width: 480px;
    min-height: 228px;
    padding: 4.2rem 4rem;
    background: url('/images/info-box__bg.png') no-repeat center / cover;
}

.inquery-title-box .info_card :is(p, span) {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
}

.inquery-title-box .info_card p.tit {
    font-size: max(18px, 2.4rem);
    font-weight: 600;
}

.inquery-title-box .info_card p.meta {
    gap: 12px 40px; flex-wrap: wrap;
}

.inquery-title-box .info_card p.meta span:last-child::before {
    content:'';
    position: absolute;
    left: -20px;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.5);
}

.inquery-title-box .info_card p:not(:last-child) {
    margin-bottom: 12px;
}


.inquery-write-form form {
    width: 100%;
    border-top: 1px solid var(--color-text);
    margin-top: 10px;
    padding-top: 40px;
}
.inquery-write-form .form-actions .btn {
    padding: 17px 10px;
    font-size: 18px;
    min-width: 150px;
}

.inquery-write-form .form-group {margin-bottom: 20px;}

.inquery-write-form .insert-row label {
    font-size: max(18px, 2rem);
    font-weight: 600;
    color: #1D1D1F;
}


.inquery-write-form .inquery-input {
    border: none;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    max-width: 600px;
    border-radius: unset;
}

.inquery-write-form .inquery-input:focus-visible {
    border-color: var(--color-text);
}

.inquery-write-form textarea {border-radius: 0;}

.checkbox-form-group .insert-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 20px;
    align-self: center;
}

.checkbox-form-group .checkbox-group label.checkbox-basic {
    gap: 10px;
}

.privacy-info {
    width: 100%;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.privacy-info__row {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.45fr;
}

.privacy-info__row--head {
    background: var(--bg-layer-gray);
    border-bottom: 1px solid #d5d7da;
}

.privacy-info__title,
.privacy-info__content {
    min-width: 0;
    padding-inline: max(20px, 2.8rem);
}

.privacy-info__title {
    padding-block: max(16px, 2rem);
    font-size: max(15px, 1.8rem);
    font-weight: 600;
    text-align: center;
}

.privacy-info__content {
    display: flex;
    align-items: center;
    color: var(--color-text-sub);
    min-height: 12rem;
    padding-block: max(18px, 2.4rem);
    font-size: 14px;
}

.privacy-info__content--center {
    justify-content: center;
    text-align: center;
}

.privacy-info__list {
    list-style: none;
}

.privacy-info__list li {
    position: relative;
    padding-left: 1.1rem;
}

.privacy-info__list li::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "-";
}

@media (max-width: 1120px) {
    .inquery-title-box .txt-box p br {display: none;}
}

@media (max-width: 1024px) {
    .inquery-title-box {
        flex-direction: column;
        justify-content: center;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .inquery-title-box .txt-box {margin-bottom: 0;}

    .inquery-title-box .info_card {
        position: relative;
        top: unset; r: unset;
        min-width: unset;
        min-height: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .privacy-info {
        border-bottom: 0;
    }

    .privacy-info__row {
        display: contents;
    }

    .privacy-info__title,
    .privacy-info__content {
        padding-inline: max(16px, 4vw);
    }

    .privacy-info__title {
        padding-block: max(14px, 3.5vw);
        border-bottom: 1px solid #d5d7da;
        text-align: left;
        background: var(--bg-layer-gray);
    }

    .privacy-info__content {
        display: block;
        min-height: auto;
        padding-block: max(18px, 4.5vw);
        border-bottom: 1px solid #333;
    }

    .privacy-info__content--center {
        text-align: left;
    }

    .privacy-info__row--head .privacy-info__title:nth-child(1) { order: 1; }
    .privacy-info__row--body .privacy-info__content:nth-child(1) { order: 2; }
    .privacy-info__row--head .privacy-info__title:nth-child(2) { order: 3; }
    .privacy-info__row--body .privacy-info__content:nth-child(2) { order: 4; }
    .privacy-info__row--head .privacy-info__title:nth-child(3) { order: 5; }
    .privacy-info__row--body .privacy-info__content:nth-child(3) { order: 6; }

    .privacy-info {
    display: flex;
    flex-direction: column;
    }
}

@media (max-width: 680px) {
    .inquery-title-box .txt-box {text-align: center;}
}

@media (max-width: 450px) {
    .inquery-title-box .info_card p.meta span:last-child::before {display: none;}
}

.inquery-write-form .form-actions {
    margin: 60px auto 0;
} 

.inquery-write-form .form-actions.show .btn:last-child {
    background: transparent;
    color: var(--color-text-sub);
}