/* =========================================================================
   THEX 부동산 테마 - 매물 목록 · 상세 화면
   색상 변수(--thex-*)와 버튼(.thex-btn)은 main.css 에 있다.
   ========================================================================= */

/* ---------- 기본 ---------- */
.thex-re { color: var(--thex-text); font-size: 16px; line-height: 1.6; }
.thex-re img { display: block; max-width: 100%; height: auto; }
.thex-re a { color: inherit; text-decoration: none; }
.thex-re h1, .thex-re h2, .thex-re h3 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.thex-re p { margin: 0; }
.thex-re ul, .thex-re dl { margin: 0; padding: 0; list-style: none; }
.thex-re button { font: inherit; }
.thex-re a.thex-btn--primary { color: var(--thex-on-accent); }
.thex-re a.thex-btn--kakao { color: #191919; }

.thex-re-archive, .thex-re-single { padding: 40px 0 80px; }
.thex-re-single.thex-single--brochure { padding-top: 0; }

.thex-deal-sale { --thex-deal: var(--thex-sale); }
.thex-deal-jeonse { --thex-deal: var(--thex-jeonse); }
.thex-deal-monthly { --thex-deal: var(--thex-monthly); }
.thex-deal-short { --thex-deal: var(--thex-short); }
.thex-deal-label { color: var(--thex-deal, var(--thex-accent)); font-weight: 700; }

/* ---------- 배지 ---------- */
.thex-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.thex-badge {
	display: inline-block; padding: 3px 10px; border-radius: 999px;
	background: rgba(17, 24, 39, .75); color: #fff;
	font-size: 12px; font-weight: 600; line-height: 1.5;
}
.thex-badge--deal { background: var(--thex-deal, var(--thex-accent)); }
.thex-badge--type { background: var(--thex-surface); color: var(--thex-text); box-shadow: inset 0 0 0 1px var(--thex-line); }
.thex-badge--featured { background: #f59e0b; }
.thex-badge--reserved { background: #ea580c; }
.thex-badge--completed { background: #4b5563; }

/* ---------- 썸네일 ---------- */
.thex-thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--thex-soft); }
.thex-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.thex-placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	width: 100%; height: 100%; min-height: 120px;
	background: linear-gradient(135deg, var(--thex-soft), var(--thex-line)); color: color-mix(in srgb, var(--thex-muted) 70%, transparent); font-size: 14px;
}
.thex-placeholder .thex-icon { width: 44px; height: 44px; stroke-width: 1.4; }
.is-completed .thex-thumb::after {
	content: "거래완료"; position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(17, 24, 39, .55); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .12em;
}

/* ---------- 목록 상단 ---------- */
.thex-archive-header { margin-bottom: 20px; }
.thex-archive-title { font-size: clamp(26px, 3vw, 34px); }
.thex-archive-desc { margin-top: 6px; color: var(--thex-muted); }

.thex-deal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.thex-re .thex-deal-tabs a {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
	border: 1px solid var(--thex-line); border-radius: 999px; background: var(--thex-surface);
	font-size: 15px; font-weight: 600; transition: border-color .15s, color .15s, background-color .15s;
}
.thex-deal-tabs a span { color: var(--thex-muted); font-size: 13px; font-weight: 500; }
.thex-re .thex-deal-tabs a:hover { border-color: var(--thex-accent); color: var(--thex-accent-ink); }
.thex-re .thex-deal-tabs a.is-active { border-color: var(--thex-accent); background: var(--thex-accent); color: var(--thex-on-accent); }
.thex-deal-tabs a.is-active span { color: color-mix(in srgb, var(--thex-on-accent) 80%, transparent); }

.thex-filter {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end;
	margin-bottom: 20px; padding: 18px;
	border: 1px solid var(--thex-line); border-radius: var(--thex-radius); background: var(--thex-surface); box-shadow: var(--thex-shadow);
}
.thex-filter-field label { display: block; margin-bottom: 6px; color: var(--thex-muted); font-size: 13px; font-weight: 600; }
.thex-filter select,
.thex-filter input[type="search"] {
	width: 100%; height: 44px; padding: 0 12px;
	border: 1px solid var(--thex-line); border-radius: var(--thex-radius-sm); background: var(--thex-surface);
	color: var(--thex-text); font: inherit; font-size: 15px;
}
.thex-filter select:focus,
.thex-filter input:focus { border-color: var(--thex-accent); outline: 3px solid var(--thex-accent-soft); }
.thex-filter-field--keyword { grid-column: span 2; }
.thex-filter-actions { display: flex; align-items: center; gap: 10px; }
.thex-filter-actions .thex-btn { flex: 1; height: 44px; }
.thex-re .thex-filter-reset { color: var(--thex-muted); font-size: 14px; white-space: nowrap; }
.thex-re .thex-filter-reset:hover { color: var(--thex-accent); }

.thex-result-bar { margin-bottom: 18px; color: var(--thex-muted); font-size: 15px; }
.thex-result-bar strong { color: var(--thex-accent-ink); }

.thex-empty {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	padding: 64px 20px; border: 1px dashed var(--thex-line); border-radius: var(--thex-radius);
	background: var(--thex-surface); color: var(--thex-muted); text-align: center;
}
.thex-empty .thex-icon { width: 40px; height: 40px; stroke-width: 1.4; }

/* ---------- 목록 디자인 1: 카드형 그리드 ---------- */
.thex-grid { display: grid; grid-template-columns: repeat(var(--thex-cols, 3), minmax(0, 1fr)); gap: 24px; }
.thex-card {
	overflow: hidden; border: 1px solid var(--thex-line); border-radius: var(--thex-radius); background: var(--thex-surface);
	transition: transform .2s ease, box-shadow .2s ease;
}
.thex-card:hover { transform: translateY(-3px); box-shadow: var(--thex-shadow); }
.thex-card:hover .thex-thumb img { transform: scale(1.04); }
.thex-card-link { display: block; height: 100%; }
.thex-card-media { position: relative; }
.thex-card-media .thex-badges { position: absolute; top: 12px; left: 12px; right: 12px; }
.thex-card-body { padding: 16px 18px 18px; }
.thex-card-price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.thex-card-price .thex-deal-label { margin-right: 2px; font-size: 15px; }
.thex-card-title {
	margin-top: 4px; font-size: 16px; font-weight: 600;
	overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.thex-card-summary { margin-top: 6px; font-size: 14px; }
.thex-card-address { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--thex-muted); font-size: 13px; }
.thex-card-address .thex-icon { width: 14px; height: 14px; }

/* ---------- 목록 디자인 2: 가로형 리스트 ---------- */
.thex-rows { display: flex; flex-direction: column; gap: 16px; }
.thex-row {
	display: grid; grid-template-columns: 300px minmax(0, 1fr) 210px; overflow: hidden;
	border: 1px solid var(--thex-line); border-radius: var(--thex-radius); background: var(--thex-surface);
	transition: box-shadow .2s ease, border-color .2s ease;
}
.thex-row:hover { border-color: transparent; box-shadow: var(--thex-shadow); }
.thex-row:hover .thex-thumb img { transform: scale(1.04); }
.thex-row-media { position: relative; display: block; }
.thex-row-media .thex-thumb { height: 100%; min-height: 210px; aspect-ratio: auto; }
.thex-row-media .thex-badges { position: absolute; top: 12px; left: 12px; right: 12px; }
.thex-row-body { min-width: 0; padding: 20px 24px; }
.thex-row-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.thex-row-price { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.thex-row-price .thex-deal-label { font-size: 16px; }
.thex-row-fee { color: var(--thex-muted); font-size: 13px; }
.thex-row-title { margin-top: 4px; font-size: 17px; font-weight: 600; }
.thex-re .thex-row-title a:hover { color: var(--thex-accent); }
.thex-row-address { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--thex-muted); font-size: 14px; }
.thex-row-address .thex-icon { width: 15px; height: 15px; }
.thex-row-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.thex-row-specs li { padding: 4px 10px; border-radius: 8px; background: var(--thex-soft); font-size: 13px; font-weight: 600; }
.thex-row-specs li span { margin-right: 5px; color: var(--thex-muted); font-weight: 400; }
.thex-row-excerpt {
	display: -webkit-box; margin-top: 12px; overflow: hidden;
	color: var(--thex-text-2); font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.thex-row-side {
	display: flex; flex-direction: column; justify-content: center; gap: 8px;
	padding: 20px; border-left: 1px solid var(--thex-line); background: var(--thex-soft);
}
.thex-row-manager { font-size: 15px; font-weight: 700; }
.thex-re .thex-row-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--thex-muted); font-size: 14px; }
.thex-re .thex-row-phone:hover { color: var(--thex-accent); }

