/* ============================================
   Header
   ============================================ */
:root {
    --header-height: 124px; 
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 0;
    background: rgba(17, 17, 17, 0.15);
    transition: background var(--transition), border-color var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 오른쪽 메뉴 전체 래퍼 */
.header-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 16px;
}

/* 상단행: 다국어 + 로그인 */
.header-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 7px;
    transition: border-color var(--transition);
}

.header.scrolled .header-top-row {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.header-top-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    transition: color var(--transition);
}



/* 하단행: nav + 이벤트버튼 + 토글 */
.header-bottom-row {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 10px 0 15px;
}

.header.scrolled .logo {
    color: #000;
}

.logo a {
    display: inline-block;
    transition: opacity var(--transition);
}

.logo a:hover {
    opacity: 0.7;
}

.logo-img {
    height: auto;
    max-height: 65px;
    width: auto;
    display: block;
    transition: opacity var(--transition);
}

.logo-img-white {
    display: block;
    opacity: 1;
}

.logo-img-dark {
    display: none;
    opacity: 0;
}

.header.scrolled .logo-img-white {
    display: none;
    opacity: 0;
}

.header.scrolled .logo-img-dark {
    display: block;
    opacity: 1;
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-list > .nav-item > a {
    font-family: var(--font-secondary);
    font-size: 16px;
    color: #fff;
    letter-spacing: 0;
    transition: opacity var(--transition), color var(--transition);
    display: block;
    padding: 5px 0;
}

.header.scrolled .nav-list > .nav-item > a {
    color: #000;
}

/* 서브메뉴 */
.nav-submenu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    list-style: none;
    margin: 0;
    white-space: nowrap;
}

.nav-item:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-submenu li {
    margin: 0;
    padding: 0;
}

.nav-submenu a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    text-align: left;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* 언어 선택 */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-white);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.header.scrolled .lang-btn {
    color: #000;
}

.lang-btn .lang-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
}

.lang-arrow {
    display: inline-block;
    width: 8px;
    height: 4px;
    margin-left: 3px;
    background: url(/assets/img/Icon_selectTrg.png) center center / contain no-repeat;
    transition: transform var(--transition), background var(--transition);
}

.header:not(.scrolled) .lang-arrow {
    background-image: url(/assets/img/Icon_selectTrg.png);
    filter: brightness(0) invert(1);
}

.header.scrolled .lang-arrow {
    background-image: url(/assets/img/Icon_selectTrg.png);
    filter: none;
}

.lang-selector.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right:-40px;
    min-width: 120px;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    z-index: 10001;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--color-black);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}

.lang-option .lang-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.lang-option span {
    flex: 1;
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-option:first-child {
    border-radius: 4px 4px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 4px 4px;
}

.link {
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    transition: opacity var(--transition), color var(--transition);
}

.link:hover {
    opacity: 0.7;
}

.header.scrolled .link {
    color: #000;
}

.auth-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-nickname {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    transition: color var(--transition);
    white-space: nowrap;
}

.gnb-header .auth-nickname {
    color: #000;
}

.gnb-header .auth-logout {
    color: #000;
}

.header.scrolled .auth-nickname {
    color: #000;
}

.auth-logout {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    transition: opacity var(--transition), color var(--transition);
}

.header.scrolled .auth-logout {
    color: rgba(0,0,0,0.7);
}

.auth-logout:hover {
    opacity: 0.7;
}

.btn-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    min-width: 160px;
    min-height: 45px;
    padding: 0 22px;
    font-size: 16px;
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-event:hover {
    background: #ed8a99;
    border:none;
    color: #fff;
}

.header.scrolled .btn-event {
    background: #ed8a99;
    border:none;
    color: #fff;
}

.header.scrolled .btn-event:hover {
    background: #ed8a99;
    border:none;
    color: #fff;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition);
}

.header.scrolled .menu-toggle span,
.header.scrolled .menu-toggle span::before,
.header.scrolled .menu-toggle span::after {
    background: #000;
}

.header.gnb-open .menu-toggle span,
.header.gnb-open.scrolled .menu-toggle span {
    background: transparent !important;
}

.menu-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    left: 0;
}

.menu-toggle span::before {
    top: -8px;
}

.menu-toggle span::after {
    bottom: -8px;
}

