/* daview — 아이보리 바탕 + 딥그린 포인트 + 다크 강조 카드 (확정 시안 기준) */
:root {
  --bg: #F6F5F1; --card: #FFFFFF; --line: #E6E4DD; --line2: #D9D7CF; --chip: #F0EFEA;
  --ink: #15171A; --sub: #5F6267; --sub2: #4A4D52;
  --acc: #0B6B57; --acc-d: #0E5A46; --acc-soft: #E3F2EE; --hl: #5EE0B8; --warn: #C2410C;
  --side: 400px; --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Noto Sans KR", "Malgun Gothic", sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.sr { position: absolute; left: -9999px; }
.hidden { display: none !important; }
.muted { color: var(--sub); } .small { font-size: 12px; } .strong { font-weight: 700; }
.acc { color: var(--acc); } .warn { color: var(--warn); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

#map { position: fixed; top: 0; bottom: 0; left: var(--side); right: 0; background: #e9e7e0; }
#side { position: fixed; top: 0; left: 0; bottom: 0; width: var(--side); background: var(--bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 1000; }
.top { display: flex; align-items: center; gap: 8px; padding: 18px 20px 10px; }
.logo { font-size: 22px; font-weight: 900; letter-spacing: -.5px; color: var(--ink); text-decoration: none; flex: 1; }
.logo span { color: var(--acc); }
.chip-btn { border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 0 14px; min-height: 36px; font-size: 13px; font-weight: 500; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 20px; border-bottom: 1px solid var(--line); }
.tabs a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0 12px; color: var(--sub); text-decoration: none;
  font-size: 13px; border-bottom: 2px solid transparent; min-height: 44px; }
.tabs a.on { color: var(--acc); font-weight: 700; border-color: var(--acc); }
#view { flex: 1; overflow-y: auto; padding: 4px 20px 28px; }

.hero { padding: 18px 0 6px; }
.hero .eyebrow, .eyebrow { font-size: 13px; font-weight: 700; color: var(--acc); }
.hero h1 { margin: 8px 0 0; font-size: 32px; line-height: 1.22; font-weight: 900; letter-spacing: -1px; }
.hero.sm h1 { font-size: 26px; }
.hero p { margin: 10px 0 0; line-height: 1.6; color: var(--sub2); }
.searchbox { margin-top: 16px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line2); border-radius: 14px;
  padding: 0 14px; height: 50px; color: var(--sub); }
