/* 똑똑. 여행 상품·예약조회 페이지 (2026-10-08) */
:root { --ink: #0f172a; --ink2: #334155; --muted: #64748b; --line: #e5e9f0; --soft: #f5f7fb; --brand: #2563eb; --brand-d: #1d4ed8; --ok: #059669; --warn: #d97706; --bad: #dc2626; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; background: var(--soft); color: var(--ink); word-break: keep-all; overflow-wrap: break-word; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
.t-top { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 16px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.t-logo { font-family: 'Noto Sans KR', 'Pretendard', sans-serif; font-weight: 800; letter-spacing: -1px; font-size: 22px; text-decoration: none; color: var(--ink); }
.t-logo span { color: #A9834E; }
.t-toplink { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink2); }
.t-preview { background: #fffbeb; color: #b45309; font-size: 13px; font-weight: 700; text-align: center; padding: 8px 12px; border-bottom: 1px solid #fde68a; }
.t-wrap { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.t-gallery { position: relative; background: #0f172a; }
/* 대표 사진도 원본 비율 그대로(화면 폭에 맞춤, 잘리지 않음) — 높이는 tour.js 가 지금 보이는 사진에 맞춤 (2026-10-09) */
.t-slides { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; transition: height .25s ease; }
.t-slides::-webkit-scrollbar { display: none; }
.t-slides img { flex: 0 0 100%; display: block; width: 100%; height: auto; scroll-snap-align: start; }
/* 상세 이미지: 카드 폭에 맞춰 원본 비율 그대로, 사이 틈 없이 이어 붙임 */
.t-detail-imgs { margin: 16px -18px -20px; }
.t-card h2 + .t-detail-imgs { margin-top: 0; }
.t-detail-imgs img { display: block; width: 100%; height: auto; }
.t-slide-count { position: absolute; right: 14px; bottom: 14px; background: rgba(15,23,42,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.t-noimg { aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center; color: #475569; font-size: 54px; background: linear-gradient(135deg, #e0e7ff, #dbeafe); }
.t-summary { background: #fff; padding: 20px 18px 22px; border-bottom: 1px solid var(--line); }
.t-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.t-tags span { font-size: 12px; font-weight: 700; color: var(--ink2); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.t-summary h1 { font-size: 21px; line-height: 1.4; margin: 0 0 6px; letter-spacing: -.4px; }
.t-sub { font-size: 14px; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.t-price-from b { font-size: 26px; color: var(--ink); letter-spacing: -.5px; }
.t-price-from small { font-size: 14px; color: var(--muted); font-weight: 600; }
.t-soldout { font-size: 16px !important; color: var(--bad) !important; }
.t-seller-mini { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.t-card { background: #fff; margin: 12px 0 0; padding: 20px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.t-card h2 { font-size: 17px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; letter-spacing: -.3px; }
.t-step { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.t-cal-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 10px; }
.t-cal-nav strong { font-size: 16px; min-width: 96px; text-align: center; }
.t-cal-nav button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 50%; cursor: pointer; font-size: 14px; }
.t-cal-nav button:disabled { opacity: .3; cursor: default; }
.t-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.t-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.t-dow.sun { color: var(--bad); } .t-dow.sat { color: var(--brand); }
.t-day { min-height: 56px; border-radius: 10px; padding: 6px 2px; text-align: center; font-size: 14px; font-weight: 700; color: #cbd5e1; border: 1px solid transparent; }
.t-day.has { color: var(--ink); background: var(--soft); cursor: pointer; border-color: var(--line); }
.t-day.has:hover { border-color: var(--brand); }
.t-day.full { color: #94a3b8; background: #f8fafc; cursor: default; }
.t-day.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.t-day .p { display: block; font-size: 10.5px; font-weight: 700; margin-top: 3px; color: var(--brand); letter-spacing: -.3px; }
.t-day.on .p { color: #fff; }
.t-day.full .p { color: #94a3b8; }
.t-deplist { margin-top: 10px; display: grid; gap: 8px; }
.t-depopt { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; font-family: inherit; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.t-depopt.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.t-depopt:disabled { opacity: .5; cursor: default; }
.t-dep-info { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.t-dep-info b { font-size: 15px; }
.t-badge { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 1px; }
.t-badge.ok { background: #d1fae5; color: #047857; } .t-badge.warn { background: #fef3c7; color: #b45309; }
.t-pax-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.t-pax-row:last-child { border-bottom: 0; }
.t-pax-row .lbl b { font-size: 15px; } .t-pax-row .lbl small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.t-pax-row .lbl .pr { font-size: 14px; font-weight: 800; color: var(--ink); }
.t-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.t-stepper button { width: 38px; height: 38px; border: 0; background: #fff; font-size: 18px; cursor: pointer; color: var(--ink2); }
.t-stepper button:disabled { color: #cbd5e1; cursor: default; }
.t-stepper span { width: 36px; text-align: center; font-weight: 800; font-size: 15px; }
.t-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink); }
.t-total span { font-weight: 700; } .t-total b { font-size: 24px; color: var(--brand); letter-spacing: -.5px; }
.t-total-lines { font-size: 12.5px; color: var(--muted); text-align: right; margin-top: 4px; line-height: 1.6; }
.t-btn { width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; margin-top: 16px; font-family: inherit; }
.t-btn:hover { background: var(--brand-d); }
.t-btn:disabled { background: #94a3b8; cursor: default; }
.t-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.t-tabs { position: sticky; top: 56px; z-index: 40; display: flex; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); margin-top: 12px; scrollbar-width: none; }
.t-tabs::-webkit-scrollbar { display: none; }
.t-tabs a { flex: 0 0 auto; padding: 14px 14px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.t-text { font-size: 14.5px; line-height: 1.8; color: var(--ink2); }
.t-text h3 { font-size: 15px; margin: 0 0 6px; color: var(--ink); }
.t-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.t-rules { margin: 0; padding-left: 18px; }
.t-itin { list-style: none; margin: 0; padding: 0; }
.t-itin li { display: flex; gap: 12px; padding: 0 0 18px; position: relative; }
.t-itin li::before { content: ''; position: absolute; left: 27px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.t-itin li:last-child::before { display: none; }
.t-day { }
.t-itin .t-day { flex: 0 0 56px; height: 28px; min-height: 0; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0; position: relative; z-index: 1; }
.t-itin-body { flex: 1; font-size: 14.5px; line-height: 1.7; color: var(--ink2); }
.t-itin-body b { color: var(--ink); font-size: 15px; } .t-itin-body p { margin: 4px 0 0; }
.t-itin-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.t-seller { font-size: 13px; }
.t-foot { max-width: 760px; margin: 0 auto; padding: 20px 18px 120px; font-size: 12px; color: #94a3b8; line-height: 1.7; }
/* 예약 정보 시트 */
.t-sheet { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.55); display: none; align-items: flex-end; justify-content: center; }
.t-sheet.open { display: flex; }
.t-sheet-box { background: #fff; width: 100%; max-width: 640px; max-height: 94vh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; }
.t-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 17px; }
.t-x { border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--muted); }
.t-sheet-body { overflow-y: auto; padding: 4px 18px 18px; -webkit-overflow-scrolling: touch; }
.t-sheet-body h3 { font-size: 15px; margin: 20px 0 10px; } .t-sheet-body h3 small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.t-sheet-foot { display: flex; align-items: center; gap: 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.t-sheet-foot > div { flex: 0 0 auto; } .t-sheet-foot small { display: block; font-size: 12px; color: var(--muted); } .t-sheet-foot b { font-size: 20px; color: var(--brand); }
.t-sheet-foot .t-btn { margin: 0; flex: 1; }
.t-mini { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7; margin-top: 14px; }
.t-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 라벨 글자와 * 가 한 줄에 오도록 block (flex 면 * 가 다음 줄로 떨어짐) */
.t-fields label, .t-trav label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink2); min-width: 0; }
.t-fields label input, .t-trav label input, .t-trav label select { display: block; margin-top: 5px; }
.t-fields label.full { grid-column: 1 / -1; }
.t-fields i, .t-trav i { color: var(--bad); font-style: normal; }
.t-fields input, .t-trav input, .t-trav select, .t-sheet-body textarea, .t-lookup input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; }
.t-sheet-body textarea { height: auto; padding: 10px 12px; resize: vertical; }
.t-fields input:focus, .t-trav input:focus, .t-trav select:focus, .t-sheet-body textarea:focus, .t-lookup input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.t-trav { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.t-trav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; font-weight: 800; }
.t-trav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-trav-grid .full { grid-column: 1 / -1; }
/* 체크박스 옆 글·링크·작은 글씨가 한 덩어리로 흐르도록 (flex 면 칸이 나뉨) */
.t-check { display: block; position: relative; padding-left: 26px; font-size: 13.5px; color: var(--ink2); line-height: 1.55; cursor: pointer; }
.t-check input { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.t-trav-head .t-check { font-size: 13px; }
.t-check small { color: var(--muted); }
.t-agree { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.t-agree .all { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.t-link { color: var(--brand); font-weight: 700; }
/* 결과·예약조회 */
.t-center { max-width: 560px; margin: 0 auto; padding: 18px 16px 60px; }
.t-result { background: #fff; border-radius: 20px; padding: 30px 22px; text-align: center; border: 1px solid var(--line); }
.t-result .ic { font-size: 48px; }
.t-result h1 { font-size: 21px; margin: 10px 0 8px; }
.t-result p { font-size: 14.5px; color: var(--ink2); line-height: 1.7; margin: 0; }
.t-kv { width: 100%; border-collapse: collapse; margin: 16px 0 0; text-align: left; font-size: 14px; }
.t-kv th { width: 30%; color: var(--muted); font-weight: 600; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.t-kv td { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.t-lookup { background: #fff; border-radius: 20px; padding: 24px 20px; border: 1px solid var(--line); }
.t-lookup h1 { font-size: 20px; margin: 0 0 6px; } .t-lookup p { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.t-lookup label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
.t-status { display: inline-block; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 520px) {
    .t-two, .t-fields, .t-trav-grid { grid-template-columns: 1fr; }
    .t-summary h1 { font-size: 19px; }
    .t-day { min-height: 50px; font-size: 13px; }
    .t-day .p { font-size: 9.5px; }
}
@media (min-width: 761px) { .t-card { border: 1px solid var(--line); border-radius: 16px; } .t-summary { border-radius: 0 0 16px 16px; } .t-sheet { align-items: center; } .t-sheet-box { border-radius: 20px; } }

/* 약관 [보기] — 예약 창을 닫지 않고 창 안에서 취소·환불 규정 펼침 (2026-10-09) */
.t-policy { margin: -2px 0 2px 26px; padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.7; color: var(--ink2); max-height: 260px; overflow-y: auto; }
.t-policy[hidden] { display: none; }
.t-policy b { display: block; margin-bottom: 6px; color: var(--ink); }
.t-policy p { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.t-policy-close { margin-top: 10px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink2); cursor: pointer; font-family: inherit; }

/* 따라다니는 버튼: 맨 위로 + 예약하기 — 예약 칸이 화면 밖일 때만 보임(tour.js updateFloat) (2026-10-09) */
#tSel { scroll-margin-top: 70px; }
.t-float { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); width: calc(100% - 24px); max-width: 736px; display: flex; justify-content: flex-end; gap: 8px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.t-float.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.t-float-top { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 54px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink2); font-size: 18px; line-height: 1.1; cursor: pointer; box-shadow: 0 8px 20px rgba(15,23,42,.15); font-family: inherit; }
.t-float-top span { font-size: 10px; font-weight: 700; margin-top: 2px; }
.t-float-book { flex: 1; height: 54px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(37,99,235,.35); font-family: inherit; }
.t-float-book small { font-size: 12.5px; font-weight: 600; opacity: .85; margin-left: 6px; }

/* 일정표 (2026-10-09 투어비스 형식 참고) — 미팅 정보 / 일차 카드: 날짜·항공(출발일 고르면 채움)·일정(▶ 관광지, [시각])·숙소·식사 3칸 */
.t-meet { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7; color: var(--ink2); margin-bottom: 12px; }
.t-meet b { display: block; color: var(--brand-d); margin-bottom: 2px; }
.t-itin-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.t-itin2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.t-dayc { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.t-dayc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; }
.t-dayno { background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.t-daydate { font-size: 13px; font-weight: 700; color: var(--ink2); }
.t-dayc-head b { flex-basis: 100%; font-size: 15.5px; letter-spacing: -.3px; }
.t-flight { display: flex; gap: 10px; align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 8px 0; color: var(--ink2); }
.t-flight[hidden] { display: none; }
.t-flight i { color: var(--brand); font-size: 16px; }
.t-sch { font-size: 14px; line-height: 1.75; color: var(--ink2); }
.t-sch-spot { font-weight: 800; color: var(--ink); margin-top: 4px; }
.t-sch-time b { color: var(--brand); margin-right: 2px; }
.t-sch-gap { height: 8px; }
.t-hotel { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; color: var(--ink2); }
.t-hotel i { color: var(--muted); margin-top: 2px; }
.t-meals { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.t-meals span { background: var(--soft); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; text-align: center; color: var(--ink2); }
.t-meals em { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 700; }

/* 좌석 등급 표시 (이코노미·비즈니스) / 입력 도움말·오류 */
.t-cls { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 800; color: #9a3412; background: #ffedd5; border-radius: 999px; padding: 1px 8px; margin-right: 6px; vertical-align: 1px; }
.t-hint { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.t-bad { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important; }

/* 예약조회 화면 뒤로가기 (2026-10-09) */
.t-top-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.t-back { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 10px 0 4px; margin-right: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink2); font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.t-back span { font-size: 22px; line-height: 1; margin-top: -2px; padding: 0 2px 0 4px; }
.t-back em { font-style: normal; }
.t-back:hover { border-color: var(--brand); color: var(--brand); }
