﻿*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:#f6f8fb;color:#172033;font-family:Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif;font-size:13px}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.site-header{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid #e6ebf2}
.site-header-inner{max-width:1240px;margin:0 auto;min-height:68px;padding:0 20px;display:flex;align-items:center;gap:28px}
.site-logo{font-size:22px;font-weight:900;color:#1769e0}
.site-nav{display:flex;gap:18px;white-space:nowrap}
.site-nav a{font-weight:700;color:#364152}
.header-search{margin-left:auto;display:flex;width:min(420px,40vw)}
.header-search input{width:100%;height:40px;border:1px solid #d8e0ea;border-right:0;border-radius:9px 0 0 9px;padding:0 12px;font:inherit}
.header-search button,.primary-btn{border:0;background:#1769e0;color:#fff;font-weight:800;cursor:pointer}
.header-search button{width:68px;border-radius:0 9px 9px 0}
.container{max-width:1240px;margin:0 auto;padding:28px 20px 60px}
.page-head{margin-bottom:20px}
.page-head h1{margin:0 0 7px;font-size:27px}
.page-head p{margin:0;color:#78869a}
.category-tabs{display:flex;gap:8px;margin:18px 0}
.category-tabs a{padding:10px 16px;border:1px solid #dce3ec;border-radius:9px;background:#fff;font-weight:700}
.category-tabs a.on{background:#1769e0;border-color:#1769e0;color:#fff}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.product-card{overflow:hidden;border:1px solid #e3e9f1;border-radius:14px;background:#fff;transition:.15s}
.product-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(31,41,55,.08)}
.product-image{position:relative;aspect-ratio:4/3;background:#edf2f7;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:cover}
.image-empty{height:100%;display:flex;align-items:center;justify-content:center;color:#9aa7b8}
.card-body{padding:15px}
.card-meta{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px;color:#718096;font-size:11px}
.tag{padding:4px 7px;border-radius:6px;background:#eef4ff;color:#1769e0;font-weight:700}
.product-name{height:42px;overflow:hidden;font-size:14px;line-height:1.5;font-weight:800}
.product-area{margin-top:7px;color:#77869a;font-size:11px}
.price-row{display:flex;align-items:baseline;gap:7px;margin-top:12px}
.discount{color:#e5484d;font-size:16px;font-weight:900}
.price{font-size:18px;font-weight:900}
.old-price{color:#9ba6b4;text-decoration:line-through;font-size:11px}
.card-actions{display:flex;gap:7px;margin-top:13px}
.card-actions a{flex:1;text-align:center;padding:10px 8px;border-radius:8px;font-weight:800}
.detail-btn{background:#eef4ff;color:#1769e0}
.link-btn{background:#1769e0;color:#fff}
.empty-box{padding:70px 20px;text-align:center;border:1px solid #e3e9f1;border-radius:14px;background:#fff;color:#8190a4}
.pagination{display:flex;justify-content:center;gap:6px;margin-top:28px}
.pagination a,.pagination strong{min-width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid #dce3ec;border-radius:8px;background:#fff}
.pagination strong{background:#1769e0;border-color:#1769e0;color:#fff}
.detail-card{display:grid;grid-template-columns:minmax(0,520px) 1fr;gap:30px;padding:24px;border:1px solid #e3e9f1;border-radius:16px;background:#fff}
.detail-image{aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#edf2f7}
.detail-image img{width:100%;height:100%;object-fit:cover}
.detail-info h1{margin:8px 0 10px;font-size:25px;line-height:1.4}
.detail-sub{color:#718096;line-height:1.7}
.detail-price{margin:22px 0}
.departure-box{margin-top:20px;padding:20px;border:1px solid #e3e9f1;border-radius:14px;background:#fff}
.departure-table{width:100%;border-collapse:collapse}
.departure-table th,.departure-table td{padding:12px;border-bottom:1px solid #edf1f5;text-align:center}
.departure-table th{background:#f8fafc;color:#596579;font-size:11px}
.primary-btn{display:inline-block;padding:12px 20px;border-radius:9px}
.site-footer{border-top:1px solid #e5eaf1;background:#fff}
.site-footer-inner{max-width:1240px;margin:0 auto;padding:24px 20px;color:#8290a3}
.site-footer-inner strong{margin-right:12px;color:#1769e0}
@media(max-width:980px){.product-grid{grid-template-columns:repeat(2,1fr)}.detail-card{grid-template-columns:1fr}.site-nav{display:none}}
@media(max-width:640px){.site-header-inner{flex-wrap:wrap;padding:12px 16px;gap:10px}.header-search{width:100%;margin-left:0}.container{padding:20px 14px 45px}.product-grid{grid-template-columns:1fr}.page-head h1{font-size:23px}}


/*  - travel product search */
.travel-search {
    margin: 0 0 24px;
}
.travel-search-box {
    display: flex;
    gap: 8px;
    max-width: 720px;
}
.travel-search-box input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d9e0e8;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 14px;
}
.travel-search-box input:focus {
    outline: none;
    border-color: #1769e0;
    box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08);
}
.travel-search-box button {
    min-width: 82px;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #1769e0;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.search-result-info {
    margin-top: 10px;
    font-size: 13px;
    color: #667085;
}
.search-result-info a {
    margin-left: 10px;
    color: #1769e0;
}
@media (max-width: 640px) {
    .travel-search-box {
        max-width: none;
    }
    .travel-search-box button {
        min-width: 72px;
        padding: 0 14px;
    }
}


/*  - departure selection */
.departure-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #1769e0;
    border-radius: 8px;
    color: #1769e0;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.departure-select-btn:hover {
    background: #f3f7ff;
}


/*  */
.old-price {
    margin-top: 8px;
    color: #8a94a3;
    font-size: 13px;
    text-decoration: line-through;
}
.price-row .discount {
    color: #ff334b;
    font-weight: 800;
}
.price-row .price {
    font-size: 17px;
    font-weight: 800;
    color: #151b26;
}
.detail-action-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-top: 18px;
}
.detail-action-row form {
    margin: 0;
}
.wish-btn {
    height: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.home-product-section {
    margin-top: 36px;
}
.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.home-section-head h2 {
    margin: 0;
    font-size: 22px;
}
.home-section-head p {
    margin: 5px 0 0;
    color: #7a8494;
    font-size: 13px;
}
.home-section-head > a {
    color: #1769e0;
    font-size: 13px;
    font-weight: 700;
}


/*  - quick wishlist */
.wish-quick {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 6;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 116, 139, .22);
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #8b96a5;
    font-size: 17px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15,23,42,.10);
    backdrop-filter: blur(3px);
}
.wish-quick:hover {
    transform: scale(1.05);
}
.wish-quick.on {
    color: #ff4d68;
    border-color: #ffd0d8;
    background: #fff;
}
.site-nav a[href="/travel/wish.asp"] {
    color: #1769e0;
}


/*  - recent products */
.site-nav a[href="/travel/recent.asp"] {
    color: #1769e0;
}
.recent-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.recent-page-head form {
    margin: 0;
}
.recent-clear-btn {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d8e0ea;
    border-radius: 9px;
    background: #fff;
    color: #64748b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.recent-clear-btn:hover {
    border-color: #b8c4d3;
    color: #27364a;
}
.recent-delete-form {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 7;
    margin: 0;
}
.recent-delete-one {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(100,116,139,.20);
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #667085;
    font-size: 21px;
    line-height: 27px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,23,42,.08);
}
.recent-delete-one:hover {
    color: #e5484d;
    border-color: #ffd0d5;
}
.recent-product-card .wish-quick {
    right: 10px;
    bottom: 10px;
}
@media(max-width:640px) {
    .recent-page-head {
        align-items: flex-start;
    }
}


/* 제휴마케팅 대가성 표시 */
.affiliate-disclosure {
    width: 100%;
    border-bottom: 1px solid #dbe4ef;
    background: #eef5ff;
    color: #334155;
}
.affiliate-disclosure-inner {
    max-width: 1240px;
    min-height: 30px;
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}
.affiliate-disclosure-inner strong {
    font-weight: 700;
}
.affiliate-disclosure-inner span {
    color: #64748b;
}
@media(max-width:640px) {
    .affiliate-disclosure-inner {
        min-height: 32px;
        padding: 5px 12px;
        display: block;
    }
    .affiliate-disclosure-inner span {
        display: block;
        margin-top: 1px;
    }
}

.home-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 5px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef5ff;
    color: #1769e0;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
    box-sizing: border-box;
}


/* 메인 수동진열 다수 상품 보기 */
.manual-product-grid.is-collapsed .home-extra-product {
    display: none;
}
.manual-product-grid.is-open .home-extra-product {
    display: block;
}
.home-more-wrap {
    margin-top: 16px;
    text-align: center;
}
.home-more-btn {
    min-width: 190px;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid #d7e1ee;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.home-more-btn:hover {
    border-color: #1769e0;
    color: #1769e0;
}


/* 사용자 메인 여행상품 검색 */
.home-hero-head {
    padding-bottom: 4px;
}
.home-search {
    display: flex;
    width: min(680px, 100%);
    margin-top: 18px;
    border: 1px solid #cfdbea;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .05);
}
.home-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font: inherit;
    font-size: 14px;
}
.home-search button {
    width: 86px;
    border: 0;
    background: #1769e0;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.home-search button:hover {
    filter: brightness(.96);
}
.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;
}
@media(max-width:640px) {
    .home-search {
        margin-top: 14px;
    }
    .home-search input {
        height: 44px;
        padding: 0 13px;
        font-size: 13px;
    }
    .home-search button {
        width: 72px;
    }
}


/* 여행상품 목록 정렬 */
.travel-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 14px;
}
.travel-total {
    color: #64748b;
    font-size: 13px;
}
.travel-total strong {
    color: #1769e0;
}
.travel-sort {
    display: flex;
    align-items: center;
    gap: 4px;
}
.travel-sort a {
    padding: 7px 10px;
    border-radius: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}
.travel-sort a.on {
    background: #eef5ff;
    color: #1769e0;
}
@media(max-width:640px) {
    .travel-list-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .travel-sort {
        width: 100%;
        overflow-x: auto;
    }
    .travel-sort a {
        white-space: nowrap;
    }
}


/* 여행상품 목록 페이징 */
.pagination {
    flex-wrap: wrap;
}
.pagination .page-edge {
    font-weight: 700;
}
@media(max-width:640px) {
    .pagination {
        gap: 4px;
    }
    .pagination a,
    .pagination strong {
        min-width: 32px;
        height: 32px;
        padding: 0 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
}


/* 상품상세 제휴 및 출발일 안내 */
.detail-affiliate-note {
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}
.departure-title-row {
    margin-bottom: 12px;
}
.departure-title-row h2 {
    margin-bottom: 4px;
}
.departure-title-row p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}
@media(max-width:640px) {
    .departure-table {
        min-width: 680px;
    }
}


/* 출발월 검색 */
.travel-search-box .travel-month-input {
    flex: 0 0 150px;
    max-width: 150px;
    border-right: 1px solid #e2e8f0;
}
@media(max-width:640px) {
    .travel-search-box {
        flex-wrap: wrap;
    }
    .travel-search-box .travel-month-input {
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }
}

.site-logo-image { display:block; max-width:220px; max-height:46px; width:auto; height:auto; }
.footer-copyright { display:block; margin-top:5px; color:#94a3b8; font-size:11px; }


/* site popup */
.site-popup-layer{position:fixed;z-index:1000;background:#fff;border:1px solid #dfe6ef;border-radius:14px;box-shadow:0 18px 50px rgba(15,23,42,.22);overflow:hidden}
.site-popup-body{position:relative;min-height:80px;background:#fff}
.site-popup-body img{width:100%;height:auto;display:block}
.site-popup-content{padding:22px;line-height:1.7}
.site-popup-content h3{margin:0 0 10px;font-size:20px}
.site-popup-content p{margin:0;white-space:pre-line}
.site-popup-link{display:block;color:inherit}
.site-popup-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-top:1px solid #edf1f5;background:#fff;color:#64748b;font-size:12px}
.site-popup-foot button{border:0;background:transparent;color:#334155;font:inherit;cursor:pointer;font-weight:700}
@media(max-width:700px){.site-popup-layer{left:14px!important;right:14px!important;top:90px!important;width:auto!important;max-width:none!important}.site-popup-content{padding:18px}}

/* Mobile final optimization */
.departure-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media(max-width:640px) {
    body {
        overflow-x: hidden;
    }

    .site-header-inner {
        align-items: center;
    }

    .site-logo,
    .site-logo-image {
        max-width: 180px;
    }

    .header-search input {
        min-width: 0;
    }

    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 3px;
        -webkit-overflow-scrolling: touch;
    }

    .category-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .card-actions a {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .detail-card {
        gap: 18px;
        padding: 16px;
        border-radius: 14px;
    }

    .detail-info h1 {
        font-size: 21px;
        line-height: 1.45;
    }

    .detail-price {
        margin: 16px 0;
    }

    .detail-action-row {
        flex-direction: column;
        gap: 8px;
    }

    .detail-action-row form,
    .detail-action-row .wish-btn,
    .detail-action-row .primary-btn {
        width: 100%;
    }

    .detail-action-row .wish-btn,
    .detail-action-row .primary-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .departure-box {
        margin-top: 16px;
        padding: 14px;
    }

    .departure-title-row h2 {
        font-size: 19px;
    }

    .departure-table-wrap {
        margin: 0 -14px -2px;
        width: calc(100% + 28px);
        padding: 0 14px 4px;
    }

    .departure-table {
        min-width: 610px;
    }

    .departure-table th,
    .departure-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    .departure-select-btn {
        min-height: 38px;
        padding: 0 13px;
    }

    .travel-list-toolbar {
        align-items: flex-start;
    }

    .site-popup-layer {
        max-height: calc(100vh - 112px);
        overflow-y: auto;
    }

    .site-popup-foot {
        position: sticky;
        bottom: 0;
    }
}


/* Mobile navigation */
.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d8e0ea;
    border-radius: 9px;
    background: #fff;
    color: #364152;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-nav-toggle-icon,
.mobile-nav-toggle-icon::before,
.mobile-nav-toggle-icon::after {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: #364152;
}

.mobile-nav-toggle-icon {
    position: relative;
}

.mobile-nav-toggle-icon::before,
.mobile-nav-toggle-icon::after {
    position: absolute;
    left: 0;
    content: "";
}

.mobile-nav-toggle-icon::before {
    top: -5px;
}

.mobile-nav-toggle-icon::after {
    top: 5px;
}

@media(max-width:980px) {
    .site-header-inner {
        position: relative;
        flex-wrap: wrap;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        gap: 0;
        padding: 8px;
        border: 1px solid #e6ebf2;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(31,50,81,.08);
    }

    .site-nav.is-open {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .site-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 8px;
        text-align: center;
        white-space: nowrap;
    }

    .site-nav a:hover {
        background: #f3f7fd;
        color: #1769e0;
    }

    .header-search {
        order: 4;
    }
}

@media(max-width:640px) {
    .site-logo,
    .site-logo-image {
        max-width: 150px;
    }

    .site-nav.is-open {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav a {
        justify-content: flex-start;
        padding-left: 13px;
        font-size: 14px;
    }
}
