/* 사무소 홈페이지 스타일. 디자인을 바꿀 때는 맨 위의 변수(색·글꼴)부터 고치세요. */

/* 샌드박스 어그로체 (상업적 무료, 수정·사용 자유. 눈누 CDN). 300 가늘게 / 500 보통 / 700 굵게 */
@font-face { font-family: "SB Aggro"; src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroL.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "SB Aggro"; src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroM.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "SB Aggro"; src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --brand: #232558;          /* 주색: 로고 남색 (전화 버튼 동그라미도 이 색) */
  --brand-dark: #181a3f;
  --green: #1e4a45;          /* 보조색: 로고 큐브의 짙은 녹색 */
  --tint: #a9b4ff;           /* 어두운 바탕 위의 강조색 (푸터 전화번호·이름) */
  --accent: #e8590c;         /* 보조색 (가격·전화 버튼) */
  --ink: #1b1f27;            /* 제목 글자 */
  --text: #343a46;           /* 본문 글자 (제목보다 살짝 연하게) */
  --teal: #1f8a7e;           /* 작은 영어 꼬리말 (로고 큐브의 녹색을 밝게) */
  --t-sale: #e03131; --t-jeonse: #1c7ed6; --t-monthly: #2b8a3e; --t-yearly: #e8590c;   /* 거래 종류 색: 매매·전세·월세·연세 */
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --header-h: 72px;          /* 머리 메뉴 높이 (지도 화면 높이 계산에도 쓴다) */
  --shadow: 0 6px 24px rgba(20, 30, 60, .08);
  --font: "Nanum Gothic", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;        /* 본문·표 값·설명 */
  --display: "SB Aggro", "Nanum Gothic", "Malgun Gothic", "맑은 고딕", sans-serif;                          /* 제목·메뉴·가격·버튼·라벨 */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-text-size-adjust: 100%; font-size: 17px; -webkit-font-smoothing: antialiased; }
