@charset "utf-8";

/* ============================================================
   TRAVART · 메인(home) 페이지 전용 CSS
   - reset / .container / 기본 폰트 / img / 폰트스무딩 → _core 위임
   - 여기엔 페이지 토큰 + 섹션·카드 스타일만 둠
   - 이미지 경로는 전부 HTML(인라인 background / <img>)에서 처리 → CSS엔 URL 없음
   - 헤더 / GNB / 언어선택 / 모바일메뉴(m-nav) / 푸터는
     layout-common.css로 이관됨 (2026-07 정리, 홈/서브 값 100% 일치 확인)
   ============================================================ */

/* ----- 페이지 전용 토큰 (전역 디자인시스템 미간섭) ----- */
:root {
    --brand:        #5b6ef0;   /* 브랜드 컬러 (로고 라벨·뱃지·배너·포인트) */
    --brand-2:      #7b86f4;   /* 배너 그라데이션 보조(이미지 미사용 시 폴백) */
    --brand-3:        #285999;   /* 브랜드 컬러 (로고 라벨·뱃지·배너·포인트) */
	--medical-bg:   #d9edfb;   /* 의료관광 하늘색 띠 */

    --t-text:       #1a1a1a;   /* 시안의 진한 제목/활성 텍스트 (_core 본문 #333보다 진함) */
    --t-sub:        #888;
    --t-meta:       #9a9a9a;
    --t-line:       #ececec;

    --radius:       14px;
    --radius-sm:    10px;
    --header-h:     90px;
}

/* 한글 가독성용 자간(시안 디테일) — _core 본문 위에 살짝 얹기 */
body { letter-spacing: -0.01em; }

html.lang-zh body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* wrap 1240 (_core .container 1200 대체). 시안 기준 데스크탑은 1240 꽉참 */
.container { max-width: 1240px; margin: 0 auto; padding: 0; }
@media (max-width: 1272px) { .container { padding: 0 16px; } }

/* 이미지 플레이스홀더 폴백 (이미지 누락 시 회색 박스) */
[class$="__img"],
[class$="__bg"] {
    background-color: #e9e9ec;
    background-image: linear-gradient(135deg, #ededf0 0%, #e2e2e7 100%);
    background-size: cover;
    background-position: center;
}

/* ============================================================
   2. HERO  (텍스트 → 이미지로 교체, alt 부여)
   ============================================================ */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}
.hero__swiper { position: absolute; inset: 0; height: 100%; }
.hero__swiper .swiper-slide { height: 100%; }
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* background-image 는 HTML 인라인에서 (main-s2/s3.png) */
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}
.hero__overlay img,
.hero__overlay p {
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
}
.hero__logo    { width: clamp(240px, 42vw, 560px); height: auto; }
.hero__tagline {
    margin-top: 18px;
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.hero__desc {
    margin-top: 10px;
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.2;
}

/* ============================================================
   3. SECTION 공통
   ============================================================ */
.section { padding: 56px 0; }
.section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.section__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--t-text);
    margin-bottom: 22px;
}
.section__head .section__title { margin-bottom: 0; }
.section__more {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand) !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 6px 10px 6px 15px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    transition: background-color .15s ease, color .15s ease;
}
.section__more:hover {
    background: var(--brand);
    color: #fff !important;
}

/* ============================================================
   4. PLACE CARD (공통: 뷰티 / 맛집) — 시안 이미지 7:5 가로형
   ============================================================ */
.place-card { display: block; }
.place-card__img {
    position: relative;
    width: 100%;
    aspect-ratio: 7 / 5;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.place-card__info { padding: 12px 2px 0; }
.place-card__name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.place-card__meta { font-size: 13px; color: var(--t-meta); }

.badge {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 4px 9px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.badge--best { background: var(--brand); }

/* ============================================================
   5-1. 여행상품 슬라이더
   ============================================================ */
.product-swiper { padding-bottom: 36px; }
.product-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}
.product-card__img { width: 100%; aspect-ratio: 4 / 5; }
.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 45%);
}
.product-card__label {
    position: absolute;
    top: 18px; left: 18px;
    z-index: 1;
    color: #fff;
	box-sizing:border-box;
	padding-right:var(--spacing-lg);
	word-break:keep-all;
	line-height:1.2;
}
.product-card__name {
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
	word-break: auto-phrase;
}
.product-card__tag {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* ============================================================
   5-2. K-뷰티 슬라이더
   ============================================================ */
.beauty-swiper { padding-bottom: 36px; }

/* ============================================================
   5-3. K-의료관광
   ============================================================ */
.section--medical { background: var(--medical-bg); padding: 48px 0; }
.medical-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);   /* 시안: 인트로+카드4 = 5등분 동일폭 236 */
    gap: 16px;
}
.medical-intro {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 326px;                            /* 시안 236×326 */
    display: flex;
}
.medical-intro__bg { position: absolute; inset: 0; }
.medical-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.medical-intro__body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 26px;
    color: #fff;
}
.medical-intro__title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
}
.medical-intro__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 999px;
    padding: 9px 16px;
}

