/* 부동산 포털형 레이아웃: 흰 바탕 + 선명한 파랑, 둥근 카드, 가운데 검색 */
:root {
  --blue: #124ceb;
  --blue-2: #2e63f3;
  --blue-soft: #f0f5ff;
  --blue-line: #c9d8ff;
  --navy: #162260;
  --navy-2: #253687;
  --amber: #ffb000;
  --green: #11b20d;
  --orange: #f06a00;
  --red: #ff3d3d;
  --ink: #222;
  --sub: #555;
  --muted: #999;
  --line: #e9e9e9;
  --bg: #fff;
  --bg-soft: #f5f6f8;
  --r: 14px;
  --shadow: 0 2px 12px rgba(20, 40, 100, .06);
  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all; -webkit-font-smoothing: antialiased; letter-spacing: -.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ---------- 상단 메뉴 ---------- */
.gnb { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.gnb__row { height: 72px; display: flex; align-items: center; gap: 28px; }
.logo { font-size: 24px; font-weight: 900; letter-spacing: -.06em; flex: none; }
.logo__a { color: var(--navy-2); }
.logo__b { color: var(--amber); }
.gnb__nav { display: flex; gap: 26px; flex: 1; min-width: 0; }
.gnb__nav a { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; padding: 24px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gnb__nav b { font-size: 17px; font-weight: 700; }
.gnb__nav small { font-size: 12.5px; color: var(--sub); }
.gnb__nav a:hover { border-color: var(--blue); }
.gnb__nav a:hover b { color: var(--blue); }
.gnb__util { display: flex; align-items: center; gap: 8px; flex: none; }
.gnb__yt, .gnb__blog { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.gnb__yt svg { width: 18px; fill: #ff0000; }
.gnb__blog b { font-weight: 900; color: #03c75a; font-size: 15px; }
.gnb__ig { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.gnb__ig svg { width: 18px; fill: none; stroke: #d62976; stroke-width: 2; }
.gnb__ig svg .dot { fill: #d62976; stroke: none; }
.gnb__call { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }
.gnb__call svg { width: 15px; fill: currentColor; }

/* ---------- 검색 ---------- */
.search { padding-top: 52px; padding-bottom: 8px; max-width: 760px; }
.search h1 { text-align: center; font-size: 32px; font-weight: 300; letter-spacing: -.04em; margin-bottom: 24px; }
.search h1 b { font-weight: 800; }
.search__box { position: relative; }
.search__box input {
  width: 100%; height: 64px; border-radius: 32px; border: 1px solid var(--blue-line); background: #fff;
  padding: 0 76px 0 30px; font-size: 18px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search__box input::placeholder { color: #8a8a8a; }
.search__box input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18, 76, 235, .1); }
.search__box button { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--blue); display: grid; place-items: center; }
.search__box button svg { width: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.search__hot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 4px 0; font-size: 14px; }
.search__hot b { font-weight: 700; }
.search__hot span { display: flex; flex-wrap: wrap; gap: 6px; }
.search__hot button { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 3px 12px; font-size: 13px; color: var(--sub); }
.search__hot button:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 카테고리 ---------- */
.cats { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 40px; }
.cat-main {
  grid-row: span 2; position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: 40px 36px;
  background: linear-gradient(135deg, #2e63f3 0%, #124ceb 55%, #0a3fd1 100%);
  display: flex; align-items: stretch; min-height: 300px;
}
.cat-main::after { content: ""; position: absolute; inset: auto -60px -120px auto; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.cat-main__txt { position: relative; z-index: 1; display: flex; flex-direction: column; }
.cat-main h2 { font-size: 34px; font-weight: 800; letter-spacing: -.05em; }
.cat-main h2 span { font-size: 22px; font-weight: 700; }
.cat-main p { margin-top: 14px; font-size: 15.5px; font-weight: 500; line-height: 1.7; opacity: .95; }
.cat-main__btns { margin-top: auto; padding-top: 28px; display: flex; gap: 10px; }
.cat-main__btns a { border: 1px solid rgba(255,255,255,.85); border-radius: 6px; padding: 9px 16px; font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.cat-main__btns a:hover { background: #fff; color: var(--blue); }
.cat-main__art { position: absolute; right: 18px; bottom: 6px; width: 250px; height: auto; }
.cat-main__pin { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.cat { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; background: #fff; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; min-height: 142px; }
.cat:hover { border-color: var(--blue-line); transform: translateY(-2px); }
.cat h3 { font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.cat p { margin-top: 6px; color: var(--sub); font-size: 13.5px; }
.cat em { font-style: normal; font-weight: 700; color: var(--blue); }
.cat svg { position: absolute; right: 18px; bottom: 16px; width: 58px; }

/* ---------- 실시간 띠 배너 ---------- */
.band {
  margin-top: 24px; display: flex; align-items: center; gap: 18px; border-radius: 12px; padding: 0 22px; height: 72px;
  background: linear-gradient(90deg, #0d1a57, var(--navy) 40%, var(--navy-2)); color: #fff; overflow: hidden; position: relative;
}
.band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 220px; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 14px, transparent 14px 30px); pointer-events: none; }
.band__live { position: relative; flex: none; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; background: var(--red); padding: 4px 10px; border-radius: 4px; }
.band__live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.band__copy { flex: none; font-size: 17px; font-weight: 500; }
.band__copy b { font-weight: 800; }
.band__brand { color: var(--amber); }
.band__feed { flex: 1; min-width: 0; font-size: 13.5px; color: #c4cdf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band__feed b { color: #fff; font-weight: 600; }
.band__btn { flex: none; display: flex; align-items: center; gap: 2px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; padding: 7px 10px 7px 14px; border-radius: 18px; }
.band__btn svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* ---------- 공통 박스 ---------- */
.box { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.box__head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.04em; display: flex; align-items: center; gap: 8px; }
.more { display: flex; align-items: center; font-size: 13px; color: var(--sub); }
.more svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.more:hover { color: var(--blue); }
.yt-dot { width: 22px; height: 16px; border-radius: 4px; background: #ff0000; position: relative; }
.yt-dot::after { content: ""; position: absolute; left: 8.5px; top: 4px; border: 4px solid transparent; border-left: 6px solid #fff; border-right: 0; }
.nv-dot { width: 20px; height: 20px; border-radius: 4px; background: #03c75a; color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }

.ig-dot { width: 20px; height: 20px; border-radius: 6px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); position: relative; flex: none; }
.ig-dot::after { content: ""; position: absolute; inset: 5px; border: 2px solid #fff; border-radius: 50%; }
.ig-dot--lg { width: 44px; height: 44px; border-radius: 12px; }
.ig-dot--lg::after { inset: 11px; border-width: 3px; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ig { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--bg-soft); }
.ig img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ig:hover img { transform: scale(1.05); }
.ig-badge { position: absolute; right: 6px; top: 6px; color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ig-new { position: absolute; left: 6px; top: 6px; }
.ig-embed { max-width: 640px; margin: 0 auto 14px; }
.ig-embed iframe { display: block; width: 100%; height: 520px; border: 1px solid var(--line, #e5e8eb); border-radius: 12px; background: #fff; }
.ig-cta { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: linear-gradient(90deg, #fff5f9, #f5f3ff); }
.ig-cta b { display: block; font-size: 16px; }
.ig-cta small { display: block; font-size: 13px; color: var(--sub); }
.ig-cta em { margin-left: auto; flex: none; font-style: normal; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af); padding: 7px 14px; border-radius: 18px; }
#instagram { margin-top: 16px; }
.duo { display: grid; grid-template-columns: 1fr 360px; gap: 16px; margin-top: 24px; }
#shorts-wrap, #blog, #consult { margin-top: 16px; }

/* 탭 (밑줄형) */
.tabs { display: flex; gap: 4px; }
.tabs button { border: 0; background: none; padding: 4px 10px; font-size: 14px; color: var(--muted); font-weight: 600; border-radius: 14px; }
.tabs button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.tabs em { font-style: normal; margin-left: 3px; font-size: 12px; opacity: .8; }
.ctabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.ctabs button { flex: none; border: 0; background: none; padding: 8px 14px 11px; font-size: 14.5px; color: var(--sub); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ctabs button[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-color: var(--ink); }

.sample-note { font-size: 13px; color: #8a5a00; background: #fff6df; border-radius: 8px; padding: 8px 12px; margin: -6px 0 14px; }
.filter-note { font-size: 13px; color: var(--sub); background: var(--blue-soft); border-radius: 8px; padding: 8px 12px; margin: -6px 0 14px; display: flex; justify-content: space-between; gap: 10px; }
.filter-note button { border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 13px; padding: 0; }

/* ---------- 매물 카드 레일 ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.rail::-webkit-scrollbar { display: none; }
.lst { scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; }
.lst__photo { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #e7eefc, #cbd9f7); }
.lst__photo img { width: 100%; height: 100%; object-fit: cover; }
.lst__photo .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.lst__photo .ph svg { width: 54%; opacity: .9; }
.lst__badge { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.lst__no { position: absolute; right: 10px; bottom: 8px; color: rgba(22, 34, 96, .55); font-size: 11px; font-weight: 600; }
.lst__name { margin-top: 12px; font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst__price { margin-top: 2px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.lst__price .d { margin-right: 4px; }
.lst__price .d--매매 { color: var(--blue); }
.lst__price .d--전세 { color: var(--green); }
.lst__price .d--월세 { color: var(--orange); }
.lst__price small { font-size: 13px; font-weight: 600; color: var(--sub); }
.lst__spec { margin-top: 4px; font-size: 13px; color: var(--sub); }
.lst__spec span + span::before { content: "·"; margin: 0 5px; color: #ccc; }
.lst__tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.lst__tags span { font-size: 11.5px; color: var(--blue); background: var(--blue-soft); border-radius: 3px; padding: 2px 6px; }
.lst__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.lst__foot::before { content: none; }
.lst__ok { display: flex; align-items: center; gap: 4px; }
.lst__ok::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/10px no-repeat; }
.lst__ask { border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 4px 10px; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.lst__ask:hover { border-color: var(--blue); color: var(--blue); }

.rail-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.rail-ctl__btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.rail-ctl__btn svg { width: 16px; fill: none; stroke: var(--sub); stroke-width: 2.2; }
.rail-ctl__btn:disabled { opacity: .35; cursor: default; }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #d5d9e2; transition: width .2s, background .2s; }
.dots i.on { width: 18px; background: var(--blue); }
.empty { padding: 40px 0; text-align: center; color: var(--sub); font-size: 14px; }
.empty a { color: var(--blue); font-weight: 600; }

/* ---------- 썸네일 공통 ---------- */
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(150deg, #1c2a6b, #2e63f3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4; }
.thumb .play { position: absolute; left: 50%; top: 50%; width: 48px; height: 34px; margin: -17px 0 0 -24px; border-radius: 9px; background: rgba(255, 0, 0, .92); }
.thumb .play::after { content: ""; position: absolute; left: 19px; top: 10px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }
.new { display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--red); border-radius: 3px; padding: 1px 5px; margin-right: 5px; vertical-align: 1px; }
.vmeta { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 유튜브 패널 ---------- */
.vfeat { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0; }
.vfeat h3 { margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vfeat:hover h3 { color: var(--blue); }
.vlist { margin-top: 16px; border-top: 1px solid var(--line); }
.vrow { display: grid; grid-template-columns: 104px 1fr; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vrow:last-child { border-bottom: 0; padding-bottom: 0; }
.vrow .thumb { border-radius: 6px; }
.vrow .thumb .play { transform: scale(.6); }
.vrow h4 { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vrow:hover h4 { color: var(--blue); }

/* 쇼츠 */
.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 6); gap: 12px; overflow-x: auto; scrollbar-width: none; }
.short { text-align: left; border: 0; background: none; padding: 0; min-width: 0; }
.short .thumb { aspect-ratio: 9 / 16; }
.short h4 { margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 블로그 ---------- */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 16px; }
.post { display: flex; flex-direction: column; min-width: 0; }
.post .thumb { aspect-ratio: 4 / 3; background: linear-gradient(150deg, #e6f8ee, #b8ebcd); }
.post .thumb .ph { color: #0b7a3b; }
.post__cat { margin-top: 12px; font-size: 12px; font-weight: 700; color: #03a94d; }
.post h3 { margin-top: 3px; font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post p { margin-top: 5px; font-size: 13px; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post time { margin-top: 6px; font-size: 12px; color: var(--muted); }
.post:hover h3 { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 하단 3단 ---------- */
.trio { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 16px; margin-top: 16px; }
.promo { position: relative; border-radius: var(--r); background: var(--bg-soft); padding: 26px 24px; display: flex; justify-content: space-between; gap: 12px; min-height: 160px; transition: background .15s; }
.promo:hover { background: #ebeff8; }
.promo h3 { font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.promo p { margin-top: 8px; font-size: 13.5px; color: var(--sub); line-height: 1.6; }
.promo svg { width: 64px; flex: none; align-self: flex-end; }
.notice { padding-bottom: 14px; }
.notice .box__head { margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 10px 22px 10px 0; font-size: 14px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "[안내]"; color: var(--sub); margin-right: 4px; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 8px; color: var(--muted); font-size: 16px; }
.faq details[open] summary { white-space: normal; font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq p { font-size: 13.5px; color: var(--sub); padding: 0 0 12px; }

/* ---------- 상담 ---------- */
.consult { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; padding: 36px; }
.consult h2 { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.consult__intro > p { margin-top: 10px; color: var(--sub); font-size: 14.5px; line-height: 1.7; }
.consult__info { margin-top: 24px; border-top: 2px solid var(--ink); }
.consult__info div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.consult__info dt { color: var(--muted); }
.consult__info a { font-weight: 700; color: var(--blue); }
.form { display: grid; gap: 14px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sub); }
.field i { font-style: normal; color: var(--red); font-size: 11px; margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d9dce3; border-radius: 8px; padding: 11px 13px; font-size: 15px; font-weight: 400; color: var(--ink); background: #fff; outline: none; }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 76, 235, .1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--sub); }
.check input { margin-top: 3px; accent-color: var(--blue); }
.btn { height: 52px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; }
.btn:hover { background: #0b3fd0; }
.btn:disabled { opacity: .6; }
.form__msg { font-size: 14px; min-height: 1.4em; }
.form__msg.ok { color: var(--green); font-weight: 600; }
.form__msg.err { color: #d62020; font-weight: 600; }

/* ---------- 날개 배너 ---------- */
.wing { position: fixed; z-index: 20; top: 160px; left: calc(50% + var(--wrap) / 2 + 16px); width: 116px; border-radius: 12px; padding: 16px 12px 12px; background: linear-gradient(180deg, #e3eeff, #c9defc); text-align: center; display: none; box-shadow: var(--shadow); }
.wing b { display: block; font-size: 13px; line-height: 1.45; color: var(--navy); }
.wing em { font-style: normal; color: var(--blue); }
.wing small { display: block; margin-top: 10px; font-size: 11px; color: var(--sub); line-height: 1.5; }
.wing svg { width: 54px; margin: 10px auto 0; }
@media (min-width: 1480px) { .wing { display: block; } }

/* ---------- 푸터 ---------- */
.foot { margin-top: 56px; border-top: 1px solid var(--line); background: #fff; padding: 40px 0 100px; }
.foot__top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.foot h3 { font-size: 14px; font-weight: 700; color: var(--sub); }
.foot__call > a { display: block; margin-top: 4px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.foot__call p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.foot__addr-txt { margin-top: 8px; font-size: 16px !important; font-weight: 600; color: var(--ink) !important; }
.foot__map { display: inline-block; margin-top: 10px; border: 1px solid var(--line); border-radius: 5px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: #03a94d; }
.foot__map:hover { border-color: #03c75a; }
.foot__kakao { display: inline-block; margin-top: 10px; background: #fee500; color: #191919; font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 5px; }
.foot__ch { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ch { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 700; min-width: 170px; }
.ch::before { content: ""; width: 20px; height: 14px; border-radius: 4px; }
.ch--yt::before { background: #ff0000; }
.ch--nv::before { background: #03c75a; width: 14px; }
.ch--ig::before { width: 14px; border-radius: 4px; background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.ch:hover { border-color: var(--ink); }
.foot__legal { padding-top: 22px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.foot__legal b { color: var(--sub); }
.foot__legal .copy { margin-top: 6px; }

/* ---------- 모바일 하단 고정 ---------- */
.dock { display: none; }

/* ---------- 모달 ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(10, 16, 40, .6); }
.modal { width: min(460px, calc(100% - 32px)); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.calc { padding: 24px; display: grid; gap: 14px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; }
.modal__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); padding: 0 4px; }
.seg { border: 0; padding: 3px; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-soft); border-radius: 10px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--sub); }
.seg input:checked + span { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }
.money { position: relative; display: block; }
.money input { padding-right: 52px; text-align: right; font-size: 17px; font-weight: 700; }
.money em { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; }
.calc__read { text-align: right; font-size: 13px; color: var(--blue); font-weight: 600; margin-top: -6px; }
.calc__out { background: var(--blue-soft); border-radius: 10px; padding: 6px 16px; }
.calc__out div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.calc__out dt { color: var(--sub); }
.calc__out dd { font-weight: 600; }
.calc__total { border-top: 1px solid var(--blue-line); }
.calc__total dd { font-size: 22px; font-weight: 800; color: var(--blue); }
.calc__total dt { align-self: center; color: var(--ink); font-weight: 700; }
.calc__foot { font-size: 12px; color: var(--muted); }
.rates summary { cursor: pointer; font-size: 13px; color: var(--sub); }
.rates table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.rates th, .rates td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
.rates th { color: var(--sub); font-weight: 600; background: var(--bg-soft); }

/* 매물 상세 */
.lst { cursor: pointer; }
.lst:hover .lst__name { color: var(--blue); }
.lst__badge--blog { background: #03c75a; }
.ld__blog { margin-top: 10px; display: block; text-align: center; padding: 10px; border-radius: 8px; background: #effaf3; color: #038a42; font-weight: 700; font-size: 14px; }
.ld__blog:hover { background: #e2f6ea; }
.lst__cnt { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.ld { width: min(880px, calc(100% - 24px)); max-height: 92vh; overflow-y: auto; position: relative; }
.ld__x { position: absolute; right: 10px; top: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); }
#ld-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.gal { position: relative; background: #0d1530; min-width: 0; align-self: start; }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.gal__track .ph { flex: 0 0 100%; display: grid; place-items: center; background: linear-gradient(160deg, #e7eefc, #cbd9f7); }
.gal__track .ph svg { width: 50%; }
.gal__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 24px; line-height: 1; color: var(--ink); }
.gal__btn--l { left: 10px; } .gal__btn--r { right: 10px; }
.gal__count { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 10px; }
.ld__info { padding: 26px 24px 22px; display: grid; gap: 6px; align-content: start; }
.ld__info .lst__name { margin: 0; }
.ld__info h2 { font-size: 20px; font-weight: 800; letter-spacing: -.04em; line-height: 1.35; }
.ld__info .lst__price { font-size: 22px; }
.ld__desc { margin-top: 6px; font-size: 14px; color: var(--sub); white-space: pre-line; }
.ld__table { margin-top: 10px; border-top: 2px solid var(--ink); }
.ld__table div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ld__table dt { color: var(--muted); }
.ld__office { margin-top: 8px; font-size: 12px; color: var(--muted); }
.ld__cta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 10px; }
.ld__cta .btn { height: 46px; display: grid; place-items: center; font-size: 15px; }
.btn--line { background: #fff; color: var(--ink); border: 1px solid #d9dce3; }
.btn--line:hover { background: #fafafa; }
.admin-link { float: right; font-size: 10px; color: #c4c4c4; }
.admin-link:hover { color: var(--sub); }

.player { background: transparent; width: min(960px, calc(100% - 24px)); max-height: 92vh; overflow: visible; }
.player__box { position: relative; }
.player__close { position: absolute; right: 0; top: -44px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; }
.player__frame { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.player__frame.is-short { aspect-ratio: 9 / 16; max-height: 82vh; margin-inline: auto; }
.player__frame iframe { width: 100%; height: 100%; border: 0; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: var(--navy); color: #fff; font-size: 14px; padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast a { color: var(--amber); font-weight: 700; margin-left: 8px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1320px) {
  .gnb__nav small { display: none; }
}
@media (max-width: 1100px) {
  .gnb__nav { gap: 22px; }
  .duo { grid-template-columns: 1fr; }
  #video #yt-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
  #video .vlist { margin-top: 0; border-top: 0; }
  #video .vrow:first-child { padding-top: 0; }
  .shorts { grid-auto-columns: calc((100% - 36px) / 4); }
  .trio { grid-template-columns: 1fr 1fr; }
  .notice { grid-column: span 2; }
}
@media (max-width: 860px) {
  .gnb__row { height: auto; flex-wrap: wrap; gap: 0 16px; padding-top: 12px; }
  .logo { font-size: 22px; }
  .gnb__util { margin-left: auto; }
  .gnb__nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; gap: 20px; }
  .gnb__nav a { padding: 12px 0 10px; }
  .gnb__nav b { font-size: 15px; }
  .gnb__call span { display: none; }
  .gnb__call { width: 34px; padding: 0; justify-content: center; }
  html { scroll-padding-top: 120px; }
  .search { padding-top: 32px; }
  .search h1 { font-size: 24px; margin-bottom: 18px; }
  .search__box input { height: 54px; font-size: 16px; padding-left: 22px; }
  .search__box button { width: 40px; height: 40px; top: 7px; right: 7px; }
  .cats { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; margin-top: 28px; }
  .cat-main { grid-column: span 2; grid-row: auto; min-height: 240px; padding: 28px 24px; }
  .cat-main h2 { font-size: 28px; }
  .cat-main h2 span { font-size: 18px; }
  .cat-main p { font-size: 14px; }
  .cat-main__art { width: 170px; right: 4px; opacity: .95; }
  .cat { padding: 18px 16px; min-height: 120px; }
  .cat h3 { font-size: 17px; }
  .cat p { font-size: 12.5px; padding-right: 36px; }
  .cat svg { width: 44px; right: 12px; bottom: 12px; }
  .band { height: auto; flex-wrap: wrap; padding: 16px 18px; gap: 8px 12px; }
  .band__copy { font-size: 15px; flex: 1 1 60%; }
  .band__feed { order: 4; flex-basis: 100%; }
  .band__btn { display: none; }
  .box { padding: 20px 16px; }
  .rail { grid-auto-columns: calc((100% - 12px) / 1.6); gap: 12px; }
  #video #yt-main { display: block; }
  #video .vlist { margin-top: 16px; border-top: 1px solid var(--line); }
  #video .vrow:first-child { padding-top: 12px; }
  .shorts { grid-auto-columns: calc((100% - 24px) / 2.6); }
  .posts { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .ig-cta em { display: none; }
  .trio { grid-template-columns: 1fr; }
  .notice { grid-column: auto; }
  .promo { min-height: 0; }
  .consult { grid-template-columns: 1fr; gap: 26px; padding: 26px 18px; }
  .foot__top { grid-template-columns: 1fr; gap: 24px; }
  .foot__call > a { font-size: 24px; }
  .dock { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
  .dock a { height: 46px; display: grid; place-items: center; border-radius: 8px; font-weight: 700; border: 1px solid var(--line); }
  .dock__main { background: var(--blue); color: #fff; border-color: var(--blue) !important; }
  .toast { bottom: 84px; }
  #ld-body { grid-template-columns: minmax(0, 1fr); }
  .ld { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .ld__info { padding: 20px 16px 28px; }
}
@media (max-width: 480px) {
  .gnb__row { gap: 0 10px; }
  .logo { font-size: 19px; }
  .gnb__util { gap: 5px; }
  .gnb__yt, .gnb__blog, .gnb__ig, .gnb__call { width: 30px; height: 30px; }
  .gnb__yt svg, .gnb__ig svg { width: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 78%; }
  .cat-main__art { width: 130px; bottom: 0; right: -6px; }
  .cat-main__btns a { padding: 8px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
