.mu-map-wrap {
    display: flex;
    gap: 0;
    min-height: 560px;
    height: calc(100vh - 220px);
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    overflow: hidden;
    background: #10131a;
}

.mu-map-sidebar {
    width: 264px;
    flex: 0 0 264px;
    display: flex;
    flex-direction: column;
    background: #171b24;
    color: #d6dae2;
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.mu-map-search {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mu-map-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #0e1117;
    color: #e8eaed;
    font-size: 13px;
}

.mu-map-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.mu-map-list::-webkit-scrollbar {
    width: 6px;
}

.mu-map-list::-webkit-scrollbar-track {
    background: transparent;
}

.mu-map-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .16);
    border-radius: 3px;
}

.mu-map-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .3);
}

.mu-map-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
}

.mu-map-list li:hover {
    background: rgba(255, 255, 255, .06);
}

.mu-map-list li.is-active {
    background: #2a63d6;
    color: #fff;
}

.mu-map-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mu-map-goto {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.mu-map-goto input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #0e1117;
    color: #e8eaed;
    font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-align: center;
}

.mu-map-goto input.is-error {
    border-color: #d23b3b;
}

.mu-map-goto button {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #171b24;
    color: #d6dae2;
    font-size: 13px;
    cursor: pointer;
}

.mu-map-goto button:hover {
    background: #232833;
    color: #fff;
}

.mu-map-legend {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
}

.mu-lg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mu-lg::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.mu-lg.low::before { background: #3aa655; }
.mu-lg.mid::before { background: #e0912f; }
.mu-lg.hot::before { background: #d23b3b; }

.mu-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.mu-map-main {
    flex: 1;
    position: relative;
    min-width: 0;
}

#mu-map {
    position: absolute;
    inset: 0;
    background: #0b0d12;
}

.leaflet-container {
    background: #0b0d12;
    font: inherit;
}

.mu-map-main .leaflet-bar {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

.mu-map-main .leaflet-bar a,
.mu-map-main .leaflet-bar a:hover {
    width: 28px;
    height: 28px;
    line-height: 28px;
    background: #171b24;
    color: #d6dae2;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 16px;
}

.mu-map-main .leaflet-bar a:last-child {
    border-bottom: none;
}

.mu-map-main .leaflet-bar a:hover {
    background: #232833;
    color: #fff;
}

.mu-map-main .leaflet-bar a.leaflet-disabled {
    background: #12151c;
    color: #4b5262;
}

.mu-map-drawer-btn {
    display: none;
    position: absolute;
    z-index: 500;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: #171b24;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.mu-map-notice {
    position: absolute;
    z-index: 500;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
    max-width: 80%;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(23, 27, 36, .94);
    color: #e8eaed;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

.mu-map-coord {
    position: absolute;
    z-index: 500;
    left: 10px;
    bottom: 10px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(23, 27, 36, .9);
    color: #cdd3dd;
    font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .3px;
    pointer-events: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.mu-marker.pin {
    width: 18px !important;
    height: 18px !important;
    background: #2a63d6;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(42, 99, 214, .35), 0 1px 6px rgba(0, 0, 0, .6);
}

.mu-pin-tip {
    background: #2a63d6;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    white-space: nowrap;
}

.mu-pin-tip.leaflet-tooltip-top::before {
    border-top-color: #2a63d6;
}

.mu-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    background: #6b7280;
}

.mu-marker.low { background: #3aa655; }
.mu-marker.mid { background: #e0912f; }
.mu-marker.hot { background: #d23b3b; }
.mu-marker.npc {
    background: #c9a227;
    width: 16px !important;
    height: 16px !important;
    font-size: 9px;
}

.mu-marker.is-dot {
    width: 10px !important;
    height: 10px !important;
    border-width: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .6);
    transition: transform .1s ease;
}

.mu-marker.is-dot:hover {
    transform: scale(1.5);
}

.mu-pop .leaflet-popup-content-wrapper {
    background: #171b24;
    color: #e2e5ea;
    border-radius: 8px;
}

.mu-pop .leaflet-popup-content {
    margin: 10px 12px;
}

.mu-pop .leaflet-popup-tip {
    background: #171b24;
}

.mu-pop-head {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 6px;
    color: #b9c0cc;
}

.mu-pop.is-single .mu-pop-head {
    text-align: center;
    font-size: 13px;
}

.mu-pop-empty {
    font-size: 12px;
    color: #8b93a1;
}

.mu-pop-grid {
    display: grid;
    grid-template-columns: repeat(3, 128px);
    justify-content: center;
    gap: 12px 10px;
}

.mu-pop-grid .mu-mon-img {
    width: 128px;
    height: 128px;
    border-radius: 8px;
}

.mu-pop-grid .mu-mon-img.is-broken {
    background-size: 44px;
}

.mu-pop-grid .mu-mon-name {
    font-size: 14px;
    line-height: 1.35;
}

.mu-pop-grid.is-single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.mu-mon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    cursor: pointer;
}

.mu-mon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #0e1117;
    display: block;
}

.mu-mon-img.is-broken {
    display: inline-block;
    background: #0e1117 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23566' stroke-width='2'%3E%3Cpath d='M3 3l18 18M21 15l-5-5L5 21'/%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3C/svg%3E") center/22px no-repeat;
}

.mu-mon-name {
    font-size: 11px;
    line-height: 1.25;
    color: #dfe3ea;
}

.mu-mon-x {
    color: #9aa3b2;
}

.mu-mon-tags {
    display: flex;
    gap: 3px;
}

.mu-mon-tag {
    font-size: 9px;
    padding: 0 4px;
    border-radius: 4px;
    text-transform: uppercase;
}

.mu-mon-tag.elite { background: #7c3aed; color: #fff; }
.mu-mon-tag.trap { background: #b45309; color: #fff; }

.mu-mon-zoom {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, .82);
    cursor: zoom-out;
}

.mu-mon-zoom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mu-mon-zoom-inner img {
    max-width: 70vw;
    max-height: 70vh;
    object-fit: contain;
}

.mu-mon-zoom-inner p {
    color: #fff;
    font-size: 15px;
    margin: 0;
}

@media (max-width: 900px) {
    .mu-map-wrap {
        height: calc(100vh - 150px);
    }
    .mu-map-sidebar {
        position: absolute;
        z-index: 900;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    .mu-map-sidebar.is-open {
        transform: translateX(0);
    }
    .mu-map-drawer-btn {
        display: block;
    }
}