/* ---------- 목록 디자인 3: 갤러리형 ---------- */
.thex-tiles {
	display: grid; grid-template-columns: repeat(var(--thex-cols, 3), minmax(0, 1fr));
	grid-auto-flow: dense; gap: 14px;
}
.thex-tile { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--thex-radius); background: #111827; }
.thex-tiles--feature .thex-tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.thex-re .thex-tile-link { position: absolute; inset: 0; display: block; color: #fff; }
.thex-tile .thex-thumb { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.thex-tile:hover .thex-thumb img { transform: scale(1.06); }
.thex-tile-top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; }
.thex-tile-overlay {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 70px 20px 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .45) 55%, transparent);
}
.thex-tile-price { display: flex; align-items: baseline; gap: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.thex-tile-deal { padding: 1px 8px; border-radius: 6px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; }
.thex-tile-title { margin-top: 4px; color: #fff; font-size: 16px; font-weight: 600; }
.thex-tile-meta { margin-top: 4px; color: rgba(255, 255, 255, .8); font-size: 13px; }
.thex-tiles--feature .thex-tile:first-child .thex-tile-price { font-size: 32px; }
.thex-tiles--feature .thex-tile:first-child .thex-tile-title { font-size: 22px; }
.thex-tiles--feature .thex-tile:first-child .thex-tile-overlay { padding: 120px 28px 28px; }

/* ---------- 목록 디자인 4: 전단형 ----------
   글자 크기는 전단 폭(cqi)에 비례해서 칸 수가 바뀌어도 전단 모양이 유지된다. */
.thex-posters {
	--thex-poster-navy: #1f3c88;
	--thex-poster-frame: #4a6fc4;
	--thex-poster-red: #d32f2f;
	--thex-poster-green: #1b5e20;
	--thex-poster-ink: #1e2a5a;
	display: grid; grid-template-columns: repeat(var(--thex-cols, 3), minmax(0, 1fr)); gap: 18px;
	padding: 18px; border: 6px solid #c8b27c; border-radius: 6px;
	background: #efe9dc; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.thex-poster { position: relative; container-type: inline-size; }
.thex-re .thex-poster-link {
	position: relative; display: block; height: 100%; padding: 14px; padding: 4.5cqi;
	background: #fff; color: var(--thex-poster-ink);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 20px -12px rgba(0, 0, 0, .4);
	transition: transform .2s ease, box-shadow .2s ease;
}
.thex-re .thex-poster-link:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 18px 30px -14px rgba(0, 0, 0, .45); }
.thex-re .thex-poster-link:focus-visible { outline: 3px solid var(--thex-accent); outline-offset: 3px; }
.thex-poster-frame {
	display: flex; flex-direction: column; align-items: center; gap: 8px; gap: 2.6cqi;
	height: 100%; min-height: 360px; min-height: 120cqi; padding: 22px 16px; padding: 7cqi 5cqi;
	border: 2px solid var(--thex-poster-frame); text-align: center; line-height: 1.3;
}
.thex-poster-label {
	display: block; max-width: 100%; padding: 5px 16px; padding: 1.6cqi 5cqi; overflow: hidden;
	border-radius: 3px; background: var(--thex-poster-navy); color: #fff;
	font-size: 16px; font-size: 5.4cqi; font-weight: 700; letter-spacing: .06em; white-space: nowrap; text-overflow: ellipsis;
}
.thex-re .thex-poster-deal {
	margin-top: 12px; margin-top: 4cqi; color: var(--thex-poster-red);
	font-size: 26px; font-size: 8.6cqi; font-weight: 800; letter-spacing: .4em; text-indent: .4em;
	text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .22em;
}
.thex-poster-price {
	max-width: 100%; color: var(--thex-poster-red);
	font-size: 38px; font-size: 12.5cqi; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap;
	text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .18em;
}
.thex-poster-price.is-long { font-size: 30px; font-size: 10cqi; }
.thex-poster-price.is-xlong { font-size: 24px; font-size: 8cqi; }
.thex-re .thex-poster-headline {
	margin-top: 6px; margin-top: 2cqi; color: var(--thex-poster-green);
	font-size: 20px; font-size: 6.6cqi; font-weight: 800;
	text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .22em;
}
.thex-re .thex-poster-lines {
	display: grid; gap: 4px; gap: 1.2cqi; margin-top: 10px; margin-top: 3cqi;
	color: var(--thex-poster-ink); font-size: 16px; font-size: 5.2cqi; font-weight: 600;
}
.thex-poster-tape {
	position: absolute; top: -6px; right: 14px; padding: 3px 14px;
	background: rgba(250, 204, 21, .92); color: #3f2d00;
	font-size: 13px; font-size: 4.2cqi; font-weight: 800; letter-spacing: .1em;
	transform: rotate(6deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}
.thex-poster-stamp {
	position: absolute; top: 46%; left: 50%; padding: 4px 16px; padding: 1.4cqi 5cqi;
	border: 4px solid currentColor; border: 1cqi solid currentColor; border-radius: 8px;
	background: rgba(255, 255, 255, .8); color: rgba(211, 47, 47, .9);
	font-size: 30px; font-size: 10cqi; font-weight: 900; letter-spacing: .08em; white-space: nowrap;
	transform: translate(-50%, -50%) rotate(-14deg); pointer-events: none;
}
.thex-poster.is-reserved .thex-poster-stamp,
.thex-notice.is-reserved .thex-poster-stamp { color: rgba(234, 88, 12, .9); }
.thex-poster.is-completed .thex-poster-stamp,
.thex-notice.is-completed .thex-poster-stamp { color: rgba(55, 65, 81, .9); }
.thex-poster.is-completed .thex-poster-frame,
.thex-notice.is-completed .thex-notice-paper { opacity: .45; }

/* ---------- 목록 디자인 5: 안내문형 ----------
   유리창 안쪽 은색 액자에 끼운 안내문. 글자 크기는 안내문 폭(cqi)에 비례한다. */
.thex-notices {
	--thex-notice-blue: #1f3f9a;
	--thex-notice-red: #c62828;
	--thex-notice-serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif;
	display: grid; grid-template-columns: repeat(var(--thex-cols, 3), minmax(0, 1fr)); gap: 16px;
	padding: 16px; border-radius: 4px;
	background: linear-gradient(180deg, #f4f5f7, #e3e6ea);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 10px 24px -18px rgba(0, 0, 0, .35);
}
.thex-notice { position: relative; container-type: inline-size; }
.thex-re .thex-notice-link {
	position: relative; display: block; height: 100%; padding: 6px; padding: 2.2cqi;
	border-radius: 2px; background: linear-gradient(135deg, #f7f8fa, #c9cdd3 45%, #eef0f3 60%, #b9bec5);
	box-shadow: 0 0 0 1px #9aa0a8, 0 8px 16px -10px rgba(0, 0, 0, .45);
	transition: transform .2s ease, box-shadow .2s ease;
}
.thex-re .thex-notice-link:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #8b9199, 0 16px 26px -14px rgba(0, 0, 0, .5); }
.thex-re .thex-notice-link:focus-visible { outline: 3px solid var(--thex-accent); outline-offset: 3px; }
.thex-notice-paper {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; gap: 2.2cqi;
	height: 100%; min-height: 380px; min-height: 132cqi; padding: 20px 12px 14px; padding: 7cqi 5cqi 5cqi;
	overflow: hidden; background: linear-gradient(165deg, #fcfcff 0%, #eef0f8 50%, #f6f7fc 100%);
	color: #111; text-align: center; line-height: 1.3;
}
.thex-notice-paper::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 42%, transparent 52%);
}
.thex-notice-paper > :not(.screen-reader-text) { position: relative; }
.thex-notice-deal {
	color: var(--thex-notice-blue); font-size: 32px; font-size: 11cqi; font-weight: 900;
	letter-spacing: .22em; text-indent: .22em; white-space: nowrap;
}
.thex-notice-deal::before, .thex-notice-deal::after { content: "*"; letter-spacing: 0; }
.thex-notice-deal::before { margin-right: .08em; }
.thex-notice-deal::after { margin-left: -.14em; }
.thex-re .thex-notice-name {
	max-width: 100%; margin-top: 4px; margin-top: 1.5cqi; overflow: hidden;
	font-size: 20px; font-size: 6.6cqi; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis;
}
.thex-notice-desc { color: #333; font-family: var(--thex-notice-serif); font-size: 15px; font-size: 5cqi; }
.thex-re .thex-notice-price {
	margin: auto 0; max-width: 100%; color: var(--thex-notice-red);
	font-family: Arial, "Helvetica Neue", var(--thex-font); font-size: 52px; font-size: 17cqi; font-weight: 900;
	letter-spacing: -.01em; line-height: 1.1; white-space: nowrap;
}
.thex-re .thex-notice-price.is-long { font-size: 40px; font-size: 13.5cqi; }
.thex-re .thex-notice-price.is-xlong { font-size: 30px; font-size: 10cqi; }
.thex-notice-note { font-family: var(--thex-notice-serif); font-size: 14px; font-size: 4.6cqi; font-weight: 700; }
.thex-notice-note::before { content: "• "; }
.thex-notice-note::after { content: " •"; }
.thex-notice-office {
	max-width: 100%; overflow: hidden; color: var(--thex-notice-red);
	font-family: var(--thex-notice-serif); font-size: 14px; font-size: 4.6cqi; white-space: nowrap; text-overflow: ellipsis;
}

/* ---------- 페이지 번호 ---------- */
.thex-pagination { margin-top: 40px; }
.thex-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.thex-pagination li > .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--thex-line); border-radius: var(--thex-radius-sm); background: var(--thex-surface); font-size: 15px;
}
.thex-pagination li > .page-numbers.current { border-color: var(--thex-accent); background: var(--thex-accent); color: var(--thex-on-accent); }
.thex-re .thex-pagination li > a.page-numbers:hover { border-color: var(--thex-accent); color: var(--thex-accent); }
.thex-pagination li > .dots { border: 0; background: none; }

/* ---------- 사무소 · 담당자 연락처 카드 ---------- */
.thex-contact { padding: 22px; border: 1px solid var(--thex-line); border-radius: var(--thex-radius); background: var(--thex-surface); }
.thex-contact-head { display: flex; align-items: center; gap: 14px; }
.thex-contact-logo {
	display: flex; flex: 0 0 56px; align-items: center; justify-content: center;
	width: 56px; height: 56px; overflow: hidden; border-radius: 12px;
	background: var(--thex-accent-soft); color: var(--thex-accent-ink); font-size: 22px; font-weight: 800;
}
.thex-contact-logo img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thex-contact-titles { min-width: 0; }
.thex-contact-eyebrow { color: var(--thex-muted); font-size: 12px; }
.thex-contact-name { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.thex-contact-rep { margin: 0; color: var(--thex-muted); font-size: 14px; }
.thex-contact-desc { margin: 14px 0 0; color: var(--thex-text-2); font-size: 15px; white-space: pre-line; }
.thex-contact-meta { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; font-size: 14px; list-style: none; }
.thex-contact-meta li { display: flex; gap: 10px; }
.thex-contact-meta span { flex: 0 0 76px; color: var(--thex-muted); }
.thex-contact-actions { display: grid; gap: 8px; margin-top: 18px; }
.thex-contact-actions .thex-btn { text-decoration: none; }

.thex-contact--wide {
	display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 28px;
	padding: 28px; border: 0; background: var(--thex-soft);
}
.thex-contact--wide .thex-contact-logo { flex-basis: 68px; width: 68px; height: 68px; font-size: 26px; }
.thex-contact--wide .thex-contact-name { font-size: 22px; }
.thex-contact--wide .thex-contact-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thex-contact--wide .thex-contact-actions { margin-top: 0; }

.thex-contact--mini { margin-top: 16px; padding: 16px; }
.thex-contact--mini .thex-contact-logo { flex-basis: 44px; width: 44px; height: 44px; font-size: 18px; }
.thex-contact--mini .thex-contact-name { font-size: 16px; }
.thex-contact--mini .thex-contact-actions { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 14px; }
.thex-contact--mini .thex-btn { padding: 11px 10px; font-size: 14px; }

/* ---------- 상세 공통 ---------- */
.thex-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; color: var(--thex-muted); font-size: 14px; }
.thex-re .thex-breadcrumb a:hover { color: var(--thex-accent); }
.thex-title { font-size: clamp(24px, 3vw, 34px); }
.thex-address { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; color: var(--thex-muted); }
.thex-address .thex-icon { margin-top: 3px; }
.thex-address-detail { margin-top: 2px; padding-left: 24px; color: var(--thex-muted); font-size: 14px; }

.thex-section { margin-top: 44px; }
.thex-section-title {
	display: flex; align-items: baseline; gap: 8px;
	margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--thex-text); font-size: 20px;
}
.thex-section-title small { color: var(--thex-muted); font-size: 14px; font-weight: 500; }
.thex-content { font-size: 16px; line-height: 1.85; }
.thex-content > * + * { margin-top: 1em; }
.thex-content img { border-radius: 10px; }

/* 갤러리 */
.thex-gallery-main {
	position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 9;
	border-radius: var(--thex-radius); background: var(--thex-soft);
}
.thex-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thex-gallery-main .thex-placeholder .thex-icon { width: 64px; height: 64px; }
.thex-gallery-zoom {
	position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 12px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff;
	font-size: 13px; cursor: pointer;
}
.thex-gallery-zoom .thex-icon { width: 15px; height: 15px; }
.thex-gallery-count {
	position: absolute; right: 14px; bottom: 14px; padding: 5px 11px; border-radius: 999px;
	background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px;
}
.thex-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; padding-bottom: 4px; overflow-x: auto; }
.thex-gallery-thumb {
	flex: 0 0 96px; height: 68px; padding: 0; overflow: hidden;
	border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; opacity: .65;
	transition: opacity .15s, border-color .15s;
}
.thex-gallery-thumb:hover, .thex-gallery-thumb.is-active { border-color: var(--thex-accent); opacity: 1; }
.thex-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 핵심 정보 */
.thex-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; overflow: hidden;
	border: 1px solid var(--thex-line); border-radius: var(--thex-radius); background: var(--thex-line);
}
.thex-fact { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--thex-surface); }
.thex-fact-label { color: var(--thex-muted); font-size: 13px; }
.thex-fact-value { font-size: 18px; font-weight: 700; }
.thex-fact-sub { color: var(--thex-muted); font-size: 13px; }

