/* 제조업체 찾기 (/factory/) — site.css 위에 얹는 화면 전용 스타일 */
.mf-body{background:#f6f7fb}
.mf-body nav.top{position:relative}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.mf-app{display:grid;grid-template-columns:420px 1fr;height:calc(100vh - 61px);height:calc(100dvh - 61px);position:relative}
.mf-side{background:#fff;border-right:1px solid #e5e7eb;overflow-y:auto;padding:16px 16px 24px;display:flex;flex-direction:column;gap:12px}
.mf-side>*{flex-shrink:0}
.mf-mapwrap{position:relative;min-width:0}
.mf-map{position:absolute;inset:0;background:#e9eef5}

/* 검색창 */
.mf-search{position:relative;display:flex;gap:6px}
.mf-search input{flex:1;min-width:0;border:1px solid #d1d5db;border-radius:10px;padding:11px 12px;font-size:15px;font-family:inherit;background:#fff}
.mf-search input:focus{outline:2px solid #bfdbfe;border-color:#2563eb}
.mf-go{border:0;border-radius:10px;background:#2563eb;color:#fff;font-weight:600;font-size:15px;padding:0 16px;cursor:pointer;font-family:inherit}
.mf-go:hover{background:#1d4ed8}
.mf-suggest{position:absolute;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 10px 24px rgba(15,23,42,.12);z-index:30;padding:6px;max-height:360px;overflow-y:auto}
.mf-suggest h4{margin:6px 8px 2px;font-size:11px;color:#94a3b8;font-weight:600}
.mf-suggest button{display:flex;justify-content:space-between;gap:8px;width:100%;text-align:left;border:0;background:none;padding:8px 10px;border-radius:8px;font-size:14px;cursor:pointer;font-family:inherit;color:#1f2937}
.mf-suggest button:hover,.mf-suggest button.on{background:#f1f5f9}
.mf-suggest small{color:#94a3b8}

/* 공법 칩 */
.mf-chips{display:flex;flex-wrap:wrap;gap:6px}
.mf-chip{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:5px 11px;font-size:13px;cursor:pointer;color:#374151;font-family:inherit;white-space:nowrap}
.mf-chip:hover{border-color:#93c5fd;background:#f8fbff}
.mf-chip[aria-pressed=true]{background:#2563eb;border-color:#2563eb;color:#fff;font-weight:600}

.mf-filters{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mf-filters select{border:1px solid #d1d5db;border-radius:9px;padding:8px 10px;font-size:13px;font-family:inherit;background:#fff;color:#374151;min-width:0}
.mf-filters select:disabled{background:#f8fafc;color:#94a3b8}

/* 요약 */
.mf-summary{font-size:14px;color:#475569;display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:24px}
.mf-summary b{color:#0f172a;font-size:15px}
.mf-tag{display:inline-flex;align-items:center;gap:4px;background:#eef4ff;color:#1d4ed8;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600}
.mf-tag button{border:0;background:none;color:inherit;cursor:pointer;padding:0;font-size:13px;line-height:1}
.mf-empty{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:22px 16px;text-align:center;color:#64748b;font-size:14px}

/* 목록 */
.mf-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.mf-item{border:1px solid #e5e7eb;border-radius:14px;padding:13px 14px;cursor:pointer;background:#fff;transition:border-color .12s,box-shadow .12s}
.mf-item:hover,.mf-item.on{border-color:#93c5fd;box-shadow:0 4px 14px rgba(37,99,235,.08)}
.mf-item h3{margin:0;font-size:16px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mf-item .addr{margin:3px 0 0;font-size:13px;color:#64748b}
.mf-item .prod{margin:6px 0 0;font-size:13px;color:#334155;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mf-item .meta{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.mf-badge{font-size:11px;border-radius:6px;padding:2px 7px;background:#f1f5f9;color:#475569;font-weight:600}
.mf-badge.ok{background:#ecfdf5;color:#047857}
.mf-ihead h3 .mf-badge{vertical-align:2px;margin-left:4px;font-weight:600}
.mf-badge.rec{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
.mf-badge.tag{background:#eef4ff;color:#1d4ed8}
.mf-badge.tag.guess{background:#f8fafc;color:#64748b;font-weight:500}
.mf-badge.nogeo{background:#fff7ed;color:#c2410c}
.mf-pager{display:flex;justify-content:center;gap:4px;flex-wrap:wrap}
.mf-pager button{min-width:34px;height:34px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;cursor:pointer;font-family:inherit;font-size:13px;color:#374151}
.mf-pager button[aria-current=page]{background:#2563eb;border-color:#2563eb;color:#fff;font-weight:700}
.mf-pager button:disabled{opacity:.4;cursor:default}
.mf-source{font-size:11px;color:#94a3b8;margin:auto 0 0;line-height:1.6}

/* 지도 위 요소 */
.mf-here{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:5;border:0;border-radius:999px;background:#0f172a;color:#fff;font-weight:600;font-size:14px;padding:10px 18px;box-shadow:0 6px 16px rgba(15,23,42,.25);cursor:pointer;font-family:inherit}
.mf-here:hover{background:#1e293b}
.mf-legend{position:absolute;left:12px;bottom:12px;z-index:5;background:rgba(255,255,255,.94);border:1px solid #e5e7eb;border-radius:10px;padding:6px 10px;font-size:12px;color:#475569;display:flex;gap:12px}
.mf-legend .dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#2563eb;border:2px solid #fff;box-shadow:0 0 0 1px #2563eb;margin-right:5px;vertical-align:-1px}
.mf-legend .dot.approx{background:#fff;box-shadow:0 0 0 1px #64748b;border:2px dashed #64748b}
.mf-mapnote{position:absolute;right:12px;bottom:12px;z-index:5;max-width:320px;background:rgba(255,255,255,.95);border:1px solid #e5e7eb;border-radius:10px;padding:8px 12px;font-size:12px;color:#475569}

/* 지도 표식 (CustomOverlay) */
.mf-pin{width:14px;height:14px;border-radius:50%;background:#2563eb;border:2px solid #fff;box-shadow:0 0 0 1px #1d4ed8,0 2px 4px rgba(0,0,0,.25);cursor:pointer}
.mf-pin.approx{background:#fff;border:2px dashed #64748b;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.mf-pin.claimed{background:#059669;box-shadow:0 0 0 1px #047857,0 2px 4px rgba(0,0,0,.25)}
.mf-pin.multi{width:auto;height:auto;min-width:24px;padding:2px 7px;border-radius:999px;color:#fff;font-size:12px;font-weight:700;text-align:center;line-height:18px}
.mf-pin.on{background:#f97316;box-shadow:0 0 0 2px #fff,0 0 0 4px #f97316;z-index:10}
.mf-bubble{min-width:46px;padding:6px 10px;border-radius:999px;background:rgba(37,99,235,.92);color:#fff;text-align:center;font-size:12px;line-height:1.25;box-shadow:0 4px 10px rgba(15,23,42,.25);cursor:pointer;white-space:nowrap;border:2px solid #fff}
.mf-bubble b{display:block;font-size:14px}
.mf-bubble.grid{background:rgba(15,23,42,.78);min-width:36px;padding:5px 9px}
.mf-bubble:hover{background:#1d4ed8}
.mf-sel{position:relative;width:18px;height:18px;display:flex;align-items:center;justify-content:center}
.mf-sel .mf-label{position:absolute;bottom:22px;left:50%;transform:translateX(-50%)}
.mf-label{background:#0f172a;color:#fff;font-size:12px;padding:3px 8px;border-radius:6px;white-space:nowrap;pointer-events:none}

/* 상세 패널 */
.mf-drawer{position:absolute;top:0;left:0;bottom:0;width:420px;background:#fff;border-right:1px solid #e5e7eb;overflow-y:auto;z-index:20;padding:18px 18px 28px;box-shadow:8px 0 24px rgba(15,23,42,.08)}
.mf-close{position:sticky;top:0;float:right;width:34px;height:34px;border-radius:50%;border:1px solid #e5e7eb;background:#fff;font-size:20px;line-height:1;cursor:pointer;color:#475569;z-index:2}
.mf-drawer h2{margin:4px 44px 4px 0;font-size:21px}
.mf-drawer .addr{margin:0;color:#64748b;font-size:14px}
.mf-drawer .tags{display:flex;flex-wrap:wrap;gap:4px;margin:10px 0}
.mf-dl{display:grid;grid-template-columns:96px 1fr;gap:7px 10px;margin:14px 0;font-size:14px}
.mf-dl dt{color:#64748b}
.mf-dl dd{margin:0;color:#1f2937;overflow-wrap:anywhere}
.nw{white-space:nowrap}
.mf-box{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;margin:12px 0;font-size:14px}
.mf-box b{display:block;margin-bottom:2px}
.mf-box p{margin:0;color:#64748b;font-size:13px}
.mf-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.mf-actions .btn{padding:9px 14px;font-size:14px}
.mf-spotlist{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.mf-spotlist li{border:1px solid #e5e7eb;border-radius:10px;padding:9px 12px;cursor:pointer}
.mf-spotlist li:hover{border-color:#93c5fd}
.mf-spotlist b{font-size:14px}
.mf-spotlist span{display:block;font-size:12px;color:#64748b}
.mf-loading{color:#94a3b8;font-size:14px;padding:20px 0;text-align:center}

.mf-tabs{display:none}

@media(max-width:860px){
  .mf-app{grid-template-columns:1fr;height:calc(100dvh - 61px)}
  .mf-side,.mf-mapwrap{grid-area:1/1;padding-bottom:70px}
  .mf-app[data-tab=map] .mf-side{visibility:hidden}
  .mf-app[data-tab=list] .mf-mapwrap{visibility:hidden}
  .mf-drawer{width:auto;right:0;padding-bottom:80px}
  .mf-chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px;padding:0 16px 2px;scrollbar-width:none}
  .mf-chips::-webkit-scrollbar{display:none}
  .mf-tabs{display:flex;position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:25;background:#0f172a;border-radius:999px;padding:4px;box-shadow:0 8px 20px rgba(15,23,42,.3)}
  .mf-tabs button{border:0;background:none;color:#cbd5e1;font-weight:600;font-size:14px;padding:9px 20px;border-radius:999px;font-family:inherit}
  .mf-tabs button[aria-selected=true]{background:#fff;color:#0f172a}
  .mf-legend{bottom:70px}
  .mf-mapnote{display:none}
}

/* 둘러보기 링크 (지도 아래) */
.mf-dir{background:#f8fafc;border-top:1px solid #e5e7eb;padding:28px 0 36px}
.mf-dir h2{font-size:17px;margin:0 0 10px}
.mf-dir h3{font-size:14px;color:#64748b;margin:16px 0 8px;font-weight:600}
.mf-dir ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.mf-dir a{display:inline-block;font-size:14px;border:1px solid #e2e8f0;border-radius:999px;padding:5px 12px;background:#fff;color:#334155;text-decoration:none}
.mf-dir a:hover{border-color:#93c5fd;color:#1d4ed8}
.mf-dir small{color:#94a3b8;font-size:12px;margin-left:2px}

/* 목록의 '상세 ›' 링크, 서랍 위쪽 버튼 */
.mf-ihead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.mf-detail{flex:none;font-size:13px;font-weight:600;color:#2563eb;text-decoration:none;border:1px solid #bfdbfe;background:#eff6ff;border-radius:8px;padding:4px 9px;white-space:nowrap}
.mf-detail:hover{background:#dbeafe}
.mf-top{margin:12px 0 4px}
.mf-top .btn{flex:1 1 auto;justify-content:center;text-align:center}
