/* NMap Menu Three-Level Accordion Styles */

.nmap-main-acc {
    background-color: #3a2a0a;
    color: white;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
    border-radius: 4px;
    border-left: 4px solid #FF6600;
    transition: background-color 0.3s;
}

.nmap-main-acc.admin {
    background-color: #4a1a1a;
    border-left: 4px solid #f44336;
}

.nmap-main-acc.cities {
    background-color: #2a3a2a;
    border-left: 4px solid #4CAF50;
    text-align: left;
    font-size: 18px;
    border-bottom: 1px solid #5B380F;
}

.nmap-main-acc.bus {
    background-color: #3a3a1a;
    border-left: 4px solid #FF5722;
    text-align: left;
    font-size: 18px;
    border-bottom: 1px solid #5B380F;
}

.nmap-main-acc.mydata {
    background-color: #3a1a3a;
    border-left: 4px solid #9C27B0;
    text-align: left;
    font-size: 16px;
}

.nmap-main-acc:hover {
    background-color: #4a3a1a;
}

.nmap-main-acc.active {
    background-color: #5a4a2a;
}

.nmap-city-acc {
    background-color: #1a2a1a;
    color: white;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 14px;
    margin: 8px 0 2px 10px;
    border-radius: 4px;
    border-left: 4px solid #4CAF50;
    transition: background-color 0.3s;
}

.nmap-city-acc.sf {
    background-color: #1a1a2a;
    border-left: 4px solid #2196F3;
}

.nmap-city-acc.fc {
    background-color: #2a2a1a;
    border-left: 4px solid #FF9800;
}

.nmap-city-acc:hover {
    background-color: #2a3a2a;
}

.nmap-city-acc.active {
    background-color: #2a4a2a;
}

.nmap-main-panel {
    padding: 0 15px;
    background-color: #1a1a0a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-radius: 0 0 4px 4px;
}

.nmap-main-panel.show {
    max-height: 2000px;
}

.nmap-city-panel {
    padding: 0 15px;
    background-color: #1a1a0a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-radius: 0 0 4px 4px;
    margin-left: 10px;
}

.nmap-city-panel.show {
    max-height: 1500px;
}

.nmap-panel-content {
    padding: 10px 0;
}

.nmap-main-item {
    background-color: rgba(58, 42, 10, 0.7);
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 3px solid #FFD700;
}

.nmap-main-item a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: bold;
    display: block;
}

.nmap-main-item a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.nmap-city-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nmap-city-object {
    background-color: rgba(26, 42, 26, 0.7);
    padding: 6px;
    border-radius: 3px;
    border-left: 2px solid #4CAF50;
}

.nmap-city-object.sf {
    background-color: rgba(26, 26, 42, 0.7);
    border-left: 2px solid #2196F3;
}

.nmap-city-object.fc {
    background-color: rgba(42, 42, 26, 0.7);
    border-left: 2px solid #FF9800;
}

.nmap-city-object a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 12px;
    display: block;
}

.nmap-city-object a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nmap-main-acc {
        font-size: 14px;
        padding: 12px;
    }
    
    .nmap-main-acc.cities,
    .nmap-main-acc.bus {
        font-size: 16px;
    }
    
    .nmap-city-acc {
        font-size: 12px;
        padding: 10px;
        margin-left: 5px;
    }
    
    .nmap-main-panel,
    .nmap-city-panel {
        padding: 0 10px;
    }
    
    .nmap-city-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .nmap-main-item {
        padding: 6px;
        margin-bottom: 6px;
    }
    
    .nmap-city-object {
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .nmap-main-acc {
        font-size: 13px;
        padding: 10px;
    }
    
    .nmap-main-acc.cities,
    .nmap-main-acc.bus,
    .nmap-main-acc.mydata {
        font-size: 15px;
    }
    
    .nmap-city-acc {
        font-size: 11px;
        padding: 8px;
    }
    
    .nmap-panel-content {
        padding: 8px 0;
    }
    
    .nmap-main-item a {
        font-size: 13px;
    }
    
    .nmap-city-object a {
        font-size: 11px;
    }
}