/* travel-hotels.css — 여행 탭 → 숙소 / 숙소 스택 페이지 / 검색 입구 카드 공용
   항공권(travel-flights.css)과 같은 결: 히어로(밤 도시 야경) · 카드 1회 등장 · 가격 카운트업.
   ⚠️ 무한 반복 애니메이션 금지(카드 여러 장 동시 리페인트로 화면이 흔들렸다 — 항공권 26.9.28).
   ⚠️ 달력은 인라인(position:static). 고정 오버레이·body 포탈 금지(SPA transform 조상·전역 제스처). */
.th { --th-ink:#f3f4f6; --th-sub:#9aa3b5; --th-acc:#6c5cff; --th-acc2:#ff9a5c; --th-card:#12141c; --th-line:#232633; --th-gold:#ffcf4d;
  /* 하단 여백 — 화면 오른쪽 아래 떠 있는 갈비스 버튼(약 70px)이 마지막 버튼을 가리지 않게 */
  padding: 0 0 calc(120px + env(safe-area-inset-bottom, 0px)); }

/* ── 히어로: 밤 도시 ── */
.th-hero { position: relative; height: 136px; border-radius: 0 0 22px 22px; overflow: hidden; margin-bottom: 14px; isolation: isolate; }
.th-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0d1030 0%, #23195a 42%, #5a2e7e 74%, #c4607a 100%); }
.th-sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 80% 110%, rgba(255,154,92,.45), transparent 60%); animation: thGlow 1.6s ease-out both; }
@keyframes thGlow { from { opacity: 0; } }
.th-moon { position: absolute; top: 18px; right: 26px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff9e6, #ffe7a6 60%, #f2c86b); box-shadow: 0 0 22px 6px rgba(255,231,166,.35); animation: thMoon 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes thMoon { from { opacity: 0; transform: translateY(14px); } }
.th-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 5px 1px rgba(255,255,255,.7); opacity: .75; animation: thTw 2.4s ease-in-out 3 both; }
.th-stars i:nth-child(1) { top: 16px; left: 18%; } .th-stars i:nth-child(2) { top: 34px; left: 41%; animation-delay: .6s; }
.th-stars i:nth-child(3) { top: 22px; left: 63%; animation-delay: 1.1s; } .th-stars i:nth-child(4) { top: 52px; left: 30%; animation-delay: .3s; }
.th-stars i:nth-child(5) { top: 46px; left: 74%; animation-delay: 1.5s; }
@keyframes thTw { 0%, 100% { opacity: .75; } 50% { opacity: .2; } }
.th-sky-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 78px; }
.th-bld rect { fill: #0b0b1c; }
.th-win { fill: #ffd27a; opacity: 0; animation: thWin .5s ease-out forwards; animation-delay: calc(var(--k) * .07s + .35s); }
@keyframes thWin { to { opacity: .85; } }
.th-hero-t { position: absolute; left: 18px; top: 18px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); z-index: 2; }
.th-hero-t b { display: block; font-size: 21px; font-weight: 900; letter-spacing: -.01em; }
.th-hero-t span { font-size: 12.5px; opacity: .9; }

/* ── 폼 ── */
.th-form { padding: 0 14px; }
.th-fld { display: flex; flex-direction: column; gap: 4px; background: var(--th-card); border: 1px solid var(--th-line); border-radius: 14px; padding: 9px 13px; min-width: 0; box-sizing: border-box; }
.th-lb { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: var(--th-sub); }
.th-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; color: #b9a8ff; flex: none; }
.th-ic svg { width: 18px; height: 18px; }
.th-city-row { display: flex; align-items: center; gap: 8px; }
/* 16px — iOS 가 포커스 때 화면을 확대하지 않는 최소 크기 */
.th-in { flex: 1; min-width: 0; border: none; background: transparent; color: var(--th-ink); font-size: 16px; font-weight: 800; outline: none; padding: 2px 0; font-family: inherit; -webkit-appearance: none; appearance: none; }
.th-in::placeholder { color: #5d6476; font-weight: 600; }
.th-dates { position: relative; display: flex; gap: 10px; margin-top: 10px; }
.th-when { flex: 1 1 0; text-align: left; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.th-when.act { border-color: var(--th-acc); box-shadow: 0 0 0 3px rgba(108,92,255,.18); }
.th-datev { font-size: 15.5px; font-weight: 800; color: var(--th-ink); padding: 2px 0; white-space: nowrap; }
.th-nights { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(120deg, #6c5cff, #a35cff); border-radius: 999px; padding: 3px 8px; box-shadow: 0 0 0 4px var(--gl-bg, #0a0a0b); pointer-events: none; }

/* 📅 인라인 달력(범위) */
.th-pane { margin-top: 10px; }
.th-pane[hidden] { display: none; }
.th-pane.on { animation: thCalIn .22s ease-out; }
@keyframes thCalIn { from { opacity: 0; transform: translateY(-6px); } }
.th-cal { background: var(--th-card); border: 1px solid var(--th-line); border-radius: 16px; padding: 14px; }
.th-cal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.th-cal-top b { font-size: 16px; font-weight: 900; color: var(--th-ink); }
.th-cal-x { border: none; background: #1a1d28; color: #cdd3e0; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; cursor: pointer; }
.th-cal-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 4px 0 10px; }
.th-cal-nav button { border: none; background: #1a1d28; color: #cdd3e0; width: 36px; height: 36px; border-radius: 10px; font-size: 20px; cursor: pointer; }
.th-cal-nav button:disabled { opacity: .3; cursor: default; }
.th-cal-nav span { font-size: 16px; font-weight: 800; color: var(--th-ink); min-width: 110px; text-align: center; }
.th-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; font-weight: 700; color: var(--th-sub); padding-bottom: 6px; }
.th-cal-dow span:first-child { color: #ff6b7a; } .th-cal-dow span:last-child { color: #8b95ff; }
.th-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.th-cd { aspect-ratio: 1; border: none; background: transparent; color: var(--th-ink); font-size: 14px; font-weight: 700; border-radius: 10px; cursor: pointer; font-family: inherit; position: relative; -webkit-tap-highlight-color: transparent; }
.th-cd.empty { visibility: hidden; }
.th-cd.sun { color: #ff6b7a; } .th-cd.sat { color: #8b95ff; }
.th-cd.past { color: #3a3f4c; cursor: default; }
.th-cd.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--th-acc2); }
.th-cd.inrange { background: rgba(108,92,255,.16); border-radius: 0; }
.th-cd.sel { background: var(--th-acc); color: #fff; }
.th-cd.sel.s-in { border-radius: 10px 0 0 10px; } .th-cd.sel.s-out { border-radius: 0 10px 10px 0; }
.th-cal-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.th-cal-sum { flex: 1; min-width: 0; font-size: 12.5px; color: var(--th-sub); font-weight: 700; }
.th-cal-sum b { color: #c9bfff; }
.th-cal-ok { flex: none; border: none; background: var(--th-acc); color: #fff; border-radius: 12px; padding: 12px 22px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit; }
.th-cal-ok:disabled { opacity: .35; cursor: default; }

/* 인원 */
.th-guests { flex: 1; min-width: 0; flex-direction: row; align-items: center; justify-content: space-between; padding: 9px 13px; cursor: pointer; font-family: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
.th-guests.act { border-color: var(--th-acc); box-shadow: 0 0 0 3px rgba(108,92,255,.18); }
.th-chev { color: var(--th-sub); font-size: 18px; font-weight: 700; }
.th-gl { display: flex; align-items: center; gap: 9px; }
.th-gl > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.th-gl b { font-size: 15.5px; font-weight: 800; color: var(--th-ink); }
.th-step { display: flex; align-items: center; gap: 4px; }
.th-step b { min-width: 24px; text-align: center; font-size: 16px; font-weight: 900; color: var(--th-ink); font-variant-numeric: tabular-nums; }
.th-step button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--th-line); background: #0e1017; color: #c9bfff; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.th-step button:disabled { opacity: .3; cursor: default; }
.th-step button:not(:disabled):active { transform: scale(.92); }

.th-pop { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.th-poch { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--th-line); background: var(--th-card); color: #cdd3e0; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; cursor: pointer; transition: .15s; font-family: inherit; }
.th-poch:active { border-color: var(--th-acc); color: #fff; transform: scale(.96); }
.th-flag { font-size: 14px; line-height: 1; }

.th-go { width: 100%; margin-top: 14px; padding: 15px; border: none; border-radius: 15px; background: linear-gradient(120deg, #5a3fe0, #6c5cff 50%, #a35cff); color: #fff; font-size: 16px; font-weight: 900; letter-spacing: .01em; cursor: pointer; box-shadow: 0 8px 24px -8px rgba(108,92,255,.7); position: relative; overflow: hidden; font-family: inherit; }
.th-go::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); animation: thShine 1.4s ease-out .6s both; }
@keyframes thShine { from { left: -60%; } to { left: 130%; } }
.th-go:active { transform: translateY(1px); }

/* ── 검색 중: 스켈레톤(광택 1회성) ── */
.th-results { padding: 0 14px; }
.th-loading { padding: 18px 0 6px; }
.th-ld-t { display: flex; align-items: center; gap: 8px; color: var(--th-sub); font-size: 13.5px; font-weight: 700; margin-bottom: 12px; }
.th-ld-t svg { width: 20px; height: 20px; color: #b9a8ff; }
.th-ld-t b { color: var(--th-ink); }
.th-skc { display: flex; gap: 12px; padding: 10px; background: var(--th-card); border: 1px solid var(--th-line); border-radius: 16px; margin-bottom: 10px; opacity: 0; animation: thCardIn .4s ease-out forwards; animation-delay: calc(var(--i) * .08s); }
.th-sk-ph, .th-sk-b i { background: linear-gradient(100deg, #1a1d28 30%, #262a38 50%, #1a1d28 70%); background-size: 220% 100%; animation: thSk 1.2s linear 3; }
.th-sk-ph { width: 104px; height: 104px; border-radius: 12px; flex: none; }
.th-sk-b { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.th-sk-b i { display: block; height: 12px; border-radius: 6px; }
.th-sk-b i:nth-child(1) { width: 80%; } .th-sk-b i:nth-child(2) { width: 50%; } .th-sk-b i:nth-child(3) { width: 36%; margin-top: auto; height: 18px; align-self: flex-end; }
@keyframes thSk { from { background-position: 160% 0; } to { background-position: -60% 0; } }

/* ── 결과 헤더 · 정렬 ── */
.th-rhead { margin: 8px 0 10px; }
.th-rtitle > b { display: block; font-size: 17px; font-weight: 900; color: var(--th-ink); }
.th-rsub { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: #c9bfff; background: rgba(108,92,255,.14); border-radius: 999px; padding: 2px 9px; }
.th-rlo { display: block; font-size: 12.5px; color: var(--th-sub); margin-top: 6px; }
.th-rlo b { color: var(--th-gold); }
.th-sort { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 0 14px; }
.th-sort::-webkit-scrollbar { display: none; }
.th-so { flex: none; border: 1px solid var(--th-line); background: var(--th-card); color: var(--th-sub); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap; font-family: inherit; }
.th-so.on { background: #221c44; border-color: var(--th-acc); color: #c9bfff; }

/* ── 숙소 카드 ── */
.th-list { display: flex; flex-direction: column; gap: 11px; }
.th-card { cursor: pointer; display: flex; gap: 12px; padding: 10px; background: var(--th-card); border: 1px solid var(--th-line); border-radius: 16px; text-decoration: none; color: inherit; opacity: 0; transform: translateY(14px); animation: thCardIn .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * .06s); -webkit-tap-highlight-color: transparent; }
@keyframes thCardIn { to { opacity: 1; transform: none; } }
.th-card:active { transform: scale(.985); }
.th-ph { position: relative; flex: none; width: 104px; min-height: 132px; align-self: stretch; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, #2a2160, #5a2e7e 60%, #c4607a); }
.th-ph.skel { background: linear-gradient(100deg, #1a1d28 30%, #262a38 50%, #1a1d28 70%); background-size: 220% 100%; animation: thSk 1.2s linear 2; }
.th-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; display: block; }
.th-ph.ok { animation: none; background: #1a1d28; }
.th-ph.ok img { opacity: 1; }
.th-ph-ic { position: absolute; inset: 0; display: none; place-items: center; color: rgba(255,255,255,.75); }
.th-ph-ic svg { width: 34px; height: 34px; }
.th-ph.noimg { background: linear-gradient(150deg, #2a2160, #5a2e7e 60%, #c4607a); }
.th-ph.noimg .th-ph-ic { display: grid; }
.th-disc { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 900; color: #fff; background: #ff4d6a; border-radius: 7px; padding: 2px 6px; box-shadow: 0 2px 8px rgba(255,77,106,.4); }
.th-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.th-nm { font-size: 14.5px; font-weight: 800; color: var(--th-ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.th-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.th-stars-r { display: inline-flex; color: var(--th-gold); font-size: 11px; letter-spacing: -1px; }
.th-stars-r i { font-style: normal; }
.th-stars-r i.h { opacity: .45; }
.th-score { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #c9bfff; }
.th-score b { font-size: 11.5px; font-weight: 900; color: #fff; background: var(--th-acc); border-radius: 6px 6px 6px 2px; padding: 1px 5px; font-variant-numeric: tabular-nums; }
.th-rev { font-size: 11px; color: var(--th-sub); }
.th-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.th-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: #7fe0b0; background: rgba(87,201,138,.1); border-radius: 6px; padding: 2px 6px; }
.th-tag svg { width: 12px; height: 12px; }
.th-pr { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.th-pr-l { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.th-cross { font-size: 11px; color: #6b7280; }
.th-cross em { font-style: normal; font-weight: 900; color: #ff6b7a; margin-left: 4px; }
.th-price { font-size: 12px; font-weight: 800; color: var(--th-ink); white-space: nowrap; }
.th-price small { font-size: 10.5px; color: var(--th-sub); font-weight: 700; }
.th-won { font-size: 18px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; display: inline-block; }
.th-won.pop { animation: thPop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes thPop { 40% { transform: scale(1.15); color: #e3dcff; } }
.th-book { font-family: inherit; cursor: pointer; align-self: stretch; justify-content: center; display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #e3dcff; background: rgba(108,92,255,.16); border: 1px solid rgba(108,92,255,.5); border-radius: 10px; padding: 7px 9px; white-space: nowrap; }
.th-book svg { width: 11px; height: 11px; }

.th-more { display: block; margin: 16px 0 0; text-align: center; text-decoration: none; padding: 14px; border-radius: 14px; background: #12141c; border: 1px solid var(--th-acc); color: #c9bfff; font-size: 14.5px; font-weight: 800; }
.th-more:active { background: #18152c; }
.th-note { margin: 10px 2px 0; font-size: 11px; color: #6b7280; line-height: 1.5; }

.th-empty { text-align: center; padding: 40px 20px 30px; }
.th-empty-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(108,92,255,.14); color: #b9a8ff; margin-bottom: 12px; }
.th-empty-ic svg { width: 28px; height: 28px; }
.th-empty b { display: block; font-size: 15px; color: var(--th-ink); font-weight: 800; }
.th-empty > span:not(.th-empty-ic) { display: block; font-size: 13px; color: var(--th-sub); margin-top: 6px; line-height: 1.5; }
.th-retry, .th-empty-go { display: inline-block; margin-top: 16px; padding: 11px 18px; border-radius: 12px; border: none; background: var(--th-acc); color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 800; cursor: pointer; font-family: inherit; }
.th-empty-go { margin-left: 6px; background: transparent; border: 1px solid var(--th-acc); color: #c9bfff; }

.th-shake { animation: thShake .4s; }
@keyframes thShake { 0%,100% { transform: none; } 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }

/* 여행 탭 안에선 패널이 이미 좌우 14px 패딩 — 이중 여백 상쇄 */
.tv-sec .th-form, .tv-sec .th-results { padding-left: 0; padding-right: 0; }
.tv-sec .th-hero { border-radius: 18px; }
.tv-sec .th-sort, .tv-sec .th-fsum, .tv-sec .th-areas { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.tv-sec .th-dtop { margin-left: 0; margin-right: 0; }

/* 여행 탭 세그 아이콘(숙소) */
.tv-sg .tv-sg-ic { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.tv-sg { white-space: nowrap; }

/* 검색 입구 카드(숙소) — search.css 의 .sr-flightentry 와 같은 뼈대, 밤 보랏빛 */
.sr-hotelentry { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font-family: inherit; background: linear-gradient(120deg, #1d1840, #2b1f55); border: 1px solid #3a2f70; border-radius: 15px; padding: 14px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sr-hotelentry:active { transform: scale(.99); }
.sr-hotelentry .she-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, #8b7bff, #6c5cff); color: #fff; }
.sr-hotelentry .she-ic svg { width: 20px; height: 20px; }
.sr-hotelentry .she-t { flex: 1; min-width: 0; }
.sr-hotelentry .she-t b { display: block; font-size: 15px; font-weight: 800; color: #f3f4f6; }
.sr-hotelentry .she-t span { font-size: 12.5px; color: #c9bfff; }
.sr-hotelentry .she-go { flex: none; font-size: 13px; font-weight: 800; color: #c9bfff; }

/* ── 2단계: 지역 칩 · 인원/필터 패널 · 요약 칩 · 상세 ── */
.th-areas { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -14px 0; padding: 0 14px 2px; }
.th-areas[hidden] { display: none; }
.th-areas::-webkit-scrollbar { display: none; }
.th-areas-l { flex: none; font-size: 11px; font-weight: 800; color: var(--th-sub); margin-right: 2px; }
.th-ach { flex: none; border: 1px solid var(--th-line); background: var(--th-card); color: #cdd3e0; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.th-ach.on { background: #221c44; border-color: var(--th-acc); color: #e3dcff; }
.th-row2 { display: flex; gap: 10px; margin-top: 10px; }
.th-fbtn { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 70px; border: 1px solid var(--th-line); background: var(--th-card); color: #cdd3e0; border-radius: 14px; font-size: 11.5px; font-weight: 800; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.th-fbtn svg { width: 20px; height: 20px; }
.th-fbtn.on { color: #e3dcff; border-color: rgba(108,92,255,.6); }
.th-fbtn.act { border-color: var(--th-acc); box-shadow: 0 0 0 3px rgba(108,92,255,.18); }
.th-fbadge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--th-acc2); color: #1a0f05; font-size: 11px; font-weight: 900; font-style: normal; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--gl-bg, #0a0a0b); }
.th-fbadge[hidden] { display: none; }
.th-pin { background: var(--th-card); border: 1px solid var(--th-line); border-radius: 16px; padding: 14px; }
.th-prow { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.th-prow + .th-prow { border-top: 1px solid var(--th-line); padding-top: 12px; margin-top: 6px; }
.th-prow b { display: block; font-size: 15px; font-weight: 800; color: var(--th-ink); }
.th-prow small { font-size: 11.5px; color: var(--th-sub); }
.th-ages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.th-age { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 800; color: var(--th-sub); }
.th-age select { font-size: 16px; font-weight: 700; color: var(--th-ink); background: #0e1017; border: 1px solid var(--th-line); border-radius: 10px; padding: 8px 10px; font-family: inherit; -webkit-appearance: none; appearance: none; }
.th-hint { margin: 8px 0 0; font-size: 11.5px; color: var(--th-sub); line-height: 1.5; }
.th-pfoot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.th-psum { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; color: #c9bfff; }
.th-pfoot .th-cal-ok { flex: 1; white-space: nowrap; padding-left: 12px; padding-right: 12px; }
.th-age select { background-image: linear-gradient(45deg, transparent 50%, #9aa3b5 50%), linear-gradient(135deg, #9aa3b5 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.th-reset { flex: none; border: 1px solid var(--th-line); background: transparent; color: var(--th-sub); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit; }
.th-ftop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.th-ftop b { font-size: 16px; font-weight: 900; color: var(--th-ink); }
.th-fsec { padding: 12px 0; border-bottom: 1px solid var(--th-line); }
.th-fl { display: block; font-size: 12px; font-weight: 800; color: var(--th-sub); margin-bottom: 8px; }
.th-tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.th-tch { border: 1px solid var(--th-line); background: #0e1017; color: #cdd3e0; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.th-tch i { font-style: normal; font-size: 11px; opacity: .55; margin-left: 4px; }
.th-tch.on { background: #221c44; border-color: var(--th-acc); color: #e3dcff; }
.th-tch:disabled { opacity: .35; cursor: default; }
.th-seg { display: flex; background: #0e1017; border: 1px solid var(--th-line); border-radius: 12px; padding: 3px; }
.th-sgb { flex: 1; border: none; background: transparent; color: var(--th-sub); font-size: 13px; font-weight: 800; border-radius: 9px; padding: 8px 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.th-sgb.on { background: var(--th-acc); color: #fff; }
.th-prange { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.th-prange > i { font-style: normal; color: var(--th-sub); }
.th-prange label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: #0e1017; border: 1px solid var(--th-line); border-radius: 10px; padding: 6px 10px; }
.th-prange span { flex: none; font-size: 11px; font-weight: 800; color: var(--th-sub); }
.th-prange input { flex: 1; min-width: 0; width: 100%; border: none; background: transparent; color: var(--th-ink); font-size: 16px; font-weight: 800; outline: none; font-family: inherit; text-align: right; padding: 2px 0; }
.th-prange input::placeholder { color: #5d6476; font-weight: 600; font-size: 13px; }
.th-prange em { font-style: normal; font-size: 12px; color: var(--th-sub); }
.th-togs { display: flex; flex-direction: column; gap: 2px; border-bottom: none; }
.th-tog { display: flex; align-items: center; justify-content: space-between; border: none; background: transparent; color: var(--th-ink); padding: 9px 0; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.th-tog-l { display: inline-flex; align-items: center; gap: 8px; }
.th-tog-l svg { width: 17px; height: 17px; color: #b9a8ff; }
.th-sw { position: relative; width: 42px; height: 24px; border-radius: 12px; background: #2a2e3c; transition: background .18s; flex: none; }
.th-sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s; }
.th-tog.on .th-sw { background: var(--th-acc); }
.th-tog.on .th-sw i { transform: translateX(18px); }
.th-fsum { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 10px; padding: 0 14px; }
.th-fsum::-webkit-scrollbar { display: none; }
.th-fsc { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(108,92,255,.55); background: #1c1838; color: #e3dcff; border-radius: 999px; padding: 5px 9px 5px 11px; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; font-family: inherit; }
.th-fsc svg { width: 12px; height: 12px; opacity: .8; }
.th-fsc-all { border-color: var(--th-line); background: transparent; color: var(--th-sub); padding-right: 11px; }
.th-count { font-size: 13px; color: var(--th-sub); margin: 0 0 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.th-count b { color: var(--th-ink); font-size: 14px; }
.th-count em { font-style: normal; font-weight: 900; color: var(--th-gold); }
.th-count-s { margin-left: auto; font-size: 11px; }
.th-clear { background: transparent; border: 1px solid var(--th-acc); color: #c9bfff; margin-left: 6px; }
.th-kind { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 3px; }
.th-type { font-size: 10.5px; font-weight: 900; color: #ffd7b8; background: rgba(255,154,92,.14); border-radius: 6px; padding: 2px 6px; }
.th-place { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--th-sub); min-width: 0; }
.th-place svg { width: 12px; height: 12px; flex: none; }
.th-total { font-size: 10.5px; font-weight: 700; color: var(--th-sub); margin-top: 1px; }

/* 상세 */
.th-detail[hidden], .th-main[hidden] { display: none; }
.th-detail { animation: thDetIn .28s cubic-bezier(.2,.7,.2,1); }
@keyframes thDetIn { from { opacity: 0; transform: translateX(18px); } }
.th-dtop { display: flex; align-items: center; gap: 8px; padding: 6px 14px 10px; }
.th-dback { flex: none; display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--th-line); background: var(--th-card); color: #e3dcff; border-radius: 999px; padding: 7px 13px 7px 8px; font-size: 13.5px; font-weight: 800; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.th-dback svg { width: 18px; height: 18px; }
.th-dtop-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: var(--th-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-dbody { padding: 0 14px; }
.tv-sec .th-dbody, .tv-sec .th-dtop { padding-left: 0; padding-right: 0; }
.th-gal { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(150deg, #2a2160, #5a2e7e 60%, #c4607a); }
.th-gal-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.th-gal-track::-webkit-scrollbar { display: none; }
.th-gal-s { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; background: #1a1d28; }
.th-gal-s.skel { background: linear-gradient(100deg, #1a1d28 30%, #262a38 50%, #1a1d28 70%); background-size: 220% 100%; animation: thSk 1.2s linear 2; }
.th-gal-s img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.th-gal-s.ok { animation: none; }
.th-gal-s.ok img { opacity: 1; }
.th-gal-s .th-ph-ic, .th-gal-none .th-ph-ic { position: absolute; inset: 0; display: none; place-items: center; color: rgba(255,255,255,.75); }
.th-gal-s.no { background: linear-gradient(150deg, #2a2160, #5a2e7e 60%, #c4607a); animation: none; }
.th-gal-s.no .th-ph-ic, .th-gal-none .th-ph-ic { display: grid; }
.th-gal-s .th-ph-ic svg, .th-gal-none .th-ph-ic svg { width: 46px; height: 46px; }
.th-gal-sk img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.th-gal-n { position: absolute; right: 10px; top: 10px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); border-radius: 999px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.th-gal-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.th-gal-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: width .2s, background .2s; }
.th-gal-dots i.on { width: 16px; background: #fff; }
.th-dsk { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }
.th-dsk i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(100deg, #1a1d28 30%, #262a38 50%, #1a1d28 70%); background-size: 220% 100%; animation: thSk 1.2s linear 3; }
.th-dsk i:nth-child(1) { width: 40%; } .th-dsk i:nth-child(2) { width: 85%; height: 22px; } .th-dsk i:nth-child(3) { width: 60%; } .th-dsk i:nth-child(4) { width: 100%; height: 90px; border-radius: 14px; }
.th-dhead { padding: 14px 0 4px; }
.th-dname { margin: 2px 0 6px; font-size: 21px; font-weight: 900; color: var(--th-ink); line-height: 1.3; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; }
.th-score-l b { font-size: 13px; padding: 2px 7px; }
.th-score-l { font-size: 12.5px; }
.th-dprice { margin-top: 12px; background: linear-gradient(160deg, #1a1536, #12141c 70%); border: 1px solid rgba(108,92,255,.35); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: end; }
.th-dp-l { display: flex; flex-direction: column; }
.th-dp-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.th-dp-who { font-size: 11.5px; color: var(--th-sub); font-weight: 700; }
.th-price-l .th-won { font-size: 24px; }
.th-dprice .th-total { font-size: 12px; margin-top: 2px; }
.th-room { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #e3dcff; padding-top: 8px; border-top: 1px solid var(--th-line); margin-top: 4px; }
.th-room svg { width: 16px; height: 16px; color: #b9a8ff; flex: none; }
.th-dprice .th-tags { grid-column: 1 / -1; margin-top: 0; }
.th-dnone { display: block; text-align: center; padding: 20px 14px; }
.th-dnone b { display: block; font-size: 15px; font-weight: 800; color: var(--th-ink); }
.th-dnone span { display: block; font-size: 12.5px; color: var(--th-sub); margin-top: 4px; }
.th-dsec { margin-top: 18px; }
.th-dsec h3 { margin: 0 0 8px; font-size: 14px; font-weight: 900; color: var(--th-ink); }
.th-info { background: var(--th-card); border: 1px solid var(--th-line); border-radius: 14px; padding: 4px 14px; }
.th-irow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 13px; }
.th-irow + .th-irow { border-top: 1px solid var(--th-line); }
.th-irow span { color: var(--th-sub); font-weight: 700; flex: none; }
.th-irow b { color: var(--th-ink); font-weight: 800; text-align: right; }
.th-addr { display: flex; gap: 6px; margin: 0; font-size: 13px; color: #cdd3e0; line-height: 1.5; }
.th-addr svg { width: 16px; height: 16px; flex: none; color: #b9a8ff; margin-top: 2px; }
.th-mapbtn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; border: 1px solid var(--th-line); background: var(--th-card); color: #e3dcff; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 800; cursor: pointer; font-family: inherit; }
.th-mapbtn svg { width: 16px; height: 16px; }
.th-ov { font-size: 13px; color: #cdd3e0; line-height: 1.65; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.th-ov.open { display: block; -webkit-line-clamp: unset; }
.th-ovt { margin-top: 6px; border: none; background: transparent; color: #c9bfff; font-size: 13px; font-weight: 800; padding: 4px 0; cursor: pointer; font-family: inherit; }
.th-dbook { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; padding: 15px; border-radius: 15px; background: linear-gradient(120deg, #5a3fe0, #6c5cff 50%, #a35cff); color: #fff; text-decoration: none; font-size: 16px; font-weight: 900; box-shadow: 0 8px 24px -8px rgba(108,92,255,.7); }
.th-dbook svg { width: 16px; height: 16px; }
.th-dbook:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  .th-detail, .th-gal-s.skel, .th-dsk i { animation: none !important; }
  .th-gal-dots i, .th-sw, .th-sw i { transition: none; }
  .th-sky::after, .th-moon, .th-stars i, .th-win, .th-go::after, .th-skc, .th-sk-ph, .th-sk-b i, .th-card, .th-ph.skel, .th-won.pop, .th-pane.on, .th-shake { animation: none !important; }
  .th-win { opacity: .85; }
  .th-card, .th-skc { opacity: 1; transform: none; }
  .th-ph img { transition: none; }
}
/* 제휴가 안내 한 줄 — 아고다로 넘어가면 회원가·쿠폰으로 더 쌀 수 있음(사실만) */
.th-tip { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(124, 92, 255, .10); color: var(--th-sub); font-size: 11.5px; line-height: 1.45; }
.th-tip svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 2px; opacity: .8; }
.th-tip b { color: var(--th-ink); font-weight: 700; }
/* 🏅 비교 배지(목록 안 순위) */
.th-bdgs { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; }
.th-bdg { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; letter-spacing: -.01em; }
.th-bdg.b-score { background: rgba(255, 207, 77, .16); color: var(--th-gold); }
.th-bdg.b-pop { background: rgba(108, 92, 255, .18); color: #b3a8ff; }
.th-bdg.b-val { background: rgba(52, 211, 153, .15); color: #5ee0a8; }
