﻿/* 공통 마스터와 차량 컨트롤이 공유하는 모바일 스타일입니다. */
.ts-site {
    --ts-ink: #172b35;
    --ts-muted: #6c7b83;
    --ts-line: #e4e9ec;
    --ts-orange: #cd521d;
    --ts-soft: #fff1e8;
    margin: 0;
    padding: 0;
    background: #f4f6f7;
    color: var(--ts-ink);
    font: 14px/1.6 "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    -webkit-text-size-adjust: 100%;
    --ts-sticky-header-height: 0px;
}
.ts-site > form { height: auto !important; min-height: 100vh; min-height: 100dvh; }
.ts-site * { box-sizing: border-box; }
.ts-site a { color: inherit; text-decoration: none; }
.ts-site button, .ts-site input, .ts-site select { font: inherit; }
.ts-site a:focus-visible, .ts-site button:focus-visible, .ts-site input:focus-visible,
.ts-site select:focus-visible, .ts-site [tabindex]:focus-visible { outline: 3px solid #df813d; outline-offset: 3px; }
.ts-site .ts-skip { position: absolute; top: -60px; left: 12px; z-index: 10000; padding: 12px; background: white; }
.ts-site .ts-skip:focus { top: 10px; }
.ts-site .ts-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--ts-line); }
.ts-site .ts-header-inner { max-width: 1160px; margin: auto; padding: 20px 28px 22px; }
.ts-site .ts-brand-row { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.ts-site .ts-brand { display: flex; align-items: center; gap: 16px; margin-right: auto; }
.ts-site .ts-brand-image { display: block; height: 44px; width: auto; max-width: 145px; object-fit: contain; padding: 0; border: 0; }
.ts-site .ts-brand-caption { color: var(--ts-muted); font-size: 12px; }
.ts-site .ts-header-link { font-size: 12px; font-weight: 700; white-space: nowrap; }
.ts-site .ts-account { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ts-site .ts-account img { max-width: 32px; }
.ts-site .ts-keyword-search { display: flex; gap: 14px; align-items: center; margin-top: 18px; background: #f3f5f6; border: 1px solid #e5e9eb; padding: 7px 8px 7px 18px; border-radius: 14px; }
.ts-site .ts-search-symbol { width: 17px; height: 17px; border: 2px solid var(--ts-muted); border-radius: 50%; position: relative; flex-shrink: 0; }
.ts-site .ts-search-symbol::after { content: ""; position: absolute; width: 7px; height: 2px; background: var(--ts-muted); right: -5px; bottom: -3px; transform: rotate(45deg); }
.ts-site .ts-keyword-input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ts-ink); font-size: 16px; padding: 7px 0; box-shadow: none; }
.ts-site .ts-keyword-input::placeholder { color: #829098; }
.ts-site .ts-keyword-submit { border: 0; border-radius: 10px; background: var(--ts-orange); color: white; padding: 10px 20px; font-weight: 700; cursor: pointer; }
.ts-site .ts-content { max-width: 1160px; margin: auto; padding: 0 28px; min-height: 50vh; }
.ts-site .ts-search-page { padding-top: 20px; }
.ts-site .ts-intro { padding: 28px 0 20px; }
.ts-site .ts-eyebrow { color: var(--ts-orange); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; margin: 0 0 6px; }
.ts-site .ts-intro h1 { color: var(--ts-ink); font-size: 30px; letter-spacing: -1.3px; margin: 0 0 6px; line-height: 1.4; }
.ts-site .ts-intro > p:last-child { color: var(--ts-muted); font-size: 13px; margin: 0; }
.ts-site .ts-filter-panel { padding: 20px; background: white; border: 1px solid var(--ts-line); border-radius: 16px; }
.ts-site .ts-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ts-site .ts-filter-heading h2 { font-size: 16px; margin: 0; color: var(--ts-ink); }
.ts-site .ts-filter-heading > span { font-size: 11px; background: #eff5f2; color: #397658; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.ts-site .ts-filter-tabs, .ts-site .ts-result-tabs { background: transparent !important; color: var(--ts-ink) !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; font: inherit !important; }
/* 기존 탭 스킨의 하단 -1px 겹침 여백이 독립형 버튼의 테두리를 자르지 않도록 초기화합니다. */
.ts-site .ts-filter-tabs .rtsUL { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 0 !important; }
.ts-site .ts-filter-tabs .rtsLI { float: none !important; width: auto !important; margin: 0 !important; }
.ts-site .ts-filter-tabs .rtsLink { width: 100%; min-height: 43px; display: flex !important; align-items: center; justify-content: center; padding: 8px 2px !important; border: 1px solid var(--ts-line) !important; border-radius: 9px !important; background: #f7f9fa !important; color: #465a65 !important; font: 600 13px/1.5 "Malgun Gothic", sans-serif !important; box-shadow: none !important; }
.ts-site .ts-filter-tabs .rtsSelected .rtsLink { background: var(--ts-soft) !important; color: var(--ts-orange) !important; border-color: #edb290 !important; }
/* 탭 컨테이너 바깥으로 잘리지 않도록 키보드 포커스를 버튼 안쪽에 표시합니다. */
.ts-site .ts-filter-tabs .rtsLink:focus-visible { outline: 2px solid #df813d; outline-offset: -4px; }
.ts-site .rtsLink { text-shadow: none !important; }
.ts-site .ts-filter-tabs .rtsLink::before, .ts-site .ts-result-tabs .rtsLink::before { display: none !important; }
.ts-site .ts-filter-tabs .rtsLevel, .ts-site .ts-result-tabs .rtsLevel { border: 0 !important; box-shadow: none !important; background: none !important; }
.ts-site .ts-filter-tabs .rtsOut, .ts-site .ts-filter-tabs .rtsIn, .ts-site .ts-result-tabs .rtsOut, .ts-site .ts-result-tabs .rtsIn { padding: 0 !important; background: none !important; }
.ts-site .ts-filter-title { display: flex; gap: 10px; align-items: center; padding: 19px 1px 9px; font-weight: 700; }
.ts-site .ts-filter-title > span:last-child { color: var(--ts-muted); font-weight: 400; font-size: 11px; }
.ts-site .ts-filter-options { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.ts-site .ts-filter-options td { height: 46px !important; background: #f5f7f8 !important; border: 1px solid var(--ts-line) !important; border-radius: 9px; position: relative; vertical-align: middle; padding: 0 !important; }
.ts-site .ts-filter-options input { color: #344d5b !important; border: 0 !important; background-color: transparent !important; height: auto !important; min-height: 44px; white-space: normal; padding: 10px 42px 10px 12px !important; font-size: 13px !important; text-align: left; line-height: 1.5; cursor: pointer; background-image: none !important; }
.ts-site .ts-filter-options td.black_sbutton1_cellstyle2 { background: var(--ts-soft) !important; border-color: #e9a780 !important; }
.ts-site .ts-filter-options input[aria-pressed="true"] { color: #ad4010 !important; font-weight: 700; }
.ts-site .ts-filter-options .black_sbutton1_countstyle1 { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: #7a8992 !important; background: transparent !important; font-size: 10px !important; padding: 0; pointer-events: none; }
.ts-site .ts-filter-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 16px 5px; }
.ts-site .ts-button { border-radius: 10px; min-height: 44px; border: 1px solid var(--ts-line); padding: 10px 18px; cursor: pointer; }
.ts-site .ts-primary { background: var(--ts-orange); color: #fff; border-color: var(--ts-orange); flex: 1; font-weight: 700; }
.ts-site .ts-secondary { background: #fff; color: #536773; }
.ts-site .ts-selected-panel { position: sticky; top: var(--ts-sticky-header-height); z-index: 5; background: #fff; border-bottom: 1px solid var(--ts-line); padding: 12px 0 16px; margin: 0 0 20px; }
.ts-site .ts-selected-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.ts-site .ts-selected-heading .ts-selected-title { margin-bottom: 0; }
.ts-site .ts-selected-search { flex: 0 0 auto; min-width: 88px; font-size: 13px; }
.ts-site .ts-selected-title { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.ts-site .ts-selected-title small { color: var(--ts-muted); font-weight: 400; margin-left: 7px; font-size: 10px; }
.ts-site .ts-selected-options { border-collapse: collapse; width: 100%; }
.ts-site .ts-selected-options tbody { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ts-site .ts-selected-options tr { display: contents; }
.ts-site .ts-selected-options td { display: inline-flex; padding: 0; background: transparent !important; border: 0 !important; max-width: 100%; width: auto !important; }
.ts-site .ts-selected-options input { width: auto !important; max-width: 100%; white-space: normal; background: var(--ts-soft) !important; color: #b2481b !important; border: 1px solid #f1cfbb !important; border-radius: 7px; font-size: 12px; padding: 6px 11px; min-height: 34px; cursor: pointer; }
.ts-site .ts-selected-options input.black_sbutton2_style1 { background: transparent !important; color: var(--ts-muted) !important; border-color: transparent !important; padding-left: 2px; padding-right: 2px; font-size: 11px; }
.ts-site .ts-no-selection { font-size: 12px; color: var(--ts-muted); margin: 0 0 4px; }
.ts-site .ts-pending-search { display: block; margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: var(--ts-soft); color: #a34216; font-size: 12px; }
.ts-site .ts-legacy-toggle { display: block; }
/* ToggleButton2의 기존 한 줄 펼치기/접기 버튼을 사용합니다.
   화살표 전용 폭(38px)에 문구가 들어가 한 글자씩 깨지던 보조 버튼은 숨깁니다. */
.ts-site .ts-filter-toggle { display: none; }
.ts-site .ts-filter-toggle:hover,.ts-site .ts-filter-toggle:focus-visible { background:#edf2f4; outline:none; }
.ts-site .ts-filter-toggle-arrow { width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:7px solid #667c88; transition:transform .18s ease; }
.ts-site .ts-filter-toggle[aria-expanded="true"] .ts-filter-toggle-arrow { transform:rotate(180deg); }
.ts-site .ts-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
.ts-site .ts-results-count { display: flex; align-items: baseline; gap: 7px; font-size: 14px; }
.ts-site .ts-results-count > span:nth-child(2) { font-weight: 800; color: var(--ts-orange); font-size: 20px; }
.ts-site .ts-total-count { color: #85929a; font-size: 11px; padding-left: 3px; }
.ts-site .ts-sort-tools { display: flex; align-items: center; gap: 7px; }
.ts-site .ts-sort-tools select { max-width: 140px; border: 1px solid var(--ts-line); border-radius: 8px; padding: 9px 7px; background: #fff; color: #4b606c; font-size: 12px; min-height: 38px; }
.ts-site .ts-view-choice { display: inline-flex; position: relative; align-items: center; justify-content: center; min-width: 57px; min-height: 38px; border: 1px solid var(--ts-line); border-radius: 8px; background: white; font-size: 11px; }
.ts-site .ts-view-choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ts-site .ts-view-choice:focus-within { outline: 3px solid #df813d; }
.ts-site .ts-view-choice.is-selected { color: var(--ts-orange); border-color: #edb290; background: var(--ts-soft); }
.ts-site .ts-result-tabs { margin-bottom: 18px; border-bottom: 1px solid var(--ts-line) !important; }
.ts-site .ts-result-tabs .rtsLink { background: none !important; border: 0 !important; border-bottom: 2px solid transparent !important; padding: 9px 18px !important; color: #73838d !important; font-size: 12px !important; border-radius: 0 !important; box-shadow: none !important; }
.ts-site .ts-result-tabs .rtsSelected .rtsLink { color: var(--ts-orange) !important; border-bottom-color: var(--ts-orange) !important; }
.ts-site .ts-result-tabs .rtsSelected { border: 0 !important; background: transparent !important; }
.ts-site .ts-results-grid, .ts-site .ts-results-grid > tbody { display: grid; width: 100%; }
.ts-site .ts-results-grid > tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ts-site .ts-results-grid tr, .ts-site .ts-results-grid td { display: block; width: 100%; min-width: 0; padding: 0; white-space: normal; }
.ts-site .ts-vehicle-card { height: 100%; border: 1px solid #e1e7eb; border-radius: 16px; background: white; overflow: hidden; box-shadow: 0 3px 12px #20394e05; transition: box-shadow .2s, transform .2s; }
.ts-site .ts-vehicle-card:hover { box-shadow: 0 6px 20px #20394e12; transform: translateY(-2px); }
.ts-site .ts-card-link { display: flex; flex-direction: column; height: 100%; }
.ts-site .ts-card-photo { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #e9edef; overflow: hidden; }
.ts-site .ts-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-site .ts-card-photo.is-missing img { object-fit: contain; padding: 60px; opacity: .65; }
.ts-site .ts-card-tag { position: absolute; left: 13px; bottom: 12px; max-width: calc(100% - 26px); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #ffffffed; color: #344851; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-site .ts-card-body { padding: 18px 18px 13px; flex: 1; display: flex; flex-direction: column; }
.ts-site .ts-card-source { color: var(--ts-muted); font-size: 10px; letter-spacing: .3px; margin-bottom: 6px; }
.ts-site .ts-card-title { color: var(--ts-ink); font-size: 16px; line-height: 1.5; font-weight: 700; margin: 0 0 10px; overflow-wrap: anywhere; }
.ts-site .ts-card-meta { color: var(--ts-muted); font-size: 11px; display: flex; flex-wrap: wrap; gap: 4px 9px; }
.ts-site .ts-card-meta span + span::before { content: "·"; margin-right: 9px; color: #bbc4ca; }
.ts-site .ts-card-price { margin: 14px 0 17px; color: var(--ts-orange); font-size: 23px; line-height: 1.3; letter-spacing: -.7px; font-weight: 800; }
.ts-site .ts-card-foot { margin-top: auto; border-top: 1px solid #eef1f3; padding-top: 11px; font-size: 10px; color: #8a979f; display: flex; justify-content: space-between; gap: 8px; }
.ts-site .ts-card-more { color: #5c707b; white-space: nowrap; }
.ts-site .ts-results-grid.ts-compact > tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ts-site .ts-compact .ts-card-link { flex-direction: row; }
.ts-site .ts-compact .ts-card-photo { width: 135px; aspect-ratio: auto; flex-shrink: 0; }
.ts-site .ts-compact .ts-card-body { padding: 14px; min-width: 0; }
.ts-site .ts-compact .ts-card-title { font-size: 14px; margin-bottom: 7px; }
.ts-site .ts-compact .ts-card-price { font-size: 21px; margin: 10px 0 0; }
.ts-site .ts-compact .ts-card-foot, .ts-site .ts-compact .ts-card-tag { display: none; }
.ts-site .ts-empty-results { grid-column: 1 / -1; padding: 60px 20px !important; text-align: center; background: white; border-radius: 14px; color: #687c87; }
.ts-site .ts-pagination { margin-top: 25px; overflow-x: auto; }
.ts-site .ts-pagination table { margin: auto; background: transparent !important; }
.ts-site .ts-pagination td { border: 0 !important; padding: 2px; white-space: normal !important; }
.ts-site .ts-pagination a, .ts-site .ts-pagination .report-page-item { min-width: 36px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; border: 1px solid var(--ts-line); background: white; border-radius: 7px; color: var(--ts-ink) !important; margin: 3px; overflow: hidden; }
.ts-site .ts-pagination a > span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 38px; }
.ts-site .ts-pagination span.current, .ts-site .ts-pagination .report-page-item.current { background: var(--ts-orange); color: white !important; }
.ts-site .report-listing-pagination { display: flex; flex-wrap: wrap; justify-content: center; }
.ts-site .report-listing-pagination button { cursor: pointer; }
.ts-site .ts-pagination .black_listpaging_style1 { display: flex; justify-content: center; flex-wrap: wrap; }
/* 이전/다음 항목 이동은 목록·상세·뉴스 모두 화면 중앙 좌우에 고정합니다. */
.ts-site .ButtonClass { top: 50%; bottom: auto !important; transform: translateY(-50%); }
.ts-site .ButtonClass[style*="left:"] { left: 0 !important; right: auto !important; }
.ts-site .ButtonClass[style*="right:"] { right: 0 !important; left: auto !important; }
.ts-site .ButtonClass input { display: block; width: 42px !important; height: 59px !important; }
.ts-site .ts-results-grid tr:has(.ts-empty-results) { grid-column: 1 / -1; }
.ts-site .ts-results-note { text-align: center; color: #84949d; font-size: 11px; margin: 24px 0; }
.ts-site .ts-footer { padding: 36px 20px 75px; text-align: center; color: #87969e; font-size: 11px; line-height: 1.9; }
.ts-site .ts-footer strong { font-size: 16px; color: #5f747f; }
.ts-site .ts-footer p { margin: 12px 0; }
.ts-site .ts-footer span { margin: 0 9px; }
.ts-site .ts-footer small { display: block; margin-top: 12px; }
/* 상세 페이지도 동일한 표면, 간격, 색상 규칙을 사용합니다. */
.ts-site .ts-detail { max-width: 840px; margin: auto; padding-top: 24px; }
.ts-site .ts-detail > div > table:first-child input[type="submit"] { background: white !important; color: #536b77 !important; border: 1px solid var(--ts-line) !important; min-height: 42px; border-radius: 10px; font-size: 13px; }
.ts-site .ts-detail center > div[style*="background-color:White"],
.ts-site .ts-detail center > div[style*="background-color: White"] { width: 100% !important; border: 1px solid var(--ts-line); border-radius: 16px !important; padding: 9px 14px 15px; text-align: left; }
.ts-site .ts-detail .myinfo { background: white !important; color: var(--ts-ink); padding: 13px 5px 15px !important; font-size: 16px !important; text-align: left; border: 0; border-bottom: 1px solid #edf0f2; border-radius: 0 !important; cursor: pointer; }
.ts-site .ts-detail .myinfo img { opacity: .5; }
.ts-site .ts-detail td { overflow-wrap: anywhere; }
.ts-site .ts-detail [id$="tblEquipInfo"] td,
.ts-site .ts-detail [id$="tblSeller"] td { padding: 13px 8px !important; color: #405765; border-color: #edf0f2 !important; font-size: 13px; }
.ts-site .ts-detail [id$="tblDescription"] td { color: #536975; padding: 16px 5px !important; line-height: 1.9; font-size: 14px; }
.ts-site .ts-detail td:has(> hr) { padding: 0 !important; }
.ts-site .ts-detail hr { border: 0; border-top: 1px solid #edf0f2; margin: 0; height: 0; }
.ts-site .ts-detail .swiper-container { width: 100% !important; background: #e9edef; border-radius: 16px; overflow: hidden; }
.ts-site .ts-detail .swiper-slide img { width: 100% !important; max-width: 100% !important; height: 440px; object-fit: contain; }
.ts-site .ts-detail .swiper-pagination-bullet-active { background: var(--ts-orange); }
@media (max-width: 900px) {
    .ts-site .ts-results-grid > tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .ts-site .ts-results-grid.ts-compact > tbody { grid-template-columns: 1fr; }
    /* 모바일/태블릿에서도 제조사·차종·가격 등의 기존 조건 검색을 유지합니다. */
    .ts-site .ts-search-page { padding-top: 0; }
}
@media (max-width: 560px) {
    /* iOS Safari/PWA는 중첩된 sticky 요소를 서로 다른 합성 레이어로 그려
       검색 조건이 헤더와 결과 카드 위에 겹칠 수 있으므로 모바일에서는
       문서 순서대로 자연스럽게 스크롤합니다. */
    .ts-site .ts-header { position: relative; top: auto; }
    .ts-site .ts-selected-panel { position: static; top: auto; z-index: auto; }
    .ts-site .ts-header-inner { padding: 16px 18px 18px; }
    .ts-site .ts-brand-caption { display: none; }
    .ts-site .ts-brand-image { height: 38px; }
    .ts-site .ts-header-link { font-size: 11px; }
    .ts-site .ts-content { padding: 0 16px; }
    .ts-site .ts-intro { padding: 24px 2px 19px; }
    .ts-site .ts-intro h1 { font-size: 25px; }
    .ts-site .ts-intro > p:last-child { font-size: 12px; }
    .ts-site .ts-filter-panel { padding: 16px 12px 11px; }
    .ts-site .ts-filter-heading { padding: 0 3px; }
    .ts-site .ts-filter-heading h2 { font-size: 14px; }
    .ts-site .ts-filter-tabs .rtsUL { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .ts-site .ts-filter-tabs .rtsLink { min-height: 39px; font-size: 12px !important; }
    .ts-site .ts-filter-title { flex-wrap: wrap; gap: 3px 8px; font-size: 12px; }
    .ts-site .ts-filter-actions { flex-wrap: wrap; gap: 7px; }
    .ts-site .ts-filter-actions input { font-size: 12px; padding: 10px; }
    .ts-site .ts-selected-panel { padding-top: 12px; }
    .ts-site .ts-results-toolbar { margin-top: 18px; gap: 10px; }
    .ts-site .ts-results-count { width: 100%; }
    .ts-site .ts-total-count { margin-left: auto; }
    .ts-site .ts-sort-tools { width: 100%; }
    .ts-site .ts-sort-tools select { margin-left: auto; }
    .ts-site .ts-results-grid > tbody { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .ts-site .ts-card-photo { aspect-ratio: 16 / 10; }
    .ts-site .ts-card-title { font-size: 17px; }
    .ts-site .ts-card-meta { font-size: 12px; }
    .ts-site .ts-card-price { font-size: 25px; }
    .ts-site .ts-compact .ts-card-photo { width: 112px; }
    .ts-site .ts-compact .ts-card-title { font-size: 13px; }
    .ts-site .ts-compact .ts-card-meta { font-size: 10px; gap: 3px 6px; }
    .ts-site .ts-compact .ts-card-meta span + span::before { margin-right: 6px; }
    .ts-site .ts-compact .ts-card-price { font-size: 19px; }
    .ts-site .ts-detail .swiper-slide img { height: 260px; }
    .ts-site .ts-detail center > div { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .ts-site .ts-vehicle-card { transition: none; }
}
