/**
 * Trenvl Header Styles
 * Extracted from: app/Views/inc/header.php
 * Version: 20260321
 * 
 * 포함 범위:
 *   - CSS 변수 (:root)
 *   - PC 헤더 (.trenvl-header)
 *   - 모바일 헤더 (.trenvl-header-mo)
 *   - 검색 팝업 (.trenvl-search-popup)
 *   - 모바일 메뉴 (.trenvl-mobile-menu)
 *   - 하단 고정 네비 (.trenvl-bottom-nav)
 *   - 채팅 위젯 (.trenvl-chat-widget)
 *   - Google Translate 관련 숨김 CSS
 *   - 접근성 (.sr-only)
 *   - 미디어 쿼리 (모바일 최적화)
 */

    :root {
        --hd-primary: #1a1a2e;
        --hd-accent: #7236ff;
        --hd-accent-hover: #1badff;
        --hd-white: #ffffff;
        --hd-gray-50: #f8f9fa;
        --hd-gray-100: #f1f3f5;
        --hd-gray-200: #e9ecef;
        --hd-gray-300: #dee2e6;
        --hd-gray-400: #ced4da;
        --hd-gray-500: #adb5bd;
        --hd-gray-600: #868e96;
        --hd-gray-700: #495057;
        --hd-gray-800: #343a40;
        --hd-gray-900: #212529;
        --hd-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
        --hd-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
        --hd-radius: 12px;
        --hd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        --hd-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        --hd-max-width: 1280px;
        --hd-height: 72px;
        --hd-nav-height: 52px;
    }

    /* ===== 접근성용 숨김 제목 ===== */
    .sr-only {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .trenvl-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--hd-white);
        font-family: var(--hd-font);
        box-shadow: var(--hd-shadow);
    }

    .trenvl-header * {
        box-sizing: border-box;
    }

    .trenvl-hd-top {
        height: var(--hd-height);
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: var(--hd-max-width);
        margin: 0 auto;
        padding: 0 24px;
    }

    .trenvl-hd-logo {
        flex-shrink: 0;
    }

    .trenvl-hd-logo img {
        height: 36px;
        width: auto;
        display: block;
        transition: var(--hd-transition);
    }

    .trenvl-hd-logo:hover img {
        opacity: 0.8;
    }

    .trenvl-hd-search {
        flex: 1;
        max-width: 480px;
        margin: 0 32px;
        position: relative;
    }

    .trenvl-hd-search-inner {
        display: flex;
        align-items: center;
        background: var(--hd-gray-50);
        border: 2px solid transparent;
        border-radius: 50px;
        padding: 0 6px 0 20px;
        height: 44px;
        transition: var(--hd-transition);
    }

    .trenvl-hd-search-inner:focus-within {
        border-color: var(--hd-accent);
        background: var(--hd-white);
        box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.08);
    }

    .trenvl-hd-search-inner input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-size: 14px;
        color: var(--hd-gray-800);
        font-family: var(--hd-font);
    }

    .trenvl-hd-search-inner input::placeholder {
        color: var(--hd-gray-400);
    }

    .trenvl-hd-search-btn {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--hd-accent);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--hd-transition);
        flex-shrink: 0;
    }

    .trenvl-hd-search-btn:hover {
        background: var(--hd-accent-hover);
        transform: scale(1.05);
    }

    .trenvl-hd-search-btn svg {
        width: 16px;
        height: 16px;
        color: var(--hd-white);
    }

    .trenvl-hd-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .trenvl-hd-action {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 500;
        color: var(--hd-gray-700);
        transition: var(--hd-transition);
        white-space: nowrap;
        text-decoration: none;
        border: none;
        background: none;
        cursor: pointer;
    }

    .trenvl-hd-action:hover {
        background: var(--hd-gray-50);
        color: var(--hd-gray-900);
    }

    .trenvl-hd-action svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .trenvl-hd-action .badge {
        background: var(--hd-accent);
        color: var(--hd-white);
        font-size: 11px;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 10px;
        min-width: 18px;
        text-align: center;
        line-height: 16px;
    }

    .trenvl-hd-action.accent {
        background: var(--hd-accent);
        color: var(--hd-white);
    }

    .trenvl-hd-action.accent:hover {
        background: var(--hd-accent-hover);
        color: var(--hd-white);
    }

    .trenvl-hd-welcome {
        font-size: 13px;
        color: var(--hd-gray-600);
        padding: 0 8px;
    }

    .trenvl-hd-welcome span {
        color: var(--hd-accent);
        font-weight: 600;
    }

    .trenvl-hd-lang {
        position: relative;
    }

    .trenvl-hd-lang select {
        appearance: none;
        -webkit-appearance: none;
        background: var(--hd-gray-50);
        border: 1px solid var(--hd-gray-200);
        border-radius: 8px;
        padding: 6px 28px 6px 10px;
        font-size: 12px;
        font-weight: 600;
        color: var(--hd-gray-700);
        cursor: pointer;
        outline: none;
        font-family: var(--hd-font);
        transition: var(--hd-transition);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23868e96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center;
    }

    .trenvl-hd-lang select:hover {
        border-color: var(--hd-gray-300);
    }

    .trenvl-hd-lang select:focus {
        border-color: var(--hd-accent);
    }

    .trenvl-hd-nav {
        border-top: 1px solid var(--hd-gray-100);
        background: var(--hd-white);
    }

    .trenvl-hd-nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: var(--hd-max-width);
        margin: 0 auto;
        padding: 0 24px;
        height: var(--hd-nav-height);
    }

    .trenvl-hd-menu {
        display: flex;
        align-items: center;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
        position: relative;
    }

    .trenvl-hd-menu>li {
        position: relative;
    }

    .trenvl-hd-menu>li>a {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        font-size: 14px;
        font-weight: 600;
        color: var(--hd-gray-700);
        text-decoration: none;
        transition: var(--hd-transition);
        white-space: nowrap;
        position: relative;
    }

    .trenvl-hd-menu>li>a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 16px;
        right: 16px;
        height: 2px;
        background: var(--hd-accent);
        transform: scaleX(0);
        transition: var(--hd-transition);
    }

    .trenvl-hd-menu>li>a:hover,
    .trenvl-hd-menu>li>a.on {
        color: var(--hd-accent);
    }

    .trenvl-hd-menu>li>a:hover::after,
    .trenvl-hd-menu>li>a.on::after {
        transform: scaleX(1);
    }

    .trenvl-hd-menu .sub_nav_menu,
    .trenvl-hd-menu .trenvl-hd-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--hd-white);
        border-radius: var(--hd-radius);
        box-shadow: var(--hd-shadow-lg);
        padding: 16px 20px;
        min-width: 400px;
        display: none;
        flex-wrap: wrap;
        column-gap: 0;
        row-gap: 0;
        z-index: 1000;
        border: 1px solid var(--hd-gray-200);
    }

    .trenvl-hd-menu>li:hover>.sub_nav_menu,
    .trenvl-hd-menu>li:hover>.trenvl-hd-dropdown {
        display: flex;
    }

    .trenvl-hd-menu .sub_nav_menu::before,
    .trenvl-hd-menu .trenvl-hd-dropdown::before {
        content: '';
        display: block;
        width: 100%;
        height: 10px;
        position: absolute;
        top: -10px;
        left: 0;
        background: transparent;
    }

    .trenvl-hd-menu .sub_nav_menu a.sub_item,
    .trenvl-hd-menu .trenvl-hd-dropdown a {
        display: block;
        width: 48%;
        padding: 10px 12px;
        font-size: 13px;
        font-weight: 500;
        color: var(--hd-gray-700);
        text-decoration: none;
        border-bottom: 1px solid var(--hd-gray-100);
        border-radius: 0;
        transition: var(--hd-transition);
        box-sizing: border-box;
    }

    .trenvl-hd-menu .sub_nav_menu a.sub_item:hover,
    .trenvl-hd-menu .trenvl-hd-dropdown a:hover {
        background: var(--hd-gray-50);
        color: var(--hd-accent);
    }

    .trenvl-hd-menu .sub_nav_menu a.sub_item p {
        margin: 0;
        font-size: 13px;
        font-weight: 500;
    }

    .trenvl-hd-menu>li:last-child>.sub_nav_menu,
    .trenvl-hd-menu>li:last-child>.trenvl-hd-dropdown,
    .trenvl-hd-menu>li.new>.sub_nav_menu,
    .trenvl-hd-menu>li.new>.trenvl-hd-dropdown {
        min-width: 200px;
    }

    .trenvl-hd-menu>li.new>.sub_nav_menu a.sub_item,
    .trenvl-hd-menu>li.new>.trenvl-hd-dropdown a {
        width: 100%;
    }

    .trenvl-hd-nav-right {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .trenvl-hd-nav-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 600;
        color: var(--hd-gray-600);
        text-decoration: none;
        border-radius: 8px;
        transition: var(--hd-transition);
        white-space: nowrap;
        position: relative;
    }

    .trenvl-hd-nav-link:hover {
        background: var(--hd-gray-50);
        color: var(--hd-gray-900);
    }

    .trenvl-hd-nav-link svg {
        width: 18px;
        height: 18px;
    }

    .trenvl-hd-nav-link .cart-badge {
        position: absolute;
        top: 2px;
        right: 4px;
        background: var(--hd-accent);
        color: var(--hd-white);
        font-size: 10px;
        font-weight: 700;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .trenvl-hd-partner {
        background: var(--hd-primary);
        color: var(--hd-white) !important;
        border-radius: 8px;
        padding: 8px 16px !important;
    }

    .trenvl-hd-partner:hover {
        background: var(--hd-gray-800) !important;
        color: var(--hd-white) !important;
    }

    .trenvl-header-placeholder {}

    .trenvl-header-mo {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--hd-white);
        font-family: var(--hd-font);
        box-shadow: var(--hd-shadow);
    }

    .trenvl-header-mo * {
        box-sizing: border-box;
    }

    .trenvl-hd-mo-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
    }

    .trenvl-hd-mo-logo img {
        height: 28px;
        width: auto;
        display: block;
    }

    .trenvl-hd-mo-actions {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .trenvl-hd-mo-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: var(--hd-transition);
        position: relative;
        color: var(--hd-gray-700);
    }

    .trenvl-hd-mo-btn:hover {
        background: var(--hd-gray-50);
    }

    .trenvl-hd-mo-btn svg {
        width: 22px;
        height: 22px;
    }

    .trenvl-hd-mo-btn .mo-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        background: var(--hd-accent);
        color: var(--hd-white);
        font-size: 9px;
        font-weight: 700;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .trenvl-hd-mo-lang select {
        appearance: none;
        -webkit-appearance: none;
        background: var(--hd-gray-50);
        border: 1px solid var(--hd-gray-200);
        border-radius: 6px;
        padding: 6px 24px 6px 8px;
        font-size: 11px;
        font-weight: 600;
        color: var(--hd-gray-700);
        cursor: pointer;
        outline: none;
        font-family: var(--hd-font);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23868e96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 6px center;
    }

    .trenvl-search-popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .trenvl-search-popup.active {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 80px;
    }

    .trenvl-search-popup-inner {
        background: var(--hd-white);
        border-radius: 20px;
        padding: 24px;
        width: 90%;
        max-width: 600px;
        box-shadow: var(--hd-shadow-lg);
        animation: searchPopupIn 0.3s ease;
    }

    @keyframes searchPopupIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .trenvl-search-popup-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .trenvl-search-popup-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: var(--hd-gray-900);
        margin: 0;
    }

    .trenvl-search-popup-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: var(--hd-gray-100);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--hd-transition);
        color: var(--hd-gray-600);
    }

    .trenvl-search-popup-close:hover {
        background: var(--hd-gray-200);
    }

    .trenvl-search-popup-close svg {
        width: 18px;
        height: 18px;
    }

    .trenvl-search-popup-input {
        display: flex;
        align-items: center;
        background: var(--hd-gray-50);
        border: 2px solid var(--hd-gray-200);
        border-radius: 14px;
        padding: 0 8px 0 16px;
        height: 52px;
        transition: var(--hd-transition);
        position: relative;
    }

    .trenvl-search-popup-input:focus-within {
        border-color: var(--hd-accent);
        background: var(--hd-white);
    }

    .trenvl-search-popup-input input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-size: 15px;
        color: var(--hd-gray-800);
        font-family: var(--hd-font);
    }

    .trenvl-search-popup-input input::placeholder {
        color: var(--hd-gray-400);
    }

    .trenvl-search-popup-input .sp-search-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: var(--hd-accent);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--hd-transition);
        flex-shrink: 0;
    }

    .trenvl-search-popup-input .sp-search-btn:hover {
        background: var(--hd-accent-hover);
    }

    .trenvl-search-popup-input .sp-search-btn svg {
        width: 18px;
        height: 18px;
        color: var(--hd-white);
    }

    .trenvl-search-suggest {
        list-style: none;
        padding: 0;
        margin: 12px 0 0 0;
        max-height: 300px;
        overflow-y: auto;
        display: none;
    }

    .trenvl-search-suggest li a {
        display: block;
        padding: 12px 16px;
        font-size: 14px;
        color: var(--hd-gray-700);
        text-decoration: none;
        border-radius: 10px;
        transition: var(--hd-transition);
    }

    .trenvl-search-suggest li a:hover {
        background: var(--hd-gray-50);
        color: var(--hd-accent);
    }

    .trenvl-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: var(--hd-white);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.06);
        padding: 6px 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .trenvl-bottom-nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin: 0 auto;
    }

    .trenvl-bn-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 12px;
        cursor: pointer;
        text-decoration: none;
        transition: var(--hd-transition);
        border: none;
        background: none;
        font-family: var(--hd-font);
    }

    .trenvl-bn-item svg {
        width: 22px;
        height: 22px;
        color: var(--hd-gray-500);
        transition: var(--hd-transition);
    }

    .trenvl-bn-item span {
        font-size: 10px;
        font-weight: 600;
        color: var(--hd-gray-500);
        transition: var(--hd-transition);
    }

    .trenvl-bn-item:hover svg,
    .trenvl-bn-item.on svg {
        color: var(--hd-accent);
    }

    .trenvl-bn-item:hover span,
    .trenvl-bn-item.on span {
        color: var(--hd-accent);
    }

    .trenvl-mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        background: var(--hd-white);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .trenvl-mobile-menu.active {
        display: block;
        animation: mobileMenuIn 0.3s ease;
    }

    @keyframes mobileMenuIn {
        from {
            transform: translateX(-100%);
        }

        to {
            transform: translateX(0);
        }
    }

    .trenvl-mm-header {
        background: var(--hd-primary);
        padding: 24px 20px;
        color: var(--hd-white);
    }

    .trenvl-mm-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .trenvl-mm-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.15);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--hd-white);
        transition: var(--hd-transition);
    }

    .trenvl-mm-close:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .trenvl-mm-close svg {
        width: 20px;
        height: 20px;
    }

    .trenvl-mm-alarm {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--hd-white);
        text-decoration: none;
        font-size: 13px;
    }

    .trenvl-mm-alarm .alarm-badge {
        background: var(--hd-accent);
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 700;
    }

    .trenvl-mm-user {
        margin-bottom: 20px;
    }

    .trenvl-mm-user p {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 4px 0;
    }

    .trenvl-mm-user a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 13px;
    }

    .trenvl-mm-shortcuts {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .trenvl-mm-shortcut {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        text-decoration: none;
        color: var(--hd-white);
        transition: var(--hd-transition);
    }

    .trenvl-mm-shortcut:hover {
        background: rgba(255, 255, 255, 0.18);
    }

    .trenvl-mm-shortcut svg {
        width: 24px;
        height: 24px;
    }

    .trenvl-mm-shortcut span {
        font-size: 11px;
        font-weight: 500;
        text-align: center;
    }

    .trenvl-mm-category-title {
        padding: 20px 20px 10px;
        font-size: 12px;
        font-weight: 700;
        color: var(--hd-gray-500);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .trenvl-mm-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .trenvl-mm-list>li {
        border-bottom: 1px solid var(--hd-gray-100);
    }

    .trenvl-mm-list>li>a,
    .trenvl-mm-list>li>.trenvl-mm-item-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        font-size: 15px;
        font-weight: 600;
        color: var(--hd-gray-800);
        text-decoration: none;
        transition: var(--hd-transition);
        cursor: pointer;
    }

    .trenvl-mm-list>li>a:hover,
    .trenvl-mm-list>li>.trenvl-mm-item-toggle:hover {
        color: var(--hd-accent);
        background: var(--hd-gray-50);
    }

    .trenvl-mm-sub {
        display: none;
        padding: 0 20px 12px;
    }

    .trenvl-mm-sub a {
        display: block;
        padding: 10px 16px;
        font-size: 13px;
        color: var(--hd-gray-600);
        text-decoration: none;
        border-radius: 8px;
        transition: var(--hd-transition);
    }

    .trenvl-mm-sub a:hover {
        background: var(--hd-gray-50);
        color: var(--hd-accent);
    }

    .trenvl-chat-widget {
        position: fixed;
        bottom: 80px;
        right: 16px;
        z-index: 998;
    }

    .trenvl-chat-bubble {
        position: relative;
        margin-bottom: 60px;
    }

    .trenvl-chat-msg {
        position: absolute;
        bottom: calc(100% + 8px);
        right: 0;
        background: var(--hd-white);
        border-radius: 12px;
        padding: 12px 16px;
        box-shadow: var(--hd-shadow-lg);
        white-space: nowrap;
        font-size: 11px;
        color: var(--hd-gray-700);
    }

    .trenvl-chat-msg em {
        color: var(--hd-accent);
        font-weight: 700;
        font-style: normal;
    }

    .trenvl-chat-msg .chat-close {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--hd-gray-200);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: var(--hd-gray-600);
    }

    .trenvl-chat-icon {
        width: 47px;
        height: 47px;
        border-radius: 50%;
        overflow: hidden;
        cursor: pointer;
        box-shadow: var(--hd-shadow-lg);
        transition: var(--hd-transition);
    }

    .trenvl-chat-icon:hover {
        transform: scale(1.05);
    }

    .trenvl-chat-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .goog-te-banner-frame.skiptranslate,
    .goog-logo-link,
    .goog-te-gadget span {
        display: none !important;
    }

    iframe.goog-te-banner-frame {
        display: none !important;
    }

    body {
        top: 0 !important;
    }

    .skiptranslate iframe,
    .goog-te-banner {
        display: none !important;
    }

    @media screen and (max-width: 1280px) {
        .trenvl-hd-menu>li>a {
            padding: 14px 10px;
            font-size: 13px;
        }

        .trenvl-hd-menu .sub_nav_menu,
        .trenvl-hd-menu .trenvl-hd-dropdown {
            min-width: 320px;
        }
    }

    @media screen and (max-width: 1024px) {
        .trenvl-hd-menu>li>a {
            padding: 14px 8px;
            font-size: 12px;
        }

        .trenvl-hd-search {
            max-width: 320px;
            margin: 0 16px;
        }

        .trenvl-hd-actions {
            gap: 2px;
        }

        .trenvl-hd-action {
            padding: 6px 8px;
            font-size: 12px;
        }
    }

