@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    /* Colors */
    --primary-color: #0064DE;
    /* Trustworthy Blue */
    --primary-dark: #0050b3;
    --secondary-color: #26C6DA;
    /* Cyan accent */
    --accent-color: #E53935;
    /* Price/Sale Red */
    --text-main: #333333;
    --text-sub: #666666;
    --text-light: #999999;
    --bg-body: #FFFFFF;
    --bg-light: #F5F7FA;
    --border-color: #E0E0E0;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.5;
    font-size: 15px;
    /* Slightly smaller than 16px for dense info */
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
li {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.bg-light {
    background-color: var(--bg-light);
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* Header */
header {
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #f8f9fa;
    font-size: 12px;
    color: var(--text-sub);
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.header-main {
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 40px;
}

.gnb {
    display: flex;
    gap: 30px;
    font-weight: 500;
    font-size: 17px;
}

.gnb a:hover {
    color: var(--primary-color);
}

.header-utils {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn,
.menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-main);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
}

/* Hero Section */
/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Slightly darker for better text contrast/sophistication */
    z-index: 2;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }
}

.search-box {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    z-index: 10;
}

.search-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.search-tab {
    font-weight: 700;
    color: var(--text-sub);
    cursor: pointer;
    padding-bottom: 10px;
    margin-bottom: -11px;
}