/* 가격 상자 */
.thex-pricebox { padding: 22px; border: 1px solid var(--thex-line); border-radius: var(--thex-radius); background: var(--thex-surface); box-shadow: var(--thex-shadow); }
.thex-pricebox-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.thex-pricebox-main .thex-deal-label { font-size: 18px; }
.thex-pricebox-rows { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--thex-line); }
.thex-pricebox-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.thex-pricebox-rows dt { color: var(--thex-muted); }
.thex-pricebox-rows dd { margin: 0; font-weight: 600; text-align: right; }
.thex-pricebox .thex-btn { margin-top: 16px; }

/* 상세정보 표 */
.thex-specs dd { margin: 0; }
.thex-specs dt { color: var(--thex-muted); }
.thex-specs--table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--thex-line); }
.thex-specs--table .thex-spec { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-bottom: 1px solid var(--thex-line); }
.thex-specs--table dt { padding: 12px 14px; background: var(--thex-soft); font-size: 14px; }
.thex-specs--table dd { padding: 12px 14px; font-size: 15px; }
.thex-specs--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.thex-specs--grid .thex-spec { padding: 14px 16px; border-radius: 12px; background: var(--thex-soft); }
.thex-specs--grid dt { font-size: 13px; }
.thex-specs--grid dd { margin-top: 2px; font-size: 16px; font-weight: 600; }
.thex-specs--list .thex-spec { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px dashed var(--thex-line); }
.thex-specs--list dd { font-weight: 600; text-align: right; }

