/* Public Tree Locations Map Styles */

.tpl-public-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Noto Sans', sans-serif;
}

.tpl-public-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
    width: 100%;
}

.tpl-header-top {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.tpl-inline-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #247A19 0%, #1a5912 100%);
    border-radius: 20px;
    white-space: nowrap;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(36, 122, 25, 0.2);
}

.tpl-stat-badge {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.tpl-stat-text {
    font-size: 13px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tpl-public-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #247A19 0%, #1a5912 100%);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(36, 122, 25, 0.2);
}

.tpl-public-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.tpl-public-stat-number {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.tpl-public-stat-label {
    font-size: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tpl-user-filter {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.tpl-toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.tpl-toggle-container input[type="checkbox"] {
    display: none;
}

.tpl-toggle-slider {
    position: relative;
    width: 56px;
    height: 28px;
    background-color: #e0e0e0;
    border-radius: 28px;
    transition: all 0.35s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.tpl-toggle-slider:before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.35s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.tpl-toggle-container input[type="checkbox"]:checked + .tpl-toggle-slider {
    background-color: #247A19;
}

.tpl-toggle-container input[type="checkbox"]:checked + .tpl-toggle-slider:before {
    transform: translateX(28px);
}

.tpl-toggle-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.tpl-login-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #247A19 0%, #1a5912 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(70, 180, 80, 0.2);
}

.tpl-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 180, 80, 0.3);
    color: white;
    text-decoration: none;
}

.tpl-public-search {
    margin: 0 !important;
    padding: 0 !important;
    width: 32% !important;
}

.tpl-search-input {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border: 2px solid #247A19 !important;
    border-radius: 20px !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
    font-family: 'Noto Sans', sans-serif !important;
}

.tpl-search-input:focus {
    outline: none;
    border-color: #0c891D;
    box-shadow: 0 0 0 4px rgba(36, 122, 25, 0.15);
}

#tpl-public-map {
    width: 100%;
    z-index: 1;
}

.tpl-public-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    margin-top: 20px;
    color: #666;
}

.tpl-public-empty p {
    font-size: 18px;
    margin: 0;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content h3 {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .tpl-public-container {
        padding: 10px;
    }
    
    .tpl-public-stats {
        padding: 20px;
        gap: 20px;
    }
    
    .tpl-public-stat-number {
        font-size: 36px;
    }
    
    .tpl-public-stat-label {
        font-size: 14px;
    }
    
    .tpl-toggle-label {
        font-size: 14px;
    }
    
    .tpl-login-button {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .tpl-search-input {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    #tpl-public-map {
        height: 400px !important;
    }
}
