/* 양도양수 전문 랜딩 (구조 개편) — Airbnb 라이트 + 코랄. 전역 theme.css 토큰/버튼 재사용. */
.tm2 { background: #fff; color: var(--tbody); font-family: var(--font-ui); letter-spacing: -0.01em; overflow-x: hidden; }
.tm2 *, .tm2 *::before, .tm2 *::after { box-sizing: border-box; }
.tm2 .wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }
.tm2 .kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rausch); }
.tm2 h1, .tm2 h2, .tm2 h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; margin: 0; }

/* HERO (검색 중심, 센터) */
.tm-hero { text-align: center; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 76px); background: linear-gradient(180deg, #ffffff 0%, #fff5f7 100%); }
.tm-hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 18px 0 0; }
.tm-hero__lead { max-width: 600px; margin: 18px auto 0; color: var(--muted); font-size: 18px; line-height: 1.7; word-break: keep-all; }
.tm-hero .home-search { margin-top: 32px; }
.tm-hero__quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.tm-hero__quick a { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--hairline); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: .16s ease; }
.tm-hero__quick a:hover { border-color: var(--rausch); color: var(--rausch); }

/* 섹션 */
.tm-sec { padding: clamp(56px, 8vw, 100px) 0; }
.tm-sec--soft { background: var(--soft); }
.tm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.tm-head .kicker { margin-bottom: 12px; }
.tm-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.tm-head--center { flex-direction: column; align-items: center; text-align: center; }
.tm-more { color: var(--rausch); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }

/* 매물 카드 (마켓플레이스형) */
.listing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.listing { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--hairline-soft); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.listing:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--rausch); }

