:root {
  --gold: #b19848; --gold-deep: #7d6624; --gold-tint: #f3ecdd;
  --ink: #3a2e2c; --ink-soft: #6b655a; --line: #e6e0d2; --cream: #fbfaf7;
  --a: #396b72; --b: #c26345;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--cream); display: flex; flex-direction: column; font-size: 14px; }
button, select, input { font: inherit; color: inherit; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 12px; }
.logo { font-family: 'Marcellus', serif; letter-spacing: .22em; font-size: 20px; color: var(--gold-deep); }
.sub { color: var(--ink-soft); font-size: 13px; }
.tabs { display: flex; gap: 6px; background: var(--gold-tint); padding: 4px; border-radius: 999px; }
.tab { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); font-weight: 500; }
.tab.active { background: var(--ink); color: #f6f3ec; }

.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.mapcol { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 12px 16px; background: #24211c; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #cbbf9e; flex: 1 1 150px; min-width: 130px; }
.filters select { height: 36px; border-radius: 7px; border: 1px solid #4a453a; background: #34302a; color: #f6f3ec; padding: 0 8px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.filters select option { background: #fff; color: #24211c; }
.filters .ghost { height: 36px; background: transparent; color: #e5d3a7; border-color: #6b5a37; }
.simbar { padding: 10px 16px; background: #fff7e7; color: var(--gold-deep); border-bottom: 1px solid var(--line); font-size: 13px; }
.simbar[hidden], .filters[hidden] { display: none; }

.mapwrap { position: relative; flex: 1; min-height: 360px; }
#map { position: absolute; inset: 0; background: #efeae0; }
#map.placing { cursor: crosshair; }
.legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 11.5px; }
.legend div { display: flex; align-items: center; gap: 7px; margin: 2px 0; }
.legend i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.legend b { font-weight: 500; font-size: 11px; color: var(--ink-soft); display: block; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .05em; }
.maperr { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 600; background: #fff3f0; border: 1px solid #e3b4a8; color: #8a3a28; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; max-width: 80%; }

.side { overflow-y: auto; background: #fff; border-left: 1px solid var(--line); padding: 16px; }
.side h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 16px; margin: 18px 0 8px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fffdf8; }
.kpi:first-child { grid-column: 1 / -1; }
.kpi b { display: block; font-family: 'Marcellus', serif; font-weight: 400; font-size: 26px; color: var(--gold-deep); line-height: 1.1; }
.kpi span { font-size: 11.5px; color: var(--ink-soft); }
.kpi small { color: var(--ink-soft); }

.bars .row { display: grid; grid-template-columns: 70px 1fr 86px; gap: 8px; align-items: center; margin: 5px 0; font-size: 12.5px; }
.bars .bar { height: 10px; background: var(--gold-tint); border-radius: 6px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--gold); }
.bars .v { text-align: right; color: var(--ink-soft); }
.rank { margin: 0; padding: 0; list-style: none; }
.rank li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 13px; }
.rank li:hover { color: var(--gold-deep); }
.rank small { color: var(--ink-soft); display: block; }
.rank b { font-weight: 500; white-space: nowrap; }

.radius { display: grid; grid-template-columns: 1fr; gap: 8px; }
.radius [hidden] { display: none; }
.radius select, .rin { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 10px; }
.rin { display: flex; align-items: center; gap: 6px; }
.rin input { border: 0; outline: 0; width: 100%; background: transparent; }
.slots { display: grid; gap: 8px; margin-top: 12px; }
.slot { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.slot-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.slot-b { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.a { background: var(--a); } .dot.b { background: var(--b); }
.btn { background: var(--ink); color: #f6f3ec; border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.btn.on { background: var(--gold-deep); }
.ghost { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; color: var(--ink-soft); }
.simout { margin-top: 14px; display: grid; gap: 10px; }
.hint { color: var(--ink-soft); font-size: 13px; margin: 0; }
.res { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fffdf8; }
.res h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.res .big { font-family: 'Marcellus', serif; font-size: 24px; color: var(--gold-deep); }
.res .line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.res .line:last-of-type { border-bottom: 0; }
.res .line span { color: var(--ink-soft); }
.res .imp { margin-top: 8px; font-size: 12.5px; }
.res .imp div { display: flex; justify-content: space-between; padding: 3px 0; }
.res .imp div b { font-weight: 500; }
.res .sub { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-top: 10px; }
.notes { margin-top: 22px; padding: 12px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); font-size: 12px; line-height: 1.55; color: var(--ink-soft); }
.notes p { margin: 6px 0 0; }
.notes b { color: var(--ink); font-weight: 500; }

.bpin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold-deep); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.bpin::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; left: 7px; top: 7px; }
.simpin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.simpin.a { background: var(--a); } .simpin.b { background: var(--b); }
.blabel { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 500; color: var(--ink); white-space: nowrap; box-shadow: none; }
.leaflet-tooltip.blabel::before { display: none; }
.pop b { display: block; font-size: 14px; }
.pop small { color: var(--ink-soft); }
.pop .r { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding: 3px 0; }

@media (max-width: 900px) {
  body { height: auto; }
  .layout { grid-template-columns: 1fr; }
  .mapwrap { min-height: 420px; }
  .side { border-left: 0; border-top: 1px solid var(--line); }
  .top { flex-direction: column; align-items: flex-start; }
}

.login { position: fixed; inset: 0; z-index: 2000; background: var(--cream); display: grid; grid-template-columns: 1.05fr .95fr; }
.login[hidden] { display: none; }
.login-photo { position: relative; overflow: hidden; }
.login-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; transform: scale(1.1); animation: kb 20s ease-in-out infinite alternate; }
@keyframes kb { to { transform: scale(1.02) translateX(-2%); } }
.login-photo-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,33,28,.1) 30%, rgba(36,33,28,.6)); }
.login-quote { position: absolute; left: 40px; right: 40px; bottom: 44px; margin: 0; color: #fff; font-family: 'Marcellus', serif; font-size: 28px; line-height: 1.3; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.login-side { position: relative; display: flex; align-items: center; justify-content: center; padding: 32px; background: radial-gradient(circle at 80% 10%, #f6e6e2 0, transparent 45%), var(--cream); }
.login-back { position: absolute; top: 24px; left: 28px; font-size: 13.5px; color: var(--ink-soft); text-decoration: none; }
.login-back:hover { color: var(--gold-deep); }
.login-card { width: 100%; max-width: 380px; display: grid; gap: 14px; animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.login-logo { width: 150px; height: auto; margin-bottom: 6px; }
.login-card h1 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 34px; margin: 0; line-height: 1.1; }
.login-sub { margin: -6px 0 8px; color: var(--ink-soft); font-size: 14.5px; }
.login-card label { display: grid; gap: 6px; font-size: 12.5px; letter-spacing: .04em; color: var(--ink-soft); }
.login-card input { height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; width: 100%; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.login-card input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(166,134,79,.16); }
.pw { position: relative; display: block; }
.pw input { padding-right: 76px; }
.pw button { position: absolute; right: 8px; top: 8px; height: 30px; border: 0; background: transparent; color: var(--gold-deep); cursor: pointer; font-size: 13px; padding: 0 8px; }
.login-card .btn { height: 48px; border-radius: 999px; font-weight: 500; margin-top: 4px; transition: transform .2s, box-shadow .2s; }
.login-card .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(36,33,28,.2); }
.login-card .btn:disabled { opacity: .6; }
.login-err { margin: 0; min-height: 20px; font-size: 13px; color: #8a3a28; }
@media (max-width: 820px) { .login { grid-template-columns: 1fr; grid-template-rows: 190px 1fr; } .login-quote { display: none; } .login-back { top: 14px; left: 16px; color: #fff; z-index: 2; } .login-side { align-items: flex-start; padding-top: 28px; } }
@media (prefers-reduced-motion: reduce) { .login-photo img, .login-card { animation: none; } }

/* --- periode, badge, daftar, batas wilayah, behaviour --- */
.datebar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.datebar label { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.datebar select, .datebar input { height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.d-custom { display: flex; gap: 10px; }
.d-custom[hidden] { display: none; }
.d-info { font-size: 12.5px; color: var(--gold-deep); padding-bottom: 8px; margin-left: auto; }
.new { font-style: normal; font-size: 9.5px; letter-spacing: .08em; background: #b5533c; color: #fff; padding: 1px 6px; border-radius: 999px; vertical-align: middle; margin-left: 4px; font-weight: 600; }
.filters label .new { text-transform: none; }
.mapwrap[hidden], .behview[hidden], .side [hidden] { display: none; }
.bars .row { grid-template-columns: 118px 1fr 92px; }
.bars .row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank li { position: relative; align-items: center; padding: 8px 8px; border-bottom: 0; border-radius: 8px; margin-bottom: 3px; background: linear-gradient(90deg, #f3ecdd var(--w, 0%), transparent var(--w, 0%)); }
.rank li:hover { background: linear-gradient(90deg, #e9dcc0 var(--w, 0%), #fbf6ea var(--w, 0%)); color: var(--ink); }
.rank .no { display: inline-block; width: 20px; color: var(--gold-deep); font-style: normal; font-size: 12px; }
.rank b small { color: var(--ink-soft); font-weight: 400; margin-left: 3px; }
.rank li > span { min-width: 0; }
.legend b.lg { margin-top: 6px; }
.legend .ln { display: inline-block; width: 18px; height: 0; border-top: 1px solid #33250f; }
.legend .l-kota { border-top: 2.5px solid #2b1f0f; }
.legend .l-prov { border-top: 4px solid #a31919; }
.behview { flex: 1; overflow: auto; padding: 18px 20px 28px; background: var(--cream); }
.behview h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 18px; margin: 18px 0 10px; }
.behview h3:first-child { margin-top: 0; }
.behview h3 small { font-family: 'Jost', sans-serif; font-size: 12px; color: var(--ink-soft); margin-left: 8px; }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { background: #f7f1e4; font-weight: 500; color: var(--gold-deep); font-size: 12px; }
.tbl tbody tr:hover td { background-color: #fffaf0; }
.tbl tfoot td { font-weight: 600; background: #f7f1e4; border-bottom: 0; }
.tbl small { color: var(--ink-soft); }
.matrix th { font-size: 11.5px; }
.matrix tbody th { text-align: left; background: #fbf8f2; font-weight: 500; color: var(--ink); }
.matrix td { text-align: center; min-width: 56px; }
.matrix td.diag { color: #c9bda3; background: #f6f2e8; }
@media (max-width: 900px) { .d-info { margin-left: 0; width: 100%; padding-bottom: 0; } .behview { min-height: 60vh; } }
.logo-img { height: 38px; width: auto; display: block; }
.brand a { display: block; line-height: 0; }
.filters label > span.lb { display: block; }
.new { align-self: flex-start; display: inline-block; width: fit-content; }
.bars .row { grid-template-columns: 112px 1fr 116px; } .bars .v { white-space: nowrap; font-size: 12.5px; }

.login-corner { position: absolute; top: 24px; right: 30px; height: 36px; width: auto; }
.login-logo { display: none; }
@media (max-width: 820px) { .login-corner { top: 12px; right: 16px; height: 30px; } }

.bpin.soon { background: #fff; border: 3px dashed var(--gold-deep); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.bpin.soon::after { background: var(--gold-deep); }
.blabel.soon { border-style: dashed; border-color: var(--gold-deep); color: var(--gold-deep); }
.ghost.kg { width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-color: var(--gold); color: var(--gold-deep); }
.ghost.kg:hover { background: #fbf6ea; }
.soonbadge { background: var(--gold-deep); margin-left: 0; }

.row.job { cursor: pointer; border-radius: 6px; padding: 2px 4px; margin-inline: -4px; }
.row.job:hover { background: #f7f1e4; }
.row.job.sel { background: #efe2c3; }
.row.job.sel .bar i { background: var(--gold-deep); }
.lnk { background: none; border: 0; color: var(--gold-deep); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.hint.small { font-size: 12px; margin: 4px 0 8px; line-height: 1.45; }
.res .imp b small { color: var(--ink-soft); font-weight: 400; }
.res .aff .ar { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.res .aff .ar small { display: block; color: var(--ink-soft); font-size: 11.5px; }
.res .aff .ar .ad { text-align: right; white-space: nowrap; }
.res details.more { margin-top: 4px; font-size: 12.5px; }
.res details.more summary { cursor: pointer; color: var(--gold-deep); padding: 4px 0; }
.res .tip { font-style: normal; display: inline-block; width: 15px; height: 15px; line-height: 15px; text-align: center; border-radius: 50%; background: #efe6d2; color: var(--gold-deep); font-size: 10px; cursor: help; margin-left: 4px; }
.res .jobs .row { grid-template-columns: 104px 1fr 48px; }
.howto { margin-top: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.howto b:first-child { color: var(--ink); font-weight: 600; }
.howto p { margin: 6px 0 0; } .howto u { text-decoration: none; color: var(--gold-deep); font-weight: 500; }

.dlbar{display:flex;gap:8px;margin:0 0 12px;flex-wrap:wrap}
.dlbar .ghost{font-size:12px;padding:6px 10px}
.mut{color:#8a7a5c;font-weight:400}
.mini{font-size:12px;color:#5c4a2c;margin:8px 0 2px}
.pfsel{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.pfsel label{display:flex;flex-direction:column;font-size:11px;color:#6b5a3c;gap:3px}
.pfsel select{font:inherit;font-size:12px;padding:5px 4px;border:1px solid #d9cdb2;border-radius:8px;background:#fff}
.scbar{display:flex;gap:8px;margin-bottom:8px}
.sc{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #eadfc6;font-size:13px}
.sc small{display:block;color:#8a7a5c;font-size:11px}
.sc .lnk{margin-left:8px}
.modal{position:fixed;inset:0;background:rgba(30,22,10,.55);display:flex;align-items:center;justify-content:center;z-index:5000;padding:16px}
.modal[hidden]{display:none}
.modal-box{background:#fffdf8;border-radius:14px;max-width:960px;width:100%;max-height:86vh;overflow:auto;padding:18px}
.modal-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:8px}
.modal-h .ghost{margin-left:8px}
.modal .tbl td.best{font-weight:700;background:#f6ecd2}
.modal .tbl th{text-align:left;white-space:normal}

.dlmenu{position:relative;display:inline-block}
.dlmenu summary{list-style:none;cursor:pointer;font-size:12px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:#fff}
.dlmenu summary::-webkit-details-marker{display:none}
.dlmenu summary.busy{opacity:.5;pointer-events:none}
.dlpop{position:absolute;z-index:3000;top:calc(100% + 4px);left:0;min-width:180px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(58,46,44,.15);padding:4px}
.dlpop button{display:block;width:100%;text-align:left;border:0;background:none;padding:8px 10px;border-radius:8px;font:inherit;font-size:13px;cursor:pointer}
.dlpop button:hover{background:#f6ecd2}
.modal .dlpop{left:auto;right:0}

.modal .tblwrap{overflow-x:auto}
.modal .tbl{width:100%;table-layout:auto;border-collapse:collapse}
.modal .tbl th:first-child{position:static;min-width:170px;white-space:normal;text-align:left;background:#fbf6ea}
.modal .tbl td,.modal .tbl thead th{min-width:150px;text-align:left;white-space:normal;vertical-align:top}

.topact{display:flex;gap:8px;align-items:center}
.ghost.guide{text-decoration:none;display:inline-block}
