/* =========================================================
 common_white.css
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
       min-height:100vh;
    overflow-x:hidden;

    background:#ffffff;

    font-family:
        "Pretendard",
        "Noto Sans KR",
        sans-serif;

    font-size:14px;
    color:#222;
}

/* =========================================================
   BODY
========================================================= */

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

/* =========================================================
   HEADER
========================================================= */

header,
.header{
    width:100%;

    background:#ffffff !important;
    color:#111827;

    border-bottom:1px solid #e5e7eb;

    flex-shrink:0;
}

/* =========================================================
   BOOTSTRAP NAVBAR OVERRIDE
========================================================= */

.navbar.navbar-dark.bg-dark{
    background:#ffffff !important;
    background-color:#ffffff !important;

    border-bottom:1px solid #e5e7eb !important;
}

/* 내부 */

.navbar.navbar-dark.bg-dark .container-fluid,
.navbar.navbar-dark.bg-dark .navbar-collapse{
    background:#ffffff !important;
}

/* 브랜드 */

.navbar.navbar-dark.bg-dark .navbar-brand{
    color:#111827 !important;

    font-weight:700;
}

/* 메뉴 */

.navbar.navbar-dark.bg-dark .nav-link,
.navbar.navbar-dark.bg-dark .btn-link{
    color:#111827 !important;

    font-size:13px;
}

/* hover */

.navbar.navbar-dark.bg-dark .nav-link:hover,
.navbar.navbar-dark.bg-dark .btn-link:hover{
    color:#2563eb !important;
}

/* 햄버거 버튼 */

.navbar.navbar-dark.bg-dark .navbar-toggler{
    border-color:#d1d5db !important;
}

/* 햄버거 아이콘 검정 */

.navbar.navbar-dark.bg-dark .navbar-toggler-icon{
    filter:invert(1);
}

/* =========================================================
   SEARCH
========================================================= */
/* SEARCH */

.search-area{
    padding:14px 16px;
}

.search-wrap{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
}

/* Bootstrap col-auto 강제 해제 */
.search-wrap > *,
.search-wrap .col-auto,
.search-wrap .dropdown{
    width:100% !important;
    max-width:100% !important;
}

/* 검색 입력창 */
.search-input{
    width:100%;
    height:54px;
    font-size:16px;
    border-radius:16px;
}

/* 업종 버튼 */
#categoryDropdown,
#categoryDropdown .btn,
.search-wrap .dropdown-toggle{
    width:100% !important;
    height:54px;
    font-size:16px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Search 버튼 */
.search-btn,
.search-wrap .btn-primary{
    width:100% !important;
    height:56px;
    padding:0 18px;
    font-size:17px;
    font-weight:700;
    border-radius:16px;
}
/* =========================================================
   MAIN
========================================================= */

main,
.page,
.page-center{
    flex:1 0 auto;

    width:100%;

    display:flex;
    justify-content:center;
    align-items:flex-start;

    padding:clamp(24px, 8vh, 90px) 16px 20px;

    text-align:center;

    background:#ffffff;
}

/* =========================================================
   CONTENT
========================================================= */

.content-box{
    width:100%;
    max-width:1000px;

    font-size:clamp(24px, 3vw, 52px);
    font-weight:700;
    line-height:1.5;

    color:#374151;
}

/* =========================================================
   FOOTER
========================================================= */

.foot{
    width:100%;

    background:#ffffff;
    color:#111827;

    border-top:1px solid #e5e7eb;

    padding:10px 20px 6px;

    flex-shrink:0;
    margin-top:auto;
}

/* =========================================================
   FOOTER GRID
========================================================= */

.cols{
    width:100%;
    max-width:1100px;

    margin:0 auto;

    display:grid;

      /* 로고 영역 넓힘 */
    grid-template-columns:140px 1fr;  /* 조정 */

    align-items:center;

    gap:16px;

    background:#ffffff;
}

/* =========================================================
   FOOT BRAND
========================================================= */

.bottom-logo{
    width:100%;
    max-width:160px;
    height:auto;
    display:block;
}

.foot-brand{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.foot-brand .brand-logo{
    width:72px;
    max-width:72px;

    height:auto;

    object-fit:contain;
}

/* =========================================================
   BUSINESS INFO
========================================================= */

.biz-info{
    display:flex;
    flex-direction:column;

    gap:3px;

    font-size:12px;
    line-height:1.45;

    color:#111827;

    background:#ffffff;

    padding-left:10px;  /*조정*/
}

/* =========================================================
   FOOTER LINKS
========================================================= */

.footer-links{
    grid-column:1 / 3;

    display:flex;

    justify-content:center;
    align-items:center;

    flex-wrap:wrap;

    gap:6px;

    margin-top:10px;

    font-size:12px;
    line-height:1.4;

    color:#111827;

    background:#ffffff;
}

.footer-links a{
    color:#111827;

    text-decoration:none;

    white-space:nowrap;
}

.footer-links a:hover{
    color:#2563eb;
}

.sep{
    color:#6b7280;
}

/* =========================================================
   COPYRIGHT
========================================================= */

.copyright{
    max-width:1100px;

    margin:10px auto 0;

    padding-top:8px;

    border-top:1px solid #e5e7eb;

    text-align:center;

    font-size:11px;

    color:#6b7280;

    background:#ffffff;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width:1024px){

    .content-box{
        font-size:clamp(22px, 4vw, 40px);
    }
}

/* =========================================================
   MOBILE
========================================================= */
/* =========================================================
   MOBILE SEARCH FINAL FIX
========================================================= */
@media (max-width:768px){

    .search-area{
        width:100%;
        padding:14px 16px !important;
    }

    .search-wrap{
        width:100% !important;
        max-width:100% !important;

        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        justify-content:flex-start !important;

        gap:12px !important;
    }

    /* search-wrap 안의 모든 직접 자식 강제 전체폭 */
    .search-wrap > div,
    .search-wrap > form,
    .search-wrap > input,
    .search-wrap > button,
    .search-wrap > select{
        width:100% !important;
        max-width:100% !important;
        flex:0 0 auto !important;
    }

    /* Bootstrap col 계열 강제 해제 */
    .search-wrap [class*="col-"],
    .search-wrap .col,
    .search-wrap .col-auto{
        width:100% !important;
        max-width:100% !important;
        flex:0 0 100% !important;
        padding-left:0 !important;
        padding-right:0 !important;
    }

    /* 입력창 */
    .search-wrap input,
    .search-input{
        width:100% !important;
        max-width:100% !important;
        height:54px !important;
        font-size:16px !important;
        border-radius:16px !important;
    }

    /* 업종 드롭다운 전체 */
    .search-wrap .dropdown,
    .search-wrap .dropdown-menu,
    #categoryDropdown{
        width:100% !important;
        max-width:100% !important;
    }

    /* 업종 버튼 */
    #categoryDropdown,
    #categoryDropdown > button,
    #categoryDropdown .btn,
    .search-wrap .dropdown-toggle{
        width:100% !important;
        max-width:100% !important;
        height:54px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        font-size:16px !important;
        border-radius:16px !important;
    }

    /* Search 버튼 */
    .search-wrap button,
    .search-wrap .btn,
    .search-wrap .btn-primary,
    .search-btn{
        width:100% !important;
        max-width:100% !important;
        height:56px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        padding:0 18px !important;
        font-size:17px !important;
        font-weight:700 !important;
        border-radius:16px !important;
    }

}