input, select, textarea, button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.02em; }
h1, h2, h3, p, li, td, th, .title, .meta { word-break: keep-all; overflow-wrap: anywhere; }   /* 한국어는 단어 단위로 줄바꿈 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.brand-text { font-weight: 700; font-size: 22px; letter-spacing: -.03em; color: var(--brand); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-item > a { display: block; position: relative; padding: 0 18px; line-height: var(--header-h); color: #222; }
.nav-item > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 16px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s ease; }
.nav-item:hover > a, .nav-item > a.on { color: var(--brand); }
.nav-item:hover > a::after, .nav-item > a.on::after { transform: scaleX(1); }
.sub { display: none; position: absolute; left: 0; top: 100%; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.nav-item:hover .sub { display: block; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 17px; }
.sub a:hover { background: var(--bg-soft); }
/* 전화 번호: 남색 동그라미 + 흰 전화기 + 굵은 번호 (글꼴은 마지막에 바꾼다) */
.tel { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.tel-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.tel b { font-size: 24px; font-weight: 700; color: #222; letter-spacing: 0; }
.tel.on-dark .tel-ic { background: #fff; color: var(--brand); }
.tel.on-dark b { color: #fff; }
.bar .tel { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; padding: 4px 8px; }

/* 버튼·칩 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 12px; font-weight: 700; border: 0; cursor: pointer; font-size: 18px; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-wide { width: 100%; padding: 18px; font-size: 20px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 16px; cursor: pointer; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
/* 지도 왼쪽 필터 칩 (여러 개 선택): 켜지면 연한 회색 바탕에 진한 테두리 */
.fgroup { margin-bottom: 18px; }
/* 매물 종류 선택 상자 (체크 목록) */
.tpicker { position: relative; }
.tpicker .ftitle { margin-bottom: 8px; }
.tp-btn { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 280px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; cursor: pointer; text-align: left; }
.tp-btn .tp-count { color: #6b7280; margin-left: auto; font-size: 15px; }
.tp-btn.on { border-color: #111827; }
.tp-btn.on .tp-count { color: #111827; font-weight: 700; }
.tp-caret { font-size: 14px; color: #6b7280; }
.tp-panel { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: 250px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 8px 0 0; }
.tp-panel[hidden] { display: none; }
.tp-panel ul { list-style: none; margin: 0; padding: 0; }
.tp-row { display: flex; align-items: center; gap: 12px; padding: 9px 18px; cursor: pointer; font-size: 17px; }
.tp-row:hover { background: var(--bg-soft); }
.tp-row input { position: absolute; opacity: 0; pointer-events: none; }
.tp-box { flex: 0 0 24px; width: 24px; height: 24px; box-sizing: border-box; border: 1.5px solid #d1d5db; border-radius: 6px; background: #fff; display: grid; place-items: center; }
.tp-row input:checked + .tp-box { background: #2b2f38; border-color: #2b2f38; }
.tp-row input:checked + .tp-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.tp-row input:focus-visible + .tp-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.tp-reset { position: sticky; bottom: 0; display: block; width: 100%; padding: 13px 18px; border: 0; border-top: 1px solid var(--line); background: #fff; color: #4b5563; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.tp-reset:hover { background: var(--bg-soft); }
.filters-multi { padding: 18px 0 6px; }
.filters-multi .fgroup { margin-bottom: 20px; }
.ftitle { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.ftitle small { font-family: var(--font); font-weight: 400; font-size: 14px; color: var(--muted, #6b7280); margin-left: 6px; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #111827; font: inherit; font-size: 16px; cursor: pointer; }
.fchip:hover { background: var(--bg-soft); }
.fchip.on { background: #f1f3f5; border-color: #111827; color: #111827; }

/* 히어로 */
.hero { position: relative; color: #fff; background: linear-gradient(135deg, #1b3a6b, #2b6cb0 60%, #4aa3df); }
.hero.has-img { background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(10, 20, 40, .42); }
.hero .wrap { position: relative; padding: 88px 0 72px; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 700; }
.hero p { font-size: clamp(16px, 2.2vw, 20px); opacity: .95; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.map-cta { display: block; background: linear-gradient(90deg, #c92a2a, #e03131); color: #fff; text-align: center; font-weight: 700; font-size: clamp(18px, 3vw, 24px); padding: 22px 16px; }
.map-cta:hover { filter: brightness(1.05); }

/* 섹션·카드 */
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 26px; margin: 0; }
.section-head a { color: var(--brand); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid #e3e6eb; border-radius: 20px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 30, 60, .10); border-color: #d3d8e0; }
.thumb { aspect-ratio: 4/3; background: var(--bg-soft) center/cover no-repeat; position: relative; }
.thumb.empty { display: grid; place-items: center; color: var(--muted); font-size: 16px; }
.card-body { padding: 12px 18px 16px; display: grid; gap: 5px; }
.card-no { font-size: 14px; color: #8b929d; text-align: right; }
.card .price { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 21px; line-height: 1.3; word-break: keep-all; }
.tbadge { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.tbadge.sale { color: var(--t-sale); } .tbadge.jeonse { color: var(--t-jeonse); } .tbadge.monthly { color: var(--t-monthly); } .tbadge.yearly { color: var(--t-yearly); } .tbadge.etc { color: var(--muted); }
.card .title { font-size: 17px; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 15px; min-width: 0; }
.card .meta .ic { flex: 0 0 auto; }
.card .meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kwd { display: flex; flex-wrap: wrap; margin-top: 7px; padding-top: 10px; border-top: 1px solid #eef0f3; font-size: 15px; color: #59606b; }
.kwd span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; background: #d3d8e0; margin: 0 10px; vertical-align: -1px; }
.empty-note { text-align: center; color: var(--muted); padding: 48px 0; }

/* 폼 */
.form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 17px; }
.field input[type=text], .field input[type=tel], .field select, .field textarea, .field input[type=file] { width: 100%; padding: 12px 14px; border: 1px solid #cbd2dc; border-radius: 10px; font: inherit; background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
/* 표 모양 양식 (매물접수·상담문의): 왼쪽 회색 칸에 항목 이름, 오른쪽 칸에 입력, 줄로 나눈다 */
.form-table { background: transparent; border: 0; border-top: 1px solid #3f4650; border-radius: 0; padding: 0; box-shadow: none; }
.form-table .field { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 0; margin: 0; border-bottom: 1px solid #e3e6ea; align-items: center; }
.form-table .field > label { align-self: stretch; display: flex; align-items: center; justify-content: center; text-align: center; background: #f4f5f7; font-size: 17px; padding: 16px 12px; }
.form-table .field:has([required]) > label::after { content: "✔"; color: #e11d2e; font-size: 13px; margin-left: 5px; }
.form-table .field > :not(label) { margin: 12px 10px 12px 16px; }
.form-table .field input[type=text], .form-table .field input[type=tel], .form-table .field select { max-width: 340px; padding: 10px 12px; border: 1px solid #dfe3e8; border-radius: 2px; }
.form-table .field textarea { min-height: 280px; padding: 12px; border: 1px solid #dfe3e8; border-radius: 2px; }
.form-table .field input[type=file] { padding: 8px 10px; border: 1px solid #dfe3e8; border-radius: 2px; }
.form-table .consent { margin: 18px 0 0; }
.form-table .btn-wide { display: block; width: 240px; max-width: 100%; margin: 26px auto 0; padding: 16px; }
.narrow.narrow-wide { width: min(1230px, 100% - 32px); }
.form-table .field input, .form-table .field select, .form-table .field textarea { box-sizing: border-box; }
.form-table .field textarea, .form-table .field input[type=file] { width: calc(100% - 26px); }
@media (max-width: 640px) {
  .form-table .field { grid-template-columns: 1fr; }
  .form-table .field > label { justify-content: flex-start; text-align: left; padding: 12px 12px; }
  .form-table .field > :not(label) { margin: 10px 12px; }
  .form-table .field input[type=text], .form-table .field input[type=tel], .form-table .field select,
  .form-table .field textarea, .form-table .field input[type=file] { max-width: none; width: calc(100% - 24px); }
  .form-table .field textarea { min-height: 200px; }
}
.consent { background: var(--bg-soft); border-radius: 10px; padding: 14px; font-size: 16px; color: #374151; margin-bottom: 16px; }
.consent label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; color: #333; }
.consent details { margin-top: 8px; color: var(--muted); }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.alert.err { background: #fff0f0; color: #a61e1e; border: 1px solid #ffc9c9; }
.alert.ok { background: #ebfbee; color: #1e6e2e; border: 1px solid #b2f2bb; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page-title { background: var(--bg-soft); padding: 48px 0; text-align: center; }
.page-title h1 { margin: 0; font-size: clamp(30px, 4.4vw, 42px); color: var(--ink); }
.page-title.has-photo { position: relative; overflow: hidden; color: #fff; padding: 76px 0 68px; background: #1b1f3f var(--photo) center 62%/cover no-repeat; }
.page-title.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20, 23, 63, .84), rgba(30, 74, 69, .62)); }
.page-title.has-photo .wrap { position: relative; }
.page-title.has-photo h1 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.pt-eng { margin: 0 0 8px; font-size: 15px; letter-spacing: .24em; color: rgba(255, 255, 255, .72); }
.pt-sub { margin: 12px 0 0; font-size: 18px; color: rgba(255, 255, 255, .9); }
.sub-tabs { display: flex; gap: 4px; width: max-content; max-width: calc(100% - 32px); margin: -27px auto 0; position: relative; z-index: 2; padding: 6px; background: #fff; border-radius: 999px; box-shadow: 0 8px 26px rgba(20, 30, 60, .14); }
.sub-tabs a { padding: 10px 30px; border-radius: 999px; font-size: 17px; color: #59606b; }
.sub-tabs a:hover { color: var(--brand); }
.sub-tabs a.on { background: var(--brand); color: #fff; }
@media (max-width: 640px) {
  .page-title.has-photo { padding: 52px 0 50px; }
  .pt-sub { font-size: 16px; }
  .sub-tabs a { padding: 9px 22px; font-size: 16px; }
}
.form-note { color: var(--muted); margin: 0 0 14px; }
.form-note a { color: var(--brand); font-weight: 700; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; padding: 36px 0 64px; }

/* 목록 */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 0; }
.filters select, .filters input[type=text] { padding: 9px 12px; border: 1px solid #d9dde3; border-radius: 10px; font: inherit; background: #fff; }
.filters input[type=text] { min-width: min(320px, 100%); }
/* 지역 고르기: 시 상자 + 동/읍/면 체크 목록(시를 고르기 전에는 잠김) */
.tp-btn:disabled { background: #f3f4f6; color: #9aa0a9; cursor: not-allowed; }
.tp-btn:disabled .tp-count, .tp-btn:disabled .tp-caret { color: #9aa0a9; }
.dong-picker .tp-name { display: none; }                     /* 버튼에는 '동/읍/면 전체' / 고른 동 이름만 */
.dong-picker .tp-count { margin-left: 0; color: #333; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dong-picker .tp-caret { margin-left: auto; }
.filters .dong-picker .tp-btn { min-width: 190px; padding: 9px 12px; }
.region-row { display: flex; gap: 8px; }
.region-row > select, .region-row > .tpicker { flex: 1 1 0; min-width: 0; }
.region-row select { padding: 9px 10px; border: 1px solid #d9dde3; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.region-row .tp-btn { max-width: none; padding: 9px 10px; }
.region-row .tp-panel { left: auto; right: 0; max-height: min(400px, 46vh); }   /* 오른쪽 상자라 목록을 오른쪽에 맞춰 열고, 화면 안에서 스크롤 */
@media (max-width: 820px) {                                 /* 폰: 체크 목록을 화면 아래에서 올라오는 판으로 */
  .tpicker .tp-panel, .region-row .tp-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 62vh; z-index: 120; }
}
.count { color: var(--muted); margin-left: auto; }

/* 상세 */
.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 32px 0 56px; }
.gallery .main { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--bg-soft) center/cover no-repeat; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery .thumbs button { flex: 0 0 84px; height: 64px; border: 2px solid transparent; border-radius: 8px; background: center/cover no-repeat; cursor: pointer; padding: 0; }
.gallery .thumbs button.on { border-color: var(--brand); }
.detail h1 { font-size: 26px; }
.detail .price { color: var(--accent); font-weight: 700; font-size: 26px; margin: 6px 0 12px; }
.no { color: var(--muted); font-size: 16px; }
table.spec { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 17px; }
table.spec th, table.spec td { border-top: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
table.spec th { width: 34%; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 1px solid var(--line); }
.desc { white-space: pre-line; padding: 18px; background: var(--bg-soft); border-radius: var(--radius); }
.notice { color: var(--muted); font-size: 15px; }

/* 지도 */
.map-layout { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - var(--header-h) - 1px); }
.map-side { overflow-y: auto; border-right: 1px solid var(--line); padding: 14px; }
.map-side .item { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.map-side .item:hover, .map-side .item.on { background: var(--bg-soft); border-color: var(--line); }
.map-side .item .ph { width: 92px; height: 70px; border-radius: 8px; background: var(--bg-soft) center/cover no-repeat; }
.map-side .t { font-size: 16px; color: #222; line-height: 1.45; }
.map-side .p { color: var(--brand); font-size: 17px; }
.map-side .p, .map-side .t, .map-side .notice { word-break: keep-all; overflow-wrap: anywhere; }
#map { width: 100%; height: 100%; min-height: 360px; }
.leaflet-popup-content img { width: 100%; border-radius: 8px; margin-bottom: 6px; }

/* 지도 핀 (당근 스타일): 매물 = 흰 말풍선(평수), 묶음 = 주황 동그라미(개수) */
.map-wrap { position: relative; height: 100%; min-height: 360px; }
.pin-wrap { background: none; border: 0; }
.pin { position: relative; cursor: pointer; }
.pin-bottom { position: absolute; transform: translate(-50%, -100%); }
.pin-center { position: absolute; transform: translate(-50%, -50%); }
.pin-kakao { position: static; transform: none; }
.pin-bubble { position: relative; background: #fff; color: #374151; font-weight: 700; font-size: 15px; padding: 5px 11px; border-radius: 12px; border: 1px solid #d1d5db; box-shadow: 0 2px 6px rgba(0,0,0,.18); white-space: nowrap; margin-bottom: 8px; }
.pin-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 11px; height: 11px; background: #fff; border-right: 1px solid #d1d5db; border-bottom: 1px solid #d1d5db; transform: translateX(-50%) rotate(45deg); }
.pin-bubble.on, .pin-bubble:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pin-bubble.on::after, .pin-bubble:hover::after { background: var(--accent); border-color: var(--accent); }
.pin-bubble.office, .pin-bubble.office:hover { background: var(--brand); color: #fff; border-color: var(--brand); }   /* 사무소 말풍선: 전화 버튼과 같은 남색 */
.pin-bubble.office::after, .pin-bubble.office:hover::after { background: var(--brand); border-color: var(--brand); }
.pin-cluster { min-width: 44px; height: 44px; padding: 0 6px; border-radius: 50%; background: #ff922b; color: #fff; font-weight: 700; font-size: 20px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pin-cluster:hover { background: #f76707; }
/* 묶음 핀: 청록 동그라미(개수) + 오른쪽 흰 이름표. 지도의 노랑·초록·회색과 잘 구분된다 */
.pin-region { position: relative; display: inline-block; }
.pin-count { position: relative; z-index: 2; display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 6px; box-sizing: border-box; border-radius: 50%; background: #1fbdb3; color: #fff; font-weight: 700; font-size: 20px; border: 3px solid rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.pin-name { position: absolute; z-index: 1; left: 34px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: rgba(255,255,255,.95); color: #1f2937; font-weight: 700; font-size: 16px; padding: 5px 12px 5px 20px; border-radius: 0 16px 16px 0; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.pin-region:hover .pin-count { background: #139a91; }
.count-pill { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 450; background: #1f2937; color: #fff; padding: 10px 26px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); pointer-events: none; }
.count-pill b { color: #ff922b; }
.detail-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); z-index: 500; background: #fff; box-shadow: -8px 0 28px rgba(0,0,0,.18); }
.detail-panel[hidden] { display: none; }
.detail-panel iframe { width: 100%; height: 100%; border: 0; }
.panel-close { position: absolute; top: 10px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; cursor: pointer; }
body.embed .os { padding-bottom: 24px; }

/* 매물 상세 (오일장신문 상세 화면 모양) */
.os { padding-top: 22px; }
.os-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.os-head h1 { font-size: 22px; margin: 0; flex: 1 1 240px; }
.os-tag { color: #fff; font-weight: 700; font-size: 15px; padding: 4px 9px; border-radius: 6px; }
.os-tag.trade { background: var(--t-sale); } .os-tag.type { background: #2f3640; }
.os-tag.trade.jeonse { background: var(--t-jeonse); } .os-tag.trade.monthly { background: var(--t-monthly); } .os-tag.trade.yearly { background: var(--t-yearly); }
.os-area { font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.os-area b { border: 1px solid #ff4d4f; color: #ff4d4f; padding: 3px 10px; border-radius: 4px; min-width: 64px; text-align: center; font-size: 17px; }
.os-area button { border: 1px solid #aaa; background: #fff; border-radius: 6px; padding: 3px 8px; font-size: 14px; cursor: pointer; }
.os-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; padding: 20px 0; }
.os-main { aspect-ratio: 4/3; background: #5a5a5a; position: relative; overflow: hidden; }
.os-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }   /* 사진 전체가 잘리지 않고 틀 안에 들어온다 */
.os-main.empty { color: #ddd; display: grid; place-items: center; }
.os-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }   /* 사진이 몇 장이든 모두 나열한다 */
.os-thumbs button { aspect-ratio: 4/3; position: relative; overflow: hidden; background: #5a5a5a; border: 2px solid transparent; padding: 0; cursor: pointer; }
.os-thumbs button.on { border-color: var(--brand); }
.os-thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.os-info-title { font-size: 19px; color: var(--ink); padding-bottom: 8px; border-bottom: 2px solid var(--brand); }
.os-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.os-table th { background: #f6f7fa; width: 16%; color: #4b5563; font-size: 15px; text-align: center; padding: 10px 4px; border: 1px solid #e3e6ea; }
.os-table td { padding: 10px 12px; border: 1px solid #e3e6ea; word-break: keep-all; color: #222; }
.os-bottom { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 10px 0 24px; }
.os-section-title { font-size: 19px; color: var(--ink); padding-bottom: 8px; border-bottom: 2px solid var(--brand); margin-bottom: 14px; }
.os-desc { white-space: pre-line; text-align: center; line-height: 2; padding: 8px 4px 24px; color: #333; }
.os-office { border: 1px solid #e3e6eb; border-radius: 16px; overflow: hidden; }
.os-office-img { height: 132px; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, #f3f5fa, #e3e8f2); font-size: 56px; overflow: hidden; }
.os-office-img img { position: absolute; inset: 18px 22px; width: calc(100% - 44px); height: calc(100% - 36px); object-fit: contain; }   /* 카드가 넓든 좁든 로고가 틀 안에 맞게 */
.os-office-body { padding: 16px; display: grid; gap: 4px; }
.os-office-body > b { font-size: 19px; color: var(--ink); }
.os-office-body .small { color: var(--muted); font-size: 15px; }
.os-legal { border-top: 1px solid var(--line); padding-top: 22px; }
@media (max-width: 820px) { .os-top, .os-bottom { grid-template-columns: 1fr; } .os-table th { width: 26%; } }

/* 푸터·플로팅 */
.site-footer { background: #14173f; color: #cbd2dc; padding: 36px 0; font-size: 16px; }
.foot-logo { height: 54px; width: auto; margin-bottom: 14px; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer strong { color: #fff; }
.site-footer .copy { margin-top: 16px; color: #8b95a5; }
.float { position: fixed; right: 14px; bottom: 14px; display: grid; gap: 8px; z-index: 60; }
.float a, .float button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; cursor: pointer; font-size: 22px; box-shadow: var(--shadow); }
.float .f-tel { background: var(--brand); color: #fff; } .float .f-kakao { background: #fee500; color: #111; font-size: 15px; font-weight: 700; }
.float .f-yt { background: #ff0033; font-size: 15px; font-weight: 700; } .float .f-top { background: #374151; }

@media (max-width: 820px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; gap: 0; }
  body.nav-open .nav { display: flex; }
  .nav-item > a { padding: 12px 4px; line-height: 1.6; }
  .nav-item > a::after { display: none; }
  .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 12px; }
  .menu-toggle { display: block; margin-left: auto; }
  .bar .tel b { display: none; }               /* 폰에서는 전화기 동그라미만 */
  .bar .tel { margin-left: 0; }
  .detail { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; height: auto; }
  .map-side { max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--line); order: 2; }
  #map { height: 52vh; order: 1; }
}


/* ===== 메인 화면 (스크롤하면 구간이 올라오는 방식) ===== */
.reveal { opacity: 0; transform: translateY(56px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 16px; letter-spacing: -.01em; margin: 0 0 8px; }
.eyebrow.center, h2.center { text-align: center; }

.hero2 { position: relative; width: min(1240px, 100% - 24px); margin: 14px auto 0; min-height: min(80vh, 660px); border-radius: 28px; overflow: hidden;
  background: radial-gradient(900px 500px at 85% 20%, rgba(78, 98, 200, .55), transparent 60%), linear-gradient(135deg, #14173f, #262a66 48%, #1e4a45); }
.hero2.has-img { background: #1b1f3f var(--photo) center/cover no-repeat; }
.hero2.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 20, 52, .30) 0%, rgba(18, 20, 52, .48) 42%, rgba(18, 20, 52, .70) 100%); }
.hero2-logo { position: absolute; z-index: 1; right: 7%; top: 50%; transform: translateY(-50%); width: min(44%, 520px); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35)); }
.hero2-card { position: relative; z-index: 2; margin: 26px; width: min(410px, 100% - 52px); background: #fff; border-radius: 24px; padding: 30px 26px 24px; box-shadow: 0 20px 60px rgba(10, 12, 40, .35); }
.hero2-card h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin: 0 0 6px; color: #111; }
.hero2-card .lead { color: var(--muted); margin: 0 0 18px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tile { border-radius: 18px; padding: 18px 10px 16px; color: #fff; text-align: center; display: grid; gap: 4px; justify-items: center; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20, 23, 63, .25); }
.tile .ic { opacity: .92; margin-bottom: 2px; }
.tile small { opacity: .85; font-size: 14px; }
.tile small, .tile b { word-break: keep-all; }
.tile b { font-size: 20px; line-height: 1.35; }
.t-navy { background: linear-gradient(135deg, #3b4aa8, #262a66); }
.t-green { background: linear-gradient(135deg, #2f7d6f, #1e4a45); }
.outline-btn { display: block; text-align: center; border: 2px solid var(--brand); color: var(--brand); border-radius: 999px; padding: 12px; font-weight: 700; margin-bottom: 14px; }
.outline-btn:hover { background: var(--brand); color: #fff; }
.recent { list-style: none; margin: 0; padding: 12px 14px; background: var(--bg-soft); border-radius: 16px; display: grid; gap: 8px; }
.recent a { display: flex; gap: 12px; font-size: 15px; align-items: baseline; }
.recent .d { color: #8b929d; flex: 0 0 auto; }
.recent .t { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.recent { grid-template-columns: minmax(0, 1fr); }
.recent a:hover .t { color: var(--brand); text-decoration: underline; }

.banners { width: min(1240px, 100% - 24px); margin: 14px auto 0; display: grid; gap: 14px; }
.banner { position: relative; border-radius: 28px; overflow: hidden; color: #fff; padding: clamp(36px, 7vw, 72px) clamp(24px, 6vw, 72px); min-height: 280px; display: flex; flex-direction: column; justify-content: center; gap: 6px; background-size: cover; background-position: center; }
.banner.b1 { background-image: linear-gradient(120deg, rgba(20, 23, 63, .93), rgba(38, 42, 102, .75)), linear-gradient(135deg, #262a66, #3b4aa8); }
.banner.b2 { background-image: linear-gradient(120deg, rgba(20, 58, 52, .93), rgba(30, 74, 69, .75)), linear-gradient(135deg, #1e4a45, #2f7d6f); }
.banner .eyebrow { color: #bcd0ff; } .banner.b2 .eyebrow { color: #a9e5d6; }
.banner h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.3; margin: 0; }
.banner .more { margin-top: 14px; font-weight: 700; opacity: .9; }
.banner:hover .more { text-decoration: underline; }

.search-sec { padding: 84px 0 70px; text-align: center; background: linear-gradient(#fff, #eef1f8 60%, #fff); }
.search-sec h2 { font-size: clamp(24px, 3.6vw, 36px); margin-bottom: 26px; }
.search-sec h2 b { color: var(--brand); }
.search-box { display: flex; max-width: 720px; margin: 0 auto 20px; background: #fff; border-radius: 999px; box-shadow: 0 10px 34px rgba(38, 42, 102, .16); overflow: hidden; border: 1px solid var(--line); }
.search-box input { flex: 1; border: 0; padding: 18px 26px; font: inherit; outline: none; min-width: 0; }
.search-box button { border: 0; background: var(--brand); color: #fff; font-weight: 700; padding: 0 30px; cursor: pointer; font: inherit; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.tags a { color: var(--brand); font-weight: 600; font-size: 16px; }
.tags a:hover { text-decoration: underline; }

.rail-sec { padding: 40px 0 64px; }
.tabs { display: flex; gap: 6px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.rail-wrap { position: relative; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(290px, 78%); scroll-snap-align: start; opacity: 0; transform: translateX(40px); transition: opacity .6s ease calc(var(--i) * 70ms), transform .6s ease calc(var(--i) * 70ms); }
.rail-sec.in .slide { opacity: 1; transform: none; }
.slide[hidden] { display: none; }
.rail-btn { position: absolute; top: 38%; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 26px; line-height: 1; cursor: pointer; color: var(--brand); }
.rail-btn.prev { left: -18px; } .rail-btn.next { right: -18px; }
.link-more { color: var(--brand); font-weight: 700; }

.quick { background: linear-gradient(135deg, #14173f, #262a66 60%, #1e4a45); color: #fff; padding: 84px 0; margin-top: 10px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.quick-logo { width: min(280px, 70%); margin-bottom: 22px; }
.quick-copy h2 { font-size: clamp(26px, 3.6vw, 38px); }
.quick-copy p { opacity: .9; font-size: 19px; }
.quick .form-box { color: var(--ink); }

@media (max-width: 820px) {
  .hero2 { min-height: 0; padding-top: 150px; }
  .hero2-logo { top: 28px; right: 50%; transform: translateX(50%); width: min(240px, 62%); }
  .hero2-card { margin: 0 14px 14px; width: auto; }
  .banner { min-height: 220px; }
  .quick-grid { grid-template-columns: 1fr; gap: 28px; }
  .rail-btn { display: none; }
  .section-head { flex-direction: column; align-items: start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .reveal, .slide { transition: none; opacity: 1; transform: none; } }


/* ===== 소개 문구 · 매물 격자 · 후회없는 선택 띠 · 푸터 ===== */
.intro { position: relative; overflow: hidden; padding: 104px 0 96px; text-align: center; }
.intro::before { content: ""; position: absolute; inset: 0; background: var(--photo) center 65%/cover no-repeat; filter: grayscale(1); opacity: .16; }
.intro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#fff 0%, rgba(255, 255, 255, .55) 38%, rgba(255, 255, 255, .2) 72%, #fff 100%); }
.intro .wrap { position: relative; z-index: 1; }
.eng-label { margin: 0 0 10px; font-size: 15px; letter-spacing: .24em; color: var(--teal); }
.intro h2 { font-size: clamp(32px, 4.8vw, 50px); letter-spacing: -.02em; margin: 0 0 18px; color: #222; }
.intro .hl, .foot-name .hl { color: var(--brand); }
.intro p { color: #5f6672; font-size: 19px; line-height: 2; white-space: pre-line; margin: 0 0 30px; }
.pill-btn { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; padding: 17px 44px; border-radius: 999px; transition: transform .15s, background .15s; }
.pill-btn:hover { background: var(--brand-dark); transform: translateY(-2px); }
.pill-btn.small { padding: 12px 28px; }

.check { padding-bottom: 12px; }
.check-head { position: relative; overflow: hidden; text-align: center; color: #fff; padding: 68px 16px 124px; background: #1b1f3f var(--photo) center/cover no-repeat; }
.check-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 80% 0, rgba(98, 118, 220, .42), transparent 70%), linear-gradient(135deg, rgba(20, 23, 63, .93), rgba(35, 37, 88, .86) 55%, rgba(30, 74, 69, .9)); }
.check-head > * { position: relative; }
.check-head .eng-label { color: #a9e5d6; }
.check-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 6px; }
.check-head p { opacity: .88; margin: 0 0 26px; font-size: 18px; }
.check-head .tabs { justify-content: center; }
.check-head .tabs button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.check-head .tabs button.on { background: #fff; color: var(--brand); border-color: #fff; }
.check-body { margin-top: -78px; position: relative; padding-bottom: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cell { opacity: 0; transform: translateY(40px); transition: opacity .6s ease calc(var(--i) * 70ms), transform .6s ease calc(var(--i) * 70ms); }
.check.in .cell { opacity: 1; transform: none; }
.cell[hidden] { display: none; }
.more-wrap { text-align: center; margin: 30px 0 12px; }
.more-pill { display: inline-block; border: 1px solid #cfd3da; background: #fff; color: #555; padding: 12px 34px; border-radius: 999px; font-weight: 600; }
.more-pill:hover { border-color: var(--brand); color: var(--brand); }

.choice { background: #f3f4f6; padding: 38px 0; margin-top: 30px; }
.choice .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.choice h3 { font-size: 24px; margin: 0 0 4px; }
.choice h3 b { color: var(--brand); }
.choice p { margin: 0; color: var(--muted); }

.site-footer { background: #25272d; color: #a9afba; padding: 52px 0 46px; font-size: 15px; }
.foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-info p { margin: 4px 0; line-height: 1.8; }
.foot-name { font-size: 26px; color: #fff; margin-bottom: 14px; }
.foot-name .hl { color: var(--tint); }
.bar-sep { margin: 0 8px; opacity: .45; }
.site-footer .copy { margin-top: 16px; color: #6f7581; font-size: 14px; }
.foot-tel { text-align: right; }
.foot-tel small { display: block; margin-bottom: 4px; font-size: 16px; color: rgba(255, 255, 255, .55); }
.foot-tel a { font-size: clamp(32px, 4vw, 44px); color: var(--tint); letter-spacing: 0; }

@media (max-width: 980px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } .foot-tel { text-align: left; } .check-head { padding-bottom: 100px; } }


/* ===== 바로가기 슬라이드 (정부24·일사편리 등) ===== */
.linkbar { background: #f3f4f6; padding: 34px 0; margin-top: 30px; }
.linkbar-in { position: relative; padding: 0 34px; }
.lk-view { overflow: hidden; touch-action: pan-y; --vis: 4; padding: 6px 2px 14px; margin: -6px -2px -14px; }
.lk-track { display: flex; gap: 16px; will-change: transform; }
.lk-card { flex: 0 0 calc((100% - 16px * (var(--vis) - 1)) / var(--vis)); height: 96px; background: #fff; border: 1px solid #d9dce1; border-radius: 16px; display: grid; place-content: center; text-align: center; gap: 3px; padding: 8px 12px; transition: border-color .15s, box-shadow .15s; user-select: none; }
.lk-card:hover, .lk-card:focus-visible { border-color: var(--brand); box-shadow: var(--shadow); outline: none; }
.lk-card b { font-size: 20px; letter-spacing: -.02em; color: #222; }
.lk-card small { color: var(--muted); font-size: 14px; }
.lk-card img { max-width: 84%; max-height: 62px; margin: auto; object-fit: contain; }
.lk-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 40px; border: 0; background: transparent; color: #9aa0aa; font-size: 28px; cursor: pointer; z-index: 2; }
.lk-btn:hover { color: var(--brand); }
.lk-btn.prev { left: 0; } .lk-btn.next { right: 0; }
.lk-pause { position: absolute; right: 34px; top: -26px; border: 1px solid #d0d4da; background: #fff; color: #6b7280; width: 28px; height: 22px; border-radius: 11px; font-size: 11px; line-height: 1; cursor: pointer; }
.lk-pause:hover { color: var(--brand); border-color: var(--brand); }
.linkbar-in.static .lk-btn, .linkbar-in.static .lk-pause { display: none; }
.linkbar { padding-top: 46px; }
@media (max-width: 1000px) { .lk-view { --vis: 3; } }
@media (max-width: 820px) { .lk-view { --vis: 2; } .linkbar-in { padding: 0 26px; } .lk-pause { right: 26px; } }

/* ================= 글꼴 쓰임 =================
   어그로체 굵게(700): 큰 제목·가격·전화번호 / 보통(500): 메뉴·버튼·라벨·표 제목·카드 제목 / 가늘게(300): 작은 안내·영어 꼬리말.
   본문·표 값·설명·주소는 나눔고딕 보통 굵기라 오래 읽어도 편하다. 작은 글씨는 굵게 하지 않는다. */
h1, h2, h3, h4, .page-title h1, .section-head h2, .intro h2, .check-head h2, .hero2-card h1, .os-head h1,
.card .price, .map-side .p, .os-area b, .foot-name, .foot-tel a, .tel b, .tile b, .lk-card b, .pin-count, .detail .price {
  font-family: var(--display); font-weight: 700; }
.nav-item > a, .sub a, .btn, .outline-btn, .pill-btn, .more-pill, .chip, .fchip, .tabs button, .sub-tabs a, .tp-btn, .tp-reset, .ftitle,
.os-tag, .os-info-title, .os-section-title, .os-table th, table.spec th, .field label, .card .title, .card .tbadge, .map-side .t,
.pin-bubble, .pin-name, .count-pill, .eyebrow, .os-office-body > b, .section-head a, .link-more, .search-box button, .os-area button {
  font-family: var(--display); font-weight: 500; letter-spacing: 0; }
.eng-label, .pt-eng, .tile small, .card-no, .kwd, .foot-tel small, .lk-card small, .os-area {
  font-family: var(--display); font-weight: 300; }
b, strong { font-weight: 700; }
.nav-item > a { font-size: 18px; }
.os-table th, table.spec th { color: #4b5563; }
.os-desc, .os-table td, .spec td { font-weight: 400; }
.tp-row { font-weight: 400; }