/* 햄버거 버튼 활성화 (X 모양) */
.menu-toggle.open span {
    background: transparent;
}

.menu-toggle.open span::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--color-black);
}

.menu-toggle.open span::after {
    bottom: 0;
    transform: rotate(-45deg);
    background: var(--color-black);
}

.header.gnb-open {
    background: transparent;
    border-bottom: none;
    pointer-events: none;
    z-index: 10001;
}

.header.gnb-open .menu-toggle {
    opacity: 1;
    pointer-events: auto;
}

.header.gnb-open .logo,
.header.gnb-open .header-top-row,
.header.gnb-open .nav,
.header.gnb-open .btn-event {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   GNB Menu
   ============================================ */

.gnb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.320, 1), visibility 0.8s;
}

.gnb-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gnb-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gnb-overlay.open .gnb-container {
    transform: translateY(0%);
}

.gnb-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-anchor: none;
}

/* GNB Background */
.gnb-bg {
    position: relative;
    flex: 0 0 30%;
    max-width: 400px;
    height: 500px;
    background: url('../assets/img/image_gnb01.png') no-repeat center center;
    background-size: contain;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.7s ease 0.5s;
}

.gnb-overlay.open .gnb-bg {
    opacity: 1;
}

.gnb-bg-decoration {
    position: absolute;
    bottom: 20px;
    left: -35px;
    width: 80px;
    height: auto;
    opacity: 0.9;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* GNB Header */
.gnb-header {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    padding: 25px 0;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease 0.3s;
    pointer-events: none;
}

.gnb-overlay.open .gnb-header {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gnb-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.gnb-logo {
    position: absolute;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    pointer-events: auto;
}

.gnb-logo a {
    display: inline-block;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2.55px;
    color: #000000;
}

.gnb-logo-img {
    height: auto;
    max-height: 35px;
    width: auto;
    display: block;
}

.gnb-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    margin-right: 80px;
    pointer-events: auto;
}

.header.gnb-open .lang-btn {
    color: #000;
}

.header.gnb-open .lang-arrow {
    filter: none;
}

.gnb-link {
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    transition: opacity 0.3s ease;
}

.gnb-link:hover {
    opacity: 0.7;
}

.gnb-btn-event {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-secondary);
    padding: 7px 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gnb-btn-event:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* GNB Menu Grid */
.gnb-menu {
    flex: 0 0 70%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 60px;
    padding: 0;
    z-index: 2;
    position: relative;
}

.gnb-menu-item {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    text-align: center;
}

.gnb-menu-item::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #d0cfcc;
}

.gnb-menu-item:last-child::after {
    display: none;
}

.gnb-overlay.open .gnb-menu-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.gnb-overlay.open .gnb-menu-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.gnb-overlay.open .gnb-menu-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.gnb-overlay.open .gnb-menu-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.gnb-overlay.open .gnb-menu-item:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.gnb-menu-title {
    font-size: 18px;
    font-weight: 500;
    color: #b6858c;
    margin-bottom: 15px;
    cursor: default;
}

