.sbm {
--sbm-primary: #0e7490;
--sbm-primary-dark: #155e75;
--sbm-bg: #ffffff;
--sbm-soft: #f1f5f9;
--sbm-line: #e2e8f0;
--sbm-text: #0f172a;
--sbm-muted: #64748b;
--sbm-radius: 14px;
position: relative;
display: grid;
grid-template-columns: 320px 1fr;
height: var(--sbm-height, 80vh);
min-height: 460px;
border: 1px solid var(--sbm-line);
border-radius: var(--sbm-radius);
overflow: hidden;
background: var(--sbm-bg);
color: var(--sbm-text);
font-family: inherit;
font-size: 14px;
line-height: 1.45;
box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
}
.sbm *, .sbm *::before, .sbm *::after { box-sizing: border-box; }
.sbm--nosidebar { grid-template-columns: 1fr; }
.sbm-loading { grid-column: 1 / -1; display: grid; place-items: center; color: var(--sbm-muted); } .sbm-side {
display: flex; flex-direction: column; gap: 12px;
padding: 16px; overflow-y: auto;
background: var(--sbm-bg);
border-right: 1px solid var(--sbm-line);
z-index: 2;
}
.sbm-side-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sbm-side-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--sbm-primary-dark); }
.sbm-side-head p { margin: 2px 0 0; font-size: 12px; color: var(--sbm-muted); }
.sbm-close { display: none; border: 0; background: var(--sbm-soft); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; color: var(--sbm-text); }
.sbm-search { position: relative; }
.sbm-search input {
width: 100%; height: 40px; padding: 0 12px 0 36px;
border: 1px solid var(--sbm-line); border-radius: 10px;
background: var(--sbm-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 12px center no-repeat;
font: inherit; color: var(--sbm-text); outline: none;
}
.sbm-search input:focus { border-color: var(--sbm-primary); background-color: #fff; }
.sbm-results { list-style: none; margin: 4px 0 0; padding: 0; position: absolute; left: 0; right: 0; z-index: 5; background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(15,23,42,.15); overflow: hidden; }
.sbm-results:empty { display: none; }
.sbm-results li { display: flex; gap: 8px; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--sbm-soft); }
.sbm-results li:hover, .sbm-results li:focus { background: var(--sbm-soft); outline: none; }
.sbm-results .sbm-empty { color: var(--sbm-muted); cursor: default; }
.sbm-bulk { display: flex; gap: 6px; }
.sbm-bulk button {
flex: 1; min-height: 32px; padding: 4px 6px; border: 1px solid var(--sbm-line); border-radius: 8px;
background: #fff; color: var(--sbm-text); font: inherit; font-size: 12px; line-height: 1.2;
white-space: nowrap; cursor: pointer;
}
.sbm-bulk button:hover { border-color: var(--sbm-primary); color: var(--sbm-primary); } .sbm-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sbm-cat label {
display: flex; align-items: center; gap: 10px;
padding: 9px 10px; border-radius: 10px; cursor: pointer;
border: 1px solid var(--sbm-line); transition: border-color .15s, background .15s;
}
.sbm-cat label:hover { border-color: var(--c); }
.sbm-cat-ic {
flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
font-size: 17px; background: color-mix(in srgb, var(--c) 14%, #fff);
}
.sbm-cat-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sbm-cat-tx b { font-size: 13.5px; font-weight: 600; }
.sbm-cat-tx small { font-size: 11.5px; color: var(--sbm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbm-sw {
appearance: none; -webkit-appearance: none; flex: none;
width: 38px; height: 22px; margin: 0; border-radius: 999px;
background: #cbd5e1; position: relative; cursor: pointer; transition: background .2s;
}
.sbm-sw::after {
content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s;
}
.sbm-sw:checked { background: var(--c); }
.sbm-sw:checked::after { transform: translateX(16px); }
.sbm-sw:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.sbm-cat:has(.sbm-sw:not(:checked)) .sbm-cat-ic { filter: grayscale(1); opacity: .55; } .sbm-emg { border: 1px solid #fed7aa; background: #fff7ed; border-radius: 10px; padding: 0 12px; }
.sbm-emg summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: #c2410c; }
.sbm-emg ul { list-style: none; margin: 0 0 10px; padding: 0; }
.sbm-emg li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px dashed #fed7aa; font-size: 12.5px; }
.sbm-emg a { color: #c2410c; font-weight: 600; text-decoration: none; white-space: nowrap; } .sbm-map { position: relative; height: 100%; min-height: 0; z-index: 1; }
.sbm .leaflet-container { font-family: inherit; }
.sbm-ctl {
width: 34px; height: 34px; border: 2px solid rgba(0,0,0,.2); border-radius: 4px;
background: #fff; cursor: pointer; font-size: 18px; line-height: 1; color: #333;
}
.sbm-fab {
display: none; position: absolute; left: 12px; top: 12px; z-index: 500;
height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
background: var(--sbm-primary); color: #fff; font: inherit; font-weight: 600;
box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer;
} .sbm-pin-wrap { background: none; border: 0; }
.sbm-pin {
position: relative; display: grid; place-items: center;
width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
background: var(--c); transform: rotate(-45deg);
border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.sbm-pin-i { transform: rotate(45deg); font-size: 16px; line-height: 1; } .sbm .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; overflow: hidden; }
.sbm .leaflet-popup-content { margin: 0; }
.sbm-pop { width: 270px; max-width: calc(100vw - 80px); }
.sbm-pop-img { display: block; width: 100%; height: 130px; object-fit: cover; }
.sbm-pop-body { padding: 12px 14px 14px; }
.sbm-badge {
display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff);
}
.sbm-pop h4 { margin: 6px 0 4px; font-size: 15.5px; line-height: 1.3; color: var(--sbm-text); }
.sbm-pop-desc { margin: 0 0 8px !important; color: #334155; font-size: 13px; }
.sbm-pop-meta { list-style: none; margin: 0 0 8px; padding: 0; font-size: 12.5px; color: #334155; }
.sbm-pop-meta li { display: flex; gap: 6px; padding: 2px 0; }
.sbm-pop-meta a { color: var(--sbm-primary); font-weight: 600; text-decoration: none; }
.sbm-sdg { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.sbm-sdg span { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #e0f2fe; color: #075985; }
.sbm-btn {
display: block; text-align: center; padding: 8px 10px; border-radius: 8px;
background: var(--sbm-primary); color: #fff !important; font-weight: 600; font-size: 13px; text-decoration: none;
}
.sbm-btn:hover { background: var(--sbm-primary-dark); } @media (max-width: 820px) {
.sbm { grid-template-columns: 1fr; height: var(--sbm-height, 80vh); }
.sbm-fab { display: block; }
.sbm-close { display: block; }
.sbm-side {
position: absolute; inset: auto 0 0 0; max-height: 78%;
border-right: 0; border-top: 1px solid var(--sbm-line);
border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(15,23,42,.2);
transform: translateY(105%); transition: transform .28s ease;
z-index: 600;
}
.sbm--open .sbm-side { transform: translateY(0); }
}