/* [2026-10-26 대표 확정 최종본] public/js/trip-v2.js 가 정적 코스 페이지(/trip/…, 5개 언어)를 다시 배치한다.
   탭을 누르면 그 내용만 보임: 여행 일정(기본, 일정 목록 + 큰 지도) / 코스 소개 / 예상 비용 / 사진·영상 / 자주 묻는 질문.
   글·질문·구조화 데이터는 HTML 그대로(검색 노출 유지). 스크립트가 2초 안에 못 돌면 원래 화면이 그대로 보인다. */
html.tv2-on .page-flex{visibility:hidden;animation:tv2show 0s 2s forwards}
@keyframes tv2show{to{visibility:visible}}
html.tv2 .page-flex{visibility:visible;animation:none}
html.tv2 .hero,html.tv2 .tg-strip,html.tv2 .tg-tags{display:none !important}
html.tv2 main{max-width:1180px;width:100%;margin:0 auto;white-space:normal;padding:0 24px;box-sizing:border-box}
/* 맨 위 */
.tv2-head{max-width:1180px;margin:0 auto;padding:18px 24px 0;box-sizing:border-box}
.tv2-ttl{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.tv2-tl{flex:1 1 380px;min-width:0}
.tv2-tl h1{margin:0 0 8px;font-size:clamp(22px,2.6vw,30px);line-height:1.3;color:#1B2433;letter-spacing:-.02em;word-break:keep-all;text-wrap:balance}
.tv2-tl h1 .hero-line{color:inherit;display:inline}
.tv2-chips{display:flex;gap:6px;flex-wrap:wrap}
.tv2-chips span{background:#F1F4F8;border-radius:999px;padding:3px 10px;font-size:12.5px;color:#5B6576;font-weight:600}
html.tv2 .tv2-ttl .btn-share-top{display:inline-flex !important;align-items:center;gap:5px;flex:0 0 auto;border:1px solid #E3E8EF !important;border-radius:10px !important;padding:8px 12px !important;font:inherit;font-size:13px !important;font-weight:700;color:#1B2433 !important;background:#fff !important;cursor:pointer;margin:0 !important;box-shadow:none !important;width:auto !important;position:static !important}
html.tv2 .tv2-ttl .btn-share-top svg{width:16px;height:16px;color:#7C6FD0;stroke:#7C6FD0}
.tv2-price{display:flex;align-items:center;gap:14px;flex:0 0 auto;border:1px solid #E3E8EF;border-radius:14px;padding:10px 12px 10px 16px;background:#fff}
.tv2-price small{display:block;font-size:12px;font-weight:700;color:#5B6576}
.tv2-price b{display:block;font-size:22px;color:#D94436;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.2}
.tv2-price span{font-size:12px;color:#5B6576}
.tv2-btn{display:inline-block;background:#D94436;color:#fff !important;border-radius:12px;padding:12px 16px;font-weight:800;font-size:14px;text-decoration:none;white-space:nowrap;text-align:center}
.tv2-btn.sm{padding:8px 12px;font-size:13px;border-radius:10px}
.tv2-gal{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:150px 150px;gap:6px;margin:14px 0 2px;border-radius:14px;overflow:hidden}
.tv2-gal img{width:100%;height:100%;object-fit:cover;display:block}
.tv2-gal img:first-child{grid-row:1/3}
.tv2-gal.n1{grid-template-columns:1fr;grid-template-rows:280px}
.tv2-gal.n2{grid-template-columns:1fr 1fr;grid-template-rows:280px}.tv2-gal.n2 img:first-child{grid-row:auto}
.tv2-cap{font-size:11px;color:#8A94A6;text-align:right}
/* 탭 줄 */
.tv2-bar{position:sticky;top:0;z-index:60;background:#fff;border-bottom:1px solid #E3E8EF;display:flex;align-items:center;gap:12px;padding:0 max(24px,calc((100% - 1180px) / 2 + 24px));margin-top:10px}
.tv2-tabs{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
.tv2-tabs::-webkit-scrollbar{display:none}
.tv2-tabs a{padding:14px 14px 12px;font-weight:700;font-size:15px;color:#5B6576;text-decoration:none;white-space:nowrap;border-bottom:3px solid transparent}
.tv2-tabs a.on{color:#D94436;border-color:#D94436}
.tv2-mini{display:none;align-items:center;gap:10px;flex:0 0 auto}
.tv2-bar.stuck .tv2-mini{display:flex}
.tv2-mini b{font-size:16px;color:#D94436;font-variant-numeric:tabular-nums}
/* 탭 내용: 한 번에 하나 */
.tv2-panes{padding:16px 0 8px}
.tv2-pane{display:none}
.tv2-pane.on{display:block}
.tv2-pane>section{max-width:none !important;margin-left:0 !important;margin-right:0 !important;padding-left:0 !important;padding-right:0 !important}
html.tv2 .tv2-pane .section-head,html.tv2 .tv2-pane .h2ec-head,html.tv2 .tv2-pane .h2ec-credit{padding-left:0 !important;padding-right:0 !important}
/* 여행 일정: 일차 버튼 + 목록 | 큰 지도 */
.tv2-days{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.tv2-days button{border:1px solid #E3E8EF;border-radius:999px;padding:7px 15px;font:inherit;font-weight:800;font-size:13.5px;background:#fff;color:#1B2433;cursor:pointer}
.tv2-days button.on{background:#1F3A5F;border-color:#1F3A5F;color:#fff}
html.tv2 .tv2-days a.tv2-edit{margin-left:auto;display:inline-flex;align-items:center;border:1px solid #E3E8EF;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:800;background:#fff;color:#1F3A5F !important;text-decoration:none;box-shadow:none}
.tv2-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:20px;align-items:start}
.tv2-pl>section{padding:0 !important;margin:0 !important;max-width:none !important}
.tv2-mapcol{position:sticky;top:60px;min-width:0}
html.tv2 .tv2-mapcol #seoMapSection{padding:0 !important;margin:0 !important;max-width:none !important;border:0;background:none}
html.tv2 .tv2-mapcol #seoMapSection .section-head,html.tv2 .tv2-mapcol .seo-map-tabs-row,html.tv2 .tv2-mapcol .seo-map-tabs{display:none !important}
html.tv2 .tv2-mapcol .seo-map-wrap{margin:0 !important;max-width:100% !important;border-radius:14px;overflow:hidden}
html.tv2 .tv2-mapcol .seo-map-container{height:560px !important;max-width:100% !important}
html.tv2 .day .day-title{display:none}
html.tv2 .timeline .item{cursor:pointer}
html.tv2 .item.tv2-act .place{outline:3px solid #D94436;outline-offset:1px}
/* 일정 카드: 남색 바탕 그대로(글자 흰색) — 흰 바탕으로 바꾸지 말 것 */
html.tv2 .place .aff-kobus{color:#8FE3B0 !important;border-color:rgba(143,227,176,.55) !important;background:rgba(143,227,176,.12) !important}
/* 코스 소개 */
html.tv2 #tv2-intro .course-intro{display:block;font-size:15.5px;line-height:1.8;max-width:72ch}
/* 로그인 잠금 */
.tv2-lockwrap,.tv2-lockwrap .day{position:relative}
html.tv2-guest .tv2-locked{filter:blur(5px);user-select:none;pointer-events:none;max-height:520px;overflow:hidden}
.tv2-gate{display:none}
html.tv2-guest .tv2-gate{display:flex}
.tv2-gate{position:absolute;left:50%;top:120px;transform:translateX(-50%);z-index:5;width:min(380px,92%);flex-direction:column;align-items:center;text-align:center;gap:8px;background:#fff;border:1px solid #E3E8EF;border-radius:16px;box-shadow:0 12px 32px rgba(15,30,50,.2);padding:18px;box-sizing:border-box}
.tv2-gate b{font-size:16px;color:#1B2433;word-break:keep-all}.tv2-gate small{color:#5B6576;font-size:12.5px;word-break:keep-all}
.tv2-gate a{display:block;width:100%;background:#D94436;color:#fff !important;border-radius:10px;padding:11px;font-weight:800;text-decoration:none;box-sizing:border-box}
.tv2-gate.inline{position:static;transform:none;margin:12px auto 0;box-shadow:none}
/* 자주 묻는 질문 */
.tv2-fcat{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 6px}
.tv2-fcat button{border:1px solid #E3E8EF;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:700;background:#fff;color:#1B2433;cursor:pointer}
.tv2-fcat button.on{background:#1F3A5F;border-color:#1F3A5F;color:#fff}
html.tv2 .tg-faq .tg-faq-item{border:0;border-bottom:1px solid #E3E8EF;border-radius:0;padding:12px 2px;margin:0;background:none;box-shadow:none}
html.tv2 .tg-faq summary{list-style:none;display:flex;align-items:center;gap:10px;font-weight:800;font-size:15px;cursor:pointer;color:#1B2433}
html.tv2 .tg-faq summary::-webkit-details-marker{display:none}
html.tv2 .tg-faq .tg-faq-q{display:none}
.tv2-fic{width:30px;height:30px;border-radius:9px;background:#F4F6F9;display:grid;place-items:center;font-size:15px;flex:0 0 auto}
.tv2-fk{font-size:11.5px;font-weight:700;color:#5B6576;background:#F1F4F8;border-radius:6px;padding:1px 7px;white-space:nowrap}
.tv2-far{margin-left:auto;color:#8A94A6;font-weight:400;transition:transform .15s}
html.tv2 .tg-faq details[open] .tv2-far{transform:rotate(180deg)}
html.tv2 .tg-faq .tg-faq-a{margin:10px 0 2px 40px;padding:0;background:none;border:0}
html.tv2 .tg-faq .tg-faq-op{display:none}
html.tv2 .tg-faq .tg-faq-a p{color:#5B6576;font-size:13.5px;margin:0}
.tv2-one{display:block;color:#1B2433;font-size:14.5px;margin-bottom:4px}
.tv2-ask{display:flex;align-items:center;gap:12px;margin-top:16px;background:#F7F9FB;border:1px solid #E3E8EF;border-radius:14px;padding:14px;flex-wrap:wrap}
.tv2-ask .t{flex:1 1 220px;min-width:0}.tv2-ask .t b{display:block;font-size:15px;color:#1B2433}.tv2-ask .t small{color:#5B6576;font-size:12.5px}
.tv2-ask a{border-radius:10px;padding:10px 14px;font-weight:800;font-size:13px;text-decoration:none;white-space:nowrap}
.tv2-ask .p{background:#D94436;color:#fff !important}.tv2-ask .s{border:1px solid #E3E8EF;background:#fff;color:#1B2433 !important}
/* 폰 아래 고정 바 */
.tv2-pbar{display:none}
@media(max-width:959px){
 html.tv2 main{padding:0 16px}
 .tv2-head{padding:12px 16px 0}
 .tv2-price{display:none}
 .tv2-gal,.tv2-gal.n2{grid-template-columns:1fr;grid-template-rows:200px}.tv2-gal img:not(:first-child){display:none}
 .tv2-gal img:first-child{grid-row:auto}
 .tv2-bar{padding:0 16px}
 .tv2-bar .tv2-mini,.tv2-bar.stuck .tv2-mini{display:none}
 .tv2-tabs a{padding:12px 11px 10px;font-size:14px}
 .tv2-split{grid-template-columns:1fr;gap:12px}
 .tv2-mapcol{position:static;order:-1}
 html.tv2 .tv2-mapcol .seo-map-container{height:320px !important}
 html.tv2 .tg-faq .tg-faq-a{margin-left:0}
 html.tv2 .tv2-days a.tv2-edit{margin-left:0}
 html.tv2 body{padding-bottom:72px}
 .tv2-pbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;align-items:center;gap:12px;justify-content:space-between;background:#fff;border-top:1px solid #E3E8EF;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 18px rgba(15,30,50,.08)}
 .tv2-pbar small{display:block;font-size:11.5px;font-weight:700;color:#5B6576}
 .tv2-pbar b{font-size:18px;color:#D94436;font-variant-numeric:tabular-nums}
 html.tv2 body:has(.tg-bottom-nav:not([hidden])) .tv2-pbar{bottom:calc(60px + env(safe-area-inset-bottom,0px))}
}

/* [2026-10-26 대표 "스크롤할 때 지도도 안 움직이고 아래 흰 공간이 없게"] PC: 지도는 탭 줄 바로 아래에 붙고 화면 높이를 꽉 채움 */
@media(min-width:960px){
 .tv2-mapcol{top:calc(var(--tv2-bh,52px) + 10px) !important}
 html.tv2 .tv2-mapcol .seo-map-container{height:calc(100vh - var(--tv2-bh,52px) - 24px) !important;min-height:420px}
}
/* [2026-10-26 대표 "날씨·우리 가족 날짜로 버튼·여행 가이드 모두 빼줘"] 모든 코스 페이지에서 숨김 */
html.tv2 #tgWxStrip,html.tv2 div:has(>#tgWxStrip),html.tv2 .tgh-cwrap,html.tv2 #tghCtaWrap,html.tv2 .tg-guides{display:none !important}
/* [2026-10-26 대표 "아래 ♡0 💬0 👁0 · 생성일 줄 삭제" — 모든 코스 페이지] */
html.tv2 .tg-stats:not(.tv2-stats),html.tv2 .gen-meta{display:none !important}