.searchbox input { border: 0; outline: 0; flex: 1; font-size: 15px; background: transparent; color: var(--ink); }
.searchbox:focus-within { border-color: var(--acc); }
.sugg { background: #fff; border-radius: 12px; margin-top: 6px; border: 1px solid var(--line); overflow: hidden; }
.sugg:empty { display: none; }
.sugg button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 14px; min-height: 44px; }
.sugg button:hover { background: var(--acc-soft); }
.sugg small { display: block; color: var(--sub); font-size: 12px; }
.pad { padding: 10px 14px; margin: 0; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.chip { border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 0 12px; min-height: 34px; font-size: 13px; }
.chip.on { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 700; }
.chip.sm { min-height: 26px; font-size: 12px; padding: 0 9px; display: inline-flex; align-items: center; margin: 0 4px 4px 0; background: var(--chip); border: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 12px 0; display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font-size: 19px; }
.pill { font-size: 12px; color: var(--acc); background: var(--acc-soft); border-radius: 999px; padding: 4px 10px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cell { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.cell small { display: block; font-size: 11px; color: var(--sub); }
.cell b { display: block; font-size: 14px; margin-top: 3px; }
.dark { background: var(--ink); color: #fff; border-radius: 14px; padding: 16px; margin: 12px 0; }
.card .dark { margin: 0; }
.dark small { color: #B9BCC2; font-size: 12px; }
.dark .big { font-size: 20px; font-weight: 900; margin-top: 4px; line-height: 1.35; }
.dark em { color: var(--hl); font-style: normal; }
.dark .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: #D4D6DA; }
.btn { min-height: 44px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; padding: 0 16px; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.pri { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.pri:hover { background: var(--acc-d); }
.btn.hl { background: var(--hl); border-color: var(--hl); color: var(--ink); }
.btn.block { width: 100%; }
.note { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--sub2); }
.note svg { color: var(--acc); }
.src { font-size: 11px; color: var(--sub); line-height: 1.6; }

.back { border: 0; background: none; padding: 10px 0; color: var(--sub2); font-weight: 700; min-height: 44px; }
.crumb { font-size: 16px; font-weight: 700; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 700; background: var(--chip); color: var(--sub2); border-radius: 999px; padding: 4px 9px; }
.badge.ok { background: var(--acc-soft); color: var(--acc); }
.badge.warn { background: #FBE9DF; color: var(--warn); }
.name { font-size: 15px !important; color: var(--sub2); font-weight: 700; }
.headline { margin: 0; font-size: 25px; line-height: 1.35; font-weight: 900; letter-spacing: -.6px; }
.headline em { color: var(--acc); font-style: normal; }
.rentbar { background: var(--bg); border-radius: 14px; padding: 14px; }
.track { position: relative; height: 10px; background: #E1DFD7; border-radius: 999px; margin-top: 8px; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--acc); border-radius: 999px; }
.track i.bad { background: var(--warn); }
.track u { position: absolute; top: -4px; width: 3px; height: 18px; background: var(--ink); border-radius: 2px; }
.vals { margin-top: 8px; font-size: 15px; }
.rentbar p { margin: 6px 0 0; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; font-size: 12px; color: var(--sub); }
form.inline label { display: flex; flex-direction: column; gap: 3px; }
form.inline input { width: 100px; height: 36px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 8px; background: #fff; }
.line { margin: 0; font-size: 13px; line-height: 1.6; color: var(--sub2); }
.line b { color: var(--ink); }
details summary { cursor: pointer; color: var(--sub); font-size: 12px; min-height: 28px; }

.lock { display: flex; flex-direction: column; gap: 10px; border-radius: 20px; padding: 18px; }
.lockt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.lock p { margin: 0; font-size: 12px; line-height: 1.6; color: #C9CCD1; }
.lockbox { background: var(--bg); border-radius: 12px; padding: 14px; }
.lockbox p { margin: 0 0 10px; }
.banner { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; text-decoration: none; color: var(--ink); font-size: 13px; line-height: 1.5; margin: 12px 0; }
.banner small { color: var(--sub); }

.list { display: flex; flex-direction: column; }
.list .it { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; width: 100%; min-height: 48px; }
.list button.it:hover b { color: var(--acc); }
.list .it small { display: block; color: var(--sub); font-size: 12px; margin-top: 2px; }
.list .it .v { color: var(--sub2); white-space: nowrap; font-weight: 700; }
.acts { display: flex; gap: 4px; flex: none; }
.hbars div { display: grid; grid-template-columns: 96px 1fr 36px; gap: 8px; align-items: center; font-size: 12px; margin-top: 6px; }
.hbars i { display: block; height: 8px; background: var(--acc); border-radius: 4px; }
.hbars b { text-align: right; }

.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sub); border: 0; padding: 0; margin: 0; }
.f legend { padding: 0; margin-bottom: 4px; }
.f input, .f select { height: 44px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; background: #fff; font-size: 15px; color: var(--ink); }
.f.sm input { height: 38px; font-size: 14px; }
.hint { font-size: 12px; color: var(--sub); margin: 4px 0 0; }
.ck { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--sub2); margin: 4px 0; }
.ck input { width: 18px; height: 18px; margin-top: 1px; }
.verify .first { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--acc-soft); color: var(--acc-d);
  font-weight: 700; font-size: 13px; }
.perks { margin: 0; padding-left: 18px; line-height: 1.8; font-size: 13px; color: var(--sub2); }
#vForm { display: flex; flex-direction: column; gap: 10px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl td, .tbl th { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl td:first-child, .tbl th:first-child { text-align: left; color: var(--sub2); }
.tbl th small { display: block; font-weight: 400; color: var(--sub); }
.tbl td.best { background: var(--acc-soft); color: var(--acc); font-weight: 700; }
.scroll { overflow-x: auto; }

/* 마커 */
.mkicon { background: none; border: 0; }
.mkw { position: absolute; left: 0; top: 0; }
.mk { transform: translate(-50%, -100%); position: absolute; left: 0; top: 0; white-space: nowrap; cursor: pointer; font-weight: 700;
  box-shadow: 0 2px 6px rgba(21, 23, 26, .25); }
.mk b { font-weight: 900; }
.mk.bld { display: inline-flex; border-radius: 999px; overflow: hidden; font-size: 12px; background: #fff; }
.mk.bld b { padding: 3px 8px; color: #fff; background: var(--tc); }
.mk.bld span { padding: 3px 7px; color: var(--ink); }
.mk.bld.sel { outline: 3px solid var(--ink); }
.mk.grp { border-radius: 14px; background: var(--tc); color: #fff; padding: 5px 10px; text-align: center; font-size: 12px; border: 2px solid #fff; }
.mk.grp b { display: block; font-size: 14px; }
.mk.grp span { font-size: 11px; opacity: .9; }
.mk.area { border-radius: 14px; background: #fff; padding: 6px 12px; text-align: center; border: 2px solid var(--tc); font-size: 12px; }
.mk.area small { display: block; font-size: 11px; color: var(--sub); font-weight: 500; }
.mk.area b { display: block; font-size: 15px; color: var(--tc); }
.t0 { --tc: #6B6E73; } .t1 { --tc: #6FA898; } .t2 { --tc: #3E8C78; } .t3 { --tc: #0B6B57; } .t4 { --tc: #0A5546; } .t5 { --tc: #063A30; }
.legend { position: fixed; left: calc(var(--side) + 12px); bottom: 12px; z-index: 900; background: rgba(255, 255, 255, .95); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 10px; font-size: 11px; color: var(--sub2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; max-width: 520px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--tc); display: inline-block; margin-left: 6px; }

/* 보고서 모달 */
.modal { position: fixed; inset: 0; background: rgba(21, 23, 26, .45); z-index: 2000; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; }
.modal .box { width: 640px; max-width: 100%; background: var(--bg); min-height: 100%; padding: 24px; }
.report h2 { margin: 12px 0 4px; } .report h3 { font-size: 15px; margin: 20px 0 8px; }
.rhead { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.rhead .logo { flex: none; }
.hist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: end; height: 150px; }
.hist div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; font-size: 11px; }
.hist i { display: block; background: var(--acc); border-radius: 6px 6px 0 0; min-height: 4px; }
.hist small { color: var(--sub); margin-top: 4px; }
.hist i { background: #9CC7BA; }
.hist .mine i { background: var(--acc); }
.hist .mine b { color: var(--acc); }
#toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 3000; }
#toast div { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; margin-top: 6px; font-size: 13px; }

@media print {
  body > *:not(#modal) { display: none !important; }
  .modal { position: static; background: none; } .modal .box { width: auto; background: #fff; }
  .noprint { display: none !important; }
  .dark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 좁은 화면: 지도 탭은 지도 + 아래 시트, 나머지 탭은 전체 화면. 메뉴는 아래 4탭 */
@media (max-width: 760px) {
  :root { --side: 100%; }
  #map { left: 0; bottom: 64px; }
  #side { width: 100%; bottom: 64px; border: 0; }
  body[data-tab="map"] #side { top: auto; height: 52vh; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 16px rgba(21, 23, 26, .12); }
  body[data-tab="map"] #map { bottom: calc(52vh + 64px); }
  body[data-tab="map"] .top { padding-top: 12px; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; margin: 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 0; z-index: 1100; }
  .tabs a { flex-direction: column; gap: 3px; font-size: 11px; border: 0; padding: 0; }
  .tabs a.on { border: 0; }
  #view { padding: 0 16px 24px; }
  .hero h1 { font-size: 28px; }
  .legend { left: 8px; right: 8px; bottom: auto; top: 8px; max-width: none; }
  body:not([data-tab="map"]) .legend { display: none; }
}
