#sl-wrap {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
}

#sl-map {
    width: 100%;
    height: 100%;
}

/* ── Top Layer Toggle ── */
#sl-topbar {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    overflow: hidden;
}

.sl-tb-btn {
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #3c4043;
    border-right: 1px solid #e0e0e0;
    transition: background .15s;
}

.sl-tb-btn:last-child { border-right: none; }
.sl-tb-btn.active     { background: #e8f0fe; color: #1a73e8; }
.sl-tb-btn:hover:not(.active) { background: #f5f5f5; }

/* ── Info Popup ── */
#sl-infopopup {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,.28);
    padding: 20px 24px 18px;
    min-width: 300px;
    max-width: 420px;
    display: none;
    font-size: 14px;
    line-height: 1.8;
}

#sl-infopopup.show { display: block; }

.sl-close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sl-close-btn:hover { background: #f1f3f4; }

#sl-infotable {
    width: 100%;
    border-collapse: collapse;
}

#sl-infotable td {
    padding: 3px 0;
    vertical-align: top;
}

#sl-infotable td:first-child {
    font-weight: 700;
    color: #202124;
    white-space: nowrap;
    padding-right: 8px;
    width: 85px;
}

#sl-infotable td:last-child { color: #3c4043; }

/* ── Map Pin ── */
.sl-gpin {
    cursor: pointer;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,.35));
}

/* ── Zoom Controls ── */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.28) !important;
    border-radius: 4px !important;
}

.leaflet-control-zoom a {
    background: #fff !important;
    color: #3c4043 !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 18px !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
}

.leaflet-control-zoom-out { border-bottom: none !important; }
.leaflet-control-zoom a:hover { background: #f5f5f5 !important; }
.leaflet-control-attribution { font-size: 10px !important; }
