.leaflet-control-layers-toggle.leaflet-layerstree-named-toggle {
    margin: 2px 5px;
    width: auto;
    height: auto;
    background-image: none;
}

.leaflet-control-layers-list{
	font-size: 1rem;
	line-height: 1.7;
}

.leaflet-layerstree-node {
}

.leaflet-layerstree-header input{
    margin-left: 0px;
}


.leaflet-layerstree-header {
}

.leaflet-layerstree-header-pointer {
    cursor: pointer;
}

.leaflet-layerstree-header label {
    display: inline-block;
    cursor: pointer;
}

.leaflet-layerstree-header-label {
}

.leaflet-layerstree-header-name {
	padding-left: 2px;
}

.leaflet-layerstree-header-space {
    display: inline-block;
    width: 5px;
}

.leaflet-layerstree-children {
    padding-left: 20px;
}

.leaflet-layerstree-children-nopad {
    padding-left: 0px;
}

.leaflet-layerstree-closed {
}

.leaflet-layerstree-opened {
}

.leaflet-layerstree-hide {
    display: none;
}

.leaflet-layerstree-nevershow {
    display: none;
}

.leaflet-layerstree-expand-collapse {
    cursor: pointer;
}

/* ========================================
   MOBILE LAYER CONTROL STYLES
   ======================================== */

/* Limit headline width on desktop so it doesn't go under layers control */
.leaflet-top.leaflet-left {
    max-width: 75rem;
}

/* Mobile toggle button - hidden on desktop */
.leaflet-layers-toggle-btn {
    display: none;
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    background: #f8f8f8;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.leaflet-layers-toggle-btn i {
    margin-right: 6px;
}

/* Mobile overlay backdrop */
.leaflet-layers-mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.leaflet-layers-mobile-backdrop.active {
    display: block;
}

/* Mobile close button inside panel */
.leaflet-layers-mobile-close {
    display: none;
    position: sticky;
    top: 0;
    background: #f8f8f8;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    margin: -6px -6px 10px -6px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
}

.leaflet-layers-mobile-close i {
    float: right;
    margin-top: 2px;
}

/* Mobile styles - max-width: 860px (53.75em) */
@media (max-width: 53.75em) {
    /* Show toggle button on mobile */
    .leaflet-layers-toggle-btn {
        display: block;
    }

    /* Show close button inside panel */
    .leaflet-layers-mobile-close {
        display: block;
    }

    /* Layer control panel styling for mobile */
    .leaflet-control-layers {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        bottom: 0 !important;
        width: 85% !important;
        max-width: 350px !important;
        height: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        z-index: 9999 !important;
        transition: right 0.3s ease;
        overflow-y: auto !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    }

    .leaflet-control-layers.mobile-open {
        right: 0 !important;
    }

    .leaflet-control-layers-list {
        padding-bottom: 20px;
    }

    /* Hide default toggle on mobile since we have our own */
    .leaflet-control-layers-toggle {
        display: none !important;
    }

    /* Ensure panel is always expanded when visible */
    .leaflet-control-layers-expanded {
        padding: 6px 10px 6px 6px !important;
    }
}