/* 옵션 · 특징 */
.thex-options { display: flex; flex-wrap: wrap; gap: 8px; }
.thex-option {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
	background: var(--thex-accent-soft); color: var(--thex-accent-ink); font-size: 14px; font-weight: 600;
}
.thex-option .thex-icon { width: 15px; height: 15px; stroke-width: 2.6; }
.thex-features { display: grid; gap: 10px; }
.thex-features li { position: relative; padding-left: 32px; font-size: 16px; }
.thex-features li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--thex-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* 지도 · 동영상 */
.thex-map-address { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--thex-muted); }
.thex-map { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--thex-line); border-radius: var(--thex-radius); background: var(--thex-soft); }
.thex-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.thex-map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thex-re .thex-map-links a { padding: 7px 14px; border: 1px solid var(--thex-line); border-radius: 999px; background: var(--thex-surface); font-size: 14px; }
.thex-re .thex-map-links a:hover { border-color: var(--thex-accent); color: var(--thex-accent); }
.thex-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--thex-radius); background: #000; }
.thex-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 상세 디자인 1: 클래식 ---------- */
.thex-classic-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 22px; }
.thex-classic-heading { min-width: 0; flex: 1 1 420px; }
.thex-classic-heading .thex-badges { margin-bottom: 12px; }
.thex-classic-price { text-align: right; }
.thex-classic-price .thex-deal-label { font-size: 16px; }
.thex-classic-price .thex-price { display: block; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.thex-classic-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; margin-top: 32px; }
.thex-classic-main > .thex-facts + .thex-section { margin-top: 36px; }
.thex-sticky { position: sticky; top: calc(var(--thex-header-h) + 24px); display: grid; gap: 16px; }
body.admin-bar .thex-sticky { top: calc(var(--thex-header-h) + 56px); }

