/* 고홈즈 공통 스타일 — 휴대폰 우선, 태블릿·PC로 확장 */
:root {
  --y: #ffc20e;
  --y-deep: #f2a900;
  --y-soft: #fff6d6;
  --ink: #141414;
  --ink2: #444;
  --mute: #8a8a8a;
  --line: #ececec;
  --bg: #f6f6f3;
  --card: #fff;
  --red: #e5322d;
  --green: #1f9d55;
  --blue: #2563eb;
  --radius: 14px;
  --gutter: 16px;
  --header-h: 56px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 2px 10px rgba(0,0,0,.06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px; line-height: 1.5; word-break: keep-all; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); }
.hidden { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── 헤더 ── */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--line);
}
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header .side { width: 44px; display: flex; }
.header .side.right { justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
/* 헤더 로고: 흰 테두리를 잘라낸 영문 로고(assets/logo-en.png, 384px) */
.brand img { height: 46px; width: 46px; border-radius: 10px; object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.brand .name { font-size: 16px; letter-spacing: -.3px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--y); color: var(--ink);
}
.icon-btn svg { width: 22px; height: 22px; }
.top-nav { display: none; gap: 4px; }
.top-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink2); }
.top-nav a.on, .top-nav a:hover { background: var(--y-soft); color: var(--ink); }

