/* 매슬로우 인더스트리얼 — 고려대 크림슨 테마 */
:root {
  --crimson: #8B0029;        /* 고려대 크림슨 */
  --crimson-dark: #6B0020;
  --crimson-deep: #3A0011;
  --crimson-50: #FAF0F2;
  --crimson-100: #F2D9DF;
  --crimson-200: #E3B3BF;
  --silver: #D6CABC;         /* 고려대 실버 */
  --silver-50: #F7F4F0;
  --ink: #1C1416;
  --ink-2: #4E4447;
  --ink-3: #6E6366;
  --line: #E6DEDA;
  --bg: #FFFFFF;
  --ok: #1E6B3A; --ok-bg: #E5F3EA;
  --warn: #7A5300; --warn-bg: #FFF2CC;
  --danger: var(--crimson); --danger-bg: #FBE3E8;
  --radius: 10px;
  --top-h: 60px;
  --foot-h: 44px;
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
a { color: var(--crimson); }
a:hover { color: var(--crimson-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--crimson-200); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 상단 바 ── */
.top { height: var(--top-h); flex: 0 0 auto; display: flex; align-items: center; gap: 24px; padding: 0 20px; background: var(--crimson); color: #fff; position: relative; z-index: 1000; }
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: #fff; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-a { font-weight: 900; font-size: 20px; letter-spacing: .03em; }
.brand-b { font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--silver); }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { color: #fff; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; white-space: nowrap; opacity: .92; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; opacity: 1; }
.nav-install { border: 1px solid rgba(255,255,255,.55); background: none; color: #fff; font: inherit; font-size: 14px; font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.nav-install .nav-ic { display: none; }
.nav-install:hover { background: rgba(255,255,255,.14); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.18); opacity: 1; font-weight: 700; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-slot, .top-slot > .slot { display: contents; }
.top-actions a, .top-actions button { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; padding: 8px 12px; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.top-actions .solid { background: #fff; color: var(--crimson); border-color: #fff; font-weight: 700; }
.menu-btn { display: none; flex: 0 0 auto; width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; place-items: center; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: rgba(255,255,255,.14); }

/* ── 화면 영역 ── */
#view { flex: 1 1 auto; position: relative; min-height: 0; }
.page { display: none; }
.page.active { display: block; }
.page.fill.active { display: flex; height: calc(100vh - var(--top-h) - var(--foot-h)); min-height: 520px; overflow: hidden; }
.page.scroll { max-width: 1200px; margin: 0 auto; padding: 28px 20px 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 900; }
.page-head p { margin: 0; color: var(--ink-3); }

/* ── 홈 (한 화면, 스크롤 없음) ── */
.home.active { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 20px; height: calc(100vh - var(--top-h) - var(--foot-h)); min-height: 560px; padding: 24px clamp(16px, 4vw, 56px); background: linear-gradient(180deg, var(--crimson-deep) 0, var(--crimson-deep) 46%, var(--silver-50) 46%); overflow: hidden; }
.home-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; color: #fff; }
.home-copy { flex: 1 1 380px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--silver); }
.home h1 { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.22; font-weight: 900; }
.lead { margin: 0; font-size: clamp(13px, 1.25vw, 16px); line-height: 1.6; color: #E9DDE0; max-width: none; white-space: nowrap; }
.home-search { flex: 1 1 440px; min-width: 0; max-width: 100%; }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-auto-rows: 1fr; gap: 14px; min-height: 0; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); min-height: 0; overflow: hidden; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--crimson); color: var(--ink); transform: translateY(-2px); }
.tile .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--crimson-50); color: var(--crimson); flex: 0 0 auto; }
.tile .ic svg { width: 22px; height: 22px; }
.tile h2 { margin: 0; font-size: 17px; font-weight: 900; }
.tile p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.tile .go { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--crimson); }
.tile.primary { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.tile.primary .ic { background: rgba(255,255,255,.16); color: #fff; }
.tile.primary p { color: #F3DDE2; }
.tile.primary .go { color: #fff; }

@media (min-width: 1100px) { .home-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ── 하단 ── */
.foot { height: var(--foot-h); flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 0 20px; font-size: 12px; color: var(--ink-3); border-top: 1px solid #E4CFDB; background: linear-gradient(90deg, #F8E1E8 0%, #EBE3F7 50%, #DCEFF3 100%); overflow-x: auto; white-space: nowrap; }
.foot b { color: var(--ink); }
.foot .foot-note { margin-left: auto; font-size: 11px; color: #6E6366; }
.foot span { color: #6E6168; }

/* ── 공통 부품 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--crimson); color: var(--crimson); }
.btn.primary { background: var(--crimson); border-color: var(--crimson); color: #fff; font-weight: 700; }
.btn.primary:hover { background: var(--crimson-dark); color: #fff; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 5px; font-size: 12px; font-weight: 700; background: var(--silver-50); color: var(--ink-2); }
.chip.deal-매매 { background: var(--crimson); color: #fff; }
.chip.deal-임대 { background: #2E2A44; color: #fff; }
.chip.sample { background: var(--warn-bg); color: var(--warn); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { min-height: 44px; padding: 8px 12px; border: 1px solid #D3C9C5; border-radius: 8px; background: #fff; font-weight: 400; }
.field textarea { min-height: 96px; resize: vertical; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 28px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #F0EAE7; font-size: 15px; }
.kv > div > span:first-child { color: var(--ink-3); }
.kv > div > span:last-child { font-weight: 500; text-align: right; }
.signal { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.signal.ok { background: var(--ok-bg); color: var(--ok); }
.signal.warn { background: var(--warn-bg); color: var(--warn); }
.signal.danger { background: var(--danger-bg); color: var(--danger); }
.signal.info { background: var(--silver-50); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.empty { padding: 28px; text-align: center; color: var(--ink-3); border: 1px dashed #D3C9C5; border-radius: 12px; background: var(--silver-50); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--crimson-50); color: var(--crimson-dark); font-size: 14px; line-height: 1.6; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; min-height: 48px; border: 0; background: transparent; border-bottom: 3px solid transparent; cursor: pointer; color: var(--ink-3); font-weight: 500; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--crimson); font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 2000; }
.toast.show { opacity: 1; }

/* ── 지도 공통 ── */
.map-box { position: relative; flex: 1 1 auto; min-width: 0; min-height: 320px; background: #EDE8E4; }
.map-box .leaflet-container { width: 100%; height: 100%; font-family: inherit; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-3); }
.pin { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 8px; background: var(--crimson); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transform: translate(-50%, -100%); position: relative; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }
.pin.rent { background: #2E2A44; }
.pin.active { background: #000; }
.pin-wrap { background: none !important; border: 0 !important; }
/* 핀은 반드시 지도 좌표로만 움직이게 (다른 화면 CSS가 position 을 바꾸면 핀이 지도와 따로 놂) */
.leaflet-container .leaflet-marker-icon, .leaflet-container .leaflet-marker-shadow { position: absolute !important; }
.marker-cluster div { background: var(--crimson) !important; color: #fff; font-weight: 700; }
.marker-cluster { background: rgba(139,0,41,.25) !important; background: color-mix(in srgb, var(--crimson) 25%, transparent) !important; }
.blur-area { stroke: var(--crimson); fill: var(--crimson); }

/* 홈 검색창: 흰 통 안에 돋보기 아이콘 + 크림슨 버튼 */
.home-search .big-search { gap: 0; padding: 5px; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.home-search .big-search:focus-within { box-shadow: 0 0 0 3px var(--silver), 0 8px 24px rgba(0,0,0,.28); }
.home-search .big-search input { height: 50px; padding: 0 12px 0 42px; border: 0; border-radius: 10px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B0029' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center / 20px 20px; color: var(--ink); outline: none; }
.home-search .big-search input::placeholder { color: #8A7F82; }
.home-search .big-search .btn.primary { height: 50px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--crimson); color: #fff; font-size: 16px; font-weight: 900; }
.home-search .big-search .btn.primary:hover { background: var(--crimson-dark); color: #fff; }

/* WeChat 친구 추가 창 (핸드폰: 아래에서 올라옴 / PC: 가운데) */
.wc-back { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; background: rgba(20,10,12,.45); }
.wc-sheet { width: 100%; box-sizing: border-box; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.wc-head { display: flex; align-items: center; gap: 10px; }
.wc-head strong { flex: 1; font-size: 18px; }
.wc-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #07A355; color: #fff; }
.wc-ic svg { width: 24px; height: 24px; }
.wc-x { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--silver-50); font-size: 18px; cursor: pointer; }
.wc-label { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.wc-id { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: .02em; user-select: all; -webkit-user-select: all; }
.btn.wc-go { min-height: 54px; border: 0; border-radius: 12px; background: #07A355; color: #fff; font-size: 17px; font-weight: 900; }
.wc-steps { margin: 4px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.wc-qr { margin: 2px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wc-qr img { width: 180px; height: 180px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.wc-qr figcaption { font-size: 13.5px; font-weight: 700; color: #07A355; }
.top-actions .top-wc { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #07A355; color: #fff; }
.top-actions .top-wc:hover { background: #05914A; }
.top-wc svg { width: 19px; height: 19px; display: block; }
.top-div { color: rgba(255,255,255,.5); font-size: 20px; line-height: 1; margin: 0 2px; user-select: none; }
@media (max-width: 760px) { .top-actions .top-wc, .top-div { display: none; } } /* 핸드폰은 아래 메뉴의 WeChat 버튼 사용 */
@media (min-width: 761px) {
  .wc-back { align-items: center; justify-content: center; }
  .wc-sheet { max-width: 400px; border-radius: 20px; padding: 20px 22px 24px; }
}
@media (max-height: 700px) { .wc-qr img { width: 140px; height: 140px; } }

/* 로고: 캐릭터 아이콘 + MASLOW KOREA (PC·핸드폰 공통) */
.brand { align-items: center; }
.brand-ic { display: block; flex: 0 0 auto; width: 36px; height: 36px; margin-right: 4px; border-radius: 50%; }
.brand-k { display: inline; font-weight: 900; font-size: 20px; letter-spacing: .03em; color: #fff; }
.brand-b { display: inline; margin-left: 2px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: none; color: var(--silver); }

/* PC 상단: WeChat 버튼이 들어간 만큼 메뉴 간격을 조금 좁힘 (화면이 좁으면 더 좁힘) */
@media (min-width: 761px) {
  .top { gap: 16px; }
  .nav a { padding: 9px 9px; }
  .nav a[data-path="contact"] { display: none; } /* 오른쪽 '상담 신청' 버튼과 중복 */
}
@media (min-width: 761px) and (max-width: 1660px) {
  .nav a { padding: 8px 6px; font-size: 14px; letter-spacing: -0.02em; }
}
@media (min-width: 761px) and (max-width: 1500px) {
  .nav { gap: 0; }
  .nav a { padding: 7px 4px; font-size: 13px; letter-spacing: -0.04em; }
  .top { gap: 8px; padding: 0 12px; }
  .brand-a { font-size: 18px; }
  .top-actions { gap: 4px; }
  .top-actions .top-wc, .top-actions .kakao-btn { width: 30px; height: 30px; }
  .top-wc svg, .kakao-btn svg { width: 17px; height: 17px; }
  .top-div { margin: 0; }
  .top-actions .tr-switch button { min-width: 30px; padding: 2px; }
  .top-actions .tr-switch button svg { width: 24px; height: 16px; }
  .top-actions .solid { padding: 7px 9px; font-size: 13px; }
}
@media (min-width: 761px) and (max-width: 1320px) {
  .nav { align-items: center; }
  .nav a { white-space: nowrap; }
  .brand-ic { width: 30px; height: 30px; }
  .brand-a, .brand-k { font-size: 17px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .brand-b { display: none; } /* 좁은 화면에서만 'Industrial' 생략 */
}
@media (min-width: 761px) and (max-width: 960px) {
  .brand-ic { width: 26px; height: 26px; margin-right: 2px; }
  .brand-a, .brand-k { font-size: 14px; }
  .top { gap: 6px; }
}

/* PC에서는 숨기는 핸드폰 전용 요소 */
.m-short, .m-tiles-title, .m-owner, .m-office, .tabbar, .call-btn, .nav-ic, .nav-note { display: none; }
.foot-l1, .foot-l2 { display: contents; }
.home h1 .h1-a, .home h1 .h1-b { display: block; }
.home h1 .h1-b { margin-top: 6px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; color: var(--crimson-100); }

/* ── 핸드폰 (시안 1: 앱 탭바형) ── */
@media (max-width: 760px) {
  :root { --top-h: 45px; --tab-h: 38px; }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }

  /* 상단: MASLOW KOREA · 전화 · 언어 · ☰ — 폭이 좁은 폰(360px)에서도 ☰까지 다 보이게 */
  .top { gap: 4px; padding: 0 2px 0 12px; }
  .brand { margin-right: auto; gap: 4px; min-width: 0; overflow: hidden; align-items: center; white-space: nowrap; }
  .brand-ic { display: block; flex: 0 0 auto; width: 26px; height: 26px; margin-right: 2px; border-radius: 50%; }
  .brand-a, .brand-k { font-size: clamp(14px, 4vw, 19px); }
  .brand-b { display: none; }
  .brand-k { display: inline; font-weight: 900; letter-spacing: .03em; color: #fff; }
  .menu-btn { display: grid; flex: 0 0 auto; width: 38px; height: 40px; margin: 0 0 0 -2px; }
  .top-actions { gap: 4px; flex: 0 0 auto; }
  .top-actions .solid { display: none; } /* 상담은 아래 고정 메뉴에 있음 */
  .top-actions .call-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: #fff; color: var(--crimson); }
  .call-btn svg { width: 16px; height: 16px; stroke-width: 2.1; }
  .nav-note { display: block; margin: 14px 4px 0; font-size: 11px; color: #8A7F82; text-align: center; }

  /* ☰·더보기: 전체 메뉴를 큰 목록으로 */
  .nav { display: none; position: fixed; top: var(--top-h); left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 1500; flex: none; flex-direction: column; gap: 0;
         overflow-y: auto; padding: 8px 12px 16px; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.2); }
  .nav.open { display: flex; }
  .nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; } /* 목록 끝까지 밀어도 뒤 화면으로 넘어가지 않게 */
  html.menu-open, html.menu-open body { overflow: hidden; height: 100%; }
  html.menu-open #view, html.menu-open .foot { visibility: hidden; } /* 열려 있는 동안 뒤 화면이 비치지 않게 */
  .nav a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 10px; border-bottom: 1px solid #EFE9E6; border-radius: 0; background: none; color: var(--ink); font-size: 18px; font-weight: 700; opacity: 1; white-space: normal; }
  .nav a:hover, .nav a[aria-current="page"] { background: var(--crimson-50); color: var(--crimson-dark); }
  .nav-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: var(--crimson-50); color: var(--crimson); }
  .nav-ic svg { width: 24px; height: 24px; }
  .nav-install { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; margin-top: 8px; padding: 0 10px; border: 0; border-radius: 12px; background: var(--crimson); color: #fff; font-size: 18px; font-weight: 800; text-align: left; }
  .nav-install .nav-ic { display: grid; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; }

  /* 하단 고정 메뉴 */
  .tabbar { display: grid; grid-template-columns: repeat(var(--tabs, 5), minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1600;
            height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0,0,0,.05); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 10px; line-height: 1.15; font-weight: 500; text-decoration: none; cursor: pointer; }
  .tab-ic svg { width: 17px; height: 17px; display: block; }
  .tabbar [aria-current="page"], .tabbar button[aria-expanded="true"] { color: var(--crimson); font-weight: 700; }

  /* 화면 높이: 실제 보이는 화면 높이(var(--app-h, 100vh), 주소창 포함 여부를 브라우저가 계산) */
  .page.fill.active { height: calc(var(--app-h, 100vh) - var(--top-h) - var(--tab-h) - env(safe-area-inset-bottom)); min-height: 0; }
  .foot { display: none; } /* 핸드폰: 회사 정보는 첫 화면에만 (홈의 회사 정보 칸) */

  /* 홈: 스크롤 없이 한 화면에 고정 (머리줄 · 문구 · 검색 · 바로가기 · 접수 띠 · 회사 정보 · 하단 메뉴) */
  body[data-page="home"] { height: var(--app-h, 100vh); overflow: hidden; background: var(--silver-50); }
  /* 지도 화면(매물지도·공장·물류·AI시세 등 꽉 찬 화면): 몸통은 고정 — 지도 위에서 손가락을 움직여도 화면 전체가 위아래로 밀리지 않게 (목록은 그 칸 안에서만 스크롤) */
  body.is-fill { height: var(--app-h, 100vh); overflow: hidden; overscroll-behavior: none; }
  body[data-page="home"] #view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .home.active { display: flex; flex-direction: column; flex: 1 1 auto; height: auto; min-height: 0; padding: 0; gap: 0; background: var(--silver-50); overflow: hidden; }
  .home-hero { flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 16px; background: var(--crimson-deep); }
  .home-copy { flex: none; }
  .home h1 { margin: 0; line-height: 1.28; }
  .home h1 .h1-a { font-size: 26px; font-weight: 900; }
  .home h1 .h1-b { margin-top: 2px; font-size: 19px; }
  .lead, .eyebrow, .home-search .hint { display: none; }
  .home-search { flex: none; }
  .m-tiles-title { display: none; }
  .home-tiles { flex: 1 1 auto; min-height: 0; max-height: 460px; margin: 12px 0 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); grid-auto-rows: 0; gap: 8px; padding: 0 16px; }
  .tile { order: var(--mo, 99); flex-direction: column; justify-content: center; gap: 3px; min-height: 0; padding: 8px 13px; border-radius: 12px; }
  .tile.m-hide { display: none; }
  .tile .ic { width: auto; height: auto; background: none; justify-content: start; }
  .tile.primary .ic { background: none; }
  .tile .ic svg { width: 21px; height: 21px; }
  .tile h2 { font-size: 15.5px; line-height: 1.25; }
  .tile p, .tile .go { display: none; }
  .m-short { display: block; font-size: 12px; line-height: 1.3; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tile.primary .m-short { color: var(--crimson-100); }
  .m-owner { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 34px; margin: auto 16px 0; padding: 0 12px; border-radius: 10px; background: var(--crimson-50); color: var(--crimson-dark); text-decoration: none; font-size: 13px; font-weight: 700; }

  /* 홈 회사 정보 (세 줄, 아주 작게) — 접수 띠 바로 아래 */
  .m-office { display: flex; flex-direction: column; align-items: stretch; gap: 0; flex: 0 0 auto; margin: 6px 16px 0; padding: 5px 8px 4px; border: 1px solid #E4CFDB; border-radius: 10px; background: linear-gradient(90deg, #F8E1E8 0%, #EBE3F7 50%, #DCEFF3 100%); text-align: center; white-space: nowrap; font-size: 8.5px; line-height: 1.35; color: var(--ink-3); }
  .m-office > div { overflow: hidden; }
  .m-office b { color: var(--ink-2); font-weight: 700; }
  .m-office a { color: var(--crimson); font-weight: 700; text-decoration: none; }
  .m-office .sep { margin: 0 5px; color: #C9BFBC; }

  /* 아래 메뉴 WeChat 버튼 + 친구 추가 창 */
  .tabbar .tab-wechat { color: #07A355; font-weight: 700; }

  /* 키가 작은 폰(아이폰 SE 등): 바로가기 칸을 한 줄형으로 더 낮게 (처음 연 높이로 판단) */
  html.short .tile { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  html.short .tile h2 { font-size: 15.5px; }
  html.short .m-short { display: none; }
  html.short .home-hero { gap: 10px; padding: 14px 16px 16px; }
  html.short .home h1 .h1-a { font-size: 23px; }
  html.short .home h1 .h1-b { font-size: 17px; }

  /* 화면이 옆으로 밀리거나 출렁이지 않게: 머리줄은 위에 고정, 아래 메뉴도 고정, 가운데만 스크롤 */
  html, body { overflow-x: clip; } /* 옆으로 밀리지 않게 — clip은 위아래 스크롤을 막지 않음 */
  html { overscroll-behavior-y: none; }
  body { touch-action: manipulation; }
  .top { position: sticky; top: 0; }

  /* 손가락으로 누르기 쉬운 크기 */
  .btn.sm { min-height: 42px; }
  input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--crimson); }
  label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { min-height: 44px; display: flex; align-items: center; gap: 10px; }
  .page.scroll { padding: 20px 16px 32px; }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 15px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; } /* 아이폰에서 입력할 때 화면이 확대되지 않게 */
}

/* ── 인쇄 (브리핑자료 A4) ── */
.print-btn { gap: 6px; }
.print-ic { display: inline-flex; }
#print-root { position: fixed; left: -20000px; top: 0; z-index: -1; background: #fff; }
.pr-sheet { box-sizing: border-box; font-family: 'Noto Sans KR', system-ui, sans-serif; color: #1C1416; font-size: 12.5px; line-height: 1.55; }
.pr-band { display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 18px; background: var(--crimson); color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-brand { font-weight: 900; font-size: 18px; letter-spacing: .06em; }
.pr-brand-ko { font-size: 12px; color: var(--crimson-100); }
.pr-band-r { text-align: right; font-size: 11.5px; color: var(--crimson-100); }
.pr-band-r div:first-child { color: #fff; font-weight: 700; font-size: 13px; }
.pr-title { margin: 16px 0 2px; font-size: 20px; font-weight: 900; }
.pr-sub { margin: 0; color: #4E4447; }
.pr-agent { margin: 6px 0 0; padding: 6px 10px; background: var(--crimson-50); border-radius: 6px; font-size: 12px; color: var(--crimson-dark); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-fig { margin: 12px 0 0; }
.pr-map { position: relative; width: 100%; height: 300px; border: 1px solid #D3C9C5; border-radius: 6px; overflow: hidden; background: #EDE8E4; }
.pr-map .leaflet-control-zoom, .pr-map .leaflet-control-layers { display: none !important; }
.pr-map .leaflet-control-attribution { font-size: 9px; }
/* 지도 출처 표시: 왼쪽 위 끝 (배너와 ➕ 확대 단추 사이) */
.map-box .leaflet-top.leaflet-left { display: flex; flex-direction: column; align-items: flex-start; }
.map-box .leaflet-top.leaflet-left .leaflet-control-attribution { margin: 0; clear: none; float: none; border-radius: 0 0 6px 0; padding: 1px 6px; font-size: 10px; line-height: 1.5; white-space: nowrap; background: rgba(255,255,255,.82); }
.map-box .leaflet-top.leaflet-left .leaflet-control-zoom { margin-top: 6px; }
.pr-label { font-size: 11px; font-weight: 700; padding: 2px 6px; }
.pr-fig figcaption { font-size: 11px; color: #6E6366; margin-top: 4px; }
.pr-map-missing, .pr-map-note { padding: 10px; font-size: 11px; color: #6E6366; }
.pr-map-note { position: absolute; left: 6px; bottom: 6px; background: #fff; padding: 2px 6px; z-index: 500; }
.pr-sec { margin-top: 14px; }
.pr-sec h2 { break-after: avoid; }
.pr-sec .kv > div, .pr-sec tr, .pr-sec .risk-row, .pr-sec .au-flag { break-inside: avoid; }
.pr-map.map-box { min-height: 0; }
.pr-sec h2 { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--crimson); font-size: 14px; }
.pr-sec .card { border: 1px solid #E6DEDA; padding: 10px; border-radius: 6px; box-shadow: none; }
.pr-sec .kv { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.pr-sec .kv > div { padding: 5px 0; font-size: 12px; border-bottom: 1px solid #EEE7E3; }
.pr-sec table { width: 100%; border-collapse: collapse; font-size: 11px; }
.pr-sec th, .pr-sec td { border-bottom: 1px solid #E6DEDA; padding: 4px 6px; text-align: left; white-space: normal; }
.pr-sec th { background: #F7F4F0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-sec .tbl { overflow: visible; }
.pr-sec img { max-width: 100%; }
.pr-sec h3, .pr-sec h4 { font-size: 13px; margin: 8px 0 4px; }
.pr-sec .empty { padding: 8px; border: 0; background: none; text-align: left; }
.pr-source { margin: 14px 0 0; font-size: 11px; color: #6E6366; }
.pr-disc { margin-top: 10px; padding: 8px 10px; border: 1px solid #E3B3BF; border-left: 3px solid var(--crimson); border-radius: 4px; font-size: 10.5px; color: #4E4447; break-inside: avoid; }
.pr-disc p { margin: 2px 0 0; }
.pr-foot-note { margin-top: 2px; font-size: 9px; color: #9A8F92; }
.pr-foot { margin-top: 12px; padding-top: 6px; border-top: 1px solid #E6DEDA; font-size: 10px; color: #6E6366; }
@page { size: A4; margin: 12mm; }
@media print {
  body, body.is-fill, body[data-page="home"] { display: block; height: auto !important; min-height: 0; overflow: visible !important; background: #fff; } /* 핸드폰 고정 화면 규칙이 인쇄를 한 장으로 자르지 않게 */
  body > *:not(#print-root) { display: none !important; }
  #print-root { position: static; left: auto; z-index: auto; }
  .pr-sheet { width: 100% !important; }
  .signal, .chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── 관리자 모드 (숨은 입구: 하단 회사 정보 5번) ── */
.ad-wrap { position: relative; display: inline-flex; }
.ad-wrap[hidden] { display: none; }
.top-actions .ad-badge { height: 28px; line-height: 1; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #FFD27A; border-radius: 999px; background: #FFD27A; color: #4A2A00; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ad-badge .ad-ic { display: none; }
.ad-badge .ad-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.ad-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1300; display: flex; flex-direction: column; min-width: 150px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.ad-menu[hidden] { display: none; }
.top-actions .ad-menu a, .top-actions .ad-menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.top-actions .ad-menu a:hover, .top-actions .ad-menu button:hover { background: #F6EEF0; }
.ad-sheet { gap: 12px; }
.ad-sheet input { width: 100%; box-sizing: border-box; }
@media (max-width: 760px) {
  .top-actions .ad-badge { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 50%; }
  .ad-badge .ad-tx { display: none; }
  html.is-admin .top-actions .call-btn { display: none; } /* 관리자 로그인 중에는 전화 버튼 대신 관리자 버튼 */
  .ad-badge .ad-ic { display: inline-flex; }
}
@media print { .ad-wrap { display: none !important; } }

/* 카카오톡 채널 바로가기 (상단) */
.top-actions .kakao-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #FEE500; color: #3A1D1D; }
.top-actions .kakao-btn:hover { background: #F5DC00; }
.kakao-btn svg { width: 20px; height: 20px; display: block; }
@media (max-width: 760px) {
  .top-actions .kakao-btn { width: 30px; height: 30px; border-radius: 9px; }
  .kakao-btn svg { width: 18px; height: 18px; }
}
@media print { .kakao-btn { display: none !important; } }

/* PC 첫 화면 칸 영상 (마우스를 올리면 재생) */
.tile.has-vid { position: relative; isolation: isolate; border-color: transparent; background: #2A1E21; color: #fff; }
.tile.has-vid .tile-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); transition: transform .6s ease; }
.tile.has-vid .tile-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,10,14,.50) 0%, rgba(20,10,14,.55) 50%, rgba(20,10,14,.85) 100%); transition: background .3s; }
.tile.has-vid:hover { color: #fff; border-color: var(--crimson); }
.tile.has-vid:hover .tile-vid { transform: scale(1.07); }
.tile.has-vid:hover .tile-shade { background: linear-gradient(180deg, rgba(20,10,14,.38) 0%, rgba(20,10,14,.40) 50%, rgba(20,10,14,.80) 100%); }
.tile.has-vid h2 { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.tile.has-vid p { color: rgba(255,255,255,.88); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.tile.has-vid .ic { background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tile.has-vid .go { color: #fff; }
.tile.has-vid.primary { background: var(--crimson); }
.tile.has-vid.primary .tile-shade { background: linear-gradient(180deg, rgba(139,0,41,.35) 0%, rgba(110,0,32,.75) 100%); }
@media (max-width: 760px) { .tile .tile-vid, .tile .tile-shade { display: none; } }

@media print { .tile-vid, .tile-shade { display: none !important; } }

/* 지도 핀 (물방울 + 아이콘) · 범례 — 물류센터·전국공장검색 공통 */
.pin2 { display: block; transform: translate(-50%, -100%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); cursor: pointer; }
.pin2.flash { animation: pin2-flash 1.2s ease 2; }
@keyframes pin2-flash { 50% { filter: drop-shadow(0 0 8px #FFD400) brightness(1.3); transform: translate(-50%, -110%) scale(1.15); } }
.map-legend { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.95); box-shadow: 0 1px 6px rgba(0,0,0,.25); font-size: 12px; color: var(--ink); line-height: 1.3; }
.map-legend strong { font-size: 12px; margin-bottom: 2px; }
.map-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.map-legend i { display: inline-grid; place-items: center; min-width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); font-style: normal; }
.map-legend i.t, .map-legend i.icd { transform: none; border-radius: 3px; padding: 0 3px; height: 14px; font-size: 9px; font-weight: 800; }
.map-legend i.t { background: #F2B705; color: #1C2B4A; }
.map-legend i.icd { background: #9BE15D; color: #0F5132; }
.map-legend i.kic { background: #fff; border: 2px solid #FFD400; box-sizing: border-box; }
.map-legend-tg { display: none; }
@media (max-width: 760px) {
  .map-legend { font-size: 11px; padding: 6px 8px; gap: 2px; }
  .fc-legend .map-legend-tg { display: block; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
  .fc-legend.closed > :not(.map-legend-tg) { display: none; }
}
/* 숫자 묶음 (도넛) */
.donut { display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: pointer; }
.donut span { display: grid; place-items: center; width: 66%; height: 66%; border-radius: 50%; background: #fff; color: #1C1416; font-weight: 800; line-height: 1; }
.donut:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 2px 8px rgba(0,0,0,.35); }

/* 첫 화면 검색칸 아래 강조 띠 (공장매입지원정보 등) */
.hero-band { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 16px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(100deg, #F6C744 0%, #F2B705 45%, #E89B00 100%); color: var(--crimson-deep); box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s ease, box-shadow .15s ease; }
.hero-band:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.3); color: var(--crimson-deep); }
.hb-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--crimson-deep); color: #F6C744; }
.hb-ic svg { width: 20px; height: 20px; }
.hb-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.hb-t b { font-size: 16px; font-weight: 900; letter-spacing: -.01em; }
.hb-t small { font-size: 12.5px; font-weight: 600; color: #5A1A24; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-go { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--crimson-deep); color: #fff; font-weight: 900; }
@media (max-width: 760px) {
  .hero-band { margin-top: 10px; padding: 7px 10px; gap: 10px; border-radius: 10px; }
  .hb-ic { width: 30px; height: 30px; border-radius: 8px; }
  .hb-ic svg { width: 17px; height: 17px; }
  .hb-t b { font-size: 14.5px; }
  .hb-t small { font-size: 11px; }
  .hb-go { width: 26px; height: 26px; font-size: 13px; }
}
@media print { .hero-band { display: none; } }

/* 핸드폰 첫 화면 칸: 기능마다 어울리는 색 (크림슨 계열 브랜드와 조화) */
@media (max-width: 760px) {
  .tile[data-tile] { --tc: var(--crimson); --tb: #fff; border-color: color-mix(in srgb, var(--tc) 22%, #fff); background: linear-gradient(150deg, var(--tb) 0%, var(--tb) 50%, #fff 100%); }
  .tile[data-tile] .ic { color: var(--tc); }
  .tile[data-tile]::after { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tc); }
  .tile[data-tile] { position: relative; }
  .tile[data-tile="map"] { --tc: #FFFFFF; }
  .tile[data-tile="map"]::after { display: none; }
  .tile[data-tile="lookup"] { --tc: #1F5FA8; --tb: #EAF2FC; }
  .tile[data-tile="factories"] { --tc: #4A5A6A; --tb: #EEF1F4; }
  .tile[data-tile="logistics"] { --tc: #0E7C7B; --tb: #E6F5F4; }
  .tile[data-tile="auction"] { --tc: #6B3FA0; --tb: #F2ECF9; }
  .tile[data-tile="finance"] { --tc: #B4690E; --tb: #FCF2E3; }
  .tile[data-tile="valuation"] { --tc: #2E7D4F; --tb: #EAF6EF; }
  .tile[data-tile="unipass"] { --tc: #1F3A5F; --tb: #E8EFF8; }
  .tile[data-tile="funds"] { --tc: #A07800; --tb: #FDF7E1; }
  .tile.primary[data-tile] { background: var(--crimson); border-color: var(--crimson); }
  .tile:active { transform: scale(.98); }
}

/* ── 핸드폰 첫 화면만: 한 화면에 딱 고정 + 폰 크기에 맞춰 글씨·칸 크기 자동 조절 ── */
@media (max-width: 760px) {
  html.pg-home, html:has(body[data-page="home"]) { height: 100%; overflow: hidden; overscroll-behavior: none; }
  body[data-page="home"] { position: fixed; top: 0; left: 0; right: 0; bottom: auto; width: 100%; min-height: 0; height: var(--app-h, 100vh); box-sizing: border-box; overflow: hidden; overscroll-behavior: none; }
  /* 바로가기 칸은 글씨 크기는 그대로, 칸 높이만 화면에 맞춰 줄어듦 → 회사 정보까지 항상 보임 */
  body[data-page="home"] .home-tiles { flex: 1 1 0; min-height: 0; }
  body[data-page="home"] .tile { min-height: 0; overflow: hidden; }
  body[data-page="home"] .m-owner, body[data-page="home"] .m-office { flex-shrink: 0; }
  body[data-page="home"] .home.active, body[data-page="home"] .tabbar, body[data-page="home"] .top > .brand { touch-action: none; } /* 끌어도 화면이 위아래로 움직이지 않게 (누르기는 그대로) */
  body[data-page="home"] .home-search input { touch-action: manipulation; }

  .home-hero { gap: clamp(8px, calc(var(--app-h, 100vh) * 0.014), 12px); padding: clamp(10px, calc(var(--app-h, 100vh) * 0.017), 16px) 16px clamp(12px, calc(var(--app-h, 100vh) * 0.019), 18px); }
  .home h1 .h1-a { font-size: clamp(20px, min(6.7vw, calc(var(--app-h, 100vh) * 0.031)), 30px); }
  .home h1 .h1-b { font-size: clamp(15px, min(4.9vw, calc(var(--app-h, 100vh) * 0.0225)), 22px); }
  /* 주소정보조회 칸: 기존(60px)보다 낮게, 공장매입지원정보 띠보다는 높게 */
  .home-search .big-search { padding: 4px; border-radius: 12px; }
  .home-search .big-search input { height: clamp(42px, calc(var(--app-h, 100vh) * 0.054), 50px); padding-left: 38px; background-position: 12px 50%; font-size: clamp(13px, 3.8vw, 15px); }
  .home-search .big-search .btn.primary { height: clamp(42px, calc(var(--app-h, 100vh) * 0.054), 50px); padding: 0 clamp(12px, 4vw, 18px); font-size: clamp(14px, 4vw, 16px); }
  .hb-t b { font-size: clamp(13px, 3.8vw, 16px); }
  .hb-t small { font-size: clamp(10px, 2.9vw, 12px); }

  .home-tiles { margin: clamp(8px, calc(var(--app-h, 100vh) * 0.014), 14px) 0 clamp(6px, calc(var(--app-h, 100vh) * 0.012), 12px); gap: clamp(6px, calc(var(--app-h, 100vh) * 0.01), 10px); }
  .tile .ic svg { width: clamp(17px, calc(var(--app-h, 100vh) * 0.026), 24px); height: clamp(17px, calc(var(--app-h, 100vh) * 0.026), 24px); }
  .tile h2, html.short .tile h2 { font-size: clamp(14px, 4.1vw, 17px); }
  .m-short { font-size: clamp(11px, 3.1vw, 13px); }
  .m-owner { min-height: clamp(30px, calc(var(--app-h, 100vh) * 0.04), 38px); font-size: clamp(12px, 3.4vw, 14px); }
  .m-office { font-size: clamp(8.5px, 2.4vw, 10px); }
}

/* ── 오른쪽 스크롤 도우미 ── */
.scroll-rail { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 1200; display: none; flex-direction: column; align-items: flex-end; gap: 6px; }
.scroll-rail.on { display: flex; }
.sr-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #E4D6DA; border-radius: 12px; background: rgba(255,255,255,.94); color: var(--crimson); font-size: 15px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(60,0,20,.14); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sr-btn.sr-sm { height: 30px; font-size: 13px; color: var(--ink-2); }
.sr-btn:hover:not(:disabled) { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.sr-btn:disabled { opacity: .35; cursor: default; }
.sr-toc[aria-expanded="true"] { background: var(--crimson); color: #fff; }
.sr-list { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); width: 230px; max-height: 70vh; overflow-y: auto; display: flex; flex-direction: column; padding: 6px; border: 1px solid #E4D6DA; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(60,0,20,.2); }
.sr-list[hidden] { display: none; }
.sr-list button { padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.sr-list button:hover { background: var(--crimson-50, var(--crimson-50)); color: var(--crimson); }
@media (max-width: 760px) {
  .scroll-rail { right: 8px; top: auto; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); transform: none; gap: 5px; }
  .sr-btn { width: 36px; height: 36px; font-size: 13px; }
  .sr-btn.sr-sm { display: none; }
  .sr-list { top: auto; bottom: 0; transform: none; right: 44px; width: 210px; max-height: 60vh; }
}
@media print { .scroll-rail { display: none !important; } }

/* PC 상단 메뉴: 줄바꿈 없이 한 줄, 창 폭에 맞춰 글씨 크기 자동 (core.js fitNav) */
@media (min-width: 761px) {
  .nav { align-items: center; overflow: hidden; }
  .nav.fit a { font-size: inherit; padding: .5em .42em; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
}
@media (min-width: 761px) {
  html.nav-collapse .menu-btn { display: grid; order: 3; margin-left: 4px; }
  html.nav-collapse .nav { position: absolute; top: var(--top-h); right: 12px; left: auto; z-index: 1500; display: none; width: min(560px, calc(100vw - 24px)); flex: none;
    flex-wrap: wrap; gap: 6px; padding: 12px; border-radius: 0 0 14px 14px; background: var(--crimson); box-shadow: 0 14px 30px rgba(0,0,0,.25); overflow: visible; }
  html.nav-collapse .nav.open { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.nav-collapse .nav a { padding: 10px 8px; font-size: 14px; text-align: center; border-radius: 10px; background: rgba(255,255,255,.08); }
  html.nav-collapse .nav a[data-path="contact"] { display: block; }
  html.nav-collapse .top-actions { margin-left: auto; }
}

/* 매물 사진 워터마크 (화면): 가운데 'MASLOW KOREA' 글씨만, 흐리게. 이미 새겨진 사진(이름 끝 w)은 겹치지 않게 생략 */
.wm { position: relative; display: block; overflow: hidden; }
.wm::after { content: 'MASLOW KOREA'; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-weight: 900; font-size: clamp(14px, 6.5cqw, 44px); letter-spacing: .04em; color: rgba(255,255,255,.62); text-shadow: 0 1px 6px rgba(0,0,0,.3); white-space: nowrap; }
.wm { container-type: inline-size; }
.wm:has(img[src$="w.jpg"], img[src$="w.png"], img[src$="w.webp"])::after { display: none; }
@media (max-width: 760px) { .scroll-rail { transition: opacity .3s; } .scroll-rail.idle { opacity: 0; pointer-events: none; } }

/* ── 사진 편집기 (공용) ── */
html.pe-open, html.pe-open body { overflow: hidden; }
.pe-modal { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(20,12,16,.92); color: #fff; }
.pe-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; max-width: 1100px; }
.pe-head .small { color: #D9CCD1; flex: 1; }
.pe-act { display: flex; gap: 6px; }
.pe-tools, .pe-emoji { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 1100px; }
.pe-tools button, .pe-emoji button { min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.pe-tools button.on { background: #F3E6FA; color: #4B2C6E; border-color: #F3E6FA; font-weight: 700; }
.pe-emoji button { font-size: 22px; padding: 0 8px; }
.pe-emoji button.on { background: rgba(255,255,255,.3); border-color: #fff; }
.pe-emoji[hidden], .pe-cropbtns[hidden] { display: none; }
.pe-size { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pe-size[hidden] { display: none; }
.pe-stage { flex: 1; min-height: 0; display: grid; place-items: center; }
.pe-canvas { max-width: 100%; touch-action: none; border-radius: 6px; box-shadow: 0 6px 30px rgba(0,0,0,.5); cursor: crosshair; }
.pe-cropbtns { display: flex; gap: 8px; }
.pe-cropbtns .btn:not(.primary) { background: #fff; }
/* ── 사진 관리 창 (공용) ── */
.pm-modal { position: fixed; inset: 0; z-index: 2900; display: grid; place-items: center; padding: 16px; background: rgba(20,12,16,.55); }
.pm-box { display: flex; flex-direction: column; gap: 10px; width: min(860px, 100%); max-height: calc(var(--app-h, 100vh) - 32px); padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.pm-head { display: flex; justify-content: space-between; align-items: center; }
.pm-head b { font-size: 17px; }
.pm-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F5EFF1; cursor: pointer; font-size: 16px; }
.pm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pm-st { font-size: 12.5px; color: var(--ink-3); }
.pm-grid { flex: 1; min-height: 120px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.pm-ph { position: relative; margin: 0; border: 2px solid #EEE6E9; border-radius: 10px; overflow: hidden; background: #F3EDEA; }
.pm-ph.main { border-color: var(--crimson); }
.pm-ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: pointer; }
.pm-badge { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 6px; background: var(--crimson); color: #fff; font-size: 11.5px; font-weight: 700; }
.pm-ph figcaption { display: flex; justify-content: space-between; gap: 2px; padding: 4px; background: #fff; }
.pm-ph figcaption button { flex: 1; min-height: 30px; border: 0; border-radius: 6px; background: #F7F2F4; cursor: pointer; font-size: 13px; }
.pm-ph figcaption button:disabled { opacity: .35; }
.pm-ph figcaption button.del { color: #B3261E; }
.pm-empty { grid-column: 1 / -1; margin: 20px 0; text-align: center; color: var(--ink-3); }
.pm-foot { display: flex; justify-content: flex-end; gap: 8px; }
.pm-foot .btn { min-width: 96px; }

/* 핸드폰 첫 화면: 매물 접수 띠 — 크림슨 바탕 · 흰 굵은 글씨 · 메모장 아이콘 */
@media (max-width: 760px) {
  .m-owner { min-height: clamp(42px, calc(var(--app-h, 100vh) * 0.056), 50px); padding: 0 14px; border-radius: 12px; background: var(--crimson); color: #fff; font-size: clamp(14px, 4vw, 16px); font-weight: 800; box-shadow: 0 4px 12px rgba(139,0,41,.25); }
  .m-owner:hover, .m-owner:active { background: var(--crimson-dark); color: #fff; }
  .m-owner .mo-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-owner .mo-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.18); }
  .m-owner .mo-go { font-size: 18px; font-weight: 900; }
}

/* ═════ 첫 화면 오른쪽 위 (PC) · 첫 화면 띠 (핸드폰) — 부드러운 색 ═════
   색: 웜 차콜 #4B3F44 (공장뉴스 띠·공장스펙·정보조회) / 버터 #F5DC97 (공장뉴스 이름표·공장매입지원정보) */
:root { --soft-ink: #4B3F44; --soft-ink-2: #3E3438; --soft-butter: #F5DC97; --soft-butter-ink: #4A3620; }
.m-spec { display: none !important; }
.home-search { display: flex; flex-direction: column; gap: 10px; }
.home-search > .slot { display: flex; flex-direction: column; gap: 8px; }
/* 공장뉴스 띠 */
.m-news { display: flex; align-items: stretch; height: 44px; border-radius: 12px; overflow: hidden; background: var(--soft-ink); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.mn-label { flex: none; display: grid; place-items: center; padding: 0 14px; background: var(--soft-butter); color: var(--soft-butter-ink); font-size: 14px; font-weight: 800; }
.mn-view { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.mn-track { display: inline-flex; gap: 28px; white-space: nowrap; padding-left: 14px; animation: mn-roll 60s linear infinite; }
.mn-track a { color: #FFFFFF; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.mn-track a:hover { text-decoration: underline; }
.mn-track a::after { content: '·'; margin-left: 28px; color: #A99CA1; }
.m-news:hover .mn-track, .m-news:active .mn-track { animation-play-state: paused; }
@keyframes mn-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mn-track { animation: none; } }
/* 주소창: 돋보기 + 정보조회 (웜 차콜) */
#slot-home-search form.big-search { margin: 0; }
#slot-home-search form.big-search .btn.primary { background: var(--soft-ink); color: #FFFFFF; }
#slot-home-search form.big-search .btn.primary:hover { background: var(--soft-ink-2); color: #FFFFFF; }
/* 아래 두 띠: 공장스펙(웜 차콜) · 공장매입지원정보(버터) — 글씨만, 같은 크기 */
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.hero-row > .hero-band { margin: 0; min-width: 0; justify-content: center; text-align: left; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.hero-row > .hero-band .hb-t small { display: none; }
.hero-row > .hero-band .hb-t { flex: 0 1 auto; }
.hero-row > .hero-band .hb-t b { font-size: 16px; line-height: 1.25; word-break: keep-all; }
.hero-row > .hero-band .hb-go { display: none; }
.hero-row > .hero-spec { background: var(--soft-ink); color: #FFFFFF; }
.hero-row > .hero-spec .hb-ic { background: transparent; color: var(--soft-butter); border: 1.5px solid var(--soft-butter); }
.hero-row > .hero-spec:hover { color: #FFFFFF; }
.hero-row > .hero-band:not(.hero-spec) { background: var(--soft-butter); color: var(--soft-butter-ink); }
.hero-row > .hero-band:not(.hero-spec) .hb-ic { background: transparent; color: var(--soft-butter-ink); border: 1.5px solid var(--soft-butter-ink); }
.hero-row > .hero-band:not(.hero-spec):hover { color: var(--soft-butter-ink); }
@media (min-width: 761px) {
  .home-search > .slot .hint { order: -1; margin: 0; text-align: right; }
  .hero-row > .hero-band { height: 64px; padding: 8px 14px; gap: 12px; border-radius: 14px; }
  .hero-row > .hero-band .hb-ic { width: 34px; height: 34px; }
}
/* 핸드폰: 네 띠 모두 같은 폭 · 같은 높이 (48px), 안내 문장 없음 */
@media (max-width: 760px) {
  .home-hero { gap: 10px !important; }
  .home-search { gap: 8px; }
  .home-search > .slot .hint { display: none; }
  .m-news, #slot-home-search form.big-search, .hero-row > .hero-band { height: 48px !important; min-height: 0 !important; box-sizing: border-box; border-radius: 12px; }
  #slot-home-search form.big-search { padding: 4px !important; overflow: hidden; }
  #slot-home-search form.big-search input, #slot-home-search form.big-search .btn.primary { height: 40px !important; min-height: 0 !important; }
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-row > .hero-band { justify-content: flex-start; padding: 0 14px; gap: 10px; }
  .hero-row > .hero-band .hb-ic { width: 30px; height: 30px; border-radius: 8px; }
  .hero-row > .hero-band .hb-ic svg { width: 17px; height: 17px; }
  .hero-row > .hero-band .hb-t { flex: 1; }
  .hero-row > .hero-band .hb-t b { font-size: 15.5px; white-space: nowrap; }
  .hero-row > .hero-band .hb-go { display: grid; width: 28px; height: 28px; }
  .hero-row > .hero-spec .hb-go { background: var(--soft-butter); color: var(--soft-butter-ink); }
  .hero-row > .hero-band:not(.hero-spec) .hb-go { background: var(--soft-butter-ink); color: var(--soft-butter); }
  .home h1 .h1-a { font-size: 23px; }
  .home h1 .h1-b { font-size: 17px; }
}
/* 공장스펙 전국검색: PC 위쪽 메뉴에는 안 넣고(첫 화면 띠로), 햄버거 메뉴에만 */
@media (min-width: 761px) { html:not(.nav-collapse) #nav .nav-spec { display: none; } html.nav-collapse #nav .nav-spec { background: var(--soft-butter); color: var(--soft-butter-ink); font-weight: 800; } }
@media (max-width: 760px) { #nav .nav-spec { background: #FBF0D2; } }
@media (max-width: 760px) {
  .m-news, #slot-home-search form.big-search, .hero-row > .hero-band { height: 44px !important; }
  #slot-home-search form.big-search { padding: 3px !important; }
  #slot-home-search form.big-search input, #slot-home-search form.big-search .btn.primary { height: 38px !important; }
  .home-hero { gap: 8px !important; padding-top: 10px !important; padding-bottom: 12px !important; }
  .home-search, .hero-row { gap: 6px; }
}
/* 주소창 아래(위) 안내 문장은 PC·핸드폰 모두 없앰 */
.home-search .hint { display: none !important; }
.m-news[hidden] { display: none !important; }
/* 지도 범례(핀 안내): 누르면 접었다 폈다 — PC·핸드폰 모두 */
.map-legend.lg-legend, .map-legend.fc-legend { cursor: pointer; }
.map-legend .map-legend-tg { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; border: 0; background: none; padding: 0; font: inherit; font-weight: 800; text-align: left; cursor: pointer; color: var(--ink); }
.map-legend .map-legend-tg::after { content: '▾ 접기'; font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.map-legend.closed .map-legend-tg::after { content: '▸'; }
.map-legend.closed > :not(.map-legend-tg) { display: none; }
.map-legend.closed { padding: 6px 10px; }
@media (max-width: 760px) {
  .map-legend:not(.closed) { max-height: 46vh; overflow-y: auto; font-size: 10.5px; }
  .map-legend.closed { padding: 5px 9px; }
}
@media (max-width: 760px) {
  .map-legend:not(.closed) { display: grid; grid-template-columns: auto auto; column-gap: 12px; row-gap: 2px; max-width: calc(100vw - 40px); }
  .map-legend:not(.closed) > .map-legend-tg, .map-legend:not(.closed) > strong { grid-column: 1 / -1; }
  .map-legend:not(.closed) > span { white-space: normal; }
}
/* 핸드폰 맨 아래 메뉴 6칸: 화면 폭에 맞춰 글씨·아이콘 크기 자동 (밀지 않고 한 줄에 모두) */
@media (max-width: 760px) {
  .tabbar { overflow: hidden; }
  .tabbar a, .tabbar button { min-width: 0; padding: 0 1px; font-size: clamp(9px, 2.65vw, 11px); letter-spacing: -0.03em; white-space: nowrap; }
  .tabbar a > span:last-child, .tabbar button > span:last-child { max-width: 100%; overflow: hidden; text-overflow: clip; }
  .tabbar .tab-ic svg { width: clamp(19px, 5.6vw, 23px); height: clamp(19px, 5.6vw, 23px); }
}

/* 확인 팝업 */
.ask-wrap { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(28,20,22,.45); }
.ask-box { width: min(360px, 100%); background: #fff; border-radius: 14px; padding: 22px 20px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.ask-msg { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.45; }
.ask-sub { margin: 0 0 4px; font-size: 14px; color: #6B5F62; line-height: 1.5; }
.ask-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.ask-btns .btn { min-width: 84px; min-height: 44px; }
.ask-box .btn.danger { background: #B3261E; border-color: #B3261E; color: #fff; }
.ask-box .btn.danger:hover { background: #8F1E18; }

/* 검색칸 아래 띠 3개: 공장스펙 전국검색 · 공장매입지원정보 · 나라장터정보 — PC는 한 줄 3칸(같은 크기, 검색칸 폭과 같게) */
.hero-row { grid-template-columns: repeat(var(--hero-n, 2), minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
.hero-row > .hero-band.hero-g2b:not(.hero-spec) { background: #DCE8F7; color: #1F3A5F; }
.hero-row > .hero-band.hero-g2b:not(.hero-spec) .hb-ic { background: transparent; color: #1F3A5F; border: 1.5px solid #1F3A5F; }
.hero-row > .hero-band.hero-g2b:not(.hero-spec):hover { color: #1F3A5F; }
@media (min-width: 761px) {
  .hero-row > .hero-band { padding: 8px 10px; gap: 8px; }
  .hero-row > .hero-band .hb-t b { font-size: clamp(13px, 1.15vw, 16px); white-space: nowrap; }
  .hero-row > .hero-band .hb-ic { width: 30px; height: 30px; flex: none; }
}
/* 화면이 좁은 PC: 아이콘을 빼고 글자만 (띠 3개 크기는 그대로) */
@media (min-width: 761px) and (max-width: 1280px) { .hero-row > .hero-band .hb-ic { display: none; } .hero-row > .hero-band { justify-content: center; padding: 8px 6px; } }
/* 핸드폰: 공장스펙은 한 줄 전체, 그 아래 공장매입지원정보 | 나라장터정보 반반 */
@media (max-width: 760px) {
  .hero-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-row > .hero-spec { grid-column: 1 / -1; }
  .hero-row > .hero-band:not(.hero-spec) { padding: 0 8px 0 10px; gap: 7px; }
  .hero-row > .hero-band:not(.hero-spec) .hb-t b { font-size: clamp(12.5px, 3.6vw, 15px); overflow: hidden; text-overflow: ellipsis; }
  .hero-row > .hero-band:not(.hero-spec) .hb-go { display: none; }
  .hero-row > .hero-band:not(.hero-spec) .hb-ic { width: 26px; height: 26px; }
  .hero-row > .hero-band.hero-g2b:not(.hero-spec) .hb-go { background: #1F3A5F; color: #DCE8F7; }
}
/* 위 크림슨 머리줄 · 아래 회사정보 줄은 모든 화면에서 고정, 가운데만 움직임 (지도 화면은 원래대로 화면에 꽉 차게) */
.top { position: sticky; top: 0; }
html { scroll-padding-top: calc(var(--top-h) + 8px); }
@media (min-width: 761px) {
  .foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; }
  body { padding-bottom: var(--foot-h); }
  html { scroll-padding-bottom: calc(var(--foot-h) + 8px); }
  .toast { bottom: calc(var(--foot-h) + 16px); }
}

/* 첫 화면 칸: 핸드폰에서만 다른 이름·로고 (예: 종합물류정보(UNIPASS) + 관세청 로고 파일) */
.tile .mo-t { display: none; }
@media (max-width: 760px) {
  .tile .pc-t { display: none; }
  .tile .mo-t { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
  .tile .mo-logo { height: 18px; width: auto; max-width: 64px; object-fit: contain; }
}

/* PC 상단 메뉴 순서: 정책자금 · 나라장터정보 · 종합물류정보 · 전국공장검색 · 물류센터검색 · 주소정보조회 · 경매공매
   AI 추정 시세는 PC 위 메뉴에서 뺌 (핸드폰 햄버거 메뉴·주소조회 옆 칸에는 그대로)
   매물지도 · 매물내놓기 · 공장매입지원정보 · 부동산계산기는 오른쪽 '바로가기 묶음'으로 */
.top-quick { display: none; }
@media (min-width: 761px) {
  .nav a[data-path="funds"] { order: 1; } .nav a[data-path="g2b"] { order: 2; } .nav a[data-path="unipass"] { order: 3; }
  .nav a[data-path="factories"] { order: 4; } .nav a[data-path="logistics"] { order: 5; } .nav a[data-path="lookup"] { order: 6; }
  .nav a[data-path="auction"] { order: 7; } .nav a { order: 20; } .nav .nav-spec { order: 30; } .nav .nav-note { order: 40; }
  html:not(.nav-collapse) .nav a[data-path="map"], html:not(.nav-collapse) .nav a[data-path="register"],
  html:not(.nav-collapse) .nav a[data-path="support"] { display: none; }
  html:not(.nav-collapse) .top-quick { display: flex; align-items: center; gap: 4px; margin-right: 4px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.12); }
  .top-quick a { padding: 6px 11px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .top-quick a:hover { background: #fff; color: var(--crimson); }
  .top-quick a[aria-current="page"] { background: #fff; color: var(--crimson); }
}
@media (min-width: 761px) and (max-width: 1500px) { .top-quick a { padding: 5px 8px; font-size: 12.5px; } }

/* 위쪽 오른편 연락 버튼: 전화 · WeChat · 카카오톡 (PC·핸드폰) */
.top-cta { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.top-actions .top-cta .call-btn, .top-actions .top-cta .top-wc, .top-actions .top-cta .kakao-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.top-actions .top-cta .call-btn { background: #fff; color: var(--crimson); }
.top-actions .top-cta .call-btn svg { width: 17px; height: 17px; stroke-width: 2.1; }
.top-actions .top-cta .top-wc { background: #07A355; color: #fff; }
.top-actions .top-cta .kakao-btn { background: #FEE500; color: #3A1D1D; }
@media (min-width: 761px) and (max-width: 1500px) { .top-actions .top-cta .call-btn, .top-actions .top-cta .top-wc, .top-actions .top-cta .kakao-btn { width: 30px; height: 30px; } }
@media (max-width: 760px) {
  .top-cta { gap: 4px; }
  .top-actions .top-cta .call-btn, .top-actions .top-cta .top-wc, .top-actions .top-cta .kakao-btn { width: 30px; height: 30px; border-radius: 9px; }
  .top-actions .top-cta .top-wc svg { width: 17px; height: 17px; }
  .top-actions .top-cta .kakao-btn svg { width: 18px; height: 18px; }
}
html.is-admin .top-actions .top-cta .call-btn { display: inline-grid; }
@media (max-width: 400px) { .brand-a, .brand-k { font-size: clamp(11.5px, 3.4vw, 19px); letter-spacing: .01em; } .brand-ic { width: 24px; height: 24px; } }

/* 핸드폰 위쪽: 언어(KO) 버튼과 ☰ 사이를 띄워 잘못 눌리지 않게 */
@media (max-width: 760px) { .menu-btn { margin-left: 6px; width: 40px; } .tr-switch { margin-right: 2px; } }
/* WeChat 버튼: 대표님이 주신 그림(녹색 버튼만) — 옆 전화·카카오 버튼과 같은 크기, 바탕·테두리 없음 */
.top-actions .top-cta .top-wc { background: transparent !important; padding: 0; border-radius: 0; overflow: visible; }
.top-actions .top-cta .top-wc > span { display: block; width: 100%; height: 100%; }
.wc-img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.wc-ic { background: transparent; }
.wc-ic .wc-img { width: 40px; height: 40px; }

/* ── 위쪽 배너·아래 회사정보 크게 (잘 보이게) ── */
@media (min-width: 761px) {
  :root { --top-h: 72px; --foot-h: 52px; }
  .brand-ic { width: 42px; height: 42px; }
  .brand-a, .brand-k { font-size: 22px; }
  .brand-b { font-size: 16px; }
  .nav a { font-size: 16px; font-weight: 600; }
  .top-actions .top-cta .call-btn, .top-actions .top-cta .top-wc, .top-actions .top-cta .kakao-btn { width: 38px; height: 38px; }
  .top-actions .top-cta .call-btn svg { width: 19px; height: 19px; }
  .top-actions .top-cta .kakao-btn svg { width: 21px; height: 21px; }
  .top-actions .solid { font-size: 15px; padding: 9px 14px; }
  .foot { font-size: 14px; gap: 18px; }
  .foot b { font-size: 14.5px; }
  .foot .foot-note { font-size: 12.5px; }
}
@media (min-width: 761px) and (max-width: 1660px) { .nav a { font-size: 14px; font-weight: 500; } }
@media (min-width: 761px) and (max-width: 1500px) {
  .nav a { font-size: 13px; }
  .brand-a, .brand-k { font-size: 18px; }
  .brand-b { font-size: 14px; }
  .brand-ic { width: 38px; height: 38px; }
  .top-actions .solid { font-size: 13px; padding: 7px 9px; }
  .top-actions .top-cta .call-btn, .top-actions .top-cta .top-wc, .top-actions .top-cta .kakao-btn { width: 32px; height: 32px; }
  .foot { font-size: 13px; gap: 14px; }
}
@media (max-width: 760px) {
  :root { --top-h: 54px; }
  .brand-ic { width: 34px; height: 34px; }
  .top-actions .top-cta .call-btn, .top-actions .top-cta .top-wc, .top-actions .top-cta .kakao-btn { width: 33px; height: 33px; }
  .top-actions .top-cta .call-btn svg { width: 18px; height: 18px; }
  .top-actions .top-cta .kakao-btn svg { width: 20px; height: 20px; }
  .m-office { font-size: 11.5px; line-height: 1.55; padding: 8px 10px 7px; white-space: normal; }
  .m-office b { font-size: 12.5px; }
  .m-office b, .m-office a { white-space: nowrap; } /* 회사명·전화번호는 중간에서 끊기지 않게 */
}
@media (max-width: 380px) {
  .brand-ic { width: 26px; height: 26px; margin-right: 2px; }
  .brand-a, .brand-k { font-size: 13px !important; letter-spacing: 0 !important; }
  .top-actions .top-cta .call-btn, .top-actions .top-cta .top-wc, .top-actions .top-cta .kakao-btn { width: 29px; height: 29px; }
  .top-cta { gap: 3px; }
  .top { padding-left: 8px !important; }
  .tr-cur > svg:first-child { display: none; } /* 번역 버튼은 글자(KO)만 — 회사 이름이 잘리지 않게 */
}

/* ── 핸드폰 위쪽 배너 (모든 화면·모든 디자인 같음): 가운데를 기준으로 왼쪽 반 = MASLOW KOREA, 오른쪽 반 = 전화·WeChat·카톡·번역·☰ ──
   오른쪽 버튼들은 오른쪽 반 안에서만 — 왼쪽 KOREA 글씨와 겹치지 않게 */
@media (max-width: 760px) {
  .top { display: flex !important; align-items: center; gap: 0 !important; padding: 0 6px 0 10px !important; }
  .top .brand { flex: 0 0 50%; max-width: 50%; min-width: 0; overflow: hidden; gap: 6px; }
  .top .brand-ic { width: 28px !important; height: 28px !important; margin-right: 0 !important; }
  .top .brand-a, .top .brand-k { font-size: clamp(13px, 4.15vw, 17px) !important; letter-spacing: .01em !important; white-space: nowrap; }
  .top .brand-b { display: none !important; }
  .top-actions { flex: 1 1 0; min-width: 0; max-width: calc(50% - 40px); justify-content: flex-end; gap: 6px !important; }
  .top-actions > a.solid { display: none !important; }
  .top-actions .tr-switch { display: inline-flex !important; order: 2; margin: 0 !important; }
  .top-actions .top-cta { order: 1; }
  .top-actions .tr-switch .tr-cur { width: 30px; min-width: 30px !important; height: 30px !important; padding: 0 !important; justify-content: center; font-size: 11.5px !important; letter-spacing: 0; }
  .top-actions .tr-switch .tr-cur .tr-caret { display: none; }
  .top-cta { gap: 6px !important; }
  .top-actions .top-cta .call-btn, .top-actions .top-cta .top-wc, .top-actions .top-cta .kakao-btn { width: 30px !important; height: 30px !important; border-radius: 8px; }
  .top-actions .top-cta .top-wc { border-radius: 0; }
  .top-actions .top-cta .call-btn svg { width: 16px !important; height: 16px !important; }
  .top-actions .top-cta .kakao-btn svg { width: 18px !important; height: 18px !important; }
  .top .menu-btn { flex: 0 0 34px; width: 34px !important; height: 34px; margin-left: 4px !important; }
}
@media (max-width: 370px) {
  .top-actions, .top-cta { gap: 4px !important; }
  .top-actions .top-cta .call-btn, .top-actions .top-cta .top-wc, .top-actions .top-cta .kakao-btn { width: 28px !important; height: 28px !important; }
  .top .menu-btn { flex-basis: 30px; width: 30px !important; }
  .top-actions .tr-switch .tr-cur { width: 28px; min-width: 28px !important; height: 28px !important; }
}
/* 사진 편집기: 좌우 화살표로 앞뒤 사진 바로 편집 */
.pe-stage { position: relative; }
.pe-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 72px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; background: rgba(20,12,16,.62); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); font-size: 40px; line-height: 1; cursor: pointer; }
.pe-nav:hover:not([disabled]) { background: rgba(20,12,16,.85); }
.pe-nav[disabled] { opacity: .2; cursor: default; }
.pe-nav.l { left: 4px; } .pe-nav.r { right: 4px; }
@media (max-width: 760px) { .pe-nav { width: 38px; height: 58px; font-size: 32px; } }


/* ── 공통 상세 시트 (아래에서 위로) — 공장·물류센터·AI부동산시세 ── */
.is-sheet { position: absolute; z-index: 1200; left: 0; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.22); transform: translateY(104%); transition: transform .28s cubic-bezier(.2,.8,.2,1); visibility: hidden; }
.is-sheet[style*="width"] { right: auto; }
.is-sheet.open { transform: translateY(0); visibility: visible; }
.is-sheet.drag { transition: none; }
.is-grip { flex: none; width: 46px; height: 5px; margin: 8px auto 0; border-radius: 999px; background: #D5CCCF; cursor: grab; }
.is-head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 20px 12px; border-bottom: 1px solid var(--line); cursor: grab; user-select: none; touch-action: none; }
.is-title h2 { margin: 4px 0 2px; font-size: 19px; font-weight: 900; word-break: keep-all; }
.is-title p { margin: 0; font-size: 13px; color: var(--ink-3); }
.is-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.is-tag { padding: 2px 8px; border-radius: 999px; background: #F3EEEC; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.is-btns { display: flex; gap: 6px; flex: none; }
.is-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px 28px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.is-ov { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.is-ov-i { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 12px; background: #FAF6F4; border: 1px solid #F0E7E4; min-width: 0; }
.is-ov-i span { font-size: 12px; color: var(--ink-3); }
.is-ov-i b { font-size: 17px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-ov-i small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-ov-i:last-child { background: #FFF3F5; border-color: #F3CFD7; }
.is-ov-i:last-child b { color: var(--crimson); }
.is-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 900; }
.is-sec h3 i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--crimson); color: #fff; font-style: normal; font-size: 13px; }
.is-sec h4 { margin: 12px 0 6px; font-size: 13.5px; color: var(--ink-2); }
.is-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; padding: 9px 12px; border-radius: 10px; background: #FAF6F4; font-size: 13px; color: var(--ink-3); }
.is-sum b { color: var(--ink); }
.is-tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.is-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.is-tbl th { padding: 8px 10px; background: #F7F3F1; color: var(--ink-3); font-weight: 600; text-align: left; white-space: nowrap; }
.is-tbl td { padding: 8px 10px; border-top: 1px solid #F1EBE8; white-space: nowrap; }
.is-tbl td small { color: var(--ink-3); }
.is-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #EFE8E6; }
.is-kv > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px; padding: 7px 4px; border-bottom: 1px solid #EFE8E6; font-size: 13.5px; }
.is-kv span { color: var(--ink-3); }
.is-kv b { font-weight: 600; word-break: break-all; }
.is-more { margin-top: 10px; }
.is-more > summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--crimson); }
.is-bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-top: 10px; }
.is-bcard { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.is-bcard > b { display: block; margin-bottom: 6px; font-size: 14px; }
.is-bcard .is-kv { grid-template-columns: 1fr; }
.is-bcard .is-kv > div { grid-template-columns: 100px minmax(0, 1fr); padding: 5px 2px; font-size: 13px; }
.is-hist { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; margin-top: 10px; }
.is-hist > span { width: 100%; font-size: 12.5px; color: var(--ink-3); }
.is-hist > div { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 9px; background: #F7F4F2; font-size: 12.5px; }
.is-hist small { color: var(--ink-3); }
.is-hist em { font-style: normal; font-size: 11.5px; }
.is-hist em.up { color: #C0392B; } .is-hist em.down { color: #1F5FA8; }
.is-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.is-lu { padding: 3px 9px; border-radius: 999px; background: #EEF3FA; color: #2A4A75; font-size: 12px; }
.is-lu.part { background: #F4F1EF; color: var(--ink-3); }
.is-go { display: flex; flex-wrap: wrap; gap: 6px; }
.is-go a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.is-go a:hover { border-color: var(--crimson); color: var(--crimson); }
.is-note { margin: 0; font-size: 12px; color: var(--ink-3); }
@media (max-width: 1100px) { .is-ov { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .is-sheet { position: fixed; left: 0 !important; width: auto !important; right: 0; top: calc(var(--top-h) + 6px); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .is-head { padding: 6px 14px 10px; flex-direction: column; }
  .is-btns { align-self: stretch; }
  .is-btns > * { flex: 1; justify-content: center; }
  .is-btns { gap: 4px; }
  .is-btns > * { min-width: 0; padding-left: 4px !important; padding-right: 4px !important; font-size: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: clip; } /* 버튼 5~6개가 좁은 폰에서 겹치지 않게 */
  .is-body { padding: 12px 14px 24px; gap: 16px; }
  .is-ov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-ov-i:last-child { grid-column: 1 / -1; }
  .is-kv { grid-template-columns: 1fr; }
  .is-kv > div { grid-template-columns: 100px minmax(0, 1fr); }
  .is-bgrid { grid-template-columns: 1fr; }
}
/* 핸드폰: 지도 왼쪽 위 +/− 확대·축소 버튼 숨김 (두 손가락으로 확대·축소) — 모든 지도 공통 */
@media (max-width: 760px) { .leaflet-control-zoom { display: none !important; } }
/* 지도에서 누른 필지: 형광색으로 칠하고 진한 테두리 (위성·일반 지도 모두 잘 보이게) */
.leaflet-overlay-pane path.parcel-hl { filter: drop-shadow(0 0 2px #B8FF00) drop-shadow(0 0 6px rgba(184,255,0,.8)); stroke-linejoin: round; animation: parcel-hl-in .45s ease-out; }
.leaflet-overlay-pane path.parcel-hl-dot { filter: drop-shadow(0 0 5px #B8FF00); animation: parcel-hl-blink .8s ease-in-out infinite; }
@keyframes parcel-hl-in { from { fill-opacity: 0; } }
@keyframes parcel-hl-blink { 0%, 100% { stroke-opacity: 1; fill-opacity: .75; } 50% { stroke-opacity: .4; fill-opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .leaflet-overlay-pane path.parcel-hl, .leaflet-overlay-pane path.parcel-hl-dot { animation: none; } }
/* 필지 상세 창: 반쯤만 올라옴 → 위쪽에 고른 필지가 보임 ([▲ 크게]로 전체) */
.is-sheet.peek { top: 44%; }
@media (max-width: 760px) { .is-sheet.peek { top: 46vh; } }
/* 상세 창 인쇄: 표가 A4 폭 안에 들어가게 (화면용 가로 스크롤·줄바꿈 금지를 풀어 줌) — 스크롤 막대가 찍히고 칸이 잘리던 문제 */
.pr-sec .is-tbl { overflow: visible; border: 0; border-radius: 0; }
.pr-sec .is-tbl table { table-layout: auto; font-size: 10px; }
.pr-sec .is-tbl th, .pr-sec .is-tbl td { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; padding: 4px 4px; }
.pr-sec .is-sum { font-size: 11px; }
.pr-sec .is-bgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
.pr-sec .is-bcard { break-inside: avoid; padding: 8px 10px; }
.pr-sec .is-bcard .is-kv > div { padding: 3px 2px; font-size: 11px; grid-template-columns: 84px minmax(0, 1fr); }
.pr-sec .is-kv > div { font-size: 11.5px; padding: 4px 2px; }
.pr-sec .is-more > summary { display: none; }
.pr-sec .is-ov { break-inside: avoid; }
/* ── 지도 지역 합계 풍선 (전국·시도·시군구·읍면동·리) — 모양은 .rg-in.s-<모양>, 색은 --rg-* (관리자 → 디자인 선택 → 지도 풍선) ── */
:root { --rg-hb: #0F1B3D; --rg-ht: #F2C14E; --rg-bb: #FFFFFF; --rg-ba: #0F1B3D; --rg-pole: #0F1B3D; }
.rg-bal { width: 0 !important; height: 0 !important; background: none; border: 0; }
.rg-in { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; cursor: pointer; font-family: inherit; }
.rg-c { border: 1.5px solid var(--rg-pole); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.45); min-width: 92px; background: var(--rg-hb); }
.rg-hd { background: var(--rg-hb); color: var(--rg-ht); text-align: center; padding: 3px 10px 4px; line-height: 1.2; white-space: nowrap; }
.rg-hd small { display: block; font-size: 10.5px; font-weight: 700; opacity: .92; }
.rg-hd b { display: block; font-size: 15px; font-weight: 900; letter-spacing: -.2px; }
.rg-bd { background: var(--rg-bb); color: #444; padding: 3px 9px 4px; font-size: 10.5px; line-height: 1.45; white-space: nowrap; }
.rg-bd div { display: flex; justify-content: space-between; gap: 8px; }
.rg-bd strong { color: var(--rg-ba); font-weight: 800; }
.rg-pole { display: block; width: 3px; height: 16px; background: var(--rg-pole); }
.rg-dot { display: block; width: 9px; height: 9px; margin-top: -2px; border-radius: 50%; background: var(--rg-pole); box-shadow: 0 0 0 2px #fff; }
.rg-in:hover .rg-c { transform: scale(1.04); }
.rg-bal.big .rg-hd b { font-size: 19px; }
.rg-bal.big .rg-hd small { font-size: 12px; }
.rg-bal.big .rg-pole { height: 24px; }
/* 말풍선: 한 칸에 모두 */
.rg-in.s-bubble .rg-c { border-radius: 14px; }
.rg-in.s-bubble .rg-bd { background: var(--rg-hb); color: var(--rg-ht); padding-top: 0; }
.rg-in.s-bubble .rg-bd strong { color: var(--rg-ht); }
.rg-in.s-bubble .rg-bd div { border-top: 1px solid color-mix(in srgb, var(--rg-ht) 25%, transparent); }
/* 동그란 풍선 + 줄: 금액은 풍선 안, 거래량·회전율은 아래 띠 */
.rg-in.s-balloon .rg-c { display: contents; }
.rg-in.s-balloon .rg-hd { width: 88px; height: 82px; border-radius: 50% 50% 48% 48%; border: 1.5px solid var(--rg-pole); display: flex; flex-direction: column; align-items: center; justify-content: center; white-space: normal; padding: 4px; box-shadow: 0 4px 10px rgba(0,0,0,.45); background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--rg-hb) 55%, #fff) 0 10%, var(--rg-hb) 45%); }
.rg-in.s-balloon .rg-hd small { font-size: 9.5px; line-height: 1.15; max-width: 80px; }
.rg-in.s-balloon .rg-bd { order: 3; margin-top: 2px; padding: 1px 7px; border-radius: 5px; background: var(--rg-pole); color: #fff; display: flex; gap: 6px; font-size: 9.5px; }
.rg-in.s-balloon .rg-bd .rg-y { display: none; }
.rg-in.s-balloon .rg-bd strong { color: #fff; margin-left: 2px; }
.rg-in.s-balloon .rg-pole { width: 2px; order: 2; }
.rg-in.s-balloon .rg-dot { order: 4; }
/* 깃발형: 깃대가 왼쪽, 깃발이 오른쪽 */
.rg-in.s-flag { transform: translate(-1px, -100%); flex-direction: row; align-items: flex-start; }
.rg-in.s-flag .rg-pole { order: -1; height: 76px; border-radius: 2px; }
.rg-in.s-flag .rg-dot { position: absolute; left: -3px; bottom: -4px; margin: 0; }
.rg-in.s-flag .rg-c { border-radius: 0 10px 10px 0; border-left: 0; text-align: left; }
.rg-in.s-flag .rg-hd { text-align: left; }
/* 물방울 핀형: 물방울은 뒤(::before)에 그리고 글씨는 똑바로 */
.rg-in.s-drop .rg-c { position: relative; width: 106px; height: 106px; min-width: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; display: flex; flex-direction: column; justify-content: center; align-items: center; margin-bottom: 26px; }
.rg-in.s-drop .rg-c::before { content: ''; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--rg-hb); border: 2.5px solid var(--rg-pole); box-shadow: 0 4px 10px rgba(0,0,0,.45); }
.rg-in.s-drop.one .rg-c { width: 88px; height: 88px; margin-bottom: 22px; }
.rg-in.s-drop .rg-hd, .rg-in.s-drop .rg-bd { position: relative; background: none; padding: 0; text-align: center; }
.rg-in.s-drop .rg-hd small { font-size: 9.5px; white-space: normal; max-width: 72px; margin: 0 auto; line-height: 1.15; }
.rg-in.s-drop .rg-hd b { font-size: 14px; }
.rg-in.s-drop .rg-bd { color: var(--rg-ht); font-size: 9px; line-height: 1.25; margin-top: 1px; }
.rg-in.s-drop .rg-bd strong { color: var(--rg-ht); }
.rg-in.s-drop .rg-bd .rg-y { display: none; }
.rg-in.s-drop .rg-bd div { justify-content: center; gap: 3px; }
.rg-in.s-drop .rg-pole, .rg-in.s-drop .rg-dot { display: none; }
.rg-in.s-drop:hover .rg-c { transform: scale(1.04); }
/* 동그란 풍선·물방울: 지역 이름과 'AI추정가'를 두 줄로 */
.rg-top { text-decoration: none; }
.rg-in.s-balloon .rg-top, .rg-in.s-drop .rg-top { display: block; font-weight: 600; opacity: .85; }
.rg-in.s-balloon .rg-hd small { font-size: 9.5px; line-height: 1.15; max-width: 78px; }
/* 경계선: 위성지도에서도 보이게 흰 선 + 그림자 */
.leaflet-pane path.rg-line { filter: drop-shadow(0 0 1.5px rgba(0,0,0,.8)); }
/* 각진 카드 */
.rg-in.s-square .rg-c { border-radius: 0; border-width: 2px; box-shadow: 3px 3px 0 var(--rg-pole), 0 4px 12px rgba(0,0,0,.35); }
.rg-in.s-square .rg-hd b { letter-spacing: 0; }
.rg-in.s-square .rg-pole { width: 4px; }
.rg-in.s-square .rg-dot { border-radius: 0; width: 8px; height: 8px; }
/* 캡슐형 */
.rg-in.s-pill .rg-c { border-radius: 22px; padding: 0 2px; }
.rg-in.s-pill.one .rg-c { border-radius: 999px; }
.rg-in.s-pill .rg-hd { padding: 5px 14px 4px; }
.rg-in.s-pill .rg-bd { padding: 3px 14px 6px; border-radius: 0 0 20px 20px; }
.rg-in.s-pill .rg-pole { width: 2px; }
/* 가격표형: 왼쪽 위 구멍 + 모서리 하나를 자름 */
.rg-in.s-tag .rg-c { position: relative; border-radius: 4px 12px 4px 4px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); border-width: 2px; }
.rg-in.s-tag .rg-hd { padding-left: 18px; text-align: left; }
.rg-in.s-tag .rg-hd::before { content: ''; position: absolute; left: 6px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--rg-bb); box-shadow: inset 0 0 0 1.5px var(--rg-pole); }
.rg-in.s-tag .rg-bd { text-align: left; }
.rg-in.s-tag .rg-pole { width: 1.5px; height: 20px; background: repeating-linear-gradient(to bottom, var(--rg-pole) 0 3px, transparent 3px 5px); }
/* 육각형 */
.rg-in.s-hex .rg-c { clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); border: 0; border-radius: 0; padding: 0 2px; box-shadow: none; filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); background: var(--rg-pole); }
.rg-in.s-hex .rg-hd { padding: 4px 18px 4px; margin: 2px 2px 0; clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%); }
.rg-in.s-hex .rg-in.one .rg-hd { margin-bottom: 2px; }
.rg-in.s-hex .rg-bd { padding: 3px 18px 5px; margin: 0 2px 2px; clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%); }
.rg-in.s-hex.one .rg-hd { margin-bottom: 2px; padding-bottom: 5px; }
.rg-in.s-hex .rg-dot { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); border-radius: 0; width: 11px; height: 10px; box-shadow: none; }
/* 리본 띠: 양끝이 접힘 */
.rg-in.s-ribbon .rg-c { position: relative; border-radius: 0; border-left: 0; border-right: 0; overflow: visible; min-width: 104px; }
.rg-in.s-ribbon .rg-c::before, .rg-in.s-ribbon .rg-c::after { content: ''; position: absolute; top: 4px; bottom: 4px; width: 14px; background: var(--rg-hb); border: 1.5px solid var(--rg-pole); z-index: -1; }
.rg-in.s-ribbon .rg-c::before { left: -12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); border-right: 0; }
.rg-in.s-ribbon .rg-c::after { right: -12px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); border-left: 0; }
.rg-in.s-ribbon .rg-hd { padding: 4px 12px 4px; }
.rg-in.s-ribbon .rg-bd { border-top: 1px dashed color-mix(in srgb, var(--rg-pole) 40%, transparent); }
.rg-in.s-ribbon .rg-pole { height: 18px; }
/* ── 핀 비교: 지도 오른쪽 위 버튼 · 오른쪽 '비교할 핀' 칸 · 번호 배지 · 비교표 ── */
.pc-ctl { border: 0 !important; background: none !important; box-shadow: none !important; margin-top: 6px !important; }
.pc-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; }
.pc-btn .pc-ic { font-size: 14px; color: var(--crimson); }
.pc-btn.on { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.pc-btn.on .pc-ic { color: #fff; }
.map-box.pc-on, .leaflet-container.pc-on { cursor: crosshair; }
.leaflet-container.pc-on .leaflet-marker-icon { cursor: copy; }
.pc-tray[hidden], .pc-btn[hidden] { display: none !important; }
.pc-tray { padding: 0; margin: 0; touch-action: manipulation; overscroll-behavior: contain; position: absolute; right: 10px; top: 56px; z-index: 1000; width: 230px; max-width: calc(100% - 20px); background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.22); border: 1px solid var(--line); font-size: 13px; }
.pc-tray-h { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pc-tray-h b { font-size: 13.5px; }
.pc-cnt { font-size: 12px; font-weight: 700; color: var(--crimson); background: #FFF1F4; border-radius: 999px; padding: 1px 7px; }
.pc-x { margin-left: auto; border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink-3); }
.pc-list { list-style: none; margin: 0; padding: 4px 0; }
.pc-list li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px; }
.pc-list li + li { border-top: 1px dashed #EFE8E6; }
.pc-list li.wait { opacity: .75; }
.pc-no { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--crimson); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.pc-nm { min-width: 0; flex: 1; }
.pc-nm b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-nm small { display: block; color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-nm .pc-wait { color: var(--crimson); }
.pc-rm { border: 0; background: none; font-size: 16px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 0 2px; }
.pc-empty { margin: 0; padding: 12px 10px; color: var(--ink-3); font-size: 12.5px; white-space: pre-line; text-align: center; }
.pc-btns { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pc-btns .btn { flex: 1; justify-content: center; }
.pc-btns .btn[aria-disabled="true"] { opacity: .55; }
.pc-badge-wrap { width: 0 !important; height: 0 !important; background: none; border: 0; }
.pc-badge { position: absolute; left: 10px; top: -34px; width: 22px; height: 22px; border-radius: 50%; background: var(--crimson); color: #fff; font-size: 12.5px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.4); }
.pc-tbl-btns { display: flex; gap: 8px; justify-content: flex-end; margin: 0 0 10px; }
.pc-tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.pc-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-tbl th, .pc-tbl td { padding: 8px 10px; border-bottom: 1px solid #F1EBE8; text-align: left; vertical-align: top; }
.pc-tbl thead th { background: #F7F3F1; font-weight: 700; min-width: 150px; }
.pc-tbl thead th:first-child, .pc-tbl tbody th { width: 110px; min-width: 110px; color: var(--ink-3); font-weight: 600; background: #FBF9F8; position: sticky; left: 0; }
.pc-tbl thead th b { display: block; font-size: 13.5px; color: var(--ink); }
.pc-tbl thead th small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.pc-tbl thead th .pc-no { display: inline-grid; margin-bottom: 4px; }
.pc-tbl td.best { background: #FFF6F8; color: var(--crimson); font-weight: 800; }
.pc-tbl td .na { color: #BBB; }
@media (max-width: 760px) {
  /* 핸드폰: 지도 아래쪽에 가로로 붙는 띠 (핀을 가리지 않게) — 1줄: 제목·개수·고른 핀 칩 / 2줄: 버튼 */
  .pc-tray { top: auto; bottom: 10px; left: 10px; right: 10px; width: auto; max-width: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .pc-tray-h { display: contents; }
  .pc-tray-h b { grid-column: 1; padding: 8px 0 8px 10px; font-size: 12.5px; white-space: nowrap; }
  .pc-cnt { display: none; }
  .pc-x { grid-column: 3; grid-row: 1; margin: 0; padding: 6px 10px; }
  .pc-list, .pc-empty { grid-column: 2; grid-row: 1; }
  .pc-list { display: flex; gap: 6px; overflow-x: auto; padding: 6px 6px; scrollbar-width: none; }
  .pc-list::-webkit-scrollbar { display: none; }
  .pc-list li { flex: 0 0 auto; max-width: 150px; padding: 3px 6px 3px 4px; border: 1px solid var(--line); border-radius: 999px; align-items: center; gap: 5px; }
  .pc-list li + li { border-top: 1px solid var(--line); }
  .pc-no { width: 18px; height: 18px; font-size: 11px; }
  .pc-list li .pc-nm b { font-size: 12px; }
  .pc-list li .pc-nm small { display: none; }
  .pc-rm { font-size: 15px; }
  .pc-empty { padding: 6px 4px; font-size: 12px; text-align: left; white-space: normal; }
  .pc-btns { grid-column: 1 / -1; grid-row: 2; padding: 6px 8px; }
  .pc-tray.empty .pc-btns { display: none; }
  .pc-tray.empty { grid-template-rows: auto; }
  .pc-tray.empty .pc-tray-h b { padding: 6px 0 6px 10px; }
  .pc-tray.empty .pc-empty { font-size: 12px; padding: 6px 4px; line-height: 1.3; }
  .pc-tray.empty .pc-x { padding: 4px 10px; }
  .pc-btns .btn { min-height: 36px; font-size: 13px; padding: 6px 8px; white-space: nowrap; }
  .pc-btn { padding: 6px 9px; font-size: 12.5px; }
  .pc-ctl { margin-top: 8px !important; margin-left: 8px !important; }
  /* 비교표 (핸드폰): 윗줄 버튼 작게, 표는 옆으로 밀어 보기 */
  .pc-bar { gap: 6px 10px; }
  .pc-modes { width: 100%; }
  .pc-mode { flex: 1; padding: 7px 4px; font-size: 12px; text-align: center; }
  .pc-diff { font-size: 12.5px; }
  .pc-bar .pc-tbl-btns { width: 100%; justify-content: flex-start; }
  .pc-bar .pc-tbl-btns .btn { font-size: 12.5px; padding: 6px 10px; }
  .pc-tbl th, .pc-tbl td { padding: 7px 8px; font-size: 12.5px; }
  .pc-tbl thead th:first-child, .pc-tbl tbody th { width: 84px; min-width: 84px; font-size: 12px; }
  .pc-th-rm { font-size: 10.5px; }
  .pc-tbl thead th { min-width: 120px; }
}
/* 인쇄: 비교표 */
.pr-sec .pc-tbl { overflow: visible; border: 0; }
.pr-sec .pc-tbl table { font-size: 10.5px; }
.pr-sec .pc-tbl th, .pr-sec .pc-tbl td { padding: 4px 5px; white-space: normal; position: static; }
.pr-sec .pc-tbl td.best { background: #F7E9ED; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* 비교표 위 바: 기본/전체/직접 고르기 · 차이점만 · 인쇄 */
.pc-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.pc-modes { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pc-mode { border: 0; background: #fff; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink-3); }
.pc-mode + .pc-mode { border-left: 1px solid var(--line); }
.pc-mode[aria-pressed="true"] { background: var(--crimson); color: #fff; font-weight: 700; }
.pc-diff { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.pc-bar .pc-tbl-btns { margin: 0 0 0 auto; }
.pc-pick { margin: 0 0 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; background: #FBF9F8; }
.pc-pick-g { margin-bottom: 8px; }
.pc-pick-g > b { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.pc-pick-l { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pc-pick-l label { font-size: 13px; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }
.pc-pick-l label.base { color: var(--ink-3); }
.pc-pick-l label small { color: var(--crimson); font-size: 10.5px; }
.pc-pick-btns { display: flex; gap: 6px; margin-top: 4px; }
.pc-tbl tr.pc-grp th { background: #EFE9E6; color: var(--ink); font-weight: 800; font-size: 12.5px; position: static; }
.pc-tbl tr.same td { color: var(--ink-3); }
.pc-tbl td.pc-none { text-align: center; color: var(--ink-3); padding: 20px; }
.pc-th-rm { display: block; margin-top: 4px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font: inherit; font-size: 11px; padding: 1px 8px; cursor: pointer; color: var(--ink-3); }
@media (max-width: 760px) { .pc-bar .pc-tbl-btns { margin-left: 0; } .pc-mode { padding: 6px 9px; font-size: 12px; } }
/* 핸드폰 핀 비교: 왼쪽 위 작은 버튼 묶음 */
.pc-ctl { display: flex; gap: 4px; align-items: center; }
.pc-mini { padding: 6px 9px; font-weight: 800; }
.pc-mini.ready { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.pc-btn.ready { box-shadow: 0 0 0 3px rgba(139,0,41,.25), 0 2px 8px rgba(0,0,0,.18); }

/* ── 앱 설치 안내 띠 (아래 구석, 방해 안 되게 작게 · × 누르면 2주 동안 안 보임) ── */
.install-bar { position: fixed; right: 16px; bottom: 16px; z-index: 1900; display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 10px 12px 10px 10px; border-radius: 14px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0,0,0,.22); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.install-bar.show { opacity: 1; transform: none; }
.install-bar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-bar .ib-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.install-bar .ib-txt b { font-size: 14px; color: var(--ink); }
.install-bar .ib-go { flex: none; }
.install-bar .ib-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #F3EEF0; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; }
.install-bar .ib-x:hover { background: #E8E0DC; color: var(--ink); }
@media (max-width: 760px) {
  .install-bar { left: 10px; right: 10px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); max-width: none; padding: 8px 8px 8px 10px; gap: 10px; }
  .install-bar img { width: 36px; height: 36px; }
  .install-bar .ib-txt { font-size: 12px; }
  .install-bar .ib-txt b { font-size: 13.5px; }
}
@media print { .install-bar { display: none !important; } }

/* ── 카카오 로드뷰 창: 위 머리줄·아래 회사정보(폰은 아래 메뉴)만 남기고 그 사이를 전부 채움 ── */
.rv-panel { position: fixed; left: 0; right: 0; top: var(--top-h); bottom: var(--foot-h); z-index: 1500; display: flex; flex-direction: column; background: #fff; }
.rv-panel[hidden] { display: none; }
@media (max-width: 760px) { .rv-panel { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); } }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.rv-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-title h2 { margin: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-tag { flex: none; padding: 3px 9px; border-radius: 999px; background: #FEE500; color: #191919; font-size: 12px; font-weight: 800; }
.rv-btns { display: flex; gap: 6px; flex: none; }
.rv-box { flex: 1; min-height: 0; background: #111; }
.rv-box.off { display: grid; place-items: center; background: #F3EEF0; }
.rv-box .empty { color: #fff; padding: 40px; text-align: center; }
.rv-note { margin: 0; padding: 14px 16px; font-size: 14px; color: var(--ink); background: #FFF6E0; }
.rv-note[hidden] { display: none; }
.rv-note a { color: var(--crimson); font-weight: 700; }
.rv-foot { margin: 0; padding: 6px 14px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .rv-head { padding: 6px 10px; } .rv-title h2 { font-size: 13.5px; } .rv-tag { font-size: 11px; padding: 2px 7px; } .rv-btns .btn { padding: 4px 8px; font-size: 12px; } .rv-foot { font-size: 10.5px; padding: 5px 10px; } }
.rv-btn { white-space: nowrap; }
@media print { .rv-panel { display: none !important; } }

/* 지도 오른쪽 위 [📷 로드뷰] 단추 — 누르면 자리 고르기 (십자 커서) */
.rv-ctl-wrap { border: 0 !important; background: none !important; box-shadow: none !important; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rv-ctl { appearance: none; border: 1px solid rgba(0,0,0,.25); border-radius: 6px; background: #fff; color: #222; font: 600 13px/1 inherit; padding: 7px 10px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); white-space: nowrap; }
.rv-ctl:hover { background: #f4f4f4; }
.rv-ctl.on { background: var(--crimson, #8B1E2D); color: #fff; border-color: transparent; }
.rv-ctl-tip { background: rgba(20,20,20,.86); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 6px; max-width: 230px; text-align: right; line-height: 1.35; }
.rv-ctl-tip[hidden] { display: none; }
.leaflet-container.rv-picking, .leaflet-container.rv-picking .leaflet-interactive, .leaflet-container.rv-picking .leaflet-marker-icon { cursor: crosshair !important; }
@media (max-width: 760px) { .rv-ctl { padding: 8px 10px; font-size: 13px; } .rv-ctl-tip { max-width: 170px; font-size: 11.5px; } }

/* 🚗 길안내 — 핸드폰(손가락 화면)에서만 로드뷰 단추 옆에 보임 → 카카오맵 · 네이버지도 · 티맵 고르기 */
.nav-btn { display: none !important; white-space: nowrap; }
@media (max-width: 760px), (pointer: coarse) { .nav-btn { display: inline-flex !important; align-items: center; justify-content: center; } .lk-btn.nav-btn { display: flex !important; } }
.nav-pick { position: fixed; inset: 0; z-index: 1700; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.nav-pick[hidden] { display: none; }
.nav-sheet { width: 100%; max-width: 520px; background: #fff; border-radius: 16px 16px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
.nav-h { margin: 0 0 4px; display: flex; flex-direction: column; gap: 2px; }
.nav-h b { font-size: 16px; }
.nav-h span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-app { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.nav-app small { color: var(--ink-3); font-size: 12px; }
.nav-app:active { background: #F6F1F2; }
.nav-x { min-height: 46px; margin-top: 2px; }
@media print { .nav-btn, .nav-pick { display: none !important; } }
@media (max-width: 760px) { .rv-tag { display: none; } .rv-head { gap: 6px; } .rv-btns { gap: 4px; } }
@media (max-width: 760px) { .is-btns { gap: 4px; } .is-btns > * { min-width: 0; padding-left: 4px !important; padding-right: 4px !important; font-size: 12.5px; white-space: nowrap; } }

/* ── 임장동선: 지도 왼쪽 위(필터 쪽) 버튼 · 고른 곳 번호 · 결과 팝업 ── */
.rp-ctl { border: 0 !important; background: none !important; box-shadow: none !important; margin-top: 6px !important; display: flex; gap: 4px; align-items: center; }
.rp-ctl[hidden] { display: none !important; }
.rp-btn { display: inline-flex; align-items: center; gap: 2px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; white-space: nowrap; }
.rp-btn[hidden] { display: none !important; }
.rp-btn.on { background: #0B3D91; border-color: #0B3D91; color: #fff; }
.rp-go.ready { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.rp-mini { padding: 7px 10px; }
@media (max-width: 760px) { .rp-btn { padding: 6px 9px; font-size: 12.5px; } .rp-ctl { margin-top: 8px !important; margin-left: 8px !important; } }
.rp-badge-wrap { background: none; border: 0; }
.rp-badge { position: absolute; left: -12px; top: -40px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: #0B3D91; color: #fff; font-size: 12.5px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.4); white-space: nowrap; }
.rp-dlg .rp-badge { top: -12px; }
.rp-badge.st { background: #1E6B3A; font-size: 11.5px; }
.leaflet-container.rp-on { cursor: copy; }

.rp-dlg { position: fixed; inset: 0; z-index: 1550; background: rgba(20,10,12,.5); display: flex; align-items: center; justify-content: center; padding: 18px; }
.rp-dlg[hidden] { display: none; }
.rp-box { width: min(1240px, 100%); height: min(860px, 100%); background: #fff; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.rp-ttl { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rp-ttl h2 { margin: 0; font-size: 18px; white-space: nowrap; }
.rp-ttl small { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-hbtns { display: flex; gap: 6px; flex: none; }
.rp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(420px, 1.15fr) 1fr; }
.rp-side { min-height: 0; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); }
.rp-map { min-height: 0; height: 100%; }
.rp-form { display: flex; flex-direction: column; gap: 8px; }
.rp-f { display: flex; flex-direction: column; gap: 4px; }
.rp-f > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.rp-in { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; box-sizing: border-box; }
.rp-chk { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.rp-add { display: flex; gap: 6px; }
.rp-add .rp-in { flex: 1; min-width: 0; }
.rp-run { min-height: 44px; font-size: 15px; }
.rp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.rp-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.rp-list li.rp-empty { color: var(--ink-3); font-size: 13px; border-style: dashed; }
.rp-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-nm b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-nm small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-rm { border: 0; background: none; font-size: 18px; color: var(--ink-3); cursor: pointer; padding: 0 4px; }
.rp-no { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 12px; background: #0B3D91; color: #fff; font-size: 12px; font-weight: 900; box-sizing: border-box; white-space: nowrap; }
.rp-no.st { background: #1E6B3A; font-size: 11px; }
.rp-sum { margin: 2px 0 0; display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 8px; background: #F3F6FB; }
.rp-sum[hidden] { display: none; }
.rp-sum b { font-size: 15.5px; }
.rp-sum small { font-size: 12px; color: #1E6B3A; }
.rp-sum small.warn { color: #8A5A00; }
.rp-hint { margin: 0; font-size: 13px; color: var(--ink-3); }
.rp-tbl-wrap { overflow-x: auto; }
.rp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-tbl th { background: #F6F1F2; font-size: 12px; text-align: left; padding: 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rp-tbl td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rp-tbl tr.rp-st td { background: #FAFCF9; }
.rp-tbl tfoot td { font-weight: 700; background: #F6F1F2; }
.rp-c-no { width: 40px; text-align: center; }
.rp-c-nm b { font-size: 13px; }
.rp-c-tel { white-space: nowrap; }
.rp-c-tel a { color: var(--crimson); text-decoration: none; font-weight: 600; }
.rp-c-addr { font-size: 12px; color: var(--ink-2); }
.rp-addr { display: block; font-size: 12px; color: var(--ink-2); }
.rp-c-d { white-space: nowrap; text-align: right; }
.rp-c-d b, .rp-c-d small { display: block; }
.rp-c-d small { color: var(--ink-3); font-size: 11.5px; }
.rp-c-nav { width: 1%; text-align: right; }
.rp-nav { white-space: nowrap; }
html.rp-open, html.rp-open body { overflow: hidden; }
@media screen and (max-width: 900px) {
  .rp-dlg { padding: 0; }
  .rp-box { width: 100%; height: 100%; border-radius: 0; }
  .rp-body { display: flex; flex-direction: column; overflow: auto; }
  .rp-map { order: -1; flex: none; height: 34vh; min-height: 200px; }
  .rp-side { overflow: visible; border-right: 0; padding: 12px; }
  .rp-head { padding: 8px 10px; }
  .rp-ttl h2 { font-size: 16px; }
  .rp-ttl small { display: none; }
  /* 핸드폰 표: 줄마다 카드처럼 — 순서 · 회사명/주소/전화 · 거리 · 길안내 */
  .rp-tbl thead { display: none; }
  .rp-tbl tr { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "no nm d" "no tel nav" "no ad nav"; column-gap: 8px; row-gap: 2px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
  .rp-tbl td { padding: 0; border: 0; }
  .rp-tbl tr.rp-st { grid-template-areas: "no nm d" "no nm nav"; }
  .rp-tbl .rp-c-no { grid-area: no; width: auto; }
  .rp-tbl .rp-c-nm, .rp-tbl tr.rp-st td[colspan] { grid-area: nm; }
  .rp-tbl .rp-c-tel { grid-area: tel; font-size: 12.5px; }
  .rp-tbl .rp-c-addr { grid-area: ad; }
  .rp-tbl .rp-c-d { grid-area: d; }
  .rp-tbl .rp-c-nav { grid-area: nav; width: auto; align-self: center; }
  .rp-tbl tr.rp-st td:not([class]):empty { display: none; }
  .rp-tbl tfoot tr { grid-template-columns: 1fr auto; grid-template-areas: "a d"; padding: 8px 6px; background: #F6F1F2; }
  .rp-tbl tfoot td[colspan] { grid-area: a; background: none; }
  .rp-tbl tfoot .rp-c-d { background: none; }
  .rp-tbl tfoot td:empty { display: none; }
}
/* 인쇄용 표 (한 장에 들어가게 촘촘히) */
.rp-ptbl { font-size: 10.5px; }
.rp-ptbl th { font-size: 10px; padding: 3px 4px; background: #F3EEEC; }
.rp-ptbl td { padding: 3px 4px; }
.rp-ptbl .rp-no { min-width: 18px; height: 18px; font-size: 10px; border-radius: 9px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-ptbl .rp-c-addr, .rp-ptbl .rp-addr { font-size: 9.5px; }
.rp-ptbl .rp-c-d small { font-size: 9.5px; }
@media print { .rp-dlg, .rp-ctl { display: none !important; } }
.rp-dlg { z-index: 1800; }
.nav-pick { z-index: 1900; }
@media screen and (max-width: 900px) { .rp-tbl .rp-c-tel:not(:has(a)) { display: none; } .rp-tbl tr { grid-template-areas: "no nm d" "no tel nav" "no ad nav"; } }
/* 인쇄 표 더 촘촘히 (15곳도 한 장) */
.rp-ptbl td { padding: 2px 4px; line-height: 1.25; }
.rp-ptbl .rp-c-nm b { font-size: 10.5px; }
.rp-ptbl .rp-c-d b, .rp-ptbl .rp-c-d small { display: inline; }
.rp-ptbl .rp-c-d small::before { content: ' · '; }
.rp-ptbl .rp-addr { display: inline; margin-left: 6px; }
@media screen and (max-width: 900px) { .rp-tbl tbody tr:not(.rp-st) { grid-template-areas: "no nm d" "no tel ." "no ad nav"; row-gap: 0; } .rp-tbl .rp-c-addr { align-self: center; padding-right: 4px; } .rp-tbl .rp-c-nav { align-self: end; } .rp-tbl .rp-c-nm b { font-size: 14px; } }
/* 핸드폰 + 관리자 로그인: 관리자 표시가 하나 더 붙으므로 회사 이름 글씨를 조금 줄여 잘리지 않게 */
@media (max-width: 760px) { html.is-admin .top .brand-a, html.is-admin .top .brand-k { font-size: clamp(12px, 3.5vw, 15px) !important; letter-spacing: 0 !important; } html.is-admin .top .brand { gap: 4px; } }

/* 태블릿·작은 노트북(아이패드·갤럭시탭 세로/가로, 폴드 펼침): 회사 정보 5가지가 잘리지 않게 아래 줄을 두 줄로 */
@media (min-width: 761px) and (max-width: 1279px) {
  :root { --foot-h: 58px; }
  .foot { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: 14px; row-gap: 3px; font-size: 12.5px !important; }
  .foot .foot-l1, .foot .foot-l2 { display: flex; gap: 12px; min-width: 0; white-space: nowrap; overflow: hidden; }
  .foot .foot-l1 { grid-row: 1; grid-column: 1; } .foot .foot-l2 { grid-row: 2; grid-column: 1; }
  .foot b { font-size: 13px !important; }
  .foot .foot-note { grid-row: 1 / 3; grid-column: 2; margin: 0; align-self: center; font-size: 11px !important; white-space: nowrap; }
}

/* ── 아주 좁은 화면 (갤럭시 폴드 접은 화면 · 280~340px) ── */
@media (max-width: 340px) {
  .top { padding: 0 4px 0 6px !important; }
  .top .brand { flex-basis: 44%; max-width: 44%; gap: 4px; }
  .top .brand-ic { width: 24px !important; height: 24px !important; }
  .top .brand-a, .top .brand-k, html.is-admin .top .brand-a, html.is-admin .top .brand-k { font-size: 11px !important; letter-spacing: -.01em !important; }
  .top-actions { max-width: calc(56% - 34px); gap: 3px !important; }
  .top-cta { gap: 3px !important; }
  .top-actions .top-cta .call-btn, .top-actions .top-cta .top-wc, .top-actions .top-cta .kakao-btn { width: 25px !important; height: 25px !important; }
  .top-actions .tr-switch .tr-cur { width: 26px; min-width: 26px !important; height: 26px !important; font-size: 10.5px !important; }
  .top .menu-btn { flex-basis: 28px; width: 28px !important; margin-left: 2px !important; }
  .ad-badge { width: 25px !important; height: 25px !important; min-width: 0 !important; padding: 0 !important; }
}

/* 짧은 화면에서 첫 화면 칸이 납작해질 때 (core.js looseHome): 한 화면 고정을 풀고 위아래로 밀어 보기 */
@media (max-width: 760px) {
  html.home-loose, html.home-loose.pg-home { height: auto !important; overflow: visible !important; }
  html.home-loose body[data-page="home"] { position: static !important; height: auto !important; min-height: var(--app-h, 100vh); overflow: visible !important; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  html.home-loose body[data-page="home"] .home.active { height: auto !important; min-height: 0 !important; overflow: visible !important; touch-action: auto !important; }
  html.home-loose body[data-page="home"] .home-tiles { flex: none !important; }
  html.home-loose body[data-page="home"] .tile { min-height: 50px !important; }
  html.home-loose body[data-page="home"] .tabbar, html.home-loose body[data-page="home"] .top > .brand { touch-action: auto !important; }
}

/* ── 지도 위 버튼 크기 통일: [⇄ 핀 비교] [🧭 임장동선] [📷 로드뷰] 모두 같은 높이·글씨 (작고 단정하게) ── */
.leaflet-container .rv-ctl, .leaflet-container .rp-btn, .leaflet-container .pc-btn {
  box-sizing: border-box; height: 30px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,.14);
  font-size: 12.5px; font-weight: 700; line-height: 1; gap: 3px; box-shadow: 0 1px 5px rgba(0,0,0,.2);
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.leaflet-container .rp-mini, .leaflet-container .pc-mini { padding: 0 9px; min-width: 30px; }
.leaflet-container .rv-ctl-wrap, .leaflet-container .rp-ctl, .leaflet-container .pc-ctl { margin-top: 6px !important; }
@media (max-width: 760px) {
  .leaflet-container .rv-ctl, .leaflet-container .rp-btn, .leaflet-container .pc-btn { height: 28px; min-height: 28px; padding: 0 8px; font-size: 12px; }
  .leaflet-container .rp-mini, .leaflet-container .pc-mini { padding: 0 8px; min-width: 28px; }
  .leaflet-container .rv-ctl-wrap, .leaflet-container .rp-ctl, .leaflet-container .pc-ctl { margin-top: 6px !important; }
}

/* 임장동선: 출발·도착 (주소 입력 + 지도에서 고르기) */
.rp-pt { display: flex; gap: 6px; }
.rp-pt[hidden] { display: none; }
.rp-pt .rp-in { flex: 1; min-width: 0; }
.rp-pick { white-space: nowrap; flex: none; }
.rp-sel { appearance: auto; background: #fff; }
.rp-add { flex-wrap: wrap; }
.rp-add .rp-in { flex: 1 1 200px; }
.rp-pick-tip { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1001; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 7px 8px 7px 14px; border-radius: 999px; background: #0B3D91; color: #fff; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.rp-pick-tip[hidden] { display: none; }
.rp-pick-tip .btn { height: 26px; min-height: 26px; padding: 0 10px; border-radius: 999px; }
.leaflet-container.rp-picking, .leaflet-container.rp-picking .leaflet-interactive, .leaflet-container.rp-picking .leaflet-marker-icon { cursor: crosshair !important; }
@media (max-width: 760px) { .rp-pick-tip { top: 44px; font-size: 12px; white-space: normal; border-radius: 14px; } }

/* 핀 비교: 주소로 직접 추가 */
.pc-addr { display: flex; gap: 4px; margin-top: 6px; }
.pc-addr input { flex: 1; min-width: 0; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 12.5px; }
.pc-addr .btn { height: 30px; min-height: 30px; padding: 0 10px; }
.addr-pop { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1750; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.addr-pop[hidden] { display: none; }
.addr-pop b { font-size: 15px; }
.addr-pop .row { display: flex; gap: 6px; }
.addr-pop input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; }
.addr-pop .btn { height: 42px; }
.addr-pop .err { color: #B3261E; font-size: 13px; margin: 0; }
.rp-pick-tip b { flex: none; white-space: nowrap; }
.rp-pick-tip .btn { flex: none; }
@media (max-width: 760px) { .rp-pick-tip { left: 8px; right: 8px; transform: none; top: 84px; max-width: none; padding: 8px 8px 8px 12px; font-size: 12.5px; line-height: 1.35; } }

/* ── 큰 모니터 (QHD·4K·와이드): 내용이 한가운데 좁게 몰리거나, 첫 화면 칸이 너무 넓게 늘어나지 않게 ── */
@media (min-width: 1700px) {
  .page.scroll { max-width: 1360px; }
  .home.active { padding-left: max(clamp(16px, 4vw, 56px), calc((100vw - 1800px) / 2)); padding-right: max(clamp(16px, 4vw, 56px), calc((100vw - 1800px) / 2)); }
  .home-tiles { grid-auto-rows: minmax(150px, 240px); align-content: start; }
}
@media (min-width: 2300px) {
  .page.scroll { max-width: 1560px; }
}
.rp-out .rp-print-big { width: 100%; min-height: 44px; margin-top: 10px; justify-content: center; font-size: 14.5px; font-weight: 700; background: var(--crimson); border-color: var(--crimson); color: #fff; }
.rp-out .rp-print-big svg { stroke: #fff; }
@media print { .rp-print-big { display: none !important; } }

/* ── 공유 창 (카톡·폰 공유창·링크 복사·문자·메일·QR) ── */
.sh-btn { white-space: nowrap; }
.sh-btn .sh-i { font-weight: 900; }
.sh-title { margin-left: 10px; vertical-align: middle; font-size: 12.5px; font-weight: 700; height: 28px; min-height: 28px; padding: 0 10px; border-radius: 999px; }
h1.sh-has, h2.sh-has { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.sh-wrap { position: fixed; inset: 0; z-index: 1950; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sh-wrap[hidden] { display: none; }
.sh-box { width: min(440px, 100%); max-height: calc(var(--app-h, 100vh) - 32px); overflow: auto; background: #fff; border-radius: 16px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.sh-head { display: flex; align-items: center; justify-content: space-between; }
.sh-head b { font-size: 16px; }
.sh-x { border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink-3); width: 36px; height: 36px; }
.sh-t { margin: 0; font-weight: 700; font-size: 14.5px; }
.sh-d { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.sh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sh-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 72px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sh-tile:hover { background: #F7F3F4; }
.sh-tile .sh-ic { font-size: 22px; line-height: 1; }
.sh-tile.kakao { background: #FEE500; border-color: #F2D900; color: #191919; }
.sh-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; }
.sh-qr[hidden] { display: none; }
.sh-qr-img { padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.sh-qr-img img, .sh-qr-img canvas { display: block; width: 200px; height: 200px; }
.sh-link { display: flex; gap: 6px; }
.sh-link input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--ink-2); background: #FAF8F8; }
@media (max-width: 760px) {
  .sh-wrap { align-items: flex-end; padding: 0; }
  .sh-box { width: 100%; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); max-height: 88vh; }
  .is-btns .sh-btn .sh-l { display: none; } /* 핸드폰 상세 시트: ↗ 아이콘만 */
  .sh-title { margin-left: 6px; height: 26px; min-height: 26px; padding: 0 8px; font-size: 12px; }
}
@media print { .sh-btn, .sh-wrap, .cp-btn { display: none !important; } }

/* ── 주소 두 줄 (지번 · 도로명) + 오른쪽 작은 [복사] ── */
.ad2 { display: inline-flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; }
.ad2[hidden], .ad2-row[hidden] { display: none !important; }
.ad2-row { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 1.4; }
.ad2-k { flex: none; font-size: 10.5px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; line-height: 16px; }
.ad2-v { min-width: 0; overflow-wrap: anywhere; }
.cp-btn { flex: none; height: 20px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-2); font: inherit; font-size: 10.5px; font-weight: 700; line-height: 18px; cursor: pointer; }
.cp-btn:hover { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.ad2.compact { font-size: 12px; }
.is-addr { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.lookup-addr2 { margin: 4px 0 6px; font-size: 13.5px; color: var(--ink-2); }
.lookup-title { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
@media print { .cp-btn { display: none !important; } .ad2-k { border: 0; padding: 0; } }
.sh-title-map { white-space: nowrap; }
@media (max-width: 760px) { .sh-title-map .sh-l { display: none; } }

/* 관리자 화면 안에 끼운 화면 (/?embed=1#/…) */
html.embed { --top-h: 0px; --foot-h: 0px; --tab-h: 0px; }
html.embed .top, html.embed .foot, html.embed .tabbar, html.embed .scroll-rail, html.embed .install-bar, html.embed .pp-layer { display: none !important; }
html.embed body { background: #fff; }

/* 접이식 폰 바깥 화면처럼 아주 좁은 화면(≤360px): 칸 최소 너비 때문에 옆으로 넘치지 않게 한 줄로 */
@media (max-width: 360px) {
  .grid-form, .grid-form.pw-two, .grid-form.pw-three, .pw-grid.pw-single .grid-form, .kv, .is-bgrid, .pw-grid, .pw-reg-grid, .home-tiles { grid-template-columns: minmax(0, 1fr) !important; }
  .grid-form > *, .grid-form.pw-three > :first-child { min-width: 0; grid-column: auto; }
  .page .card { min-width: 0; max-width: 100%; }
  .page .field input, .page .field select, .page .field textarea { min-width: 0; max-width: 100%; }
}