/* ===================================================================
   모바일 최적화 보완 (2026-03-21)
   - .trenvl-bottom-nav(fixed)로 인해 본문이 가려지는 현상 방지
   - only_mo 클래스가 있는 모바일 전용 요소에만 적용
   =================================================================== */

/* 모바일에서 하단 네비(약 68px + safe-area)로 인한 본문 가림 방지 */
@media screen and (max-width: 768px) {
    main {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }
}

/* 320px ~ 360px 초소형 화면 overflow-x 방지 */
@media screen and (max-width: 360px) {
    .trenvl-header,
    .trenvl-header-mo {
        overflow-x: hidden;
    }
    .trenvl-hd-top {
        padding: 0 12px;
    }
}

/* 430px 이하 검색 팝업 너비 안전 처리 */
@media screen and (max-width: 430px) {
    .trenvl-search-popup-inner {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0;
    }
}


/* ============================================================
   footer.php에서 이동: .lang_select (언어 선택 드롭다운)
   ============================================================ */
.lang_select {
  border: 1px solid #888;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 15px;
  width: 120px;
  height: auto;
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
  transition: all .25s ease;
}
.lang_select::-ms-expand { display: none; }
.lang_select:hover { background-color: rgba(255, 255, 255, .1); }
.lang_select:focus { border-color: #fff; }
.lang_select:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 2px; }
.lang_select option { color: #000; background-color: #fff; }
@media screen and (max-width: 850px) {
  .lang_select { display: none; }
}

/* ============================================================
   layout_index.php에서 이동: .layout_loading (페이지 로딩 오버레이)
   ============================================================ */
.layout_loading {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
.layout_loading.open { display: flex; }
.load-container {
  position: absolute;
  margin: auto;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 60px;
  height: 100px;
}
.load-container .loading_img { max-width: 480px; }

/* ============================================================
   head.php에서 이동: #loading (스피너 오버레이)
   ============================================================ */
#loading {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading.hidden { opacity: 0; visibility: hidden; }
.spinner {
  width: 50px; height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
