/* 쓸모 여행 허브·나라 메인 — cat.css 위에. 사진이 주인공, 행동은 먹색 하나, 여행 하늘색(#B9E3F5/#70CFFF)은 판·막대에만. */
.tp-root{--sky:#B9E3F5;--sky2:#70CFFF;--skyink:#0A5A80}
.tp-i{width:22px;height:22px;flex:none}

/* 허브 첫 화면: 질문 + 나라 사진 배너 */
.tp-hero{padding-top:36px}
.tp-hx{max-width:760px}
.ch-root .tp-hero h1{font-size:1rem;font-weight:700;color:var(--g2);margin:0 0 6px}
.tp-q{margin:0;font-size:2.5rem;line-height:1.2;font-weight:800;letter-spacing:-.03em;color:var(--ink2);word-break:keep-all}
.tp-lead{margin:14px 0 0;font-size:1.0625rem;line-height:1.6;color:#424245;max-width:40em;word-break:keep-all}
.tp-cts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:28px}
.tp-cts:has(.tp-ct:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))}
.tp-ct{position:relative;display:block;aspect-ratio:3/4;border-radius:22px;overflow:hidden;color:#fff;text-decoration:none;background:#9fb4c2;isolation:isolate;transition:transform .2s cubic-bezier(.23,1,.32,1),box-shadow .2s}
.tp-ct img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .7s cubic-bezier(.23,1,.32,1)}
.tp-ct::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(0,0,0,.66) 0%,rgba(0,0,0,.2) 45%,rgba(0,0,0,0) 70%)}
.tp-ct:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.16)}
.tp-ct:hover img{transform:scale(1.05)}
.tp-ct:active{transform:scale(.98)}
.tp-ctx{position:absolute;left:16px;right:16px;bottom:16px}
.tp-ctn{display:block;font-size:1.5rem;font-weight:800;letter-spacing:-.02em;line-height:1.2;text-shadow:0 1px 3px rgba(0,0,0,.3)}
.tp-ctv,.tp-ctp{display:block;margin-top:4px;font-size:.875rem;font-weight:700;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.tp-ctp:empty{display:none}
.tp-ctm{display:inline-block;margin-top:8px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.92);color:var(--ink2);font-size:.8125rem;font-weight:700}
.tp-rest{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0 0}
.tp-rest>span{font-size:.9375rem;font-weight:700;color:var(--g2);margin-right:4px}
.tp-chip{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink2);font:inherit;font-size:.9375rem;font-weight:600;text-decoration:none;cursor:pointer;transition:background-color .16s,transform .12s}
.tp-chip:hover{background:#F0F0F2}
.tp-chip:active{transform:scale(.97)}
.tp-chip--all{background:var(--ink2);border-color:var(--ink2);color:#fff}
.tp-chip--all:hover{background:#000}
.tp-chips{display:flex;flex-wrap:wrap;gap:8px}

/* 한눈에 보기 */
.tp-glance{padding-top:44px}
.tp-gls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tp-gl{display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:14px 16px;border-radius:18px;background:#fff;color:var(--ink2);text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:transform .2s cubic-bezier(.23,1,.32,1),box-shadow .2s}
.tp-gl:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.07)}
.tp-gl .tp-i{grid-row:1/span 2;width:44px;height:44px;padding:10px;border-radius:12px;background:var(--sky);color:var(--skyink)}
.tp-gl b{font-size:1rem;font-weight:700}
.tp-gl small{font-size:.8125rem;color:var(--g2);font-weight:600}

/* 항공권: 가장 싼 날 찾기 */
.tp-fly{padding-top:48px}
.tp-flyin{background:#fff;border-radius:28px;padding:28px 28px 24px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 6px 20px rgba(0,0,0,.04)}
.tp-flyhd{display:flex;gap:16px;align-items:flex-start;margin-bottom:18px}
.tp-bigi{flex:none;width:52px;height:52px;padding:12px;border-radius:16px;background:var(--sky);color:var(--skyink)}
.tp-flyhd .ch-h2{margin:2px 0 4px}
.tp-sub{margin:0;color:#424245;font-size:1rem;line-height:1.55}
.tp-ftop{display:flex;flex-wrap:wrap;gap:14px 20px;margin-bottom:18px}
.tp-f{display:flex;flex-direction:column;gap:6px;min-width:0}
.tp-fl{font-size:.8125rem;font-weight:700;color:var(--g2)}
.tp-seg{display:flex;flex-wrap:wrap;gap:6px}
.tp-seg button{min-height:44px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink2);font:inherit;font-size:.9375rem;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:background-color .16s,transform .12s}
.tp-seg button small{font-size:.75rem;color:var(--g2);font-weight:600}
.tp-seg button[aria-pressed="true"]{background:var(--ink2);border-color:var(--ink2);color:#fff}
.tp-seg button[aria-pressed="true"] small{color:#C7C7CC}
.tp-seg button:active{transform:scale(.97)}
.tp-sel{min-height:44px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:#fff;font:inherit;font-size:1rem;color:var(--ink2);max-width:280px}
.tp-graph{border-top:1px solid #E8E8ED;padding-top:16px}
.tp-gh{margin:0 0 10px;font-size:.9375rem;font-weight:700}
.tp-bars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:end;height:150px}
.tp-bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;padding:0;border:0;background:none;cursor:pointer;font:inherit;color:var(--ink2);border-radius:12px}
.tp-bv{display:flex;align-items:flex-end;width:100%;max-width:64px;flex:1;min-height:0}
.tp-bv i{display:block;width:100%;border-radius:10px 10px 4px 4px;background:var(--sky);transition:height .6s cubic-bezier(.23,1,.32,1)}
.tp-bar.best .tp-bv i{background:var(--sky2)}
.tp-bar[aria-pressed="true"] .tp-bv i{box-shadow:inset 0 0 0 2px var(--ink2)}
.tp-bar.nil .tp-bv i{height:6px!important;background:#E8E8ED}
.tp-bp{font-size:.75rem;font-weight:700;margin-top:6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.tp-bar.best .tp-bp{color:var(--skyink)}
.tp-bm{font-size:.8125rem;color:var(--g2);font-weight:600}
.tp-gstat{margin:10px 0 0;font-size:.875rem;color:#424245;min-height:1.4em}
.tp-cal{margin-top:20px;border-top:1px solid #E8E8ED;padding-top:16px}
.tp-calhd{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.tp-mt{font-size:1.125rem}
.tp-nav{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink2);display:grid;place-items:center;cursor:pointer}
.tp-nav svg{width:20px;height:20px}
.tp-nav:disabled{opacity:.35;cursor:default}
.tp-wk,.tp-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.tp-wk span{text-align:center;font-size:.75rem;font-weight:700;color:var(--g2);padding:4px 0}
.tp-day{min-height:56px;padding:6px 2px;border:0;border-radius:12px;background:#F5F5F7;color:var(--ink2);font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:background-color .16s,transform .12s}
.tp-day b{font-size:.9375rem;font-weight:700;font-variant-numeric:tabular-nums}
.tp-day small{font-size:.6875rem;font-weight:600;color:var(--g2);font-variant-numeric:tabular-nums;white-space:nowrap}
.tp-day:hover:not(:disabled){background:#E8E8ED}
.tp-day:active:not(:disabled){transform:scale(.95)}
.tp-day:disabled{opacity:.35;cursor:default;background:transparent}
.tp-day.low{background:#E6F5FC}
.tp-day.low small{color:var(--skyink)}
.tp-day.best{background:var(--sky)}
.tp-day.best small{color:var(--skyink);font-weight:800}
.tp-day.in{background:#DDEFF8}
.tp-day.sel{background:var(--ink2);color:#fff}
.tp-day.sel small{color:#E5E5EA}
.tp-days.ld .tp-day small{opacity:.4}
.tp-x{display:block}
.tp-hint{margin:10px 0 0;font-size:.875rem;font-weight:600;color:var(--skyink)}
.tp-pick{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:16px;padding:14px 16px;border-radius:16px;background:#F5F5F7}
.tp-d{display:flex;flex-direction:column;min-width:110px}
.tp-d small{font-size:.75rem;color:var(--g2);font-weight:700}
.tp-d b{font-size:1rem}
.tp-px{display:flex;align-items:center;gap:8px;font-size:.875rem;font-weight:600;color:var(--g2)}
.tp-px select{min-height:40px;border-radius:10px;border:1px solid var(--line);padding:0 8px;font:inherit;font-size:1rem;background:#fff}
.tp-reset{margin-left:auto;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font:inherit;font-size:.875rem;font-weight:600;cursor:pointer}
.tp-cta{display:flex;align-items:center;gap:14px;margin-top:14px;padding:16px 20px;border-radius:18px;background:var(--ink2);color:#fff;text-decoration:none;transition:background-color .16s,transform .12s}
.tp-cta b{font-size:1.0625rem}
.tp-cta small{flex:1;font-size:.875rem;color:#D2D2D7;font-variant-numeric:tabular-nums}
.tp-cta span{font-size:1.5rem;line-height:1}
.tp-cta:hover{background:#000}
.tp-cta:active{transform:scale(.99)}
.tp-more{display:inline-block;margin-top:12px;font-size:.9375rem;font-weight:700;color:var(--skyink);text-decoration:none}
.tp-more:hover{text-decoration:underline}
.tp-note{margin:10px 0 0;font-size:.8125rem;line-height:1.5;color:var(--g2)}
.tp-nojs{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.tp-nojs a{display:inline-flex;min-height:40px;align-items:center;padding:0 14px;border-radius:999px;background:#F5F5F7;color:var(--ink2);text-decoration:none;font-weight:600}
.tp-fw:not(:empty) .tp-nojs{display:none}

/* 넓은 화면: 왼쪽 고르기·그래프, 오른쪽 달력·예약 */
@media (min-width:1024px){
  .tp-fw{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:0 36px;align-items:start}
  .tp-colA,.tp-colB{min-width:0}
  .tp-colB .tp-cal{margin-top:0;border-top:0;padding-top:0}
}
/* 안내 카드 */
.tp-all{padding-top:48px}
.tp-grp{margin-top:22px}
.tp-grp h3,.tp-grp--c .ch-h2,.tp-country .ch-city .ch-h2{display:flex;align-items:center;gap:10px}
.tp-country .ch-city .ch-h2 .tp-i{width:36px;height:36px;padding:8px;border-radius:10px;background:var(--sky);color:var(--skyink)}
.tp-grp h3{font-size:1.125rem;margin:0 0 12px}
.tp-grp h3 .tp-i,.tp-grp--c .ch-h2 .tp-i{width:36px;height:36px;padding:8px;border-radius:10px;background:var(--sky);color:var(--skyink)}
.tp-grp h3 small,.tp-grp--c .ch-h2 small{font-size:.9375rem;color:var(--g2);font-weight:600}
.tp-gcs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tp-gc{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:64px;padding:12px 40px 12px 16px;border-radius:16px;background:#fff;color:var(--ink2);text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:transform .2s cubic-bezier(.23,1,.32,1),box-shadow .2s}
.tp-gc:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.07)}
.tp-gc:active{transform:scale(.98)}
.tp-gc small{font-size:.75rem;font-weight:700;color:var(--skyink)}
.tp-gc b{font-size:.9688rem;line-height:1.4;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all}
.tp-ar{position:absolute;right:16px;top:50%;margin-top:-.7em;font-size:1.25rem;color:#AEAEB2}
.tp-gcs.folded .tp-over{display:none}
.tp-searching .tp-gcs.folded .tp-over{display:flex}
.tp-searching .tp-fold{display:none}
.tp-fold{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:10px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:#fff;font:inherit;font-size:.9375rem;font-weight:600;cursor:pointer}
.tp-fold span{color:var(--g2)}
.tp-gcs--x{margin-top:14px}
.tp-gcs--ph .tp-gc--ph{padding:8px 8px 14px;justify-content:flex-start;min-height:0}
.tp-gph{display:block;aspect-ratio:3/2;border-radius:12px;overflow:hidden;margin-bottom:10px;background:var(--sky)}
.tp-gph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s cubic-bezier(.23,1,.32,1)}
.tp-gc--ph:hover .tp-gph img{transform:scale(1.03)}
.tp-gc--ph b{padding:0 6px}

/* 나라 메인 */
.tp-chero{min-height:420px}
.tp-chero .ch-txt{max-width:640px}
.tp-back{display:inline-flex;align-items:center;min-height:36px;margin-bottom:10px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-size:.875rem;font-weight:700;text-decoration:none;backdrop-filter:blur(6px)}
.tp-back:hover{background:rgba(255,255,255,.3)}
.ch-root .tp-chero h1{font-size:2.75rem!important;line-height:1.1!important;color:#fff}
.tp-facts{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.tp-facts div{padding:10px 14px;border-radius:14px;background:rgba(255,255,255,.92);color:var(--ink2);max-width:100%}
.tp-facts dt{font-size:.75rem;font-weight:700;color:var(--g2)}
.tp-facts dd{margin:2px 0 0;font-size:.9375rem;font-weight:700;line-height:1.4}
.tp-chero .ch-btn{margin-top:18px}
.tp-src{margin-top:8px;font-size:.75rem;color:var(--g2)}
.tp-subnav{position:sticky;top:var(--shd-h,56px);z-index:20;margin-top:12px;background:rgba(245,245,247,.92);backdrop-filter:blur(10px);border-bottom:1px solid #E8E8ED}
.tp-subs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;max-width:1240px;margin:0 auto;padding:8px 32px}
.tp-subs::-webkit-scrollbar{display:none}
.tp-subs a{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:999px;color:var(--ink2);font-size:.9375rem;font-weight:600;text-decoration:none;white-space:nowrap}
.tp-subs a .tp-i{width:18px;height:18px}
.tp-subs a:hover{background:#E8E8ED}
.tp-subs a[aria-current="true"]{background:var(--ink2);color:#fff}
.tp-country .tp-fly,.tp-grp--c{scroll-margin-top:130px}
.tp-grp--c{padding-top:44px;margin-top:0}
.tp-oth{padding-top:48px}
.ch-city{scroll-margin-top:130px}

@media (max-width:1023px){
  .tp-cts,.tp-cts:has(.tp-ct:nth-child(5):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
  .tp-gls{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tp-gcs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .tp-hero{padding-top:22px}
  .tp-q{font-size:1.75rem}
  .tp-lead{font-size:.9688rem}
  .tp-cts,.tp-cts:has(.tp-ct:nth-child(5):last-child){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
  .tp-ct{aspect-ratio:4/5;border-radius:18px}
  .tp-ct:last-child:nth-child(odd){grid-column:span 2;aspect-ratio:16/9}
  .tp-ctn{font-size:1.25rem}
  .tp-ctx{left:12px;right:12px;bottom:12px}
  .tp-gls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tp-gl{grid-template-columns:36px 1fr;padding:12px;column-gap:10px}
  .tp-gl .tp-i{width:36px;height:36px;padding:8px}
  .tp-gl b{font-size:.9375rem}
  .tp-flyin{padding:20px 14px 18px;border-radius:22px}
  .tp-bigi{width:44px;height:44px;padding:10px}
  .tp-ftop{flex-direction:column}
  .tp-seg{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-14px;padding-right:14px}
  .tp-seg::-webkit-scrollbar{display:none}
  .tp-seg button{flex:none}
  .tp-sel{max-width:none;width:100%}
  .tp-bars{height:120px;gap:5px}
  .tp-bp{font-size:.6875rem}
  .tp-day{min-height:50px;border-radius:10px}
  .tp-day b{font-size:.875rem}
  .tp-day small{font-size:.625rem}
  .tp-cta{padding:14px 16px}
  .tp-cta small{display:none}
  .tp-gcs{grid-template-columns:1fr}
  .tp-gcs--ph{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ch-root .tp-chero h1{font-size:2.125rem!important}
  .tp-chero{min-height:480px}
  .tp-subs{padding:8px 16px}
}
@media (prefers-reduced-motion:reduce){.tp-ct img,.tp-gph img,.tp-bv i{transition:none}}