.search-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.search-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 5px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.search-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    height: 46px;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-sub);
    margin-bottom: 40px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.product-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-tag {
    font-size: 11px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    /* 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
}

.product-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-sub);
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-sub);
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.footer-info p {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .header-top {
        display: none;
    }

    .gnb {
        display: none;
    }

    /* Hide desktop menu */
    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        border: none;
        background: none;
    }

    .hero {
        height: 400px;
    }

    .search-box {
        width: 90%;
        padding: 20px;
    }

    .search-inputs {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth / Login Page */
.auth-section {
    background-color: var(--bg-light);
    min-height: calc(100vh - var(--header-height) - 250px);
    /* Fill space between header and footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.auth-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-main);
}

.auth-form .input-group {
    margin-bottom: 15px;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    width: 100%;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.auth-text-links {
    display: flex;
    gap: 10px;
}

.auth-text-links .divider {
    color: var(--border-color);
    font-size: 10px;
    align-self: center;
}

.social-login {
    margin-top: 40px;
    text-align: center;
}

.social-login-title {
    font-size: 13px;
    color: var(--text-light);
    position: relative;
    margin-bottom: 20px;
}

.social-login-title::before,
.social-login-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border-color);
}

.social-login-title::before {
    left: 0;
}

.social-login-title::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    height: 46px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.social-btn.kakao {
    background-color: #FEE500;
    color: #3C1E1E;
}

.social-btn.naver {
    background-color: #03C75A;
    color: #fff;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text-sub);
}

.link-primary {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

/* Sub Page Specific Styles (Product Detail) */
.breadcrumbs {
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-sub);
}

.breadcrumbs span {
    margin: 0 5px;
}

.product-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-gallery img {
    border-radius: 12px;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-summary h1 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-tags {
    margin-bottom: 20px;
}

.summary-table {
    width: 100%;
    border-top: 2px solid var(--text-main);
    margin-bottom: 30px;
    border-collapse: collapse;
}

.summary-table th,
.summary-table td {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 14px;
}

.summary-table th {
    width: 100px;
    color: var(--text-sub);
    font-weight: 400;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-label {
    font-size: 16px;
    font-weight: 700;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

.btn-reserve {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-reserve:hover {
    background: var(--primary-dark);
}

.detail-tabs {
    position: sticky;
    top: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    margin-bottom: 40px;
}

.detail-tabs ul {
    display: flex;
}

.detail-tabs li {
    flex: 1;
    text-align: center;
}

.detail-tabs a {
    display: block;
    padding: 15px 0;
    font-weight: 700;
    color: var(--text-sub);
    border-bottom: 3px solid transparent;
}

.detail-tabs a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.detail-content {
    margin-bottom: 80px;
}

.detail-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--text-main);
}

.itinerary-day {
    margin-bottom: 40px;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.day-badge {
    background: var(--text-main);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
}

.day-title {
    font-size: 18px;
    font-weight: 700;
}

.schedule-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 2px solid #eee;
}

.time {
    color: var(--text-sub);
    font-weight: 500;
    width: 60px;
    flex-shrink: 0;
}

.schedule-desc h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.schedule-desc p {
    color: var(--text-sub);
    font-size: 14px;
}

.schedule-img {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 400px;
}

/* =========================================
   Responsive Media Queries (Product Detail)
   ========================================= */

@media (max-width: 768px) {

    /* Product Detail */
    .product-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery img {
        height: 250px;
    }

    .detail-tabs {
        top: 60px;
        /* New header height is 60px on mobile */
    }

    .detail-tabs ul {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    .detail-tabs li {
        flex: 0 0 auto;
        min-width: 100px;
    }

    /* Itinerary */
    .schedule-item {
        flex-direction: column;
        gap: 8px;
    }

    .time {
        width: auto;
        margin-bottom: 0;
        color: var(--primary-color);
        font-weight: 700;
    }

    .schedule-img {
        width: 100%;
        max-width: 100%;
    }

    .schedule-img img {
        width: 100%;
    }
}

@media (max-width: 480px) {

    /* Product Detail */
    .product-summary h1 {
        font-size: 22px;
    }

    .btn-reserve {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        z-index: 1000;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
        padding: 15px;
    }

    .detail-content {
        margin-bottom: 100px;
        /* Space for fixed button */
    }

    /* Footer Stack */
    .footer-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }
}
/* Promo & Info Section */
.promo-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.promo-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.promo-card {
    height: 180px;
    border-radius: 12px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.promo-card.flight {
    background: linear-gradient(135deg, #74a2dce0 0%, #5c95c4 100%), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.promo-card.kakao {
    background-color: #FEE500;
    color: #3C1E1E;
}

.promo-text h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    white-space: pre-line;
}

.promo-text p {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.promo-icon {
    font-size: 60px;
    opacity: 0.8;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 60px;
}

.info-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

.notice-list {
    border-top: 2px solid var(--text-main);
}

.notice-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-sub);
    cursor: pointer;
}

.notice-item:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.cs-center h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin: 10px 0;
    letter-spacing: -1px;
}

.cs-info {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-faq {
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 10px 25px;
    font-weight: 700;
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-faq:hover {
    border-color: var(--text-main);
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .promo-banners {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .promo-card {
        height: 140px;
    }
}

/* Personalized Recommendation Section */
.rec-section {
    padding: 60px 0;
    overflow: hidden;
}

.rec-header {
    margin-bottom: 30px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.rec-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.rec-subtitle {
    font-size: 15px;
    color: var(--text-sub);
}

.rec-subtitle a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: underline;
}

.rec-slider-wrapper {
    position: relative;
}

.rec-list {
    display: flex; /* Horizontal Layout */
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.rec-list::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.rec-card {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.rec-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    margin-bottom: 15px;
}

.rec-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.rec-card:hover .rec-img-wrapper img {
    transform: scale(1.05);
}

.rec-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #5c9cea;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.rec-info-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 44px; /* 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rec-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.rec-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.rec-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.rec-nav-btn:hover {
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

.rec-nav-btn.prev {
    left: -20px;
}

.rec-nav-btn.next {
    right: -20px;
}

@media (max-width: 768px) {
    .rec-card {
        min-width: 240px;
        max-width: 240px;
    }
    
    .rec-nav-btn {
        display: none;
    }
}

.promo-card.consult {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

/* Search Highlight */
.highlight {
    background-color: #ffe082; /* Soft Amber */
    color: #000;
    font-weight: bold;
    border-radius: 2px;
    padding: 0 2px;
}
.match-snippet {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    background: #f9f9f9;
    padding: 5px 8px;
    border-radius: 4px;
    border-left: 3px solid #ffe082;
}