.medical-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 326px;                            /* 시안 236×326 */
    display: flex;
}
.medical-card__img { position: absolute; inset: 0; }
.medical-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
}
.medical-card__info {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 18px 16px;
    color: #fff;
}
.medical-card__name { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.medical-card__meta { font-size: 12px; opacity: 0.9; }

/* ============================================================
   5-4. MICE 인프라 (탭)
   ============================================================ */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}
/* _core reset 의 button{all:unset} 으로 display 가 inline 이 되므로 명시 */
.tabs__btn {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    padding: 9px 20px;
    border-radius: 999px;
    background: #f1f1f3;
}
.tabs__btn.is-active { background: var(--t-text); color: #fff; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.mice-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.mice-card__img {
    width: 100%;
    aspect-ratio: 7 / 5;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.mice-card__name { margin-top: 12px; font-size: 15px; font-weight: 700; }

/* ============================================================
   5-5. 맛집 (5열)
   ============================================================ */
.food-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
/* 맛집 이미지 = MICE와 동일(7:5). place-card__img 기본값(7/5) 그대로 사용 */

/* ============================================================
   5-6. 제휴할인 배너 (이미지)
   ============================================================ */
.promo-banner {
    display: block;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    /* background-image 는 HTML 인라인 (line-banner.png) */
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%); /* 폴백 */
    background-size: cover;
    background-position: center;
}

/* ============================================================
   5-7. 퀵 메뉴
   ============================================================ */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.quick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f6f6f8;
    border-radius: var(--radius);
    padding: 26px 28px;
}
.quick-item__label { font-size: 17px; font-weight: 700; line-height: 1.35; }
.quick-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.quick-item__icon img { width: 20px; height: 20px; }   /* 흰색 글리프 SVG */
.quick-item__icon--red    { background: #f0584e; }
.quick-item__icon--yellow { background: #f4c020; }
.quick-item__icon--blue   { background: #2e9af0; }
.quick-item__icon--green  { background: #28b463; }

/* ============================================================
   7. TO-TOP
   ============================================================ */
.to-top {
    position: fixed;
    right: 24px; bottom: 24px;
    z-index: 90;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    color: #555;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
}
.to-top.is-show { display: flex; }

/* ============================================================
   8. SWIPER PAGINATION
   ============================================================ */
.swiper-pagination-bullet { background: #ccc; opacity: 1; }
.swiper-pagination-bullet-active { background: #333; width: 18px; border-radius: 4px; }

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
/* 태블릿 (~1024px) */
@media (max-width: 1024px) {
    .mice-grid,
    .food-grid { grid-template-columns: repeat(3, 1fr); }

    .medical-row { grid-template-columns: repeat(3, 1fr); }
    .medical-intro, .medical-card { height: 260px; }
}

/* 모바일 (~768px) */
@media (max-width: 768px) {
    .hero { height: 380px; }

    .section { padding: 40px 0; }
    .section__title { font-size: 20px; margin-bottom: 18px; }

    .medical-row { grid-template-columns: repeat(2, 1fr); }
    .medical-intro, .medical-card { height: 220px; }

    .mice-grid,
    .food-grid { grid-template-columns: repeat(2, 1fr); }

    .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .quick-item { padding: 20px; }
    .quick-item__label { font-size: 15px; }

    .promo-banner { height: 110px; }
}

/* 소형 (~480px) */
@media (max-width: 480px) {
    .mice-grid,
    .food-grid,
    .medical-row { grid-template-columns: repeat(2, 1fr); }
}