/* ── 현수막 광고 배너 (메인 맨 위) ── */
.hero-banner { margin-top: 14px; }
.hb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; }
.hb-track::-webkit-scrollbar { display: none; }
.hb-item { flex: 0 0 100%; scroll-snap-align: start; display: flex; gap: 14px; align-items: center; background: var(--y); color: var(--ink); padding: 14px; border-radius: 14px; min-width: 0; }
.hb-ph { width: 96px; height: 72px; border-radius: 10px; flex: none; background: #141414 center/cover; }
.hb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hb-info b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-info span { font-size: 13px; }
.hb-info .hb-tag { font-size: 12px; font-weight: 700; }
.hb-go { font-size: 28px; font-weight: 300; }
.hb-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.hb-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d6d6d6; }
.hb-dots i.on { background: var(--ink); width: 18px; border-radius: 4px; }
.sold-pop { position: relative; }
.sold-pop .btn { font-size: 15px; white-space: nowrap; padding: 0 8px; }
.pop-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; background: #f1f1ef; color: var(--ink2); font-size: 16px; }
.sold-msg { background: #f1f1ef; border-radius: 10px; padding: 14px 12px; font-size: 16px; font-weight: 700; line-height: 1.6; color: #333; }
.sold-note { margin-top: 10px; background: #f1f1ef; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink2); }

/* ── PC 메인 지도·미리보기 (휴대폰에서는 숨김) ── */
.home-map, .home-brand { display: none; }
.map-count { position: absolute; left: 12px; top: 12px; z-index: 1000; background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
/* PC 지도 핀 → 지도 위 작은 안내창 */
.map-pop { position: absolute; left: 12px; bottom: 12px; z-index: 1000; width: 420px; max-width: calc(100% - 24px); background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.2); display: flex; gap: 12px; padding: 10px; align-items: center; }
.mp-ph { flex: 0 0 120px; height: 90px; border-radius: 8px; background: #ddd center/cover; }
.mp-info { flex: 1; min-width: 0; }
.mp-p { font-size: 18px; font-weight: 900; }
.mp-t { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-m { font-size: 12px; color: var(--mute); margin-top: 2px; }
.mp-go { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; background: var(--y); padding: 4px 12px; border-radius: 999px; }
.mp-x { position: absolute; right: 8px; top: 6px; color: #999; font-size: 14px; }

/* 메인 매물 카드 줄 (초급매·전속·주목): 휴대폰은 작은 카드 + 카드 위에 겹친 ‹ › 화살표 + 손가락 밀기 */
.home-side { display: none; }
.car-sec .sec-head h2 { font-size: 23px; font-weight: 900; letter-spacing: -.5px; }
.car-sec .sec-head h2 em { font-style: normal; background: linear-gradient(transparent 58%, #ffe27a 58%); }
.car { position: relative; }
.car-track { padding-top: 10px; scroll-padding: 0 var(--gutter); }
.hscroll.car-track > * { flex: 0 0 36%; }
.car-track .card .ph { aspect-ratio: auto; height: 72px; }
.car-track .card .badges { left: 5px; top: 5px; gap: 3px; }
.car-track .card .badge { height: 18px; padding: 0 5px; font-size: 10px; border-radius: 4px; }
.car-track .card .no { display: none; }
.car-track .card .body { padding: 7px 8px 9px; }
.car-track .card .price { font-size: 13px; }
.car-track .card .price .was { display: none; }
.car-track .card .ttl { font-size: 11px; min-height: 0; -webkit-line-clamp: 1; }
.car-track .card .meta { font-size: 10px; margin-top: 2px; }
.car-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 22px; line-height: 1; color: var(--ink); display: grid; place-items: center; padding-bottom: 3px; }
.car-arr.prev { left: -6px; }
.car-arr.next { right: -6px; }
.car-arr.off { display: none; }
.car-hint { text-align: center; font-size: 12px; color: var(--mute); margin: 2px 0 0; }

/* ── 검색 ── */
.search { margin: 16px 0 4px; position: relative; }
.search input {
  width: 100%; height: 48px; border-radius: 999px; border: 2px solid var(--ink);
  padding: 0 52px 0 20px; background: #fff; outline: none;
}
.search button {
  position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--y); display: grid; place-items: center;
}
.search button svg { width: 20px; height: 20px; }

/* ── 섹션 ── */
.sec { padding: 28px 0 8px; }
.sec-head { text-align: center; margin-bottom: 14px; }
.sec-head h2 { font-size: 21px; margin: 0; font-weight: 800; letter-spacing: -.3px; }
.sec-head p { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; }
.more-link { font-size: 14px; color: var(--ink2); font-weight: 600; padding: 8px 0; }
.empty { text-align: center; color: var(--mute); padding: 28px 0; font-size: 14px; }

/* ── 가로 스크롤 카드 ── */
.hscroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: 0 0 75%; scroll-snap-align: start; }

.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: block; position: relative;
}
.card .ph { aspect-ratio: 4 / 3; background: #ddd center/cover no-repeat; position: relative; }
.card .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card .no { position: absolute; right: 10px; top: 10px; }
.card .body { padding: 12px 14px 14px; }
.card .price { font-size: 18px; font-weight: 800; }
.card .price .was { font-size: 13px; color: var(--mute); text-decoration: line-through; font-weight: 500; margin-left: 6px; }
.card .ttl { font-size: 14px; color: var(--ink2); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.card .meta { font-size: 13px; color: var(--mute); margin-top: 6px; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; background: var(--ink); color: #fff;
}
.badge.urgent { background: var(--y); color: var(--ink); }
.badge.excl { background: var(--ink); color: var(--y); }
.badge.feat { background: var(--blue); }
.badge.sold { background: #666; }
.badge.light { background: rgba(255,255,255,.92); color: var(--ink); }
.badge.off { background: #333; color: #fff; }
.badge.sample { background: #fff; color: var(--mute); border: 1px solid var(--line); }

/* ── 최신매물 목록 ── */
.rows { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-height: 88px; align-items: center; }
.row:last-child { border-bottom: 0; }
.row .thumb { width: 72px; height: 72px; border-radius: 10px; flex: none; background: #ddd center/cover; }
.row .info { flex: 1; min-width: 0; }
.row .ttl { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .ttl b { color: var(--mute); font-weight: 600; margin-right: 4px; }
.row .price { font-weight: 800; margin-top: 2px; }

/* ── 소개 ── */
.about { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px 20px; }
.about .tag { display: inline-block; background: var(--y); color: var(--ink); font-weight: 800; padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.about h3 { font-size: 21px; margin: 12px 0 8px; line-height: 1.4; }
.about p { color: #d6d6d6; margin: 0 0 12px; font-size: 15px; }
.about .sign { color: var(--y); font-weight: 700; }
.about .points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.about .points div { background: #222; border-radius: 10px; padding: 12px 6px; text-align: center; font-size: 13px; }
.about .points b { display: block; color: var(--y); font-size: 15px; margin-bottom: 2px; }
.mini-map { height: 200px; border-radius: 12px; overflow: hidden; background: #e8e8e8; margin-top: 4px; }

/* ── 의뢰 3단계 ── */
.steps-box { background: var(--y); border-radius: var(--radius); padding: 24px 20px; }
.steps-box .kicker { font-size: 13px; font-weight: 700; }
.steps-box h3 { font-size: 21px; margin: 4px 0 4px; }
.steps-box > p { margin: 0 0 16px; font-size: 14px; }
.step { display: flex; gap: 12px; background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 8px; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--y); font-weight: 800; display: grid; place-items: center; flex: none; }
.step b { display: block; }
.step span { font-size: 13px; color: var(--ink2); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* ── 버튼·폼 ── */
.btn {
  height: 48px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  background: var(--ink); color: #fff;
}
.btn.y { background: var(--y); color: var(--ink); }
.btn.w { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.red { background: var(--red); color: #fff; }
.btn.sm { height: 36px; font-size: 14px; padding: 0 12px; width: auto; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 20px; height: 20px; }
.form-box { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field > label .req { color: var(--red); }
.field .hint { font-size: 12px; color: var(--mute); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; height: 48px; border: 1px solid #d9d9d9; border-radius: 10px; padding: 0 14px;
  background: #fff; outline: none;
}
.textarea { height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #d9d9d9; background: #fff;
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 40px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }
.linkish { text-decoration: underline; color: var(--ink2); font-size: 13px; padding: 4px; }

/* ── 조건별 검색 타일 ── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile {
  aspect-ratio: 1; border-radius: 12px; position: relative; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px;
  background: var(--ink);
}
.tile .ico { position: absolute; right: 8px; top: 8px; font-size: 26px; opacity: .95; }
.tile b { font-size: 15px; }
.tile span { font-size: 12px; opacity: .85; }

/* ── 하단 정보 ── */
.footer { background: #2b2b2b; color: #bdbdbd; margin-top: 32px; padding: 20px 0 calc(var(--nav-h) + 88px + var(--safe-b)); font-size: 13px; }
.footer .links { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #fff; padding-bottom: 12px; border-bottom: 1px solid #444; margin-bottom: 12px; }
.footer .links a { padding: 4px 0; }
.footer .biz div { padding: 1px 0; }
.footer .biz b { color: #fff; font-size: 14px; display: block; margin-bottom: 4px; }
.footer .copy { margin-top: 12px; color: #888; display: flex; justify-content: space-between; align-items: center; }
.footer .admin-link { color: #777; font-size: 12px; padding: 6px 0; }
.footer .links .admin-link { color: #9a9a9a; font-size: 13px; padding: 4px 0; }
.pc-only { display: none !important; }

/* ── 하단 탭 메뉴 ── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--ink2); }
.bottom-nav a svg { width: 24px; height: 24px; }
.bottom-nav a.on { color: var(--ink); font-weight: 800; }
.bottom-nav a.on svg { color: var(--y-deep); }
.bottom-nav a.center { position: relative; }
.bottom-nav a.center .bubble {
  width: 56px; height: 56px; border-radius: 50%; background: var(--y); display: grid; place-items: center;
  margin-top: -26px; box-shadow: 0 4px 12px rgba(0,0,0,.18); border: 4px solid #fff;
}
.bottom-nav a.center svg { color: var(--ink) !important; }

/* ── 떠 있는 상담 버튼 ── */
.fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + var(--safe-b)); z-index: 55;
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--y);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.fab svg { width: 22px; height: 22px; }

/* ── 간편상담문의 + 최근 상담 문의 목록 ── */
.privacy-note { font-size: 13px; background: var(--y-soft); color: #5c4400; border-radius: 10px; padding: 10px 12px; margin: -4px 0 12px; }
.feed-box { margin-top: 14px; }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 15px; }
.feed-head span { font-size: 13px; color: var(--mute); }
.feed-view { height: 238px; overflow: hidden; }
.feed-list { display: flex; flex-direction: column; gap: 6px; }
.feed-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; min-height: 42px; }
.feed-row .st { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.feed-row .st.ing { background: var(--y); color: var(--ink); }
.feed-row .st.done { background: var(--ink); color: #fff; }
.feed-row .m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.feed-row .w { color: var(--mute); white-space: nowrap; }

/* ── 오른쪽 떠 있는 SNS 버튼 (상담 버튼 위) ── */
.sns-float { position: fixed; right: 22px; bottom: calc(var(--nav-h) + 16px + 56px + 10px + var(--safe-b)); z-index: 55; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sns-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.sns-btn span { display: none; font-size: 11px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.sns-btn svg { width: 22px; height: 16px; }
.sns-yt { border: 2px solid #ff0000; }
.sns-blog { border: 2px solid #d9d9d9; }
.sns-talk { border: 2px solid #fee500; }
.blog-ic { font-style: normal; font-weight: 800; font-size: 10px; color: #fff; background: #03c75a; border-radius: 5px; padding: 1px 4px; }
.talk-ic { font-style: normal; font-weight: 900; font-size: 9px; color: #fee500; background: #3c1e1e; border-radius: 5px; padding: 2px 4px; }
body.on-map .sns-float { display: none; }
/* 관리자 매물 등록: 한 줄에 여러 칸 (동·호, 지하층/지상층, 방향 기준+방향) */
.dongho { display: flex; gap: 6px; align-items: center; }
.dongho .input, .dongho .select { flex: 1; min-width: 0; }
.dongho span { font-size: 14px; color: var(--ink2); white-space: nowrap; }
/* 면적계산기 (평 → ㎡) */
.area-calc { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--mute); flex-wrap: wrap; }
.area-calc .input { width: 90px; height: 32px; padding: 0 8px; font-size: 13px; }
.area-calc b { color: var(--ink); font-size: 13px; min-width: 40px; }
.area-calc button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; }

/* 관리자 매물 등록: 세부관리비 */
.mg-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.mg-row.missing { background: #fff3f3; outline: 2px solid var(--red); outline-offset: -2px; border-radius: 8px; padding: 10px 8px; }
.mg-l { font-weight: 700; font-size: 14px; padding-top: 4px; }
.mg-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mg-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin: 0; cursor: pointer; }
.mg-opt input { width: 18px; height: 18px; accent-color: var(--ink); }
.mg-usage { color: #c0392b; font-weight: 800; }
.mg-note { display: block; background: #fff6d6; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
#mgBox.mg-skip .mg-dep { opacity: .35; pointer-events: none; }
#mgBox.mg-skip .mg-dep .req { display: none; }
@media (max-width: 560px) { .mg-row { grid-template-columns: 1fr; gap: 6px; } }

/* 관리자 매물 등록: 건축물대장 불러오기 */
.bld-filled { background: #fff6d6 !important; border-color: #f0c64a !important; }
.bld-tag { display: inline-block; font-size: 11px; font-weight: 800; background: var(--y); color: var(--ink); padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }
.bld-ok { background: #eaf7ee; border: 1px solid #bfe3c9; color: #1b6b34; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.6; }
.key-notice { background: #fff6d6; border-left: 4px solid var(--y); border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; font-size: 14px; }
.key-notice > b:first-child { display: block; margin-bottom: 2px; }
.key-notice.over { background: #fff3f3; border-left-color: var(--red); }
.bld-none { background: #fff3f3; border: 1px solid #f3c7c7; color: #a11; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
/* 세움터 방식: 왼쪽 분류(건수) · 오른쪽 목록 */
.bld-box { display: grid; grid-template-columns: 140px 1fr; gap: 10px; border: 2px solid var(--y); border-radius: 14px; padding: 12px; background: #fffdf3; }
.bld-total { grid-column: 1 / -1; font-size: 14px; }
.bld-total b { color: #d33; font-size: 17px; }
.bld-tabs { display: flex; flex-direction: column; gap: 8px; }
.bld-tab { border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 10px; text-align: left; color: var(--c); }
.bld-tab span { display: block; font-size: 13px; font-weight: 800; }
.bld-tab b { display: block; text-align: right; font-size: 22px; line-height: 1.1; }
.bld-tab b small { font-size: 13px; }
.bld-tab.zero { opacity: .4; cursor: default; }
.bld-tab.on { background: var(--c); border-color: var(--c); color: #fff; }
.bld-tbl { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; max-height: 380px; min-width: 0; }
.bld-th, .bld-tr { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr .9fr; gap: 6px; padding: 9px 10px; font-size: 13px; align-items: center; text-align: left; }
.bld-th { background: #f6f6f3; font-weight: 800; border-bottom: 1px solid var(--line); }
.bld-rows { overflow-y: auto; }
.bld-tr { width: 100%; border-bottom: 1px solid #f0f0ec; background: #fff; }
.bld-tr:hover { background: #fff7dc; }
.bld-tr.on { background: #cfe5ff; }
.bld-th .r, .bld-tr .r { text-align: right; }
.bld-tr .m { color: #aaa; font-style: normal; }
.bld-empty { padding: 28px 10px; text-align: center; color: var(--mute); font-size: 14px; }
.bld-msg { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .bld-box { grid-template-columns: 1fr; }
  .bld-tabs { flex-direction: row; overflow-x: auto; }
  .bld-tab { min-width: 104px; flex: none; }
  .bld-th, .bld-tr { grid-template-columns: 1fr 1fr 1.2fr .9fr; font-size: 12px; }
}
.bld-pick { border: 2px solid var(--y); border-radius: 12px; padding: 12px; background: #fffdf3; max-height: 360px; overflow-y: auto; }
.bld-opt { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 6px; background: #fff; font-size: 14px; }
.bld-opt:hover { border-color: var(--ink); }
.bld-opt small { color: var(--mute); white-space: nowrap; }

/* 왼쪽 고정 패널(테마 종류 + 공중전화 사진): 가운데 내용 왼쪽에 빈 공간이 있는 넓은 PC에서만 */
.side-panel { display: none; }
@media (min-width: 1860px) {
  /* 지도 아래 카드 줄은 왼쪽 패널과 겹치지 않게 가운데 내용(1200px) 왼쪽 끝에서 시작해요 */
  .home-cars { margin-left: calc((100vw - 1200px) / 2 + 16px - 32px); }
  .side-panel.show { display: flex; flex-direction: column; gap: 16px; position: fixed; left: 32px; top: 112px; width: 280px; z-index: 40; transform-origin: top left; }
  .sp-theme, .sp-emo { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
  .sp-th { background: var(--ink); color: var(--y); text-align: center; font-weight: 800; font-size: 21px; padding: 13px; border-radius: 12px 12px 0 0; }
  .sp-theme a { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 700; color: var(--ink); background: #fff; position: relative; transition: transform .18s ease, box-shadow .18s ease; }
  .sp-theme a:last-child { border-radius: 0 0 12px 12px; }
  /* 테마 줄에 마우스를 올리면 아래 매물 카드처럼 위로 살짝 떠요 */
  .sp-theme a:hover { background: var(--y-soft); transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,.2); border-radius: 8px; z-index: 2; }
  .sp-theme a i { font-style: normal; color: #bbb; }
  .sp-emo { text-align: center; }
  /* 후킹 문구: 글씨를 키우고, 마우스를 올리면 약 1cm 위로 올라가요 (올라가는 건 글씨만이라 마우스가 벗어나도 떨리지 않아요) */
  .sp-emo h3 { margin: 0; padding: 14px 8px 10px; font-size: 25px; line-height: 1.35; word-break: keep-all; }
  .sp-emo h3 span { display: inline-block; position: relative; z-index: 5; border-radius: 12px; padding: 2px 8px; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
  .sp-emo h3:hover span { transform: translateY(-38px); background: var(--y); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
  .sp-ph { display: block; position: relative; aspect-ratio: 1747 / 1240; background: #222; }
  .sp-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s, transform .22s ease, box-shadow .22s ease; transform-origin: left bottom; }
  .sp-ph img.on { opacity: 1; }
  /* 사진에 마우스를 올리면 작은 글씨까지 읽히게 크게 보여요 */
  .sp-ph:hover img.on { transform: scale(2.2); z-index: 30; border-radius: 10px; box-shadow: 0 16px 44px rgba(0,0,0,.5); }
  .sp-dots { display: flex; gap: 6px; justify-content: center; padding: 8px; }
  .sp-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ccc; }
  .sp-dots i.on { background: var(--ink); }
  .sp-call { display: block; margin: 0 12px 12px; background: var(--y); border-radius: 999px; font-weight: 800; padding: 9px; font-size: 18px; color: var(--ink); }
}

/* ── 시트·팝업 ── */
.dim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.dim.center { align-items: center; padding: 16px; }
.sheet {
  background: #fff; width: 100%; max-width: 520px; border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + var(--safe-b)); max-height: 88vh; overflow-y: auto;
}
.sheet h3 { margin: 0 0 14px; font-size: 18px; }
.sheet .opt { display: flex; align-items: center; gap: 12px; height: 56px; border-bottom: 1px solid var(--line); font-weight: 600; width: 100%; text-align: left; }
.sheet .opt:last-child { border-bottom: 0; }
.sheet .opt .oi { width: 36px; height: 36px; border-radius: 50%; background: var(--y-soft); display: grid; place-items: center; }
.sheet .opt .oi svg { width: 20px; height: 20px; }
.popup { width: 90%; max-width: 400px; background: #fff; border-radius: 16px; overflow: hidden; max-height: 86vh; display: flex; flex-direction: column; }
.popup .pbody { overflow-y: auto; }
.promo { aspect-ratio: 1; background: var(--y); padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.promo img { width: 46%; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.promo h3 { margin: 4px 0 0; font-size: 22px; line-height: 1.35; }
.promo .kinds { font-size: 13px; font-weight: 700; background: var(--ink); color: var(--y); padding: 6px 12px; border-radius: 999px; }
.promo .tel { font-size: 24px; font-weight: 900; letter-spacing: .5px; }
.popup .pfoot { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--line); }
.popup .pfoot .check { font-size: 13px; }

/* ── 상세 ── */
.detail { padding-bottom: calc(var(--nav-h) + 80px); }
.gallery { position: relative; background: #111; margin: 0 calc(var(--gutter) * -1); }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .track > div { flex: 0 0 100%; aspect-ratio: 4/3; background: #222 center/contain no-repeat; scroll-snap-align: start; }
.gallery .count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
/* 매물 상세 (휴대폰: 사진 → 가격 카드 → 담당자·사무소 → 매물 정보 → 설명 → 위치) */
.item-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "gal" "side" "main"; }
.ig-gal { grid-area: gal; min-width: 0; }
.ig-side { grid-area: side; min-width: 0; }
.ig-main { grid-area: main; min-width: 0; }
.ig-card { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 12px; }
.ig-card .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ig-card h1 { font-size: 18px; margin: 0 0 6px; line-height: 1.4; }
.ig-card .price { font-size: 23px; font-weight: 900; }
.ig-card .price .was { font-size: 14px; color: var(--mute); text-decoration: line-through; font-weight: 500; margin-left: 6px; }
.ig-card .loc { color: var(--ink2); font-size: 14px; margin-top: 4px; }
.ig-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 13px; color: var(--ink2); border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.ig-btns { gap: 8px; margin-top: 14px; }
.ig-btns .btn { flex: 1; }
.ig-agent { display: flex; gap: 12px; align-items: center; }
.ig-av { width: 52px; height: 52px; border-radius: 50%; background: #f1f0eb; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.ig-sm { font-size: 12px; color: var(--mute); }
.ig-agent b { font-size: 16px; display: block; }
.ig-ph { color: #8a4b34; font-weight: 800; font-size: 15px; }
.ig-office { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; font-size: 13px; line-height: 1.9; color: var(--ink2); }
.ig-office.noag { border-top: 0; margin-top: 0; padding-top: 0; }
.ig-office .ig-on { font-weight: 800; font-size: 15px; color: var(--ink); }
.ig-office > div:not(.ig-on) { display: flex; }
.ig-office span { flex: none; width: 64px; color: var(--mute); }
.ig-office a { color: inherit; }
/* 사진 좌우 화살표 */
.g-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 28px; line-height: 1; display: grid; place-items: center; padding-bottom: 4px; cursor: pointer; z-index: 2; }
.g-arr:hover { background: rgba(0,0,0,.8); }
.g-arr.prev { left: 12px; }
.g-arr.next { right: 12px; }
.g-toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; background: rgba(20,20,20,.9); color: #fff; font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 22px; white-space: nowrap; }
/* 매물 문의하기 + 프린트·공유·링크 */
.ig-btns { display: flex; gap: 6px; margin-top: 14px; }
.ig-btns .ig-ask { flex: 1; display: none; min-width: 0; }
.ig-ib { width: 46px; height: 46px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.ig-ib:hover { background: #f3f2ec; }
.ig-ib svg { width: 20px; height: 20px; fill: none; stroke: #222; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-bar.one { grid-template-columns: 1fr; }
.ask-pop { width: 100%; max-width: 400px; }
.pick-two { display: flex; justify-content: space-around; gap: 12px; }
.pick-two button { background: none; border: 0; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.pick-two .circ { display: flex; width: 64px; height: 64px; border-radius: 50%; background: #f3f2ec; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 8px; }
/* 담당자 칸의 고홈즈 마크 */
.ig-logo { width: 88px; height: 88px; border-radius: 14px; margin-left: auto; flex: none; box-shadow: 0 1px 5px rgba(0,0,0,.2); }
.ig-office.noag .ig-logo { float: right; margin: 0 0 6px 10px; }
.ot-empty { padding: 28px 12px; }
#itemMap { height: 320px; }
#igOthers { min-height: calc(100vh - 520px); }
body.pop-open .dim { z-index: 950; }
body.pop-open .toast { z-index: 960; }
/* 프린트 (A4 2장) */
#printArea { position: absolute; left: -10000px; top: 0; width: 720px; background: #fff; color: #111; font-size: 12px; line-height: 1.5; }
#printArea .pa-head { display: flex; gap: 12px; align-items: center; border-bottom: 2px solid #111; padding-bottom: 8px; }
#printArea .pa-head img { width: 60px; height: 60px; }
#printArea .pa-t { font-size: 16px; font-weight: 800; }
#printArea .pa-p { font-size: 15px; font-weight: 800; }
#printArea h4 { margin: 12px 0 6px; font-size: 14px; }
#printArea .pa-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
#printArea .pa-photos img { width: 100%; height: 150px; object-fit: cover; }
#printArea .uc, #printArea .u2 { display: none; }
#printArea .spec, #printArea .ptable { box-shadow: none; margin: 0 0 6px; }
#printArea .spec > div, #printArea .ptable th, #printArea .ptable td { padding: 3px 6px; font-size: 11px; }
#printArea .spec dd { font-size: 11px; }
#printArea .d-title { margin: 6px 0 2px; font-size: 12px; }
#printArea .pa-desc { white-space: pre-wrap; font-size: 11px; line-height: 1.45; column-count: 2; column-gap: 18px; }
#printArea .pa-map { height: 300px; border: 1px solid #ccc; position: relative; }
#printArea .pa-note { margin: 4px 0 8px; font-size: 11px; color: #555; }
#printArea .pa-office { border-top: 1px solid #111; padding-top: 6px; font-size: 11px; }
@media print {
  @page { size: A4; margin: 10mm; }
  html, body { background: #fff !important; }
  body > *:not(#printArea) { display: none !important; }
  body.pop-open { overflow: visible; }
  #printArea { position: static; left: auto; width: auto; }
  #printArea .pa-break { break-before: page; }
  #printArea .spec { break-inside: auto; }
}
/* 면적 옆 작은 ⟳ 평 / ⟳ ㎡ 버튼 */
.uc { display: inline-flex; align-items: center; margin-left: 6px; border: 1px solid #c9c6bb; border-radius: 12px; background: #faf9f5; padding: 0 7px; height: 20px; font-size: 11px; font-weight: 700; color: #555; vertical-align: 1px; cursor: pointer; }
.uc:hover { background: var(--y); border-color: var(--y); color: #111; }
.u2 { font-size: 11px; color: var(--mute); font-weight: 500; }
/* 관리자: 매물 설명 가운데 자동 [매물정보] */
.desc-auto { background: #f4f7ff; border: 2px solid #2a64d8; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.7; color: #222; min-height: 200px; }
/* 관리자: 매물 수정 날짜 */
.edit-when { display: inline-flex; flex-wrap: wrap; gap: 2px 14px; margin-left: 10px; font-size: 13px; font-weight: 500; color: var(--ink2); vertical-align: 2px; }
.edit-when b { color: var(--ink); }
/* 관리자: 워터마크 */
.wm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.wm-slot { border: 2px dashed #c9c6bb; border-radius: 12px; padding: 12px; text-align: center; background: #faf9f5; }
.wm-slot.on { border: 2px solid var(--y); background: #fffaf0; }
.wm-img { height: 120px; display: flex; align-items: center; justify-content: center; margin: 8px 0; border-radius: 8px; background: #8b8a84; }
.wm-img img { max-width: 90%; max-height: 104px; }
.wm-none { background: none; color: var(--mute); font-weight: 700; }
.wm-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.wm-demo { position: relative; height: 200px; margin-top: 8px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #a4c8e6 0 42%, #63605d 42% 74%, #92918b 74%); color: #fff; font-weight: 700; }
.wm-demo img { width: 40%; max-height: 60%; object-fit: contain; opacity: .6; }
/* 현수막 표시 (사진 왼쪽 위 구석, 작게) */
.row .thumb, .ms-ph { position: relative; }
.bn-tag { position: absolute; left: 4px; top: 4px; z-index: 2; background: rgba(17,17,17,.85); color: var(--y); font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 5px; border-radius: 4px; letter-spacing: -.2px; pointer-events: none; }
.ms-it.bn { border: 2px solid var(--y); }
/* 매물 상세 위쪽 고정 줄: 매물번호 · 이동 탭 · 평/㎡ 변환 · 맨 위로/아래로 */
.ig-bar { position: sticky; top: var(--header-h); z-index: 20; display: flex; align-items: center; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 12px; min-height: 46px; }
.ig-bar.in-pop { top: 0; }
.ig-no { background: #faf9f5; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-weight: 800; font-size: 13px; white-space: nowrap; margin-right: 6px; }
.ig-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.ig-tabs::-webkit-scrollbar { display: none; }
.ig-tabs button { background: none; border: 0; padding: 13px 9px 10px; font-size: 14px; font-weight: 700; color: #555; border-bottom: 3px solid transparent; white-space: nowrap; }
.ig-tabs button.on { color: #8a4b34; border-bottom-color: #8a4b34; }
.ig-tools { margin-left: auto; display: flex; gap: 2px; flex: none; }
.ig-tools button { background: none; border: 0; padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #333; white-space: nowrap; }
.ig-tools button:hover { background: #f3f2ec; }
/* 같은 동 + 같은 종류 다른 매물 */
.ot-kind { font-style: normal; background: var(--y); padding: 0 6px; border-radius: 4px; }
.ot-car { margin-top: 4px; }
.car.fits .car-arr { display: none; }
.ot-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.ot-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d6d4cc; }
.ot-dots i.on { background: #8a4b34; }
/* PC 매물 창 (보던 화면 위 가운데, 뒤는 어둡게) */
#ipop { position: fixed; inset: 0; z-index: 900; }
.ipop-dim { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.ipop-panel { position: absolute; left: 50%; top: 16px; bottom: 16px; width: min(1160px, calc(100vw - 160px)); transform: translateX(-50%); background: var(--bg); border-radius: 14px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 12px 48px rgba(0,0,0,.35); }
.ipop-panel .detail { padding-bottom: 24px; }
.ipop-panel .ig-side { top: 62px; }
.ipop-side { position: absolute; top: 16px; left: calc(50% + min(1160px, calc(100vw - 160px)) / 2 + 14px); display: flex; flex-direction: column; gap: 10px; }
.ipop-side > * { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.ipop-side > *:hover { background: rgba(0,0,0,.5); }
body.pop-open { overflow: hidden; }
body.pop-open #fab, body.pop-open #snsFloat { display: none; }
/* 고객 지도 숫자 묶음 */
.cl { display: flex; align-items: center; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.cl i { font-style: normal; background: #8a4b34; color: #fff; font-weight: 800; font-size: 13px; min-width: 30px; height: 30px; border-radius: 15px; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; padding: 0 7px; position: relative; z-index: 1; }
.cl span { background: #fff; font-size: 13px; font-weight: 700; color: #333; padding: 4px 10px 4px 16px; margin-left: -12px; border-radius: 0 14px 14px 0; white-space: nowrap; }
.cl:hover i { background: #6e3a27; }
.d-head { padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.d-head .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.d-head h1 { font-size: 19px; margin: 0 0 6px; line-height: 1.4; }
.d-head .price { font-size: 24px; font-weight: 900; }
.d-head .price .was { font-size: 14px; color: var(--mute); text-decoration: line-through; font-weight: 500; margin-left: 6px; }
.d-head .loc { color: var(--ink2); font-size: 14px; margin-top: 4px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 12px; overflow: hidden; margin: 16px 0; box-shadow: var(--shadow); }
.spec div { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec dt { font-size: 12px; color: var(--mute); }
.spec dd { margin: 0; font-weight: 700; font-size: 15px; white-space: pre-line; }
.ptable { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border-top: 2px solid var(--ink); }
.ptable th, .ptable td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.ptable th { width: 38%; background: #fafafa; color: var(--ink2); font-weight: 600; }
.ptable td { font-weight: 600; word-break: break-all; }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.d-desc { background: #fff; border-radius: 12px; padding: 16px; white-space: pre-wrap; box-shadow: var(--shadow); }
.d-title { font-size: 16px; font-weight: 800; margin: 20px 0 8px; }
.video { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.d-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 58;
  background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
/* 검색엔진용 글 (서버가 미리 넣어 두고, 화면이 열리면 평소 화면으로 바뀌어요) */
.seo-page { max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter) 40px; font-size: 15px; }
.seo-page h1 { font-size: 22px; margin: 6px 0 10px; }
.seo-page h2 { font-size: 18px; margin: 22px 0 8px; }
.seo-crumb { font-size: 13px; color: var(--mute); margin: 0; }
.seo-price { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.seo-sold { background: var(--y-soft); border-radius: 8px; padding: 8px 12px; }
.seo-table { border-collapse: collapse; width: 100%; max-width: 640px; background: #fff; }
.seo-table th, .seo-table td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; font-size: 14px; }
.seo-table th { width: 120px; color: var(--ink2); }
.seo-desc { white-space: pre-line; }
.seo-list, .seo-tags { padding-left: 18px; }
.seo-list li { margin: 4px 0; }
.seo-list span { color: var(--mute); font-size: 13px; }
.seo-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; height: 44px; font-weight: 600; color: var(--ink2); }

/* ── 지도 검색 ── */
.map-page { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); display: flex; flex-direction: column; background: #fff; }
.map-body { position: relative; flex: 1; min-height: 0; }
.map-view { position: absolute; left: 0; right: 0; top: 0; bottom: 30%; } /* 휴대폰: 아래 목록에 가리지 않아야 지도 가운데가 보이는 화면의 가운데예요 */
.map-page .map { position: absolute; inset: 0; background: #e8e8e8; }
/* 위쪽 탭 + 조건 줄 (휴대폰은 한 화면에 다 들어와요) */
.mf-tabs { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; height: 44px; border-bottom: 1px solid var(--line); background: #fff; position: relative; }
.mf-srch { flex: none; display: flex; align-items: center; width: 30px; height: 30px; border-radius: 15px; background: #f1f1ee; overflow: hidden; }
.mf-srch button { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.mf-srch button svg { width: 16px; height: 16px; }
.mf-srch input { display: none; flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 16px; }
.mf-srch.open { position: absolute; left: 5px; right: 5px; width: auto; z-index: 5; }
.mf-srch.open input { display: block; }
.mf-tab { flex: none; height: 43px; padding: 0 3px; font-size: 12.5px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; border-bottom: 3px solid transparent; }
.mf-tab.on { border-bottom-color: var(--y); font-weight: 800; }
.mf-row { flex: none; padding: 6px 9px; border-bottom: 1px solid var(--line); background: #fff; }
.mf-kr { display: flex; gap: 5px; margin-bottom: 5px; }
.mf-k { height: 28px; padding: 0 10px; border-radius: 14px; font-size: 12px; font-weight: 700; background: #f3f3f0; color: #777; white-space: nowrap; }
.mf-k.on { background: #fff0b8; color: var(--ink); }
.mf-k.on::before { content: "✓ "; font-weight: 800; }
.mf-fr { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.mf-b { height: 32px; min-width: 0; padding: 0 1px; border: 1px solid #d5d4cc; border-radius: 5px; font-size: 12px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-b.open { border-color: var(--ink); font-weight: 800; }
.mf-b.set { background: #fff0b8; border-color: var(--y); font-weight: 800; }
/* 조건 창: 휴대폰은 화면 아래쪽 */
.mf-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1100; background: #fff; box-shadow: 0 -3px 14px rgba(0,0,0,.3); border-radius: 14px 14px 0 0; padding: 14px 16px; max-height: 88%; overflow: auto; }
.mf-pt { display: flex; align-items: center; justify-content: space-between; font-size: 17px; margin-bottom: 6px; }
.mf-x { font-size: 20px; line-height: 1; color: #555; padding: 2px 4px; }
.mf-unit { font-size: 12px; border: 1px solid #ccc; margin-left: 6px; padding: 0 6px; vertical-align: 2px; }
.mf-unit.on { background: var(--ink); color: #fff; }
.mf-rt { text-align: center; font-weight: 800; color: #a56f00; font-size: 14px; }
.mf-bar { height: 34px; margin: 2px 14px 8px; position: relative; touch-action: none; cursor: pointer; user-select: none; }
.mf-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 4px; background: #ddd; border-radius: 3px; }
.mf-fill { position: absolute; top: 15px; height: 4px; background: var(--y); border-radius: 3px; }
.mf-kn { position: absolute; top: 4px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); touch-action: none; cursor: grab; padding: 0; }
.mf-kn:active { cursor: grabbing; background: var(--y); }
.mf-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid #ddd; border-left: 1px solid #ddd; margin-bottom: 10px; }
.mf-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.mf-grid button { height: 35px; font-size: 13px; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; background: #fff; padding: 0; }
.mf-grid button.mid { background: #fff0b8; }
.mf-grid button.end { background: var(--y); font-weight: 800; }
.mf-reset { display: block; margin-left: auto; border: 1px solid #ccc; border-radius: 4px; padding: 3px 9px; font-size: 13px; }
.mf-chk { display: flex; margin: 6px 0; }
.mf-note { border-top: 1px solid #ddd; margin-top: 8px; padding-top: 6px; font-size: 12px; color: var(--mute); }
/* 지도 위: 지역 이름 · 확대 · 도구 */
.mf-pill { position: absolute; left: 50%; transform: translateX(-50%); top: 9px; z-index: 900; display: flex; align-items: center; gap: 4px; max-width: 72%; background: #fff; border: 1px solid #bbb; border-radius: 19px; padding: 4px 10px; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.mf-pill i { font-style: normal; color: #aaa; font-weight: 500; }
.mf-pill em { font-style: normal; background: var(--y); border-radius: 5px; padding: 0 6px; }
.mf-pill .dn { color: #777; }
.mf-pill .si { display: none; }
.mf-zoom { position: absolute; left: 8px; top: 50px; z-index: 900; width: 32px; background: #fff; border-radius: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.3); overflow: hidden; }
.mf-zoom button { display: block; width: 100%; height: 32px; font-size: 18px; padding: 0; }
.mf-zoom button + button { border-top: 1px solid #ddd; }
.mf-tools { position: absolute; right: 8px; top: 50px; z-index: 900; width: 40px; background: #fff; border-radius: 7px; box-shadow: 0 1px 5px rgba(0,0,0,.3); overflow: hidden; }
.mf-tools button { display: block; width: 100%; height: 40px; padding: 0; font-size: 10px; font-weight: 700; line-height: 1.15; border-bottom: 1px solid #eee; }
.mf-tools button b { display: block; font-size: 15px; font-weight: 400; }
.mf-tools button.on { background: var(--y); }
.mf-tools button:last-child { border: 0; }
.mf-meas { position: absolute; left: 50%; transform: translateX(-50%); top: 50px; z-index: 900; background: var(--ink); color: #fff; border-radius: 8px; padding: 5px 11px; font-size: 13px; white-space: nowrap; }
.mf-meas button { color: var(--y); font-weight: 800; margin-left: 6px; padding: 0; }
.mf-rgbox { position: absolute; left: 50%; transform: translateX(-50%); top: 50px; z-index: 950; width: min(420px, 94%); max-height: calc(100% - 60px); overflow: auto; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.3); border-radius: 10px; padding: 11px; }
.mf-rgbox h4 { margin: 4px 0 6px; font-size: 13px; }
.mf-gs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.mf-gs button { border: 1px solid #d5d4cc; border-radius: 13px; padding: 1px 9px; font-size: 13px; background: #fff; }
.mf-gs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mf-rv { position: absolute; inset: 0; z-index: 980; background: #222; }
.mf-rvv { position: absolute; inset: 0; }
.mf-rvx { position: absolute; right: 10px; top: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: #fff; font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.4); padding: 0; }
.bnd-label { background: #fff; border: 1px solid var(--ink); padding: 2px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; margin-bottom: 4px; }
@media (max-height: 700px) { .mf-tools button { height: 34px; font-size: 9px; } .mf-tools button b { font-size: 13px; } }
/* 왼쪽 위 빨간 깜빡임 표시 */
.brand-t { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; height: 46px; padding-top: 1px; line-height: 1.2; } /* 표시 아래쪽을 로고 아래 선에 맞춰요 */
.rec { display: inline-flex; align-items: center; gap: 4px; background: var(--y-soft); border-radius: 999px; padding: 1px 8px 1px 6px; color: var(--ink); font-size: 11px; font-weight: 800; white-space: nowrap; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #e8141c; box-shadow: 0 0 6px 1px #e8141c; animation: recBlink 1s steps(1) infinite; }
@keyframes recBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .12; } }
body.on-map .fab, body.on-map .demo-bar { display: none; }
/* 지도 내부 레이어가 헤더·메뉴 위로 올라오지 않게 */
.map, .mini-map, .pick-map { isolation: isolate; z-index: 0; }
.mini-map, .pick-map { position: relative; }
.map-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1001; background: #fff; border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,.12); height: 30%; display: flex; flex-direction: column; transition: height .25s;
}
.map-sheet.open { height: 75%; }
.map-sheet .grip { padding: 8px 16px 10px; text-align: center; font-weight: 700; font-size: 15px; width: 100%; }
.map-sheet .grip::before { content: ""; display: block; width: 40px; height: 4px; background: #ccc; border-radius: 2px; margin: 0 auto 8px; }
.map-sheet .list { overflow-y: auto; padding: 0 12px 12px; }
.map-sheet .row { border-radius: 10px; }
.pin {
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 8px;
  white-space: nowrap; position: relative; box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: pointer; transform: translateY(-8px);
}
.pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.pin.urgent { background: var(--red); }
.pin.urgent::after { border-top-color: var(--red); }
.pin.on { background: var(--y); color: var(--ink); }
.pin.on::after { border-top-color: var(--y); }
.pin.sold { background: #777; }
.pin.sold::after { border-top-color: #777; }
.pin.office { background: var(--y); color: var(--ink); }
.pin.office::after { border-top-color: var(--y); }
.leaflet-div-icon { background: none !important; border: 0 !important; }
.map-note { position: absolute; left: 12px; bottom: 8px; z-index: 4; font-size: 11px; background: rgba(255,255,255,.9); padding: 2px 8px; border-radius: 6px; color: var(--ink2); }

/* ── 더보기 ── */
.menu-list { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.menu-list a, .menu-list button { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); width: 100%; font-weight: 600; }
.menu-list > :last-child { border-bottom: 0; }
.doc { background: #fff; border-radius: var(--radius); padding: 18px; font-size: 14px; color: var(--ink2); box-shadow: var(--shadow); }
.doc h4 { color: var(--ink); margin: 14px 0 4px; }

/* ── 알림 ── */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 90px + var(--safe-b)); transform: translateX(-50%); z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; max-width: 90%; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.demo-bar { background: #fff3cd; color: #7a5b00; font-size: 12px; text-align: center; padding: 6px 12px; }

/* ── 관리자 ── */
.admin body, body.admin { background: #f2f2ef; }
.login-box { max-width: 400px; margin: 0 auto; padding: 40px var(--gutter); }
.login-box .logo { width: 96px; margin: 0 auto 12px; border-radius: 16px; }
.login-box h1 { text-align: center; font-size: 20px; margin: 0 0 24px; }
.err { color: var(--red); font-size: 14px; min-height: 20px; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.stat { background: #fff; border-radius: 12px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 24px; }
.stat span { font-size: 12px; color: var(--mute); }
.big-btns { display: grid; gap: 8px; }
.big-btns .btn { height: 56px; justify-content: flex-start; padding: 0 18px; }
.admin-row { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.admin-row .top { display: flex; gap: 12px; }
.admin-row .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid .p { aspect-ratio: 1; border-radius: 10px; background: #ddd center/cover; position: relative; }
.photo-grid .p .x { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 28px; text-align: center; }
.photo-grid .p .first { position: absolute; left: 4px; bottom: 4px; }
.photo-grid .p .mv { position: absolute; left: 4px; top: 4px; display: flex; gap: 4px; }
.photo-grid .p .mv button { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 14px; }
.photo-grid .add { aspect-ratio: 1; border-radius: 10px; border: 2px dashed #ccc; display: grid; place-items: center; color: var(--mute); font-size: 13px; text-align: center; background: #fff; }
.pick-map { height: 260px; border-radius: 12px; overflow: hidden; background: #e8e8e8; margin-top: 8px; }
.fieldset { background: #fff; border-radius: var(--radius); padding: 18px 16px 6px; margin-bottom: 12px; box-shadow: var(--shadow); }
.fieldset > h3 { margin: 0 0 14px; font-size: 16px; }
.multi-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.contact-row { display: grid; grid-template-columns: 120px 1fr 1fr 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.row-x { width: 36px; height: 36px; border-radius: 50%; background: #f1f1ef; color: #888; font-size: 15px; }
.add-row { width: 100%; height: 44px; border: 1.5px dashed #c9c9c9; border-radius: 10px; background: #fafafa; color: var(--ink2); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
/* 직원 계정: 직위 · 연락처 · 저장 */
.staff-info { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: center; margin-top: 10px; }
.staff-info .input, .staff-info .select { height: 40px; }
/* 건축물대장상 소유자 현황 줄 [성명][주민번호][주소][지분][변동] ✕ */
.owner-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #e2e2df; }
.owner-row .o-addr { grid-column: 1 / -1; }
.owner-row .row-x { grid-column: 3; grid-row: 1; }
.owner-card { background: #f7f7f4; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; line-height: 1.6; }
.owner-card span { color: var(--ink2); margin-left: 6px; }
.owner-card div { color: var(--ink2); font-size: 13px; }
#dir2Row .row-x { flex: none; }
@media (max-width: 560px) {
  .contact-row { grid-template-columns: 1fr 1fr 40px; }
  .contact-row [data-c="role"] { grid-column: 1 / 3; }
  .contact-row .row-x { grid-column: 3; grid-row: 1; }
}
.unit-input { display: flex; border: 1px solid #d9d9d9; border-radius: 10px; overflow: hidden; background: #fff; }
.unit-input:focus-within { border-color: var(--ink); }
.unit-input .input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.unit-input span { display: flex; align-items: center; padding: 0 14px; background: #f6f6f3; border-left: 1px solid #e6e6e2; font-weight: 600; color: var(--ink2); }
.date-sel { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.date-sel .select { width: auto; flex: 1 1 80px; min-width: 76px; padding: 0 8px; }
.date-sel select[name$="_dkind"] { flex: 1.6 1 120px; }
.date-sel span { font-size: 14px; color: var(--ink2); }
.fac-checks { display: flex; flex-wrap: wrap; gap: 0 14px; }
.fac-checks .check { min-height: 36px; }
.sold-opt { display: block; width: 100%; text-align: left; border: 1px solid #d9d9d9; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.sold-opt b { display: block; font-size: 15px; }
.sold-opt span { font-size: 13px; color: var(--ink2); }
.sold-opt.on { border: 2px solid var(--ink); background: var(--y-soft); }
.field.missing > label { color: var(--red); }
.field.missing .input, .field.missing .select, .field.missing .chips .chip { border-color: var(--red); background: #fff5f5; }
.field.missing::after { content: "필수 입력 항목이에요"; display: block; color: var(--red); font-size: 12px; margin-top: 4px; }
.pick-map.missing { outline: 3px solid var(--red); }
.miss-list { margin: 0; padding: 12px 14px 12px 32px; background: #fff3f3; border-radius: 10px; color: #a11; font-weight: 700; font-size: 15px; line-height: 1.8; max-height: 40vh; overflow-y: auto; }
.save-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + var(--safe-b)); display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; }
.admin-tabs::-webkit-scrollbar { display: none; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eee; font-weight: 700; }
.pill.active { background: #e3f6ea; color: var(--green); }
.pill.hidden-s { background: #eee; color: #666; }
.pill.sold { background: #fde8e8; color: var(--red); }
.pill.draft { background: var(--y-soft); color: #7a5b00; }
.pill.new { background: var(--red); color: #fff; }

/* 좁은 휴대폰: 관리자 헤더에서 이름은 숨기고 버튼만 (이름은 첫 화면 인사에 나와요) */
@media (max-width: 480px) {
  #whoami { display: none; }
}

/* ── 태블릿 ── */
@media (min-width: 768px) {
  .hscroll > * { flex-basis: calc((100% - 24px) / 3); }
  .tiles { grid-template-columns: repeat(5, 1fr); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .rows.grid { display: grid; grid-template-columns: 1fr 1fr; }
  .rows.grid .row:nth-child(odd) { border-right: 1px solid var(--line); }
}
/* ── PC ── */
@media (min-width: 1024px) {
  :root { --nav-h: 0px; }
  .bottom-nav { display: none; }
  .top-nav { display: flex; }
  .header .side { width: auto; }
  .hscroll { overflow: visible; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 4px 0 12px; }
  .hscroll > * { flex: none; }
  .hscroll > :nth-child(n+9) { display: none; }
  .tiles { grid-template-columns: repeat(9, 1fr); }
  .fab { bottom: 24px; right: 34px; width: 64px; height: 64px; font-size: 12px; }
  .fab svg { width: 26px; height: 26px; }
  .sns-float { right: 24px; bottom: calc(24px + 64px + 14px); gap: 12px; }
  .sns-btn { width: 84px; height: 84px; border-width: 4px; }
  .sns-btn span { display: block; font-size: 14px; margin-top: 4px; }
  .sns-btn svg { width: 36px; height: 26px; }
  .blog-ic { font-size: 14px; padding: 2px 7px; }
  .talk-ic { font-size: 12px; padding: 3px 7px; }
  .pc-only { display: inline !important; }
  .consult-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: start; }
  .consult-wrap .feed-box { margin-top: 0; }
  .consult-wrap .feed-view { height: 382px; }
  /* PC 헤더: 화면 양 끝까지 넓게 — 로고는 왼쪽 끝, 메뉴는 로고 옆, 전화는 오른쪽 끝 */
  :root { --header-h: 96px; }
  .header .wrap { max-width: none; padding: 0 32px; justify-content: flex-start; gap: 36px; }
  .header .side.right { margin-left: auto; }
  #adminHeader .wrap { justify-content: space-between; }
  .header .side:empty { display: none; }
  .brand { gap: 12px; }
  .brand img { width: 80px; height: 80px; border-radius: 14px; }
  .brand .name { font-size: 23px; }
  .top-nav { gap: 8px; }
  .top-nav a { font-size: 18px; font-weight: 700; color: #222; padding: 9px 18px; }
  .header .icon-btn { width: 52px; height: 52px; }
  .header .icon-btn svg { width: 26px; height: 26px; }
  /* PC 메인 위쪽(검색창·지도·초급매 칸)도 화면 양 끝까지: 지도는 넓게, 오른쪽 칸은 360px 고정 */
  .home-wide { max-width: none; padding: 0 32px; }
  .home-top { display: grid; grid-template-columns: 1fr 360px; grid-template-rows: 600px; gap: 24px; align-items: stretch; }
  .home-map { display: block; position: relative; min-height: 600px; border-radius: 14px; overflow: hidden; background: #e8e8e8; }
  .home-map #homeMap { position: absolute; inset: 0; isolation: isolate; z-index: 0; }
  /* 지도 옆: 지도에 보이는 매물 목록(사진·번호·제목·종류/면적·가격), 칸 안에서 위아래 스크롤 */
  .home-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; overflow-y: auto; padding: 2px 4px 4px 2px; scrollbar-width: thin; }
  .home-side .empty { margin: auto; padding: 0; }
  .ms-it { display: flex; gap: 10px; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06); flex: none; border: 3px solid transparent; transition: border-color .2s, transform .2s, box-shadow .2s; }
  .ms-it:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,.12); }
  .ms-it.on { border-color: var(--y); }
  .ms-ph { flex: 0 0 104px; height: 80px; border-radius: 8px; background: #ddd center/cover; }
  .ms-tx { min-width: 0; flex: 1; }
  .ms-no { font-size: 12px; color: var(--mute); }
  .ms-t { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 1px 0; }
  .ms-m { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ms-p { font-size: 16px; font-weight: 900; margin-top: 3px; }
  .ms-p .badge { height: 18px; padding: 0 5px; font-size: 11px; border-radius: 4px; margin-right: 4px; vertical-align: 2px; }
  /* 지도 아래 줄도 지도와 같은 칸 — 왼쪽 매물 미리보기(지도 폭), 오른쪽 고홈즈 마크(초급매 칸 아래 360px) */
  .home-bottom { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; margin-top: 16px; }
  /* PC 카드 줄: 4장씩, 화살표는 바깥 양옆, 마우스를 올리면 살짝 올라가요 */
  .home-cars { min-width: 0; max-width: 1200px; }
  .home-cars .sec:first-child { padding-top: 8px; }
  .car-sec .sec-head h2 { font-size: 24px; }
  .car { display: flex; align-items: center; gap: 12px; }
  .car-arr, .car-arr.prev, .car-arr.next { position: static; transform: none; flex: none; width: 44px; height: 44px; font-size: 26px; background: #fff; }
  .car-arr:hover { background: var(--y); }
  .car-arr.off { display: grid; opacity: .3; pointer-events: none; }
  .car-track { flex: 1; min-width: 0; margin: 0; padding: 12px 4px 14px; scroll-padding: 0; display: flex; overflow-x: auto; }
  .hscroll.car-track > *, .hscroll.car-track > :nth-child(n+9) { display: block; flex: 0 0 calc((100% - 36px) / 4); }
  .car-track .card .ph { height: auto; aspect-ratio: 4 / 3; }
  .car-track .card .badges { left: 10px; top: 10px; gap: 6px; }
  .car-track .card .badge { height: 24px; padding: 0 8px; font-size: 12px; border-radius: 6px; }
  .car-track .card .no { display: inline-flex; }
  .car-track .card .body { padding: 12px 14px 14px; }
  .car-track .card .price { font-size: 18px; }
  .car-track .card .price .was { display: inline; }
  .car-track .card .ttl { font-size: 14px; -webkit-line-clamp: 2; min-height: 42px; }
  .car-track .card .meta { font-size: 13px; margin-top: 6px; }
  .car-hint { display: none; }
  .card, .rows .row { transition: transform .25s ease, box-shadow .25s ease; }
  .card:hover { transform: translateY(-8px); box-shadow: 0 14px 28px rgba(0,0,0,.18); }
  .rows .row:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.12); background: #fff; position: relative; z-index: 1; }
  .home-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 0; }
  .home-brand img { width: 200px; height: 200px; border-radius: 22px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
  .home-brand b { font-size: 19px; margin-top: 8px; }
  .home-brand span { font-size: 13px; color: var(--ink2); }
  .home-brand .hb-tel { margin-top: 6px; background: var(--y); color: var(--ink); font-weight: 800; padding: 8px 18px; border-radius: 999px; font-size: 15px; }
  .mobile-only { display: none !important; }
  .footer { padding-bottom: 40px; }
  .toast { bottom: 100px; }
  .map-page { bottom: 0; }
  .map-view { left: 380px; bottom: 0; }
  .map-sheet, .map-sheet.open { left: 0; right: auto; top: 0; width: 380px; height: auto; border-radius: 0; box-shadow: 2px 0 10px rgba(0,0,0,.08); }
  .map-sheet .grip::before { display: none; }
  /* PC: 탭·조건 줄을 넓게, 조건 창은 누른 버튼 바로 아래 */
  .mf-tabs { justify-content: flex-start; gap: 6px; padding: 0 16px; height: 50px; }
  .mf-srch { width: 260px; height: 36px; border-radius: 18px; margin-right: 10px; }
  .mf-srch input { display: block; font-size: 14px; }
  .mf-tab { height: 49px; padding: 0 12px; font-size: 16px; letter-spacing: 0; }
  .mf-row { display: flex; align-items: center; gap: 8px; padding: 8px 16px; }
  .mf-kr { margin: 0; }
  .mf-k { height: 34px; font-size: 14px; padding: 0 13px; border-radius: 17px; }
  .mf-fr { display: flex; gap: 6px; }
  .mf-b { flex: none; height: 34px; padding: 0 11px; font-size: 14px; }
  .mf-b::after { content: " ⌄"; color: #777; }
  .mf-panel { left: auto; right: auto; bottom: auto; width: 420px; border-radius: 4px; box-shadow: 0 3px 14px rgba(0,0,0,.3); max-height: calc(100% - 120px); }
  .mf-panel.small { width: 240px; }
  .mf-pill { top: 12px; padding: 6px 14px; font-size: 15px; gap: 6px; max-width: 80%; }
  .mf-pill .si { display: inline; }
  .mf-zoom { top: 12px; left: 12px; width: 34px; }
  .mf-zoom button { height: 34px; }
  .mf-tools { top: 12px; right: 12px; width: 46px; }
  .mf-tools button { height: 44px; font-size: 11px; }
  .mf-tools button b { font-size: 17px; }
  .mf-meas { top: 58px; }
  .mf-rgbox { top: 58px; max-height: calc(100% - 70px); }
  .brand-t { height: 80px; padding-top: 8px; }
  .rec { font-size: 13px; gap: 5px; padding: 2px 10px 2px 8px; }
  .rec i { width: 10px; height: 10px; }
  .d-bar { left: auto; right: 24px; bottom: 96px; width: 360px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .detail .gallery { margin: 16px 0 0; border-radius: var(--radius); overflow: hidden; }
  .detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
  /* 매물 상세 PC: 왼쪽 사진·정보, 오른쪽 가격·담당자 카드(스크롤해도 따라옴) */
  .item-grid { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); grid-template-areas: "gal side" "main side"; column-gap: 24px; align-items: start; }
  .ig-side { position: sticky; top: calc(var(--header-h) + 16px); margin-top: 16px; }
  .ig-btns .ig-ask { display: block; }
  .detail ~ .d-bar { display: none; }
  .dim { align-items: center; }
  .sheet { border-radius: 20px; }
  .save-bar { left: 50%; transform: translateX(-50%); max-width: 720px; border-radius: 14px 14px 0 0; }
  .admin-main { max-width: 720px; margin: 0 auto; }
}

/* ── 2026-11-06 수정 ── */
.card .price { line-height: 1.3; min-height: 2.6em; }
.ig-card .price { line-height: 1.3; }
.feed-view, .consult-wrap .feed-view { height: 444px; }
.hdr-count { display: none; }
@media (min-width: 1024px) {
  .hdr-count { display: inline-flex; align-items: center; gap: 2px; margin-right: 12px; background: var(--ink); color: var(--y); font-weight: 800; font-size: 16px; padding: 0 18px; height: 44px; border-radius: 999px; white-space: nowrap; }
  .hdr-count em { font-style: normal; color: #fff; font-size: 20px; margin: 0 3px; }
  .hdr-count.hidden { display: none; }
}
.es-tag { position: absolute; left: 4px; bottom: 4px; z-index: 2; background: rgba(17,17,17,.88); color: var(--y); font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 6px; border-radius: 4px; pointer-events: none; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-chip { display: inline-block; background: var(--ink); color: var(--y); font-size: 13px; font-weight: 800; line-height: 22px; padding: 0 8px; border-radius: 6px; vertical-align: 2px; white-space: nowrap; }
.qr-box { width: 200px; min-height: 200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--mute); }
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-text { text-align: left; white-space: pre-wrap; word-break: break-all; background: #f6f6f3; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }

/* 관리자: 첫 화면 숫자 칸, 알림 칸 */
button.stat { border: 0; font: inherit; color: inherit; cursor: pointer; width: 100%; }
a.stat { display: block; color: inherit; }
button.stat.open { outline: 2px solid var(--y); }
.dash-row { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); color: inherit; }
.dash-row .th { width: 58px; height: 58px; border-radius: 8px; flex: none; background: #ddd center/cover; }
.dash-row .tx { flex: 1; min-width: 0; font-size: 14px; }
.dash-row .tt { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push-box { background: var(--y-soft); border-radius: 12px; padding: 12px 14px; margin: 12px 0 0; font-size: 14px; }
.push-box.on { background: #eef9f1; }
.push-box b { display: block; margin-bottom: 2px; font-size: 15px; }
.push-box .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* 관리자: 등록 화면 */
.gr-hint { color: var(--mute); font-weight: 400; font-size: 12px; }
.park-row { display: flex; gap: 8px; align-items: stretch; }
.park-row .input { flex: 1; min-width: 0; }
.park-row .add-row { flex: none; width: auto; margin: 0; padding: 0 12px; white-space: nowrap; }
.park-bldg { margin-top: 8px; }
.park-bldg label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 4px; }
.park-bldg .line { display: flex; gap: 8px; align-items: center; }
.park-bldg .unit-input { flex: 1; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.opt-chips .chip .x { font-style: normal; color: #999; font-size: 12px; padding: 0 2px; }
.opt-chips .chip.on .x { color: #ddd; }
.opt-add { border: 1px dashed #bbb; background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.fac-x { border: 0; background: none; color: #aaa; cursor: pointer; font-size: 12px; padding: 0 2px; }
.memo-dates { background: var(--y-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; line-height: 1.6; }
.memo-dates b { font-weight: 800; }
.viewer-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.viewer-box .check { margin: 4px 0; }

/* 관리자: 매물 관리 줄 */
.owner-btn { flex: none; align-self: flex-start; border: 0; border-radius: 8px; background: #1f9d55; color: #fff; font: inherit; font-size: 13px; font-weight: 800; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.contact-list a { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); color: inherit; }
.contact-list a b { color: #1f9d55; font-size: 17px; margin-left: auto; }
.hist-row { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 13px; }
.hist-row .who { color: var(--mute); margin-bottom: 4px; }
.hist-ch { background: #f8f8f5; border-radius: 8px; padding: 8px 10px; margin-top: 6px; word-break: break-all; }
.hist-ch s { color: var(--mute); }
.hist-ch .btn { margin-top: 6px; }
@media (max-width: 600px) {
  .admin-row .top.ar { flex-wrap: wrap; }
  .admin-row .top.ar .ar-tx { flex: 1 1 calc(100% - 84px); }
  .owner-btn { width: 100%; margin-top: 8px; padding: 11px; font-size: 15px; }
}

/* 관리자: 임장갈곳 */
body.wide-admin .admin-main { max-width: 1400px; }
.vis-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 10px; }
.vis-head h2 { margin: 0; font-size: 20px; }
.vis-legend { font-size: 13px; color: var(--ink2); }
.vis { display: grid; grid-template-columns: 300px 1fr; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.vis-list { padding: 10px; max-height: 720px; overflow: auto; border-right: 1px solid var(--line); }
.vis-it { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; cursor: pointer; color: inherit; }
.vis-it.done { background: #f0faf3; }
.vis-it.on { border: 2px solid var(--y); padding: 8px 10px; }
.vis-it b { font-size: 14px; }
.vis-lb { font-size: 11px; font-weight: 800; margin-left: 5px; white-space: nowrap; }
.vis-lb.r { color: #e53935; }
.vis-lb.g { color: #1f9d55; }
.vis-mapbox { position: relative; min-height: 720px; }
.vis-mapw, #visMap { position: absolute; inset: 0; }
.vis-flag { position: relative; cursor: pointer; line-height: 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.vis-flag svg { width: 36px; height: 44px; display: block; }
.vis-flag.sel svg { width: 48px; height: 58px; }
.vis-flag .vis-lb { position: absolute; left: 100%; top: 4px; margin-left: 2px; line-height: 1.3; background: #fff; border-radius: 4px; padding: 1px 4px; }
.vis-rail { display: none; }
.vis-card { position: absolute; z-index: 20; right: 12px; top: 12px; width: 340px; max-height: calc(100% - 24px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25); padding: 14px; font-size: 14px; }
.vis-card h3 { margin: 0 22px 2px 0; font-size: 16px; word-break: keep-all; }
.vis-card .x { position: absolute; right: 8px; top: 8px; border: 0; background: none; font-size: 18px; cursor: pointer; color: #777; padding: 2px 6px; }
.vis-card .memo { color: var(--ink2); font-size: 13px; white-space: pre-wrap; margin-bottom: 8px; }
.vis-card .chips { margin-bottom: 8px; }
.vis-card .chip[disabled] { opacity: .55; cursor: default; }
.vis-card .lab { font-size: 13px; font-weight: 700; margin: 8px 0 4px; }
.vis-card textarea { width: 100%; height: 190px; resize: vertical; }
.vis-card textarea[readonly] { background: #f3f3f1; }
.vis-card .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vis-go { display: block; text-align: center; background: var(--y); color: var(--ink); font-weight: 800; border-radius: 10px; padding: 11px; }
.vis-note { font-size: 12px; color: var(--mute); margin-top: 8px; }
.vis-draft { background: var(--y-soft); border-radius: 8px; padding: 6px 10px; font-size: 12px; margin-bottom: 8px; }
.vis-addmap { height: 280px; border-radius: 10px; margin: 8px 0; background: #eee; }
@media (max-width: 900px) {
  .vis { grid-template-columns: 1fr; }
  .vis-list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  /* 목록 → 입력칸 → 지도 순서. 지도 위에 손가락이 걸려도 오른쪽 막대로 화면을 움직여요 */
  .vis-mapbox { min-height: 0; position: static; display: flex; flex-direction: column; }
  .vis-mapw { position: relative; inset: auto; }
  #visMap { position: relative; inset: auto; height: 50vh; min-height: 300px; }
  /* 작은 ＋ － : 폭 20px, 세로 약 114px. 누르는 범위는 보이는 크기보다 조금 넓어요 */
  .vis-zoom { position: absolute; left: 6px; top: 6px; z-index: 5; width: 20px; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
  .vis-zoom button { position: relative; display: flex; align-items: center; justify-content: center; width: 20px; height: 19px; padding: 0; font-size: 14px; line-height: 1; color: #333; }
  .vis-zoom button::after { content: ""; position: absolute; inset: -6px -8px 0; }
  .vis-zoom button[data-zout]::after { inset: 0 -8px -6px; }
  .vis-zoom .sl { position: relative; height: 76px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; touch-action: none; cursor: pointer; }
  .vis-zoom .sl::before { content: ""; position: absolute; left: 8px; width: 4px; top: 5px; bottom: 5px; background: #3396ff; border-radius: 2px; }
  .vis-zoom .knob { position: absolute; left: 4px; right: 4px; height: 7px; margin-top: -3px; background: #fff; border: 1px solid #888; border-radius: 2px; pointer-events: none; }
  .vis-card { order: -1; position: relative; right: auto; top: auto; width: auto; max-height: none; margin: 10px; box-shadow: 0 1px 8px rgba(0,0,0,.15); scroll-margin-top: calc(var(--header-h) + 8px); }
  .vis-legend { display: none; }
  body.wide-admin { --header-h: 38px; }
  body.wide-admin .admin-main { padding-right: 28px; }
  body.wide-admin .admin-main .wrap { padding-right: 6px; }
  body.wide-admin #adminHeader .brand { font-size: 14px; gap: 6px; }
  body.wide-admin #adminHeader .brand img { width: 28px; height: 28px; border-radius: 6px; }
  body.wide-admin #adminHeader .btn.sm { height: 28px; font-size: 12px; padding: 0 8px; }
  .vis-rail { display: block; position: fixed; right: 0; top: var(--header-h); bottom: 0; width: 28px; background: rgba(0,0,0,.07); touch-action: none; cursor: pointer; z-index: 40; }
  .vis-thumb { position: absolute; left: 4px; right: 4px; min-height: 60px; background: var(--y); box-shadow: inset 0 0 0 1px #c99700; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
  .vis-thumb svg { width: 16px; height: 44px; display: block; }
}

/* 매물 관리: 가장 최근에 고친 1건은 진한 노랑, 오늘 고친 매물은 연한 노랑 */
.admin-row.rc-latest { background: #ffe680; }
.admin-row.rc-today { background: #fff9db; }
.rc-tag { display: inline-block; background: var(--y); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 18px; padding: 0 7px; border-radius: 5px; margin-left: 2px; }
.rc-tag.latest { background: var(--ink); color: var(--y); }

/* 직원 접속 상태(대표 화면 맨 위)와 직원 기록 */
.w-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #bbb; flex: none; }
.w-dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.22); }
.who-on { display: none; flex: 1; min-width: 0; flex-wrap: wrap; gap: 4px 14px; padding: 0 8px; font-size: 13px; font-weight: 700; overflow: hidden; max-height: 100%; }
.who-on span, .who-on-m span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.who-on span.off, .who-on-m span.off { color: var(--mute); font-weight: 500; }
.who-on-m { display: flex; flex-wrap: wrap; gap: 4px 12px; background: #fff; border-bottom: 1px solid var(--line); padding: 7px 16px; font-size: 13px; font-weight: 700; }
.who-on-m.hidden { display: none; }
@media (min-width: 900px) {
  .who-on { display: flex; }
  .who-on.hidden { display: none; }
  .who-on-m { display: none; }
}
.rec-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 12px; }
.rec-card { background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 13px; box-shadow: var(--shadow); }
.rec-card b { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-bottom: 2px; }
.rec-day { font-weight: 800; margin: 14px 0 4px; font-size: 14px; }
.rec-log { display: flex; gap: 8px; align-items: flex-start; background: #fff; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rec-log time { flex: none; width: 44px; color: var(--mute); font-size: 13px; }
.rec-tag { flex: none; font-size: 11px; font-weight: 800; border-radius: 5px; padding: 1px 7px; background: #eee; white-space: nowrap; }
.rec-tag.in { background: #dff5e5; color: #17803d; }
.rec-tag.out { background: #e6e6e6; color: #555; }
.rec-tag.see { background: #fdeeee; color: #c62828; }
.rec-tag.edit { background: #fff3c4; color: #7a5b00; }
.rec-tx { flex: 1; min-width: 0; word-break: break-all; }