/* 스탯 밴드 */
.tm-stats { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); background: var(--soft); }
.tm-stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.tm-stat { text-align: center; }
.tm-stat b { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tm-stat span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* 매물 마퀴(자동 롤링, 마우스 오버 시 정지) */
.listing-marquee { position: relative; overflow: hidden; margin-top: 34px; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.listing-track { display: flex; width: max-content; animation: tmScroll 70s linear infinite; }
.listing-marquee:hover .listing-track { animation-play-state: paused; }
.listing-track .listing { width: 300px; flex: none; margin-right: 20px; }
@keyframes tmScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .listing-track { animation: none; } }
.listing__img { position: relative; aspect-ratio: 4 / 3; }
.listing__img--a { background: linear-gradient(135deg, #ffd9e0, #ffb3c1); }
.listing__img--b { background: linear-gradient(135deg, #ffe6cc, #ffd0a6); }
.listing__img--c { background: linear-gradient(135deg, #d9ecff, #b3d4ff); }
.listing__img--d { background: linear-gradient(135deg, #e2f7ec, #bfe9d2); }
.listing__badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.listing__body { padding: 14px 4px 6px; }
.listing__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.listing__row h3 { font-size: 17px; }
.listing__sipyung { color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
.listing__body p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.listing__price { display: inline-block; margin-top: 10px; color: var(--rausch); font-weight: 700; font-size: 14px; }

/* 타임라인 (가로) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.tl { position: relative; padding-top: 22px; }
.tl::before { content: ""; position: absolute; top: 26px; left: 54px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--hairline) 0 6px, transparent 6px 12px); }
.tl:last-child::before { display: none; }
.tl__n { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px; background: var(--rausch); color: #fff; font-weight: 800; font-size: 17px; position: relative; z-index: 1; }
.tl h3 { font-size: 19px; margin: 18px 0 8px; }
.tl p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; word-break: keep-all; }

/* 왜 DH + 체크 스플릿 */
.tm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.tm-split__copy h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 14px 0 0; }
.tm-split__copy p { margin: 18px 0 26px; color: var(--muted); font-size: 16.5px; line-height: 1.75; word-break: keep-all; }
.tm-check { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--hairline-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.tm-check li { position: relative; padding: 18px 22px 18px 54px; border-bottom: 1px solid var(--hairline-soft); font-size: 15.5px; color: var(--ink); font-weight: 500; word-break: keep-all; }
.tm-check li:last-child { border-bottom: 0; }
.tm-check li::before { content: "✓"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 999px; background: #fff0f3; color: var(--rausch); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* CTA */
.tm-cta { text-align: center; padding: clamp(64px, 9vw, 112px) 0; background: linear-gradient(180deg, #fff5f7 0%, #ffffff 100%); }
.tm-cta h2 { font-size: clamp(26px, 4.2vw, 46px); max-width: 820px; margin: 0 auto; }
.tm-cta p { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 16.5px; line-height: 1.75; word-break: keep-all; }
.tm-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tm-notice { max-width: 720px; margin: 34px auto 0 !important; color: var(--muted-soft); font-size: 12.5px !important; line-height: 1.7; }

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .tl::before { display: none; }
  .tm-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .listing-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .tm-hero__actions .btn, .tm-cta__actions .btn { width: 100%; }
}

/* ── 매물 썸네일 카드 (Claude Design 2a 이식) ── */
.lc { display: flex; flex-direction: column; background: #fff; border: 1px solid #ECEEF1; border-radius: 18px; padding: 8px 8px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--rausch); }
.lc-thumb { position: relative; height: 206px; border-radius: 12px; overflow: hidden; background: var(--grad); padding: 16px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; }
.lc-job { position: relative; font-size: 28px; font-weight: 900; line-height: 1.1; letter-spacing: -.04em; color: var(--ink); word-break: keep-all; max-width: 62%; }
.lc-metrics { position: relative; display: flex; flex-direction: column; gap: 8px; }
.lc-sipyung { display: flex; align-items: baseline; gap: 5px; color: var(--ink); }
.lc-sipyung b { font-size: 36px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.lc-sipyung span { font-size: 18px; font-weight: 700; }
.lc-sipyung em { font-style: normal; font-size: 13px; font-weight: 500; opacity: .75; margin-left: 2px; }
.lc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lc-chips span { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12.5px; background: rgba(255,255,255,.85); color: var(--ink); padding: 4px 8px; border-radius: 6px; }
/* 배경 심볼 워터마크 */
.lc-sym { position: absolute; inset: 0; pointer-events: none; }
.lc-sym i { position: absolute; }
.lc-sym--circle i:nth-child(1) { right: -30px; top: 26px; width: 150px; height: 150px; border: 14px solid rgba(255,255,255,.6); border-radius: 50%; }
.lc-sym--circle i:nth-child(2) { right: 30px; top: 86px; width: 60px; height: 60px; background: rgba(255,255,255,.7); border-radius: 50%; }
.lc-sym--diamond i:nth-child(1) { right: -24px; top: 34px; width: 130px; height: 130px; background: rgba(255,255,255,.55); transform: rotate(45deg); }
.lc-sym--diamond i:nth-child(2) { right: 34px; top: 92px; width: 50px; height: 50px; background: rgba(255,255,255,.85); transform: rotate(45deg); }
.lc-sym--round i:nth-child(1) { right: -28px; top: 30px; width: 140px; height: 140px; border: 14px solid rgba(255,255,255,.6); border-radius: 24px; }
.lc-sym--round i:nth-child(2) { right: 32px; top: 88px; width: 56px; height: 56px; background: rgba(255,255,255,.75); border-radius: 12px; }
/* 카드 하단 */
.lc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 0; }
.lc-row { display: flex; justify-content: space-between; align-items: baseline; }
.lc-region { font-size: 16px; font-weight: 700; color: #16181D; }
.lc-founded { font-size: 13px; color: #8A9099; }
.lc-note { font-size: 13px; color: #8A9099; }
.lc-price { font-size: 13px; font-weight: 700; color: var(--rausch); }
.lc.hide { display: none; }
/* 마퀴/그리드에서의 폭 */
.listing-track .lc { width: 300px; flex: none; margin-right: 20px; }

/* ── 검색 결과 툴바(정렬 + 카드/리스트 전환) ── */
.sw-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0 22px; }
.sw-toolbar .sw-results-head { margin: 0; }
.sw-tools { display: flex; align-items: center; gap: 10px; }
.sw-sort { border: 1px solid var(--hairline); border-radius: var(--r-full); padding: 9px 34px 9px 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background-color: #fff; cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 12 8'%3E%3Cpath fill='%236a6a6a' d='M6 8 0 1.4 1.4 0 6 4.6 10.6 0 12 1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.sw-sort:focus { outline: none; border-color: var(--rausch); }
.sw-view { display: inline-flex; border: 1px solid var(--hairline); border-radius: var(--r-full); overflow: hidden; }
.sw-view__btn { border: 0; background: #fff; padding: 8px 15px; font-size: 15px; line-height: 1; color: var(--muted); cursor: pointer; transition: .14s; }
.sw-view__btn + .sw-view__btn { border-left: 1px solid var(--hairline); }
.sw-view__btn.is-on { background: var(--rausch); color: #fff; }

/* ── 리스트(가로) 보기 ── */
#sw-results.sw-list { grid-template-columns: 1fr; gap: 14px; }
.sw-list .lc { flex-direction: row; padding: 10px; gap: 16px; align-items: stretch; }
.sw-list .lc .lc-thumb { width: 260px; height: auto; min-height: 168px; flex: none; }
.sw-list .lc-job { font-size: 24px; max-width: 60%; }
.sw-list .lc .lc-body { flex: 1; padding: 12px 14px 12px 0; justify-content: center; gap: 8px; }
.sw-list .lc .lc-row { justify-content: flex-start; gap: 12px; }
.sw-list .lc .lc-founded::before { content: "· "; color: #c4c8cd; }
@media (max-width: 620px) {
  .sw-list .lc { flex-direction: column; }
  .sw-list .lc .lc-thumb { width: 100%; height: 180px; }
  .sw-list .lc .lc-body { padding: 14px 10px 0; }
}