/* ---------- 상세 디자인 2: 스플릿 ---------- */
.thex-re-single.thex-single--split { background: var(--thex-soft); }
.thex-split-top {
	display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 36px;
	padding: 28px; border-radius: calc(var(--thex-radius) + 6px); background: var(--thex-surface); box-shadow: var(--thex-shadow);
}
.thex-single--split .thex-gallery-main { aspect-ratio: 4 / 3; }
.thex-split-summary .thex-badges { margin-bottom: 12px; }
.thex-split-summary .thex-title { font-size: clamp(22px, 2.4vw, 30px); }
.thex-split-summary .thex-pricebox { margin-top: 20px; border: 0; background: var(--thex-accent-soft); box-shadow: none; }
.thex-split-summary .thex-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.thex-split-cards { display: grid; gap: 20px; margin-top: 24px; }
.thex-single--split .thex-split-cards > .thex-section {
	margin: 0; padding: 28px; border: 1px solid var(--thex-line); border-radius: var(--thex-radius); background: var(--thex-surface);
}
.thex-single--split .thex-section-title { align-items: center; padding-bottom: 0; border-bottom: 0; font-size: 19px; }
.thex-single--split .thex-section-title::before { content: ""; flex: 0 0 4px; height: 18px; border-radius: 2px; background: var(--thex-accent); }
.thex-single--split .thex-contact--wide { background: var(--thex-surface); box-shadow: inset 0 0 0 1px var(--thex-line); }
.thex-single--split .thex-section--related { margin-top: 44px; }