.gnb-menu-title[href] {
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.gnb-menu-title[href]:hover {
    opacity: 0.7;
}

.gnb-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gnb-submenu li {
    padding: 0;
    margin: 0;
}

.gnb-submenu a {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.gnb-footer-actions {
    display: none;
    position: absolute;
    bottom: 40px;
    right: 0;
    gap: 24px;
    align-items: center;
    z-index: 10;
}

.gnb-footer-actions .gnb-link {
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    transition: opacity 0.3s ease;
}

.gnb-footer-actions .gnb-link:hover {
    opacity: 0.7;
}

.gnb-footer-actions .gnb-btn-event {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-secondary);
    padding: 7px 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: #ffffff;
    background: #ed8a99;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gnb-footer-actions .gnb-btn-event:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1400px) {
    .gnb-content {
        padding: 80px 60px 100px;
        gap: 30px;
    }

    .gnb-bg {
        flex: 0 0 30%;
        max-width: 300px;
        height: 400px;
    }

    .gnb-menu-item::after {
        right: -20px;
    }

    .gnb-header {
        display: none;
    }

    .gnb-footer-actions {
        display: flex;
        bottom: 40px;
        right: 60px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .nav {
        display: none;
    }

    .btn-event {
        display: none;
    }

}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* 메인 헤더 */
    .header-bottom-row {
        padding: 10px 0;
    }

    .header-actions {
        gap: 5px;
    }

    .header-top-row .auth-area {
        display: none;
    }

    .header-top-row .auth-nickname,
    .header-top-row .auth-logout {
        display: none !important;
    }

    .header-menu {
        flex-direction: row;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    .header-top-row {
        padding: 0;
        border-bottom: none;
    }

    .auth-nickname {
        color: #000 !important;
    }

    .header .container {
        align-items: center;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .logo {
        font-size: 15px;
        letter-spacing: 2px;
    }
    
    .logo-img {
        max-height: 35px;
    }

    /* GNB 헤더 */
    .gnb-header {
        display: block;
        padding: 20px 0;
    }
    
    .gnb-header .container {
        justify-content: flex-start;
    }

    .gnb-logo {
        display: none;
    }
    
    .gnb-logo-img {
        max-height: 30px;
    }

    .gnb-header-actions {
        display: none;
    }

    .menu-toggle{
        width: 24px;
    }

    /* GNB 컨텐츠 */
    .gnb-content {
        padding: 100px 30px 140px;
        flex-direction: column;
        justify-content:flex-start
    }

    .gnb-bg {
        display: none;
    }

    .gnb-menu {
        flex: none;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }

    .gnb-menu-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        text-align: left;
    }

    .gnb-menu-item::after {
        display: none;
    }

    .gnb-menu-title {
        font-size: 16px;
        font-weight: 600;
        color: #000000;
        margin: 0;
        padding: 20px 0;
        cursor: pointer;
        position: relative;
        transition: color 0.3s ease;
    }

    .gnb-menu-title::after {
        content: '+';
        position: absolute;
        right: 0;
        font-size: 28px;
        font-weight: 300;
        line-height: 1;
        transition: all 0.3s ease;
    }
    
    .gnb-menu-title[href]::after {
        display: none;
    }

    .gnb-menu-item.active .gnb-menu-title {
        color: #b6858c;
    }

    .gnb-menu-item.active .gnb-menu-title::after {
        content: '−';
        color: #b6858c;
    }

    .gnb-submenu {
        overflow: hidden;
        height: 0;
        transition: height 0.35s ease;
    }

    .gnb-submenu a {
        font-size: 14px;
        display: block;
        transition: color 0.3s ease;
    }

    .gnb-submenu a:last-child {
        padding-bottom: 15px;
    }

    .gnb-submenu a:hover {
        color: #b6858c;
    }

    /* GNB 하단 액션 버튼 */
    .gnb-footer-actions {
        display: flex;
        position: fixed;
        bottom: 30px;
        right: 30px;
        left: 30px;
        justify-content: flex-end;
        padding: 20px 0 0;
    }
}

/* ============================================
   모바일 하단 고정 메뉴
   ============================================ */
.m-fix-menu {
    display: none;
    align-items: center;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6500;
    width: 100%;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #f3f3f3;
    justify-content: space-around;
}

.m-fix-menu > a {
    cursor: pointer;
    line-height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-decoration: none;
}

.m-fix-menu > a:active {
    background-color: #f5f5f5;
}

.m-fix-menu > a:not(:last-child) {
    position: relative;
}

.m-fix-menu > a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background-color: #f3f3f3;
}

.m-fix-menu span {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #333;
    width: 100%;
    gap:4px;
    text-align: center;
}

.m-fix-menu span::before {
    content: '';
    display: block;
    width: 22px;
    height: 24px;
    margin: 0 auto 4px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.m-fix-menu .m-nav span::before {
    background-image: url(/assets/img/mIcon_menu_black.svg);
}

.m-fix-menu .m-search span::before {
    background-image: url(/assets/img/mIcon_search_black.svg);
}

.m-fix-menu .m-event span::before {
    background-image: url(/assets/img/mIcon_float_event.svg);
}

.m-fix-menu .m-consult span::before {
    background-image: url(/assets/img/mIcon_float_call.svg);
}

.m-fix-menu .m-reserve span::before {
    background-image: url(/assets/img/mIcon_kakao_color.svg);
}

@media (max-width: 768px) {
    .m-fix-menu {
        display: flex;
    }
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   상담하기 팝업 (Bottom Sheet) - 모바일 전용
   ============================================ */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-popup.open {
    opacity: 1;
    visibility: visible;
}

.contact-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.contact-popup-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.contact-popup.open .contact-popup-sheet {
    transform: translateY(0);
}

.contact-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.contact-popup-close:hover {
    opacity: 1;
}

.contact-popup-header {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 8px;
}

.contact-popup-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.contact-popup-header p {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0;
}

.contact-popup-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-btn .contact-btn-ic {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.contact-btn:active {
    opacity: 0.9;
}

.contact-btn-kakao {
    background: #FEE500;
    color: #191919;
}

.contact-btn-phone {
    background: #F0F0F0;
    color: #333;
}

@media (min-width: 769px) {
    .contact-popup,
    .search-popup {
        display: none !important;
    }
}

/* ============================================
   검색 팝업 (오른쪽 슬라이드) - 모바일 전용
   ============================================ */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-popup.open {
    opacity: 1;
    visibility: visible;
}

.search-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.search-popup-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.search-popup.open .search-popup-panel {
    transform: translateX(0);
}

.search-popup-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    border-bottom: 1px solid #eee;
    min-width: 0;
    box-sizing: border-box;
}

.search-popup-back {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.search-popup-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.search-popup-clear {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(/assets/img/mIcon_delSearch.svg) no-repeat center center;
    background-size: 16px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.search-popup-clear:hover {
    opacity: 0.8;
}

.search-popup-input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 44px;
    border: none;
    background: none;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.search-popup-input::placeholder {
    color: #999;
}

.search-popup-submit {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.search-popup-body {
    flex: 1;
    min-height: 0;
    padding: 20px 16px;
    overflow-y: auto;
}

.search-popup-body.is-results {
    padding: 0;
    overflow-y: auto;
}

.search-popup-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

.search-popup-recent {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.search-popup-empty {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.search-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-recent-list li {
    margin: 0;
    padding: 0;
}

.search-recent-list a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.search-recent-list a:hover {
    color: #b6858c;
}

/* 검색 결과 리스트 (팝업 내) */
.search-popup-results-wrap {
    padding: 0;
}

.search-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.m-result-search li {
    background: #fff;
    border: solid 1px #efefef;
    border-bottom: 4px solid #efefef;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
}

.m-result-search li:last-child {
    margin-bottom: 0;
}

.search-result-item {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.search-result-item:last-child {
    border-bottom: none;
}

.m-result-search li a,
.search-result-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.search-result-text {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.35;
}

.search-result-title .search-keyword {
    color: #ed8a99;
    font-weight: 700;
}

.search-result-desc {
    display: block;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.search-result-cta {
    content: '';
    display: inline-block;
    background: url(/assets/img/Icon_directBtn_color.svg);
    width: 20px;
    height: 20px;
    vertical-align: sub;
    background-color:#ed8a99;
    background-size: 12px;
    transform: rotate(90deg);
    background-position: 4px 6px;
    background-repeat: no-repeat;
}

.search-result-loading {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: #888;
    list-style: none;
    margin: 0;
}

/* ============================================
   Footer
   ============================================ */
   footer {
    position: relative;
    background-color: #F8F4EE;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 50px;
}

@media (max-width: 767px) {
    footer {
        padding-top: 60px;
        padding-bottom: 40px;
    }
}

/* ============================================
   푸터 컨테이너
   ============================================ */

.footer-container {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 250px;
    padding-right: 250px;
}

@media (max-width: 1279px) {
    .footer-container {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (max-width: 1023px) {
    .footer-container {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (max-width: 767px) {
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    position: relative;
}

@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        gap: 0;
    }
}

/* ============================================
   푸터 왼쪽 영역
   ============================================ */

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

@media (max-width: 767px) {
    .footer-left {
        gap: 20px;
    }
}

/* ============================================
   오시는 길 섹션
   ============================================ */

.footer-location {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-location-title {
    font-size: 18px;
    opacity: 0.5;
}

@media (max-width: 767px) {
    .footer-location-title {
        font-size: 15px;
    }
}

.footer-address {
    font-size: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 1023px) {
    .footer-address {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .footer-address {
        font-size: 15px;
    }
}

.footer-address p {
    margin-bottom: 0;
}

/* ============================================
   지도 링크 버튼
   ============================================ */

.footer-map-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 767px) {
    .footer-map-btns {
        gap: 8px;
    }
}

.footer-map-btn {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    font-size: 15px;
    letter-spacing: 0.02em;
    font-weight: 400;
    gap: 0.75rem;
    padding: 0 15px;
    border: 1px solid #9f9995;
    transition: 0.3s;
    box-sizing: border-box;
    text-decoration: none;
}

@media (max-width: 767px) {
    .footer-map-btn {
        flex: 1;
        min-width: auto;
        font-size: 13px;
    }
}

.footer-map-btn:hover {
    background: #2a1f1b;
    color: #F8F4EE;
    border: none;
}

.footer-map-btn span {
    font-size: 15px;
}

@media (max-width: 767px) {
    .footer-map-btn span {
        font-size: 13px;
    }
}

/* ============================================
   로고 및 메뉴 섹션
   ============================================ */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 15px;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
}

.footer-brand-name {
    display: block;
}

.footer-brand-logo {
    height: auto;
    max-height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 767px) {
    .footer-brand-logo {
        max-height: 30px;
    }
}


@media (max-width: 767px) {
    .footer-brand-subtitle {
        font-size: 15px;
    }
}

.footer-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    font-size: 15px;
    font-weight: 200;
}

@media (max-width: 1023px) {
    .footer-menu {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .footer-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        font-size: 12px;
    }
}

.footer-menu a {
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-menu a:hover {
    opacity: 1;
}

.footer-info {
    font-size: 15px;
    font-weight: 200;
    opacity: 0.6;
    line-height: 1.5;
}

@media (max-width: 1023px) {
    .footer-info {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .footer-info {
        font-size: 12px;
    }
}

.footer-info p {
    margin-bottom: 0;
}

/* ============================================
   푸터 구분선
   ============================================ */

.footer-divider {
    width: 1px;
    height: auto;
    background-color: rgba(42, 31, 27, 0.2);
    margin-left: 100px;
    margin-right: 100px;
}

@media (max-width: 1279px) {
    .footer-divider {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .footer-divider {
        width: 100%;
        height: 1px;
        margin: 30px 0;
    }
}

/* ============================================
   푸터 오른쪽 영역
   ============================================ */

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    align-items: flex-start;
}

@media (max-width: 767px) {
    .footer-right {
        gap: 20px;
    }
}

/* ============================================
   상담/문의전화 섹션
   ============================================ */

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-title {
    font-size: 18px;
    opacity: 0.5;
}

@media (max-width: 767px) {
    .footer-contact-title {
        font-size: 15px;
    }
}

.footer-phone {
    font-weight: 700;
    font-size: 28px;
    font-family: 'Optima', sans-serif;
    line-height: 1.4;
}

@media (max-width: 1023px) {
    .footer-phone {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .footer-phone {
        font-size: 22px;
    }
}

/* ============================================
   진료시간 섹션
   ============================================ */

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-hours-content {
    font-size: 20px;
    line-height: 1.61;
}

@media (max-width: 1023px) {
    .footer-hours-content {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .footer-hours-content {
        font-size: 15px;
    }
}

.footer-hours-content p {
    margin-bottom: 0;
    white-space: pre-wrap;
}

.footer-hours-content .footer-hours-note {
    color: #777;
    font-weight: 300;
}

.footer-copyright {
    font-size: 15px;
    font-weight: 200;
    opacity: 0.5;
    line-height: 1.5;
}

@media (max-width: 1023px) {
    .footer-copyright {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .footer-copyright {
        font-size: 12px;
    }
}


/* aside btn — 항상 노출 (TOP만 스크롤 방향으로 숨김) */
._asideBtnBx {
    opacity: 1;
    right: 48px;
    position: fixed;
    bottom: 30px;
    z-index: 25;
    transition: opacity .5s, right .5s, bottom 0.25s ease;
}

/* TOP 숨김(스크롤 다운) 시 플로팅 높이만큼 화면 쪽으로 bottom 보정 */
._asideBtnBx.aside-sns-only {
    bottom: 14px;
}

._asideBtnBx > div:not(.sns-menu) {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    box-sizing: border-box;
    color: #fff;
    margin-bottom: 12px;
    box-shadow: 0px 2px 10px 0px #0000001A;
}

._asideBtnBx > div.sns-menu {
    width: auto;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    cursor: default;
}

._asideBtnBx .sns-sub {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #e994a4;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.85);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

._asideBtnBx .sns-menu.open .sns-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

._asideBtnBx .sns-menu.open .sns-call { transition-delay: 0.04s; }
._asideBtnBx .sns-menu.open .sns-kakao { transition-delay: 0.08s; }
._asideBtnBx .sns-menu.open .sns-insta { transition-delay: 0.12s; }
._asideBtnBx .sns-menu.open .sns-location { transition-delay: 0.16s; }

._asideBtnBx .sns-call {
    background-image: url(/assets/img/Icon_callWhite.svg);
}

._asideBtnBx .sns-kakao {
    background-image: url(/assets/img/Icon_kakaoWhite.svg);
}

._asideBtnBx .sns-insta {
    background-image: url(/assets/img/Icon_instaWhite.svg);
}

._asideBtnBx .sns-location {
    background-image: url(/assets/img/Icon_loactionWhite.svg);
}

/* 웹(1025px~): SNS 항상 보임, 플러스 버튼 없음 */
@media screen and (min-width: 1025px) {
    ._asideBtnBx .sns-menu .sns-sub {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    ._asideBtnBx .sns-menu > .m-plus {
        display: none !important;
    }
}

._asideBtnBx .top {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #111;
    border: 1px solid #555;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* TOP: 스크롤 내리면 화면 밖으로 확 밀어냄 */
._asideBtnBx .top.page-top {
    transform: translateY(calc(100% + 120px));
    pointer-events: none;
    transition: transform 0.28s ease;
}

._asideBtnBx .top.page-top.show {
    transform: translateY(0px);
    pointer-events: initial;
    transition: transform 0.25s;
}

._asideBtnBx .top .top-label {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #fff;
    line-height: 1;
    user-select: none;
}

._asideBtnBx .franchise > * {
    position: relative;
    z-index: 1;
}

._asideBtnBx .franchise p {
    font-weight: 800;
    line-height: 28px;
}

@media screen and (max-width:1600px) {
}

@media screen and (max-width:1440px) {
}

@media screen and (max-width:1280px) {
}

@media screen and (max-width:1024px) {
    ._asideBtnBx {
        right: 16px;
        bottom: 65px;
    }

    ._asideBtnBx.aside-sns-only {
        bottom: 5px;
    }

    ._asideBtnBx > div:not(.sns-menu) {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }

    ._asideBtnBx > div.sns-menu {
        gap: 6px;
        margin-bottom: 8px;
    }

    ._asideBtnBx .sns-sub {
        width: 44px;
        height: 44px;
        background-size: 22px 22px;
    }

    /* 플러스 FAB — 모바일에서만 */
    ._asideBtnBx .sns-menu > .m-plus {
        display: block;
        width: 44px;
        height: 44px;
        border: 1px solid #555;
        box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.16);
        background-color: #111;
        opacity: 1;
        position: relative;
        border-radius: 50%;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        margin: 0;
    }

    ._asideBtnBx .sns-menu > .m-plus::before,
    ._asideBtnBx .sns-menu > .m-plus::after {
        display: block;
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 1px;
        background-color: #fff;
        transform: translate(-50%, -50%);
        transition: transform 0.3s ease-in-out;
    }

    ._asideBtnBx .sns-menu > .m-plus::before {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    ._asideBtnBx .sns-menu > .m-plus::after {
        transform: translate(-50%, -50%) rotate(0);
    }

    ._asideBtnBx .sns-menu > .m-plus.active::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    ._asideBtnBx .sns-menu > .m-plus.active::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    ._asideBtnBx .top {
        width: 44px;
        height: 44px;
    }

    /* 모바일: 숨김 시 확 아래로 + 잔상 방지 */
    ._asideBtnBx .top.page-top {
        transform: translateY(calc(100% + min(45vw, 220px)));
        opacity: 0;
        transition: transform 0.28s ease, opacity 0.22s ease;
    }

    ._asideBtnBx .top.page-top.show {
        transform: translateY(0);
        opacity: 1;
    }

    ._asideBtnBx .top .top-label {
        font-size: 10px;
    }

    ._asideBtnBx .franchise p {
        font-weight: 900;
        font-size: 14px;
        line-height: 16px;
    }
}

@media screen and (max-width:820px) {
}

@media screen and (max-width:500px) {
    ._asideBtnBx .top {
        background: #111;
    }
}