/* ---------- 상세 디자인 3: 브로셔 ---------- */
.thex-hero {
	position: relative; display: flex; align-items: flex-end; min-height: min(78vh, 660px);
	background: #0f172a center / cover no-repeat; color: #fff;
}
.thex-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(2, 6, 23, .9) 0%, rgba(2, 6, 23, .4) 55%, rgba(2, 6, 23, .15) 100%);
}
.thex-hero--noimage { background: linear-gradient(135deg, var(--thex-accent-dark), #0f172a); }
.thex-hero-inner { position: relative; padding-top: 120px; padding-bottom: 52px; }
.thex-hero .thex-breadcrumb { color: rgba(255, 255, 255, .75); }
.thex-re .thex-hero .thex-breadcrumb a:hover { color: #fff; }
.thex-hero .thex-badges { margin-bottom: 14px; }
.thex-hero .thex-title { max-width: 900px; color: #fff; font-size: clamp(30px, 5vw, 56px); }
.thex-hero .thex-address { color: rgba(255, 255, 255, .82); }
.thex-hero-price {
	display: inline-flex; align-items: baseline; gap: 12px; margin-top: 24px; padding: 12px 24px;
	border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px);
	font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em;
}
.thex-hero-deal { font-size: .55em; font-weight: 700; opacity: .85; }
.thex-band { background: var(--thex-footer-bg); color: var(--thex-footer-text); }
.thex-band .thex-facts { gap: 0; border: 0; border-radius: 0; background: transparent; }
.thex-band .thex-fact { align-items: center; padding: 26px 16px; border-right: 1px solid color-mix(in srgb, var(--thex-footer-text) 12%, transparent); background: transparent; text-align: center; }
.thex-band .thex-fact:last-child { border-right: 0; }
.thex-band .thex-fact-label, .thex-band .thex-fact-sub { color: color-mix(in srgb, var(--thex-footer-text) 62%, var(--thex-footer-bg)); }
.thex-band .thex-fact-value { font-size: 22px; }
.thex-single--brochure .thex-section { margin-top: 60px; }
.thex-single--brochure .thex-section-title { display: block; padding-bottom: 0; border-bottom: 0; font-size: 26px; }
.thex-single--brochure .thex-section-title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 12px; background: var(--thex-accent); }
.thex-single--brochure .thex-content { font-size: 17px; line-height: 1.95; }
.thex-single--brochure .thex-features { padding: 26px; border-radius: var(--thex-radius); background: var(--thex-accent-soft); }
.thex-single--brochure .thex-pricebox { box-shadow: none; }
.thex-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.thex-mosaic-item { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--thex-soft); cursor: zoom-in; }
.thex-mosaic-item:nth-child(3n + 1) { grid-column: span 2; aspect-ratio: 16 / 9; }
.thex-mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.thex-mosaic-item:hover img { transform: scale(1.04); }
.thex-single--brochure .thex-section--related .thex-section-title { text-align: left; }

/* ---------- 모바일 전화 바 ---------- */
.thex-callbar { display: none; }

/* ---------- 사진 크게 보기 (body 바로 아래에 붙음) ---------- */
.thex-lightbox {
	position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .92);
}
.thex-lightbox.is-open { display: flex; }
.thex-lightbox-img { max-width: 92vw; max-height: 86vh; border-radius: 6px; object-fit: contain; }
.thex-lightbox button {
	position: absolute; display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.thex-lightbox button:hover { background: rgba(255, 255, 255, .25); }
.thex-lightbox button[hidden] { display: none; }
.thex-lightbox-close { top: 18px; right: 18px; }
.thex-lightbox-prev { top: 50%; left: 18px; transform: translateY(-50%); }
.thex-lightbox-next { top: 50%; right: 18px; transform: translateY(-50%); }
.thex-lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: 14px; }
body.thex-lightbox-open { overflow: hidden; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
	.thex-grid, .thex-tiles { --thex-cols: 2 !important; }
	.thex-row { grid-template-columns: 240px minmax(0, 1fr); }
	.thex-row-side {
		grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end;
		padding: 12px 20px; border-top: 1px solid var(--thex-line); border-left: 0;
	}
	.thex-row-manager { margin-right: auto; }
	.thex-classic-body { grid-template-columns: minmax(0, 1fr); }
	.thex-sticky { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.thex-split-top { grid-template-columns: minmax(0, 1fr); }
	.thex-specs--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.thex-contact--wide { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 782px) {
	.thex-callbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		display: flex; align-items: center; gap: 12px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--thex-line); background: var(--thex-surface); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
	}
	.thex-callbar-price { flex: 1; min-width: 0; overflow: hidden; font-size: 18px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
	.thex-callbar-price .thex-deal-label { font-size: 14px; }
	.thex-re-single { padding-bottom: 110px; }
	.thex-re-single.thex-single--brochure { padding-bottom: 110px; }
	.single-property .thex-site-footer { padding-bottom: 110px; }
}

@media (max-width: 640px) {
	.thex-re-archive, .thex-re-single { padding-top: 24px; }
	.thex-grid, .thex-tiles { --thex-cols: 1 !important; }
	.thex-posters { --thex-cols: 2 !important; gap: 10px; padding: 10px; border-width: 4px; }
	.thex-notices { --thex-cols: 2 !important; gap: 10px; padding: 10px; }
	.thex-tiles--feature .thex-tile:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
	.thex-filter-field--keyword { grid-column: auto; }
	.thex-row { grid-template-columns: minmax(0, 1fr); }
	.thex-row-media .thex-thumb { min-height: 0; aspect-ratio: 16 / 10; }
	.thex-row-body { padding: 16px 18px; }
	.thex-classic-price { text-align: left; }
	.thex-specs--table { grid-template-columns: minmax(0, 1fr); }
	.thex-specs--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.thex-split-top { padding: 16px; }
	.thex-single--split .thex-split-cards > .thex-section { padding: 20px; }
	.thex-contact--wide { padding: 22px; }
	.thex-contact--wide .thex-contact-meta { grid-template-columns: minmax(0, 1fr); }
	.thex-band .thex-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.thex-band .thex-fact { border-bottom: 1px solid color-mix(in srgb, var(--thex-footer-text) 12%, transparent); }
	.thex-mosaic { grid-template-columns: minmax(0, 1fr); }
	.thex-mosaic-item:nth-child(3n + 1) { grid-column: auto; aspect-ratio: 4 / 3; }
	.thex-gallery-thumb { flex-basis: 72px; height: 54px; }
}

@media (max-width: 400px) {
	.thex-posters, .thex-notices { --thex-cols: 1 !important; }
}
